Transaction

6ea7064ffde79d86fd9c994becee03d5d5ba465b7f3c3320abc134ab50701c28
( - )
119,384
2022-01-14 23:21:10
1
10,572 B

15 Outputs

Total Output:
  • jrunM¼&{"in":0,"ref":["native://Jig"],"out":["68464e9798acd207755222ec1ad9fd704b439eea94bac4b44fc2317e40037ea2","000b7ea317333fcbd79ed1c30dfa7a8e7193aed1207b6939a26192ee1c6a326e","f86ad113f27abd62159e0799ff90cb5279796618ebb817b7f7ee568a5689318e","4204bc379282f1b93ae53c644318f99b789cbc504cf823ff4938ea76d1b16cd5","b1aa3138a7edb91a9e37c1e776fffa87cb09221e66adbf854a13b83793b90a77"],"del":[],"cre":["161rT89RzZVbkgt5noTdpj2UbVwibq3nsT","1CXASwFrS5ytuPV9vu7HfHMWkx5DmxJzJu","1Akdp3F1PGb1YNGVmRDZ4g3GxqFBiP2N8a","1DYzCr27WDbKzAMdQgsZmBoCVyESub5iv3","1FPGwtKaXHBoTfNBSBM3oxU519nGGcaW2e"],"exec":[{"op":"DEPLOY","data":["class Master extends Jig {\n init(jigCount, maxE, className) {\n this.minted = {}\n this.collections = {}\n this.maxE = maxE\n this.maxN = jigCount\n this.maxX = 9\n this.e = 0\n this.n = 0\n this.x = 0\n this.spent = false\n this.claim = className\n }\n mint() {\n if (this.spent) return this\n if (parseInt(\"\" + this.n + this.x + (\"0\".repeat(this.maxE - this.e))) > 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.claim, this.origin)\n this.minted[this.x] = true\n this.x = this.x + 1\n if (this.x > this.maxX) {\n this.spent = true\n }\n return this.minted[this.x - 1]\n }\n mintCollection(name, to) {\n Master.auth()\n if (this.collections[name]) {\n throw new Error('Collection already exists')\n }\n this.newCollection = new Collection(name, to, this.origin)\n this.collections[name] = true\n }\n retreive(x) {\n if (!this.minted[x]) throw new Error('Does not exist')\n return this.minted[x]\n }\n }",{"deps":{"Collection":{"$jig":2},"Derivative":{"$jig":3},"GameDrop":{"$jig":4},"Jig":{"$jig":0},"Minter":{"$jig":5}}},"class Collection extends Jig {\n init(name, to, master) {\n if (!(caller instanceof Master)) throw new Error('Only Master instances may create Collections.')\n this.minted = {}\n this.name = name\n this.master = master\n this.owner = to\n }\n send(to) {\n this.owner = to\n }\n retreive(id) {\n if (this.minted[id]) throw new Error('Does not exist')\n return this.minted[id]\n }\n mint(gameDrop, to) {\n if (gameDrop.master != this.master) throw new Error('Not a GameDrop from this Master.')\n // if (!(caller instanceof GameDrop)) throw new Error('Only GameDrop instances may create Derivatives.')\n // if (caller.master != this.master) throw new Error('Not a GameDrop from this Master.')\n if (this.minted[gameDrop.id]) throw new Error('Cannot mint twice')\n this.newMinted = new Derivative(gameDrop.id, this, to, this.master, this.name)\n this.minted[gameDrop.id] = true\n return this\n }\n update(derivitive, attributes) {\n if (!(derivitive instanceof Derivative)) throw new Error('Collections may only update Derivitives.')\n this.newUpdate = derivitive.update(attributes)\n return this\n }\n }",{"deps":{"Derivative":{"$dup":["1","deps","Derivative"]},"GameDrop":{"$dup":["1","deps","GameDrop"]},"Jig":{"$dup":["1","deps","Jig"]},"Master":{"$jig":1},"Minter":{"$dup":["1","deps","Minter"]}}},"class Derivative extends Jig {\n init(id, collection, to, master, name) {\n if (!(caller instanceof Collection)) throw new Error('Only Collection instances may create Derivatives.')\n this.id = id\n this.collection = collection.origin\n this.collectionName = name\n this.master = master\n this.owner = to\n this.attributes = {}\n }\n send(to) {\n this.owner = to\n }\n exists(name) {\n return (this[name]) ? true : false;\n }\n update(collection, attributes) {\n // collection.auth()\n if (collection.origin != this.collection) throw new Error('Only Collection instances may update Derivatives.')\n // if (!(caller instanceof Collection)) throw new Error('Only Collection instances may create Derivatives.')\n // if (caller.origin != this.collection) throw new Error('Only Collection instances may update Derivatives.')\n this.attributes = Object.assign(this.attributes, attributes);\n return this\n }\n }",{"deps":{"Collection":{"$dup":["1","deps","Collection"]},"GameDrop":{"$dup":["1","deps","GameDrop"]},"Jig":{"$dup":["1","deps","Jig"]},"Master":{"$dup":["3","deps","Master"]},"Minter":{"$dup":["1","deps","Minter"]}}},"class GameDrop extends Jig {\n init(n, x, claim, master) {\n if (!(caller instanceof Minter)) throw new Error('Only Minter instances may create GameDrops.')\n this.id = parseInt(\"\" + n + x)\n this.minted = {}\n this.claim = claim\n this.master = master\n }\n send(to) {\n this.owner = to\n }\n retreive(c) {\n if (this.minted[c]) throw new Error('Does not exist')\n return this.minted[c]\n }\n mint(collection, to) {\n if (!(collection instanceof Collection)) throw new Error('Gamedrops may only mint via Collections.')\n if (this.minted[collection.origin]) throw new Error('Cannot mint twice.')\n // return collection.mint(this.id, to)\n this.newMinted = collection.mint(this.id, to)\n this.minted[collection.origin] = true\n return this.newMinted\n }\n update(master, attributes) {\n // master.auth()\n if (master.origin != this.master) throw new Error('Only Master instances may update GameDrops.')\n // if (!(caller instanceof Master)) throw new Error('Only Master instances may update GameDrops.')\n this.attributes = Object.assign(this.attributes, attributes);\n return this\n }\n }",{"deps":{"Collection":{"$dup":["1","deps","Collection"]},"Derivative":{"$dup":["1","deps","Derivative"]},"Jig":{"$dup":["1","deps","Jig"]},"Master":{"$dup":["3","deps","Master"]},"Minter":{"$dup":["1","deps","Minter"]}}},"class Minter extends Jig {\n\n init(e, n, x, maxE, maxN, maxX, claim, master) {\n if (!(caller instanceof Master) && !(caller instanceof Minter)) throw new Error('Only Master and Minter classes can create minters')\n this.e = e + 1\n this.n = parseInt(\"\" + n + x)\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.claim = claim\n this.master = master\n }\n mint() {\n if (this.spent) return this\n if (this.e == this.maxE) {\n if (parseInt(\"\" + this.n + this.x) > this.maxN) {\n this.spent = true\n return this\n }\n this.newMinted = new GameDrop(this.n, this.x, this.claim, this.master)\n this.minted[this.x] = true\n this.x = this.x + 1\n } else if (this.e < this.maxE) {\n if (parseInt(\"\" + this.n + this.x + (\"0\".repeat(this.maxE - this.e))) > 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.claim, this.master)\n this.minted[this.x] = true\n this.x = this.x + 1\n }\n if (this.x > this.maxX) {\n this.spent = true\n }\n return this\n }\n retreive(x) {\n if (this.minted[x]) throw new Error('Does not exist')\n return this.minted[x]\n }\n }",{"deps":{"Collection":{"$dup":["1","deps","Collection"]},"Derivative":{"$dup":["1","deps","Derivative"]},"GameDrop":{"$dup":["1","deps","GameDrop"]},"Jig":{"$dup":["1","deps","Jig"]},"Master":{"$dup":["3","deps","Master"]}}}]}]}
    https://whatsonchain.com/tx/6ea7064ffde79d86fd9c994becee03d5d5ba465b7f3c3320abc134ab50701c28
Total Output: