Transaction

f7127a1b924e15033336b622b938bb41f844a70d0b9efea0f394904cfd0e008d
2023-05-07 23:54:22
0.00000320 BSV
(
0.04908510 BSV
-
0.04908190 BSV
)
50.05 sat/KB
1
116,677
6,393 B

5 Outputs

Total Output:
0.04908190 BSV
  • jrunM½{"in":0,"ref":["native://Jig"],"out":["26d6527d27aad192a841372580e96b98c3d6cc987d7a168b245fdd9a8f6ebf7f","6697536dcddf64467d1f04b3599c814fe700c97ded9575288209c781794b5c5c","6c254b4abcc8e7faf1cf7347da472f0c04f62762f830eb0fb0bd41e5165af36a"],"del":[],"cre":["14Xo9XpDiJ88M6ipoq66eCGegNvQ85jUpy","15oUPotsrxaPiaiU8yz5HrtaiHaTfS6rG5","19szKzZdSNhrnsjxGacrjwSD22Hk5ft9NP"],"exec":[{"op":"DEPLOY","data":["class Collection extends Jig {\n init(jigCount, maxE, collectionName, to) {\n this.minted = {};\n this.maxE = maxE;\n this.maxN = jigCount;\n this.maxX = 10;\n this.e = 0;\n this.n = 0;\n this.x = 0;\n this.spent = false;\n this.collectionName = collectionName;\n this.owner = to;\n }\n mint(to) {\n if (this.spent)\n return this;\n if (parseInt(`${this.n}${this.x}${'0'.repeat(this.maxE - this.e)}`, 10) >= this.maxN) {\n this.spent = true;\n return this;\n }\n this.newMinted = new Minter(this.e, this.n, this.x, this.maxE, this.maxN, this.maxX, this.collectionName, this.origin, to);\n this.minted[this.x] = true;\n this.x += 1;\n if (this.x >= this.maxX) {\n this.spent = true;\n }\n return this.minted[this.x - 1];\n }\n retrieve(x) {\n if (!this.minted[x])\n throw new Error('Does not exist');\n return this.minted[x];\n }\n }",{"deps":{"Jig":{"$jig":0},"Minter":{"$jig":2},"NFT":{"$jig":3}}},"class Minter extends Jig {\n init(e, n, x, maxE, maxN, maxX, collectionName, collection, to) {\n if (!(caller instanceof Collection) && !(caller instanceof Minter))\n throw new Error('Only Collection and Minter classes can create minters');\n this.e = e + 1;\n this.n = parseInt(`${n}${x}`, 10);\n this.x = 0;\n this.maxE = maxE;\n this.maxN = maxN;\n this.maxX = maxX;\n this.minted = {};\n this.spent = false;\n this.collectionName = collectionName;\n this.collection = collection;\n this.owner = to;\n }\n mint(to) {\n if (this.spent)\n return this;\n if (this.e === this.maxE) {\n if (parseInt(`${this.n}${this.x}`, 10) >= this.maxN) {\n this.spent = true;\n return this;\n }\n this.newMinted = new NFT(this.n, this.x, this.collectionName, this.collection, to);\n this.minted[this.x] = true;\n this.x += 1;\n }\n else if (this.e < this.maxE) {\n if (parseInt(`${this.n}${this.x}${'0'.repeat(this.maxE - this.e)}`, 10) >= this.maxN) {\n this.spent = true;\n return this;\n }\n this.newMinted = new Minter(this.e, this.n, this.x, this.maxE, this.maxN, this.maxX, this.collectionName, this.collection, to);\n this.minted[this.x] = true;\n this.x += 1;\n }\n if (this.x >= this.maxX) {\n this.spent = true;\n }\n return this;\n }\n retrieve(x) {\n if (this.minted[x])\n throw new Error('Does not exist');\n return this.minted[x];\n }\n }",{"deps":{"Collection":{"$jig":1},"Jig":{"$dup":["1","deps","Jig"]},"NFT":{"$dup":["1","deps","NFT"]}}},"class NFT extends Jig {\n init(n, x, collectionName, collection, to) {\n if (!(caller instanceof Minter))\n throw new Error('Only Minter instances may create NFTs.');\n this.serial = parseInt(`${n}${x}`, 10);\n this.minted = {};\n this.properties = {};\n this.collectionName = collectionName;\n this.collection = collection;\n this.owner = to;\n }\n send(to) {\n this.owner = to;\n }\n retrieve(c) {\n if (this.minted[c])\n throw new Error('Does not exist');\n return this.minted[c];\n }\n update(collection, properties, to) {\n if (collection.origin !== this.collection)\n throw new Error('Only Collection instances may update NFTs.');\n this.properties = Object.assign(this.properties, properties);\n this.owner = to;\n return this;\n }\n }",{"deps":{"Collection":{"$dup":["3","deps","Collection"]},"Jig":{"$dup":["1","deps","Jig"]},"Minter":{"$dup":["1","deps","Minter"]}}}]}]}
    https://whatsonchain.com/tx/f7127a1b924e15033336b622b938bb41f844a70d0b9efea0f394904cfd0e008d