tx · 9nRW1gbRLEhAyztEGAEh3EA3EFvarUzAiV5NSqxZa4tE 3NBPnEADc6KRTGyLYu277UVBVpATKuLStoo: -0.03800000 Waves 2022.11.07 02:38 [2305940] smart account 3NBPnEADc6KRTGyLYu277UVBVpATKuLStoo > SELF 0.00000000 Waves
{ "type": 13, "id": "9nRW1gbRLEhAyztEGAEh3EA3EFvarUzAiV5NSqxZa4tE", "fee": 3800000, "feeAssetId": null, "timestamp": 1667777938915, "version": 2, "chainId": 84, "sender": "3NBPnEADc6KRTGyLYu277UVBVpATKuLStoo", "senderPublicKey": "aYCXwWE5HwK514PYuUxDBtXjyL3M32iEF6ria6Uh1iV", "proofs": [ "zeipwu4suJD7XnZo1p2RdNKyX28UEEMtJDZmUnS9n2iNPAMbX9hfxtp1mAn21xoaAWkgkbEXKN6XRZwVg9amEqb" ], "script": "base64:BgJWCAISAwoBCBIDCgEIEgMKAQgSBQoDCAEBEgUKAwEIERIFCgMBCBESBgoEAQgBERIDCgEIEgASFwoVCAgIAQEBARgICAgICAgIGBgYGBgYEgQKAggIEgANABRuZnRfY3JlYXRpb25fYWRkcmVzcwkBB0FkZHJlc3MBARoBVNfUIRkzMMsUuy4VRRry35ft/Ha30v/0nQAVcHJpY2VfaW5jcmVhc2VfcGVyaW9kAAoAD21pbnRfY29sbGVjdGlvbgISQ2xlZiBnZW5lc2lzIHNvbmdzABBtaW50X2Rlc2NyaXB0aW9uAmRHZW5lc2lzIENsZWYgc29uZy4gVGhpcyBtZWxvZHkgaXMgY3JhZnRlZCB0byBiZWNvbWUgeW91ciBlbGVjdHJvbmljIGphbS4gVXNlIGl0IG9uIGNsZWYub25lIPCfkprwn6SNABFoeWJyaWRfY29sbGVjdGlvbgIKQ2xlZiBtaXhlcwASaHlicmlkX2Rlc2NyaXB0aW9uAldDbGVmIG1peC4gVGhpcyBtZWxvZHkgd2FzIGNyZWF0ZWQgYnkgYW4gYWxnb3JpdGhtLiBFbmpveSB0aGlzIGphbSBvciB1c2UgaXQ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VmVjdG9yBAFiBQckbWF0Y2gwBQFiCQACAQINV3JvbmcgcGF5bWVudAQJc29uZ18xX2lkBAckbWF0Y2gwCAkAkQMCCAUBaQhwYXltZW50cwABB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQBYgUHJG1hdGNoMAUBYgkAAgECDVdyb25nIHBheW1lbnQDCQAAAgUJc29uZ18wX2lkBQlzb25nXzFfaWQJAAIBAhlTb25ncyBzaG91bGQgYmUgZGlmZmVyZW50BAZzb25nXzAJARFAZXh0ck5hdGl2ZSgxMDU4KQEJANgEAQUJc29uZ18wX2lkBAZzb25nXzEJARFAZXh0ck5hdGl2ZSgxMDU4KQEJANgEAQUJc29uZ18xX2lkBAVidXJuMAkA/AcEBRRuZnRfY3JlYXRpb25fYWRkcmVzcwIHYnVybk5GVAUDbmlsCQDMCAIJAJEDAggFAWkIcGF5bWVudHMAAAUDbmlsAwkAAAIFBWJ1cm4wBQVidXJuMAQFYnVybjEJAPwHBAUUbmZ0X2NyZWF0aW9uX2FkZHJlc3MCB2J1cm5ORlQFA25pbAkAzAgCCQCRAwIIBQFpCHBheW1lbnRzAAEFA25pbAMJAAACBQVidXJuMQUFYnVybjEJAJQKAgkBDm1ha2VfaHlicmlkX3R4AwUBaQUGc29uZ18wBQZzb25nXzEFBHVuaXQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AEaJS2Q==", "height": 2305940, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FTu3oLFd66Wc2PFPbvJXRRwGJY3c3qwXhJuNQJpGYy62 Next: FHCbrQ9aFy2exrNF76P2XbdFFCAniBt5XCACDP9sQyte Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let nft_creation_address = Address(base58' | |
4 | + | let nft_creation_address = Address(base58'3N9bHBAZKai5SwrywMPLQpKmNePRQiHhW9S') | |
5 | 5 | ||
6 | 6 | let price_increase_period = 10 | |
7 | + | ||
8 | + | let mint_collection = "Clef genesis songs" | |
9 | + | ||
10 | + | let mint_description = "Genesis Clef song. This melody is crafted to become your electronic jam. Use it on clef.one 💚🤍" | |
11 | + | ||
12 | + | let hybrid_collection = "Clef mixes" | |
13 | + | ||
14 | + | let hybrid_description = "Clef mix. This melody was created by an algorithm. Enjoy this jam or use it on clef.one" | |
7 | 15 | ||
8 | 16 | func to_key (n) = toBase58String(toBytes(n)) | |
9 | 17 | ||
48 | 56 | 0 | |
49 | 57 | } | |
50 | 58 | let name_short = take(("Clef " + toString(n)), 16) | |
51 | - | let description = | |
52 | - | let collection = | |
59 | + | let description = hybrid_description | |
60 | + | let collection = hybrid_collection | |
53 | 61 | let id = match invoke(nft_creation_address, "createNFT", [name_short, description, getStringValue("market_image_link"), collection], nil) { | |
54 | 62 | case x: String => | |
55 | 63 | x | |
162 | 170 | ||
163 | 171 | ||
164 | 172 | @Callable(i) | |
173 | + | func burn_internal (asset_id) = if (!(check_whitelist(i.caller))) | |
174 | + | then throw("Caller not in whitelist") | |
175 | + | else { | |
176 | + | let burn0 = invoke(nft_creation_address, "burnNFT", nil, [AttachedPayment(fromBase58String(asset_id), 1)]) | |
177 | + | if ((burn0 == burn0)) | |
178 | + | then $Tuple2(nil, unit) | |
179 | + | else throw("Strict value is not equal to itself.") | |
180 | + | } | |
181 | + | ||
182 | + | ||
183 | + | ||
184 | + | @Callable(i) | |
185 | + | func burn () = if (!(check_whitelist(i.caller))) | |
186 | + | then throw("Caller not in whitelist") | |
187 | + | else { | |
188 | + | let burn0 = invoke(nft_creation_address, "burnNFT", nil, [i.payments[0]]) | |
189 | + | if ((burn0 == burn0)) | |
190 | + | then $Tuple2(nil, unit) | |
191 | + | else throw("Strict value is not equal to itself.") | |
192 | + | } | |
193 | + | ||
194 | + | ||
195 | + | ||
196 | + | @Callable(i) | |
165 | 197 | func mint_song (name,parent_0,parent_1,bpm,bar_size,beat_size,tonality,chords,arpeggio,kick_instrument,snare_instrument,hihat_instrument,bass_instrument,back_instrument,lead_instrument,kick_rhythms,snare_rhythms,hihat_rhythms,bass_rhythms,back_rhythms,lead_rhythms) = if (!(check_whitelist(i.caller))) | |
166 | 198 | then throw("Caller not in whitelist") | |
167 | 199 | else if ((size(chords) != 8)) | |
186 | 218 | 0 | |
187 | 219 | } | |
188 | 220 | let name_short = take(name, 16) | |
189 | - | let description = | |
190 | - | let collection = | |
221 | + | let description = mint_description | |
222 | + | let collection = mint_collection | |
191 | 223 | let id = match invoke(nft_creation_address, "createNFT", [name_short, description, getStringValue("market_image_link"), collection], nil) { | |
192 | 224 | case x: String => | |
193 | 225 | x |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let nft_creation_address = Address(base58' | |
4 | + | let nft_creation_address = Address(base58'3N9bHBAZKai5SwrywMPLQpKmNePRQiHhW9S') | |
5 | 5 | ||
6 | 6 | let price_increase_period = 10 | |
7 | + | ||
8 | + | let mint_collection = "Clef genesis songs" | |
9 | + | ||
10 | + | let mint_description = "Genesis Clef song. This melody is crafted to become your electronic jam. Use it on clef.one 💚🤍" | |
11 | + | ||
12 | + | let hybrid_collection = "Clef mixes" | |
13 | + | ||
14 | + | let hybrid_description = "Clef mix. This melody was created by an algorithm. Enjoy this jam or use it on clef.one" | |
7 | 15 | ||
8 | 16 | func to_key (n) = toBase58String(toBytes(n)) | |
9 | 17 | ||
10 | 18 | ||
11 | 19 | func unique_bytes (i) = ((((i.transactionId + i.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
12 | 20 | ||
13 | 21 | ||
14 | 22 | func random_uint (bytes,nonce) = { | |
15 | 23 | let n = toInt(sha256_16Kb((bytes + toBytes(nonce)))) | |
16 | 24 | if ((0 > n)) | |
17 | 25 | then -(n) | |
18 | 26 | else n | |
19 | 27 | } | |
20 | 28 | ||
21 | 29 | ||
22 | 30 | func pick_one (key_0,key_1,rand_int,bit_power) = if ((((rand_int / bit_power) % 2) == 0)) | |
23 | 31 | then key_0 | |
24 | 32 | else key_1 | |
25 | 33 | ||
26 | 34 | ||
27 | 35 | func hybrid_calculate_change (i,token,amount) = if ((size(i.payments) != 1)) | |
28 | 36 | then -1 | |
29 | 37 | else { | |
30 | 38 | let p = i.payments[0] | |
31 | 39 | let p_token = match p.assetId { | |
32 | 40 | case id: ByteVector => | |
33 | 41 | toBase58String(id) | |
34 | 42 | case _ => | |
35 | 43 | "" | |
36 | 44 | } | |
37 | 45 | if ((p_token != token)) | |
38 | 46 | then -1 | |
39 | 47 | else (p.amount - amount) | |
40 | 48 | } | |
41 | 49 | ||
42 | 50 | ||
43 | 51 | func make_hybrid_tx (i,song_0,song_1) = { | |
44 | 52 | let n = match getInteger("count") { | |
45 | 53 | case j: Int => | |
46 | 54 | j | |
47 | 55 | case _ => | |
48 | 56 | 0 | |
49 | 57 | } | |
50 | 58 | let name_short = take(("Clef " + toString(n)), 16) | |
51 | - | let description = | |
52 | - | let collection = | |
59 | + | let description = hybrid_description | |
60 | + | let collection = hybrid_collection | |
53 | 61 | let id = match invoke(nft_creation_address, "createNFT", [name_short, description, getStringValue("market_image_link"), collection], nil) { | |
54 | 62 | case x: String => | |
55 | 63 | x | |
56 | 64 | case _ => | |
57 | 65 | throw("NFT creation failed") | |
58 | 66 | } | |
59 | 67 | if ((id == id)) | |
60 | 68 | then { | |
61 | 69 | let id_b = fromBase58String(id) | |
62 | 70 | let key = to_key(n) | |
63 | 71 | let bytes = unique_bytes(i) | |
64 | 72 | let rand_0 = random_uint(bytes, 0) | |
65 | 73 | let rand_1 = random_uint(bytes, 1) | |
66 | 74 | [IntegerEntry("count", (n + 1)), StringEntry(id, key), StringEntry(key, id), IntegerEntry((key + "_G"), (max([getIntegerValue((song_0 + "_G")), getIntegerValue((song_1 + "_G"))]) + 1)), StringEntry((key + "_SL"), ""), IntegerEntry((key + "_SN"), rand_0), StringEntry((key + "_SP0"), song_0), StringEntry((key + "_SP1"), song_1), IntegerEntry((key + "_SB0"), getIntegerValue((pick_one(song_0, song_1, rand_0, 1) + "_SB0"))), IntegerEntry((key + "_SB1"), getIntegerValue((pick_one(song_0, song_1, rand_0, 2) + "_SB1"))), IntegerEntry((key + "_SB2"), getIntegerValue((pick_one(song_0, song_1, rand_0, 4) + "_SB2"))), IntegerEntry((key + "_ST"), getIntegerValue((pick_one(song_0, song_1, rand_0, 8) + "_ST"))), StringEntry((key + "_SC0"), getStringValue((pick_one(song_0, song_1, rand_0, 16) + "_SC0"))), StringEntry((key + "_SC1"), getStringValue((pick_one(song_0, song_1, rand_0, 32) + "_SC1"))), StringEntry((key + "_SC2"), getStringValue((pick_one(song_0, song_1, rand_0, 64) + "_SC2"))), StringEntry((key + "_SC3"), getStringValue((pick_one(song_0, song_1, rand_0, 128) + "_SC3"))), StringEntry((key + "_SC4"), getStringValue((pick_one(song_0, song_1, rand_0, 512) + "_SC4"))), StringEntry((key + "_SC5"), getStringValue((pick_one(song_0, song_1, rand_0, 1024) + "_SC5"))), StringEntry((key + "_SC6"), getStringValue((pick_one(song_0, song_1, rand_0, 2048) + "_SC6"))), StringEntry((key + "_SC7"), getStringValue((pick_one(song_0, song_1, rand_0, 4096) + "_SC7"))), StringEntry((key + "_SA"), getStringValue((pick_one(song_0, song_1, rand_0, 8192) + "_SA"))), StringEntry((key + "_SI0"), getStringValue((pick_one(song_0, song_1, rand_0, 16384) + "_SI0"))), StringEntry((key + "_SI1"), getStringValue((pick_one(song_0, song_1, rand_0, 32768) + "_SI1"))), StringEntry((key + "_SI2"), getStringValue((pick_one(song_0, song_1, rand_0, 65536) + "_SI2"))), StringEntry((key + "_SI3"), getStringValue((pick_one(song_0, song_1, rand_0, 131072) + "_SI3"))), StringEntry((key + "_SI4"), getStringValue((pick_one(song_0, song_1, rand_0, 262144) + "_SI4"))), StringEntry((key + "_SI5"), getStringValue((pick_one(song_0, song_1, rand_0, 524288) + "_SI5"))), StringEntry((key + "_SI50"), getStringValue((pick_one(song_0, song_1, rand_0, 1048576) + "_SI50"))), StringEntry((key + "_SI51"), getStringValue((pick_one(song_0, song_1, rand_0, 2097152) + "_SI51"))), StringEntry((key + "_SI52"), getStringValue((pick_one(song_0, song_1, rand_0, 4194304) + "_SI52"))), StringEntry((key + "_SI53"), getStringValue((pick_one(song_0, song_1, rand_0, 8388608) + "_SI53"))), StringEntry((key + "_SI54"), getStringValue((pick_one(song_0, song_1, rand_0, 16777216) + "_SI54"))), StringEntry((key + "_SI55"), getStringValue((pick_one(song_0, song_1, rand_0, 33554432) + "_SI55"))), StringEntry((key + "_SI56"), getStringValue((pick_one(song_0, song_1, rand_0, 67108864) + "_SI56"))), StringEntry((key + "_SI57"), getStringValue((pick_one(song_0, song_1, rand_0, 134217728) + "_SI57"))), StringEntry((key + "_SI00"), getStringValue((pick_one(song_0, song_1, rand_0, 268435456) + "_SI00"))), StringEntry((key + "_SI01"), getStringValue((pick_one(song_0, song_1, rand_0, 536870912) + "_SI01"))), StringEntry((key + "_SI02"), getStringValue((pick_one(song_0, song_1, rand_0, 1073741824) + "_SI02"))), StringEntry((key + "_SI03"), getStringValue((pick_one(song_0, song_1, rand_0, 2147483648) + "_SI03"))), StringEntry((key + "_SI04"), getStringValue((pick_one(song_0, song_1, rand_0, 4294967296) + "_SI04"))), StringEntry((key + "_SI05"), getStringValue((pick_one(song_0, song_1, rand_0, 8589934592) + "_SI05"))), StringEntry((key + "_SI06"), getStringValue((pick_one(song_0, song_1, rand_1, 1) + "_SI06"))), StringEntry((key + "_SI07"), getStringValue((pick_one(song_0, song_1, rand_1, 2) + "_SI07"))), StringEntry((key + "_SI10"), getStringValue((pick_one(song_0, song_1, rand_1, 4) + "_SI10"))), StringEntry((key + "_SI11"), getStringValue((pick_one(song_0, song_1, rand_1, 8) + "_SI11"))), StringEntry((key + "_SI12"), getStringValue((pick_one(song_0, song_1, rand_1, 16) + "_SI12"))), StringEntry((key + "_SI13"), getStringValue((pick_one(song_0, song_1, rand_1, 32) + "_SI13"))), StringEntry((key + "_SI14"), getStringValue((pick_one(song_0, song_1, rand_1, 64) + "_SI14"))), StringEntry((key + "_SI15"), getStringValue((pick_one(song_0, song_1, rand_1, 128) + "_SI15"))), StringEntry((key + "_SI16"), getStringValue((pick_one(song_0, song_1, rand_1, 256) + "_SI16"))), StringEntry((key + "_SI17"), getStringValue((pick_one(song_0, song_1, rand_1, 512) + "_SI17"))), StringEntry((key + "_SI20"), getStringValue((pick_one(song_0, song_1, rand_1, 1024) + "_SI20"))), StringEntry((key + "_SI21"), getStringValue((pick_one(song_0, song_1, rand_1, 2048) + "_SI21"))), StringEntry((key + "_SI22"), getStringValue((pick_one(song_0, song_1, rand_1, 4096) + "_SI22"))), StringEntry((key + "_SI23"), getStringValue((pick_one(song_0, song_1, rand_1, 8192) + "_SI23"))), StringEntry((key + "_SI24"), getStringValue((pick_one(song_0, song_1, rand_1, 16384) + "_SI24"))), StringEntry((key + "_SI25"), getStringValue((pick_one(song_0, song_1, rand_1, 32768) + "_SI25"))), StringEntry((key + "_SI26"), getStringValue((pick_one(song_0, song_1, rand_1, 65536) + "_SI26"))), StringEntry((key + "_SI27"), getStringValue((pick_one(song_0, song_1, rand_1, 131072) + "_SI27"))), StringEntry((key + "_SI30"), getStringValue((pick_one(song_0, song_1, rand_1, 262144) + "_SI30"))), StringEntry((key + "_SI31"), getStringValue((pick_one(song_0, song_1, rand_1, 524288) + "_SI31"))), StringEntry((key + "_SI32"), getStringValue((pick_one(song_0, song_1, rand_1, 1048576) + "_SI32"))), StringEntry((key + "_SI33"), getStringValue((pick_one(song_0, song_1, rand_1, 2097152) + "_SI33"))), StringEntry((key + "_SI34"), getStringValue((pick_one(song_0, song_1, rand_1, 4194304) + "_SI34"))), StringEntry((key + "_SI35"), getStringValue((pick_one(song_0, song_1, rand_1, 8388608) + "_SI35"))), StringEntry((key + "_SI36"), getStringValue((pick_one(song_0, song_1, rand_1, 16777216) + "_SI36"))), StringEntry((key + "_SI37"), getStringValue((pick_one(song_0, song_1, rand_1, 33554432) + "_SI37"))), StringEntry((key + "_SI40"), getStringValue((pick_one(song_0, song_1, rand_1, 67108864) + "_SI40"))), StringEntry((key + "_SI41"), getStringValue((pick_one(song_0, song_1, rand_1, 134217728) + "_SI41"))), StringEntry((key + "_SI42"), getStringValue((pick_one(song_0, song_1, rand_1, 268435456) + "_SI42"))), StringEntry((key + "_SI43"), getStringValue((pick_one(song_0, song_1, rand_1, 536870912) + "_SI43"))), StringEntry((key + "_SI44"), getStringValue((pick_one(song_0, song_1, rand_1, 1073741824) + "_SI44"))), StringEntry((key + "_SI45"), getStringValue((pick_one(song_0, song_1, rand_1, 2147483648) + "_SI45"))), StringEntry((key + "_SI46"), getStringValue((pick_one(song_0, song_1, rand_1, 4294967296) + "_SI46"))), StringEntry((key + "_SI47"), getStringValue((pick_one(song_0, song_1, rand_1, 8589934592) + "_SI47"))), ScriptTransfer(Address(i.caller.bytes), 1, id_b)] | |
67 | 75 | } | |
68 | 76 | else throw("Strict value is not equal to itself.") | |
69 | 77 | } | |
70 | 78 | ||
71 | 79 | ||
72 | 80 | func check_whitelist (caller) = if ((this == caller)) | |
73 | 81 | then true | |
74 | 82 | else match getBoolean(("W_" + toBase58String(caller.bytes))) { | |
75 | 83 | case x: Boolean => | |
76 | 84 | x | |
77 | 85 | case _ => | |
78 | 86 | false | |
79 | 87 | } | |
80 | 88 | ||
81 | 89 | ||
82 | 90 | @Callable(i) | |
83 | 91 | func whitelist_add (user) = if ((this != i.caller)) | |
84 | 92 | then throw("Caller is not dApp owner") | |
85 | 93 | else $Tuple2([BooleanEntry(("W_" + user), true)], unit) | |
86 | 94 | ||
87 | 95 | ||
88 | 96 | ||
89 | 97 | @Callable(i) | |
90 | 98 | func whitelist_remove (user) = if ((this != i.caller)) | |
91 | 99 | then throw("Caller is not dApp owner") | |
92 | 100 | else $Tuple2([DeleteEntry(("W_" + user))], unit) | |
93 | 101 | ||
94 | 102 | ||
95 | 103 | ||
96 | 104 | @Callable(i) | |
97 | 105 | func set_market_image (url) = if (!(check_whitelist(i.caller))) | |
98 | 106 | then throw("Caller not in whitelist") | |
99 | 107 | else $Tuple2([StringEntry("market_image_link", url)], unit) | |
100 | 108 | ||
101 | 109 | ||
102 | 110 | ||
103 | 111 | @Callable(i) | |
104 | 112 | func set_price_hybrid (token,amount,increment) = if (!(check_whitelist(i.caller))) | |
105 | 113 | then throw("Caller not in whitelist") | |
106 | 114 | else $Tuple2([StringEntry("price_hybrid_token", token), IntegerEntry("price_hybrid_amount", amount), IntegerEntry("price_hybrid_increment", increment)], unit) | |
107 | 115 | ||
108 | 116 | ||
109 | 117 | ||
110 | 118 | @Callable(i) | |
111 | 119 | func mint_chord (index,name,notes) = if (!(check_whitelist(i.caller))) | |
112 | 120 | then throw("Caller not in whitelist") | |
113 | 121 | else if ((size(notes) != 5)) | |
114 | 122 | then throw("Wrong notes size") | |
115 | 123 | else { | |
116 | 124 | let n = match getInteger("count") { | |
117 | 125 | case j: Int => | |
118 | 126 | j | |
119 | 127 | case _ => | |
120 | 128 | 0 | |
121 | 129 | } | |
122 | 130 | let key = to_key(index) | |
123 | 131 | $Tuple2([IntegerEntry("count", max([(index + 1), n])), StringEntry((key + "_CL"), name), IntegerEntry((key + "_C0"), notes[0]), IntegerEntry((key + "_C1"), notes[1]), IntegerEntry((key + "_C2"), notes[2]), IntegerEntry((key + "_C3"), notes[3]), IntegerEntry((key + "_C4"), notes[4])], unit) | |
124 | 132 | } | |
125 | 133 | ||
126 | 134 | ||
127 | 135 | ||
128 | 136 | @Callable(i) | |
129 | 137 | func mint_arpeggio (index,name,notes) = if (!(check_whitelist(i.caller))) | |
130 | 138 | then throw("Caller not in whitelist") | |
131 | 139 | else if ((size(notes) != 16)) | |
132 | 140 | then throw("Wrong notes size") | |
133 | 141 | else { | |
134 | 142 | let n = match getInteger("count") { | |
135 | 143 | case j: Int => | |
136 | 144 | j | |
137 | 145 | case _ => | |
138 | 146 | 0 | |
139 | 147 | } | |
140 | 148 | let key = to_key(index) | |
141 | 149 | $Tuple2([IntegerEntry("count", max([(index + 1), n])), StringEntry((key + "_AL"), name), IntegerEntry((key + "_A00"), notes[0]), IntegerEntry((key + "_A01"), notes[1]), IntegerEntry((key + "_A02"), notes[2]), IntegerEntry((key + "_A03"), notes[3]), IntegerEntry((key + "_A04"), notes[4]), IntegerEntry((key + "_A05"), notes[5]), IntegerEntry((key + "_A06"), notes[6]), IntegerEntry((key + "_A07"), notes[7]), IntegerEntry((key + "_A08"), notes[8]), IntegerEntry((key + "_A09"), notes[9]), IntegerEntry((key + "_A10"), notes[10]), IntegerEntry((key + "_A11"), notes[11]), IntegerEntry((key + "_A12"), notes[12]), IntegerEntry((key + "_A13"), notes[13]), IntegerEntry((key + "_A14"), notes[14]), IntegerEntry((key + "_A15"), notes[15])], unit) | |
142 | 150 | } | |
143 | 151 | ||
144 | 152 | ||
145 | 153 | ||
146 | 154 | @Callable(i) | |
147 | 155 | func mint_rhythm (index,name,scale,notes) = if (!(check_whitelist(i.caller))) | |
148 | 156 | then throw("Caller not in whitelist") | |
149 | 157 | else if ((size(notes) != 16)) | |
150 | 158 | then throw("Wrong notes size") | |
151 | 159 | else { | |
152 | 160 | let n = match getInteger("count") { | |
153 | 161 | case j: Int => | |
154 | 162 | j | |
155 | 163 | case _ => | |
156 | 164 | 0 | |
157 | 165 | } | |
158 | 166 | let key = to_key(index) | |
159 | 167 | $Tuple2([IntegerEntry("count", max([(index + 1), n])), StringEntry((key + "_RL"), name), IntegerEntry((key + "_RS"), scale), IntegerEntry((key + "_R00"), notes[0]), IntegerEntry((key + "_R01"), notes[1]), IntegerEntry((key + "_R02"), notes[2]), IntegerEntry((key + "_R03"), notes[3]), IntegerEntry((key + "_R04"), notes[4]), IntegerEntry((key + "_R05"), notes[5]), IntegerEntry((key + "_R06"), notes[6]), IntegerEntry((key + "_R07"), notes[7]), IntegerEntry((key + "_R08"), notes[8]), IntegerEntry((key + "_R09"), notes[9]), IntegerEntry((key + "_R10"), notes[10]), IntegerEntry((key + "_R11"), notes[11]), IntegerEntry((key + "_R12"), notes[12]), IntegerEntry((key + "_R13"), notes[13]), IntegerEntry((key + "_R14"), notes[14]), IntegerEntry((key + "_R15"), notes[15])], unit) | |
160 | 168 | } | |
161 | 169 | ||
162 | 170 | ||
163 | 171 | ||
164 | 172 | @Callable(i) | |
173 | + | func burn_internal (asset_id) = if (!(check_whitelist(i.caller))) | |
174 | + | then throw("Caller not in whitelist") | |
175 | + | else { | |
176 | + | let burn0 = invoke(nft_creation_address, "burnNFT", nil, [AttachedPayment(fromBase58String(asset_id), 1)]) | |
177 | + | if ((burn0 == burn0)) | |
178 | + | then $Tuple2(nil, unit) | |
179 | + | else throw("Strict value is not equal to itself.") | |
180 | + | } | |
181 | + | ||
182 | + | ||
183 | + | ||
184 | + | @Callable(i) | |
185 | + | func burn () = if (!(check_whitelist(i.caller))) | |
186 | + | then throw("Caller not in whitelist") | |
187 | + | else { | |
188 | + | let burn0 = invoke(nft_creation_address, "burnNFT", nil, [i.payments[0]]) | |
189 | + | if ((burn0 == burn0)) | |
190 | + | then $Tuple2(nil, unit) | |
191 | + | else throw("Strict value is not equal to itself.") | |
192 | + | } | |
193 | + | ||
194 | + | ||
195 | + | ||
196 | + | @Callable(i) | |
165 | 197 | func mint_song (name,parent_0,parent_1,bpm,bar_size,beat_size,tonality,chords,arpeggio,kick_instrument,snare_instrument,hihat_instrument,bass_instrument,back_instrument,lead_instrument,kick_rhythms,snare_rhythms,hihat_rhythms,bass_rhythms,back_rhythms,lead_rhythms) = if (!(check_whitelist(i.caller))) | |
166 | 198 | then throw("Caller not in whitelist") | |
167 | 199 | else if ((size(chords) != 8)) | |
168 | 200 | then throw("Wrong chords size") | |
169 | 201 | else if ((size(kick_rhythms) != 8)) | |
170 | 202 | then throw("Wrong kick rhythms size") | |
171 | 203 | else if ((size(snare_rhythms) != 8)) | |
172 | 204 | then throw("Wrong snare rhythms size") | |
173 | 205 | else if ((size(hihat_rhythms) != 8)) | |
174 | 206 | then throw("Wrong hihat rhythms size") | |
175 | 207 | else if ((size(bass_rhythms) != 8)) | |
176 | 208 | then throw("Wrong bass rhythms size") | |
177 | 209 | else if ((size(back_rhythms) != 8)) | |
178 | 210 | then throw("Wrong back rhythms size") | |
179 | 211 | else if ((size(lead_rhythms) != 8)) | |
180 | 212 | then throw("Wrong lead rhythms size") | |
181 | 213 | else { | |
182 | 214 | let n = match getInteger("count") { | |
183 | 215 | case j: Int => | |
184 | 216 | j | |
185 | 217 | case _ => | |
186 | 218 | 0 | |
187 | 219 | } | |
188 | 220 | let name_short = take(name, 16) | |
189 | - | let description = | |
190 | - | let collection = | |
221 | + | let description = mint_description | |
222 | + | let collection = mint_collection | |
191 | 223 | let id = match invoke(nft_creation_address, "createNFT", [name_short, description, getStringValue("market_image_link"), collection], nil) { | |
192 | 224 | case x: String => | |
193 | 225 | x | |
194 | 226 | case _ => | |
195 | 227 | throw("NFT creation failed") | |
196 | 228 | } | |
197 | 229 | if ((id == id)) | |
198 | 230 | then { | |
199 | 231 | let key = to_key(n) | |
200 | 232 | let tx_transfer = if ((this != i.caller)) | |
201 | 233 | then [ScriptTransfer(Address(i.caller.bytes), 1, fromBase58String(id))] | |
202 | 234 | else nil | |
203 | 235 | $Tuple2(([IntegerEntry("count", (n + 1)), StringEntry(id, key), StringEntry(key, id), IntegerEntry((key + "_G"), 1), StringEntry((key + "_SL"), name), IntegerEntry((key + "_SN"), 0), StringEntry((key + "_SP0"), parent_0), StringEntry((key + "_SP1"), parent_1), IntegerEntry((key + "_SB0"), bpm), IntegerEntry((key + "_SB1"), bar_size), IntegerEntry((key + "_SB2"), beat_size), IntegerEntry((key + "_ST"), tonality), StringEntry((key + "_SC0"), chords[0]), StringEntry((key + "_SC1"), chords[1]), StringEntry((key + "_SC2"), chords[2]), StringEntry((key + "_SC3"), chords[3]), StringEntry((key + "_SC4"), chords[4]), StringEntry((key + "_SC5"), chords[5]), StringEntry((key + "_SC6"), chords[6]), StringEntry((key + "_SC7"), chords[7]), StringEntry((key + "_SA"), arpeggio), StringEntry((key + "_SI0"), kick_instrument), StringEntry((key + "_SI1"), snare_instrument), StringEntry((key + "_SI2"), hihat_instrument), StringEntry((key + "_SI3"), bass_instrument), StringEntry((key + "_SI4"), back_instrument), StringEntry((key + "_SI5"), lead_instrument), StringEntry((key + "_SI00"), kick_rhythms[0]), StringEntry((key + "_SI01"), kick_rhythms[1]), StringEntry((key + "_SI02"), kick_rhythms[2]), StringEntry((key + "_SI03"), kick_rhythms[3]), StringEntry((key + "_SI04"), kick_rhythms[4]), StringEntry((key + "_SI05"), kick_rhythms[5]), StringEntry((key + "_SI06"), kick_rhythms[6]), StringEntry((key + "_SI07"), kick_rhythms[7]), StringEntry((key + "_SI10"), snare_rhythms[0]), StringEntry((key + "_SI11"), snare_rhythms[1]), StringEntry((key + "_SI12"), snare_rhythms[2]), StringEntry((key + "_SI13"), snare_rhythms[3]), StringEntry((key + "_SI14"), snare_rhythms[4]), StringEntry((key + "_SI15"), snare_rhythms[5]), StringEntry((key + "_SI16"), snare_rhythms[6]), StringEntry((key + "_SI17"), snare_rhythms[7]), StringEntry((key + "_SI20"), hihat_rhythms[0]), StringEntry((key + "_SI21"), hihat_rhythms[1]), StringEntry((key + "_SI22"), hihat_rhythms[2]), StringEntry((key + "_SI23"), hihat_rhythms[3]), StringEntry((key + "_SI24"), hihat_rhythms[4]), StringEntry((key + "_SI25"), hihat_rhythms[5]), StringEntry((key + "_SI26"), hihat_rhythms[6]), StringEntry((key + "_SI27"), hihat_rhythms[7]), StringEntry((key + "_SI30"), bass_rhythms[0]), StringEntry((key + "_SI31"), bass_rhythms[1]), StringEntry((key + "_SI32"), bass_rhythms[2]), StringEntry((key + "_SI33"), bass_rhythms[3]), StringEntry((key + "_SI34"), bass_rhythms[4]), StringEntry((key + "_SI35"), bass_rhythms[5]), StringEntry((key + "_SI36"), bass_rhythms[6]), StringEntry((key + "_SI37"), bass_rhythms[7]), StringEntry((key + "_SI40"), back_rhythms[0]), StringEntry((key + "_SI41"), back_rhythms[1]), StringEntry((key + "_SI42"), back_rhythms[2]), StringEntry((key + "_SI43"), back_rhythms[3]), StringEntry((key + "_SI44"), back_rhythms[4]), StringEntry((key + "_SI45"), back_rhythms[5]), StringEntry((key + "_SI46"), back_rhythms[6]), StringEntry((key + "_SI47"), back_rhythms[7]), StringEntry((key + "_SI50"), lead_rhythms[0]), StringEntry((key + "_SI51"), lead_rhythms[1]), StringEntry((key + "_SI52"), lead_rhythms[2]), StringEntry((key + "_SI53"), lead_rhythms[3]), StringEntry((key + "_SI54"), lead_rhythms[4]), StringEntry((key + "_SI55"), lead_rhythms[5]), StringEntry((key + "_SI56"), lead_rhythms[6]), StringEntry((key + "_SI57"), lead_rhythms[7])] ++ tx_transfer), unit) | |
204 | 236 | } | |
205 | 237 | else throw("Strict value is not equal to itself.") | |
206 | 238 | } | |
207 | 239 | ||
208 | 240 | ||
209 | 241 | ||
210 | 242 | @Callable(i) | |
211 | 243 | func mint_hybrid (song_0,song_1) = { | |
212 | 244 | let caller_addr = Address(i.caller.bytes) | |
213 | 245 | let song_0_id = fromBase58String(getStringValue(song_0)) | |
214 | 246 | let song_1_id = fromBase58String(getStringValue(song_1)) | |
215 | 247 | let price_amount = getIntegerValue("price_hybrid_amount") | |
216 | 248 | let price_token = getStringValue("price_hybrid_token") | |
217 | 249 | let price_change = hybrid_calculate_change(i, price_token, price_amount) | |
218 | 250 | if ((0 > price_change)) | |
219 | 251 | then throw("Wrong payment") | |
220 | 252 | else if ((song_0_id == song_1_id)) | |
221 | 253 | then throw("Songs should be different") | |
222 | 254 | else if ((1 > assetBalance(caller_addr, song_0_id))) | |
223 | 255 | then throw("Caller do not own first song") | |
224 | 256 | else if ((1 > assetBalance(caller_addr, song_1_id))) | |
225 | 257 | then throw("Caller do not own second song") | |
226 | 258 | else { | |
227 | 259 | let mint_count = match getInteger("mint_count") { | |
228 | 260 | case j: Int => | |
229 | 261 | j | |
230 | 262 | case _ => | |
231 | 263 | 0 | |
232 | 264 | } | |
233 | 265 | let price_count_inc = IntegerEntry("mint_count", (mint_count + 1)) | |
234 | 266 | let price_increase = if (((mint_count % price_increase_period) == (price_increase_period - 1))) | |
235 | 267 | then [price_count_inc, IntegerEntry("price_hybrid_amount", (price_amount + getIntegerValue("price_hybrid_increment")))] | |
236 | 268 | else [price_count_inc] | |
237 | 269 | if ((price_change > 0)) | |
238 | 270 | then $Tuple2(((make_hybrid_tx(i, song_0, song_1) ++ price_increase) ++ [ScriptTransfer(Address(i.caller.bytes), price_change, if ((price_token == "")) | |
239 | 271 | then unit | |
240 | 272 | else fromBase58String(price_token))]), unit) | |
241 | 273 | else $Tuple2((make_hybrid_tx(i, song_0, song_1) ++ price_increase), unit) | |
242 | 274 | } | |
243 | 275 | } | |
244 | 276 | ||
245 | 277 | ||
246 | 278 | ||
247 | 279 | @Callable(i) | |
248 | 280 | func mint_hybrid_and_burn () = if (if (if ((size(i.payments) != 2)) | |
249 | 281 | then true | |
250 | 282 | else (i.payments[0].amount != 1)) | |
251 | 283 | then true | |
252 | 284 | else (i.payments[1].amount != 1)) | |
253 | 285 | then throw("Wrong payment") | |
254 | 286 | else { | |
255 | 287 | let song_0_id = match i.payments[0].assetId { | |
256 | 288 | case b: ByteVector => | |
257 | 289 | b | |
258 | 290 | case _ => | |
259 | 291 | throw("Wrong payment") | |
260 | 292 | } | |
261 | 293 | let song_1_id = match i.payments[1].assetId { | |
262 | 294 | case b: ByteVector => | |
263 | 295 | b | |
264 | 296 | case _ => | |
265 | 297 | throw("Wrong payment") | |
266 | 298 | } | |
267 | 299 | if ((song_0_id == song_1_id)) | |
268 | 300 | then throw("Songs should be different") | |
269 | 301 | else { | |
270 | 302 | let song_0 = getStringValue(toBase58String(song_0_id)) | |
271 | 303 | let song_1 = getStringValue(toBase58String(song_1_id)) | |
272 | 304 | let burn0 = invoke(nft_creation_address, "burnNFT", nil, [i.payments[0]]) | |
273 | 305 | if ((burn0 == burn0)) | |
274 | 306 | then { | |
275 | 307 | let burn1 = invoke(nft_creation_address, "burnNFT", nil, [i.payments[1]]) | |
276 | 308 | if ((burn1 == burn1)) | |
277 | 309 | then $Tuple2(make_hybrid_tx(i, song_0, song_1), unit) | |
278 | 310 | else throw("Strict value is not equal to itself.") | |
279 | 311 | } | |
280 | 312 | else throw("Strict value is not equal to itself.") | |
281 | 313 | } | |
282 | 314 | } | |
283 | 315 | ||
284 | 316 |
github/deemru/w8io/169f3d6 90.93 ms ◑