English
  • 简体中文
Mainnet
BSV
  • BSV
  • mBSV
  • Bits
  • Sat

Transaction

7fac5dcd2edc02b85dd9eebfcfa8b46669ca13d2ba5011f31e9bcbcad38f86d8
( - )
47,234
2023-05-26 00:30:30
1
6,393 B

5 Outputs

Total Output:
  • jrunM½{"in":0,"ref":["native://Jig"],"out":["673e58e9609d40831c2a62e324c7afe85d849f0272eb6fedd1d381079f9a37b8","e212e466427c02114f7a80e0b246bfbda02d5c727ef9a58f1058e450182c5b1f","954c892d940961d624e90b7b8f16ff11a4ececcc7f2023000a622cb0d986c44f"],"del":[],"cre":["14Ny1QxorczoYywZj9Dc5duaxHC4iPGfta","1FeMAHEZnnB5YoLTPd1fypPMXNNE8EbR3h","13WbxBNKCCShEqFWXa7QBJXkDdUzNNsowC"],"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/7fac5dcd2edc02b85dd9eebfcfa8b46669ca13d2ba5011f31e9bcbcad38f86d8