Transaction

1ea6ae6362887de983a14d8132d689dc6ed948d0dd576b4e7aba04e5e2ec3b7d
Timestamp (utc)
2024-02-07 14:42:50
Fee Paid
0.00000013 BSV
(
0.49932452 BSV
-
0.49932439 BSV
)
Fee Rate
2.033 sat/KB
Version
1
Confirmations
100,234
Size Stats
6,393 B

5 Outputs

Total Output:
0.49932439 BSV
  • jrunM½{"in":0,"ref":["native://Jig"],"out":["528d873944f83d8e0eb350b06c0414a7bd30b611c6a5b4bd0ea41183a0289e79","23db68f6477ac41c617e98159b34d6aa917ac0e02090e0020a2ecc6aba76128e","74606090c549d6c32d00dbd368e96b4342d208b54e87a925ff0151e8f27a437a"],"del":[],"cre":["1Fn4HSGPVZG7XMZHeLumJXGxew2kQY3NbZ","1PriZWBRGuYKmG3G3HrgZrvmGodDUSPCcw","1Q6yr93nNYq12qjrUJs4teKLyXyMX4uerg"],"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/1ea6ae6362887de983a14d8132d689dc6ed948d0dd576b4e7aba04e5e2ec3b7d