Transaction

22f13aee7b81c0c70df5ee486a71a724bc21c788cedb2bca21b504400c0c0f0a
2021-11-27 23:24:41
0.00004976 BSV
(
0.00010000 BSV
-
0.00005024 BSV
)
505.5 sat/KB
1
195,679
9,843 B

7 Outputs

Total Output:
0.00005024 BSV
  • jrunMó${"in":0,"ref":["native://Jig"],"out":["cb39d1608a145d37085111a85d59c01b1c55138ed02e2aaabc8e20de24221213","18f32ede3a30af88ff6e518048502a97c68bc6c0e1e91ae5db568bc0a7341b37","77707bc916e7a1b17ba77ad59813b0f8d5e29ad47aa3feaf8ebd8e1fe73163af","d514971a6d224fb6bcd717006e07e545987faaed9325f741d1986ee9bd353877","aadfecd2d5497bf09a58889928b0d670f5e94ae941c888cba062255935caae6b"],"del":[],"cre":["15SzeE5As674Y7Cd33Q11kpmWYCiVCVHtE","1629DeTv827ncykF8QhDVKd5ranFniXEyE","122MY7f1fMUY5zLAWLV2bciYUrPsxa6HAp","1FRd8JopJHm6docf7ohgHVLy89ReESw3NS","1LbxkT8YzYMMb7hYSeo8xk94qJ1FvVo9L1"],"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 }",{"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/22f13aee7b81c0c70df5ee486a71a724bc21c788cedb2bca21b504400c0c0f0a
Total Output:
0.00005024 BSV