Transaction

7da96be60b497f91e596f01877a3bd5148c70e3d0fb7c76aacac0aa0afd9c40a
2022-05-29 17:16:36
0.00005677 BSV
(
0.00007800 BSV
-
0.00002123 BSV
)
504.8 sat/KB
1
169,355
11,246 B

7 Outputs

Total Output:
0.00002123 BSV
  • jrunMn*{"in":0,"ref":["native://Jig"],"out":["3d25ba2e584799ce229f17cbd256d0d25d83d158711f71be3670e38718fe3721","f7179e7c4085d923ea3cfbe77445b64e986d8ba2cc590711d1a84bb36e926c6c","45bfdc3b8608f02ca08d1ac205cd0ef6de11e522395fd316b571676b66a48f1e","45046a6b9aa736977d24678f273b364874293a35f61f5ffc7dbcaa885e7d35e2","9d9c73e34b41c2fa6f0440a2816946dd18d809d475b80c3f33e9b23b214f8653"],"del":[],"cre":["1HkaG1GVCs45rj9YTnDAACUkwrYDVCBwG9","19PcMC2QJbWSkbCVzV86mjh866ijM2BdoX","16NT8vwVPzen6wAAwzxt22qeCgiMCYhD7G","1BRsQdXfCvwgt4ERhJrAFdEaBeuUBigvhA","16yLZiLLmnuKAstvUbmo68wNLLNsebgP91"],"exec":[{"op":"DEPLOY","data":["class NFTYClass extends Jig {\n init(jigCount, maxE, className, to) {\n this.minted = {}\n this.derivativeClasses = {}\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.className = className\n this.owner = to\n }\n mint(to) {\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.className, this.origin, to)\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 mintDerivativeClass(name, to) {\n NFTYClass.auth()\n if (this.derivativeClasses[name]) {\n throw new Error('DerivativeClass already exists')\n }\n this.newDerivativeClass = new DerivativeClass(name, to, this.origin)\n this.derivativeClasses[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":{"DerivativeClass":{"$jig":2},"DerivativeJig":{"$jig":3},"Jig":{"$jig":0},"Minter":{"$jig":4},"NFTYJig":{"$jig":5}}},"class DerivativeClass extends Jig {\n init(className, to, nftyClass) {\n if (!(caller instanceof NFTYClass)) throw new Error('Only NFTYClass instances may create DerivativeClasss.')\n this.minted = {}\n this.className = className\n this.nftyClass = nftyClass\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(nftyJig, to) {\n if (nftyJig.nftyClass != this.nftyClass) throw new Error('Not a NFTYJig from this NFTYClass.')\n // if (!(caller instanceof NFTYJig)) throw new Error('Only NFTYJig instances may create Derivatives.')\n // if (caller.nftyClass != this.nftyClass) throw new Error('Not a NFTYJig from this NFTYClass.')\n if (this.minted[nftyJig.id]) throw new Error('Cannot mint twice')\n this.newMinted = new DerivativeJig(nftyJig.id, this, to, this.nftyClass, this.className)\n this.minted[nftyJig.id] = true\n return this\n }\n update(derivativeJig, attributes, to) {\n if (!(derivativeJig instanceof DerivativeJig)) throw new Error('DerivativeClasss may only update Derivatives.')\n this.newUpdate = derivativeJig.update(attributes)\n this.owner = to\n return this\n }\n }",{"deps":{"DerivativeJig":{"$dup":["1","deps","DerivativeJig"]},"Jig":{"$dup":["1","deps","Jig"]},"Minter":{"$dup":["1","deps","Minter"]},"NFTYClass":{"$jig":1},"NFTYJig":{"$dup":["1","deps","NFTYJig"]}}},"class DerivativeJig extends Jig {\n init(id, derivativeClass, to, nftyClass, name) {\n if (!(caller instanceof NFTYJig)) throw new Error('Only NFTYJig instances may create Derivatives.')\n this.id = id\n this.derivativeClass = derivativeClass.origin\n this.derivativeClassName = name\n this.nftyClass = nftyClass\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(derivativeClass, attributes) {\n // derivativeClass.auth()\n if (derivativeClass.origin != this.derivativeClass) throw new Error('Only DerivativeClass instances may update Derivatives.')\n // if (!(caller instanceof DerivativeClass)) throw new Error('Only DerivativeClass instances may create Derivatives.')\n // if (caller.origin != this.derivativeClass) throw new Error('Only DerivativeClass instances may update Derivatives.')\n this.attributes = Object.assign(this.attributes, attributes);\n return this\n }\n }",{"deps":{"DerivativeClass":{"$dup":["1","deps","DerivativeClass"]},"Jig":{"$dup":["1","deps","Jig"]},"Minter":{"$dup":["1","deps","Minter"]},"NFTYClass":{"$dup":["3","deps","NFTYClass"]},"NFTYJig":{"$dup":["1","deps","NFTYJig"]}}},"class Minter extends Jig {\n\n init(e, n, x, maxE, maxN, maxX, className, nftyClass, to) {\n if (!(caller instanceof NFTYClass) && !(caller instanceof Minter)) throw new Error('Only NFTYClass 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.className = className\n this.nftyClass = nftyClass\n this.owner = to\n }\n mint(to) {\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 NFTYJig(this.n, this.x, this.className, this.nftyClass, to)\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.className, this.nftyClass, to)\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":{"DerivativeClass":{"$dup":["1","deps","DerivativeClass"]},"DerivativeJig":{"$dup":["1","deps","DerivativeJig"]},"Jig":{"$dup":["1","deps","Jig"]},"NFTYClass":{"$dup":["3","deps","NFTYClass"]},"NFTYJig":{"$dup":["1","deps","NFTYJig"]}}},"class NFTYJig extends Jig {\n init(n, x, className, nftyClass, to) {\n if (!(caller instanceof Minter)) throw new Error('Only Minter instances may create NFTYJigs.')\n this.id = parseInt(\"\" + n + x)\n this.minted = {}\n this.attributes = {}\n this.className = className\n this.nftyClass = nftyClass\n this.owner = to\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(derivativeClass, to) {\n if (!(derivativeClass instanceof DerivativeClass)) throw new Error('NFTYJigs may only mint via DerivativeClasss.')\n if (this.nftyClass != derivativeClass.nftyClass) throw new Error('Not a DerivativeClass from this NFTYClass.')\n if (this.minted[derivativeClass.origin]) throw new Error('Cannot mint twice.')\n // return derivativeClass.mint(this.id, to)\n // this.newMinted = derivativeClass.mint(this.id, to)\n this.newMinted = new DerivativeJig(this.id, derivativeClass, to, this.nftyClass, derivativeClass.name)\n this.minted[derivativeClass.origin] = true\n this.owner = to\n return this.newMinted\n }\n update(nftyClass, attributes, to) {\n // nftyClass.auth()\n if (nftyClass.origin != this.nftyClass) throw new Error('Only NFTYClass instances may update NFTYJigs.')\n // if (!(caller instanceof NFTYClass)) throw new Error('Only NFTYClass instances may update NFTYJigs.')\n this.attributes = Object.assign(this.attributes, attributes);\n this.owner = to\n return this\n }\n }",{"deps":{"DerivativeClass":{"$dup":["1","deps","DerivativeClass"]},"DerivativeJig":{"$dup":["1","deps","DerivativeJig"]},"Jig":{"$dup":["1","deps","Jig"]},"Minter":{"$dup":["1","deps","Minter"]},"NFTYClass":{"$dup":["3","deps","NFTYClass"]}}}]}]}
    https://whatsonchain.com/tx/7da96be60b497f91e596f01877a3bd5148c70e3d0fb7c76aacac0aa0afd9c40a
Total Output:
0.00002123 BSV