Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
0d92708
added accept incoming offer tests
Jan 27, 2022
384111f
added issuance type
Jan 27, 2022
82666f2
added from implementation
Jan 27, 2022
e3b3152
fixed mocks & buy_nft tests
Jan 27, 2022
115d810
fixed cancel_buy_now tests
Jan 27, 2022
dd5e10f
fixed cancel nft auction tests
Jan 27, 2022
24a945f
fixed cancel offer tests
Jan 27, 2022
e7ff84c
cancel nft open auction bid
Jan 27, 2022
2fcca4a
updated claim won english auction tests
Jan 27, 2022
6e479bd
Issue NFT tests updated
Jan 27, 2022
8bfa198
updated make bid tests
Jan 27, 2022
ddbc791
updated offer nft tests
Jan 27, 2022
4a17e30
updated open auction winner tests
Jan 27, 2022
2f8cc37
updated sell nft tests
Jan 27, 2022
bd0f724
updated sling back nft tests
Jan 27, 2022
8f6d3a5
updated start nft auction
Jan 27, 2022
243a64a
small fix to tests
Jan 27, 2022
3f3e0bf
updated accept incoming offer tests
Jan 27, 2022
66ac939
updated fixed accept incoming offer tests
Jan 27, 2022
ab72251
added params validation before setting the status
Jan 28, 2022
cb2afbf
updated InitTransactionalStatus
Jan 28, 2022
762ab90
adedd checks for auction parameters
Jan 28, 2022
6ff82e4
added tests to ensure issue_nft init transactional status guard
Jan 28, 2022
7575b91
formatting
Jan 28, 2022
abb1e26
nft can now be issued at video creation
Jan 28, 2022
1c1f793
removed unused code & added nft construction routine
Jan 28, 2022
9f7db95
updated tests
Jan 28, 2022
eb6090a
updated runtime code
Jan 28, 2022
3a8caec
removed membership Trait from benchmarks
dobertRowneySr Feb 2, 2022
520aeef
fixed tests' Extbuilder
dobertRowneySr Feb 2, 2022
df21c27
fixed runtime api
dobertRowneySr Feb 2, 2022
8184b6c
commented storage benchmark
dobertRowneySr Feb 2, 2022
92a405c
made methods private
dobertRowneySr Feb 2, 2022
0311e94
removed allow all
dobertRowneySr Feb 2, 2022
afcde30
added alias for TransactionalStatus
dobertRowneySr Feb 2, 2022
0752c9c
fixed test for the new TransactionalStatus alias
dobertRowneySr Feb 2, 2022
844b846
removed obsolete comment and added doc comments to nft/types
dobertRowneySr Feb 2, 2022
845e826
doc-commented helper functions
dobertRowneySr Feb 2, 2022
195458d
fixed format errors
dobertRowneySr Feb 3, 2022
30f8eaf
clippy warnings fixed
dobertRowneySr Feb 3, 2022
eb66efd
updated types
dobertRowneySr Feb 4, 2022
a6d433f
generated types
dobertRowneySr Feb 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chain-metadata.json

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions node/src/chain_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,7 @@ pub fn testnet_genesis(
next_channel_id: 1,
next_video_category_id: 1,
next_video_id: 1,
next_playlist_id: 1,
next_series_id: 1,
next_person_id: 1,
next_video_post_id: 1,
next_channel_transfer_request_id: 1,
video_migration: node_runtime::content::MigrationConfigRecord {
current_id: 1,
final_id: 1,
Expand Down
20 changes: 10 additions & 10 deletions runtime-modules/content/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ decl_error! {
/// Auction for given video did not start
AuctionDidNotStart,

/// NFT for given video id already exists
NFTAlreadyExists,
/// Nft for given video id already exists
NftAlreadyExists,

/// NFT for given video id does not exist
NFTDoesNotExist,
/// Nft for given video id does not exist
NftDoesNotExist,

/// Overflow or underflow error happened
OverflowOrUnderflowHappened,

/// Given origin does not own nft
DoesNotOwnNFT,
DoesNotOwnNft,

/// Royalty Upper Bound Exceeded
RoyaltyUpperBoundExceeded,
Expand Down Expand Up @@ -139,10 +139,10 @@ decl_error! {
/// Already active auction cannot be cancelled
ActionHasBidsAlready,

/// Can not create auction for NFT, if auction have been already started or nft is locked for the transfer
/// Can not create auction for Nft, if auction have been already started or nft is locked for the transfer
NftIsNotIdle,

/// No pending offers for given NFT
/// No pending offers for given Nft
PendingOfferDoesNotExist,

/// Creator royalty requires reward account to be set.
Expand Down Expand Up @@ -173,7 +173,7 @@ decl_error! {
MemberProfileNotFound,

/// Given video nft is not in buy now state
NFTNotInBuyNowState,
NftNotInBuyNowState,

/// Auction type is not `Open`
IsNotOpenAuctionType,
Expand All @@ -184,8 +184,8 @@ decl_error! {
/// Bid lock duration is not expired
BidLockDurationIsNotExpired,

/// NFT auction is already expired
NFTAuctionIsAlreadyExpired,
/// Nft auction is already expired
NftAuctionIsAlreadyExpired,

/// Auction buy now is less then starting price
BuyNowIsLessThenStartingPrice,
Expand Down
Loading