Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

1f9f0144ea078b66f0ac0b9c7ac49d549eda5ff169a696e26dfc0aef69270139
Timestamp (utc)
2020-09-30 04:02:06
Fee Paid
0.00002299 BSV
(
0.00069674 BSV
-
0.00067375 BSV
)
Fee Rate
500.2 sat/KB
Version
1
Confirmations
345,022
Size Stats
4,596 B

3 Outputs

Total Output:
0.00067375 BSV
  • jrun b1b605103eMò{"in":0,"ref":["native://Jig","9cfc29ddfa580752349e372f54a36450a8f889bc33d24e490cbd64c48f6ad691_o2"],"out":["d114d18d688c797d18a46f666bb5fa515593e164642639f06a104d82250be0c9"],"del":[],"cre":["n2UeYD39YQ9pzxkbJfkDtNBRiV8PoNvLbq"],"exec":[{"op":"DEPLOY","data":["class RevokerContract extends Jig {\n init() {\n this.classname = \"RevokerContract: \"; //\n\n this.is_frozen = false;\n this.is_revoked = false;\n this.is_backedup = false;\n this.revoked_state = \"\";\n this.revoke_count = null;\n this.new_token_contract = null;\n }\n /* // if we add the send then we must absolutely send it immediately after creation\r\n // otherwise a hacker of the token contract would be able to send it to himself\r\n send(to) {\r\n this.owner = to\r\n }\r\n */\n\n\n backup(new_token_contract, timestamp) {\n const function_id = this.classname + \"backup(): \"; //\n\n this._checkContractState();\n\n this._checkNewTokenContract(new_token_contract);\n\n if (!timestamp) throw function_id + \"timestamp missing: \" + timestamp;\n\n this._checkTimestamp(timestamp);\n\n this.timestamp = timestamp;\n this.new_token_contract = new_token_contract;\n this.is_backedup = true;\n this.revoked_state = \"backed-up\";\n }\n\n freeze(timestamp) {\n const function_id = this.classname + \"freeze(): \"; //\n\n this._checkContractState();\n\n if (!timestamp) throw function_id + \"timestamp missing: \" + timestamp;\n\n this._checkTimestamp(timestamp); // freezes all coins but doesn't give a new contract to exchange to\n // useful to end the network and/or reissue tokens on a new protocol after freezing it\n\n\n this.timestamp = timestamp;\n this.is_frozen = true;\n this.revoked_state = \"frozen\";\n }\n\n revoke(revoke_count, new_token_contract, timestamp) {\n const function_id = this.classname + \"revoke(): \"; //\n\n this._checkContractState();\n\n this._checkRevokeCount(revoke_count);\n\n this._checkNewTokenContract(new_token_contract);\n\n if (!timestamp) throw function_id + \"timestamp missing: \" + timestamp;\n\n this._checkTimestamp(timestamp);\n\n this.timestamp = timestamp;\n this.revoke_count = revoke_count;\n this.new_token_contract = new_token_contract;\n this.is_revoked = true;\n this.revoked_state = \"revoked\";\n }\n\n _checkContractState() {\n const function_id = this.classname + \"_checkContractState(): \";\n if (this.is_revoked) throw function_id + \"contract is already revoked\";\n if (this.is_backedup) throw function_id + \"contract is already backed up\";\n if (this.is_frozen) throw function_id + \"contract is already frozen\";\n }\n\n _checkRevokeCount(revoke_count) {\n // check positive integer\n const function_id = this.classname + \": _checkRevokeCount(): \";\n if (typeof revoke_count !== 'number') throw function_id + 'revoke_count is not a number : ' + revoke_count; // throw gives better error trace than expect()\n\n if (!(revoke_count > 0)) throw new Error(function_id + 'revoke_count must be positive : ' + revoke_count);\n if (revoke_count > Number.MAX_SAFE_INTEGER) throw new Error(function_id + 'revoke_count too large : ' + revoke_count);\n if (!Number.isInteger(revoke_count)) throw function_id + 'revoke_count must be an integer : ' + revoke_count;\n }\n\n _checkNewTokenContract(new_token_contract) {\n const function_id = this.classname + \": _checkNewTokenContract(): \";\n expect(new_token_contract).toBeObject(function_id + ': bad new_token_contract type, should be Object, is ' + typeof new_token_contract);\n expect(new_token_contract).toBeInstanceOf(Jig, function_id + ': bad new_token_contract type, should be instance of Jig');\n }\n\n _checkTimestamp(timestamp) {\n const function_id = this.classname + \": _checkTimestamp(): \";\n if (!timestamp) throw function_id + \"timestamp missing: \" + timestamp;\n\n try {\n this._checkRevokeCount(timestamp); // applies as well to timestamp: positive integer\n\n } catch (e) {\n throw function_id + e;\n }\n\n if (!(timestamp > 1600939295117)) throw function_id + ': timestamp must be older than 1600939295117 : ' + timestamp; // make sure the timestamp here is in ms!!\n }\n\n}",{"deps":{"Jig":{"$jig":0},"expect":{"$jig":1}},"sealed":true}]}]}
    https://whatsonchain.com/tx/1f9f0144ea078b66f0ac0b9c7ac49d549eda5ff169a696e26dfc0aef69270139