Transaction Details
SMART CONTRACT
Transaction Hash
afca64cdafff1e9150e9049bfd5b4c01bf1f895ac896893f2a732e9727dd29a4
Block Status
Smart Contract State
SCID Reserves
| SCID | Amount (Atomic Units) |
|---|---|
| 0000000000000000000000000000000000000000000000000000000000000000 | 0 |
String Variables
| Key | Value |
|---|---|
| C | 2f2a2067745f61756469742e626173202d2d20523332612022617564697420626f756e7479223a2070617920666f7220696e646570656e64656e7420646574656374696f6e2c2044564d2d42415349432e0a20202047414d452e205468652073706f6e736f7220286f776e65722920706f73747320726f756e6420612061736b696e672061756469746f727320666f7220612064657465726d696e697374696320646967657374206f766572207075626c696320636861696e20646174613a0a202020287461736b2c2066726f6d2c207570746f292c20652e672e207461736b2031203d20626c6f636b2d686561646572206469676573742c207461736b2032203d20656d697373696f6e206469676573742e2054686520636f6e7472616374206e6576657220696e74657270726574730a202020746865207461736b2e205468652073706f6e736f722773206f776e20616e737765722069732048494444454e3a20506f73742073746f72657320636f6d6d6974203d204845582853484132353628616e73776572202b20223a22202b2073616c7429292e0a20202041756469746f727320456e74657228612c20636f6d6d6974292077697468206120626f6e6420647572696e67205b73746172742c207374617274202b20636f6d6d6974775d2c207768657265207468652061756469746f7220636f6d6d69742069730a2020204845582853484132353628616e73776572202b20223a22202b2073616c74202b20223a22202b20414444524553535f535452494e47285349474e455228292929292e20496e20287374617274202b20636f6d6d6974772c207374617274202b20636f6d6d697477202b2072657665616c775d0a2020207468652073706f6e736f722072657665616c73202852657665616c53706f6e736f722920616e642061756469746f72732072657665616c202852657665616c292e20536574746c652861292c20627920616e796f6e65206166746572207468652072657665616c2077696e646f773a0a2020202831292073706f6e736f722072657665616c65642c206e6f2064697373656e74696e67206d616a6f726974793a20656e7472616e74732077686f736520616e73776572203d3d207468652073706f6e736f7220616e737765722077696e3b0a202020283229206120535452494354206d616a6f72697479206f662072657665616c656420656e7472616e7473206167726565206f6e206f6e6520616e73776572207468617420646966666572732066726f6d207468652073706f6e736f7227732c206f72207468652073706f6e736f720a20202020202020646964206e6f742072657665616c3a2074686174206d616a6f726974792077696e7320616e64206469737075746564203d2031202874686520646574656374696f6e207369676e616c3a207468652073706f6e736f7220646967657374207761732077726f6e67206f720a202020202020207769746868656c64293b0a202020283329206e6f2073706f6e736f722072657665616c20616e64206e6f206d616a6f726974793a20756e646563696465642c20726566756e64203d20313a2072657665616c65727320286f722065766572796f6e652c206966206e6f626f64792072657665616c65642920676574207468650a20202020202020626f6e64206261636b2c2074686520626f756e747920676f657320746f2063617272792e0a20202057696e6e6572732073706c69742074686520626f756e747920657175616c6c7920616e642067657420746865697220626f6e64206261636b3b207468652072656d61696e6465722028626f756e7479206d6f642077696e6e65727329206973207265636f7264656420616e640a202020676f657320746f2063617272792e204e6f6e2d72657665616c65727320616e642077726f6e6720616e737765727320666f726665697420746865697220626f6e6420746f2063617272793b206e6f2077696e6e657273202d3e2074686520626f756e747920746f2063617272792e0a202020636172727920697320616464656420746f2074686520626f756e7479206f6620746865204e45585420506f737420286f6e6c79207768617420686173206265656e20736574746c6564206265666f7265207468617420506f7374292e20536574746c652073746f7265730a20202063726564697473206f6e6c793b206561636820656e7472616e742070756c6c732069747320637265646974207769746820576974686472617728612c206a29202870756c6c207061796d656e742c206f6e63652c20746f205349474e45522829206f6e6c79292e0a202020544852454154204d4f44454c2e20436f7079696e673a206120636f7069656420636f6d6d69742063616e6e6f742062652072657665616c656420627920616e6f7468657220616464726573732028746865206164647265737320697320696e73696465207468652068617368292e0a2020204c617a792061756469746f723a207468652073706f6e736f7220616e737765722069732068696464656e20756e74696c2061667465722074686520636f6d6d69742077696e646f772c20736f2069742063616e6e6f7420626520636f7069656420696e2074696d652e0a20202053706f6e736f722077697468686f6c64696e672f6c79696e673a20726566756e647320283329206f7220746865206d616a6f726974792070617468202832292077697468206469737075746564203d20312c207768696368206973207075626c69632e0a2020204e4f542070726576656e7465643a20636f6c6c7573696f6e20616e64206272696265727920616d6f6e672061756469746f72732c20537962696c20656e7472696573206279206f6e652070617274792028696e636c2e207468652073706f6e736f7220756e64657220616e6f746865720a20202061646472657373292c20616e6420612073706f6e736f72206d616a6f72697479206f6620537962696c733b20746865206d616a6f72697479206973206f6e6c7920617320696e646570656e64656e74206173207468652061756469746f7273206172652e0a2020205349474e45522829206973206b6e6f776e206f6e6c792061742072696e672073697a6520323a20456e7465722f52657665616c2f57697468647261772f6f776e65722063616c6c73206d757374207573652072696e672073697a6520322e0a20202053544f524544204b4559532e20476c6f62616c3a206f776e65722c20626f6e642c20636f6d6d6974772c2072657665616c772c206d61786e20283c3d2033322c20536574746c65206973204f286e5e3229292c2066726f7a656e2c206e612028726f756e647320706f73746564292c0a20202063617272792028666f726665697473202b2072656d61696e64657273202b20756e776f6e20626f756e74696573206177616974696e6720746865206e65787420506f7374292e0a202020526f756e642070203d20226122202b2049544f41286129202b20225f223a20702b7461736b2c20702b66726f6d2c20702b7570746f2c20702b66756e6420284445524f56414c5545206f6620506f7374292c20702b63696e20286361727279206a6f696e6564292c0a202020702b626f756e7479202866756e64202b2063696e292c20702b7363202873706f6e736f7220636f6d6d6974292c20702b73746172742028506f737420686569676874292c20702b6e2028656e7472616e7473292c20702b696e3c7369676e65723e2028656e74727920696e646578292c0a202020702b7361202873706f6e736f7220616e737765722c206f6e6c792069662072657665616c6564292c20702b73742028736574746c65642031292c20702b77696e202877696e6e696e6720616e73776572292c20702b6e77202877696e6e657273292c0a202020702b64697370202831203d206d616a6f72697479206f766572726f6465206f72207265706c61636564207468652073706f6e736f72292c20702b726566756e64202831203d20756e64656369646564292c20702b73686172652c20702b72656d2c20702b666f72662e0a202020456e7472616e742071203d2070202b2049544f41286a29202b20225f223a20712b77686f20287369676e6572292c20712b632028636f6d6d6974292c20712b76202872657665616c656420302f31292c20712b616e7320286f6e6c792069662072657665616c6564292c0a202020712b63722028637265646974292c20712b78202877697468647261776e20302f31292e0a20202052657475726e2030203d20737563636573733b20616e79206f746865722076616c756520726576657274732e0a2a2f0a46756e6374696f6e20496e697469616c697a6528292055696e7436340a31302053544f524528226f776e6572222c205349474e45522829290a32302053544f52452822626f6e64222c203130303030290a33302053544f52452822636f6d6d697477222c203230290a34302053544f5245282272657665616c77222c203230290a35302053544f524528226d61786e222c203136290a36302053544f5245282266726f7a656e222c2030290a37302053544f524528226e61222c2030290a38302053544f524528226361727279222c2030290a39302052455455524e20300a456e642046756e6374696f6e0a0a46756e6374696f6e20536574506172616d7328626f6e642055696e7436342c20636f6d6d6974772055696e7436342c2072657665616c772055696e7436342c206d61786e2055696e743634292055696e7436340a3130204946204c4f414428226f776e6572222920213d205349474e45522829205448454e20474f544f203930300a3230204946204c4f4144282266726f7a656e222920213d2030205448454e20474f544f203930300a333020494620626f6e64203d3d2030207c7c20636f6d6d697477203d3d2030207c7c2072657665616c77203d3d2030205448454e20474f544f203930300a3430204946206d61786e203d3d2030207c7c206d61786e203e203332205448454e20474f544f203930300a35302053544f52452822626f6e64222c20626f6e64290a36302053544f52452822636f6d6d697477222c20636f6d6d697477290a37302053544f5245282272657665616c77222c2072657665616c77290a38302053544f524528226d61786e222c206d61786e290a39302052455455524e20300a3930302052455455524e20310a456e642046756e6374696f6e0a0a46756e6374696f6e20467265657a6528292055696e7436340a3130204946204c4f414428226f776e6572222920213d205349474e45522829205448454e20474f544f203930300a32302053544f5245282266726f7a656e222c2031290a33302052455455524e20300a3930302052455455524e20310a456e642046756e6374696f6e0a0a46756e6374696f6e20506f7374287461736b2055696e7436342c2066726f6d2055696e7436342c207570746f2055696e7436342c20636f6d6d697420537472696e67292055696e7436340a31302044494d20612061732055696e7436340a32302044494d207020617320537472696e670a3330204946204c4f414428226f776e6572222920213d205349474e45522829205448454e20474f544f203930300a3430204946204c4f4144282266726f7a656e2229203d3d2030205448454e20474f544f203930300a3530204946204445524f56414c55452829203d3d2030205448454e20474f544f203930300a3630204946207570746f203c2066726f6d205448454e20474f544f203930300a3730204946207570746f203e3d20424c4f434b5f4845494748542829205448454e20474f544f203930300a3830204946205354524c454e28636f6d6d69742920213d203634205448454e20474f544f203930300a3930204c45542061203d204c4f414428226e6122290a313030204c45542070203d20226122202b2049544f41286129202b20225f220a3131302053544f52452870202b20227461736b222c207461736b290a3132302053544f52452870202b202266726f6d222c2066726f6d290a3133302053544f52452870202b20227570746f222c207570746f290a3134302053544f52452870202b202266756e64222c204445524f56414c55452829290a3135302053544f52452870202b202263696e222c204c4f4144282263617272792229290a3136302053544f52452870202b2022626f756e7479222c204445524f56414c55452829202b204c4f4144282263617272792229290a3137302053544f524528226361727279222c2030290a3138302053544f52452870202b20227363222c20636f6d6d6974290a3139302053544f52452870202b20227374617274222c20424c4f434b5f4845494748542829290a3230302053544f52452870202b20226e222c2030290a3231302053544f52452870202b20227374222c2030290a3232302053544f524528226e61222c2061202b2031290a3233302052455455524e20300a3930302052455455524e20310a456e642046756e6374696f6e0a0a46756e6374696f6e20456e74657228612055696e7436342c20636f6d6d697420537472696e67292055696e7436340a31302044494d206e2061732055696e7436340a32302044494d20702c207120617320537472696e670a33302049462061203e3d204c4f414428226e612229205448454e20474f544f203930300a34302049462049535f414444524553535f56414c4944285349474e4552282929203d3d2030205448454e20474f544f203930300a3530204946205349474e45522829203d3d204c4f414428226f776e65722229205448454e20474f544f203930300a3630204c45542070203d20226122202b2049544f41286129202b20225f220a373020494620424c4f434b5f4845494748542829203e204c4f41442870202b202273746172742229202b204c4f41442822636f6d6d6974772229205448454e20474f544f203930300a3830204946204445524f56414c5545282920213d204c4f41442822626f6e642229205448454e20474f544f203930300a3930204c4554206e203d204c4f41442870202b20226e22290a313030204946206e203e3d204c4f414428226d61786e2229205448454e20474f544f203930300a313130204946204558495354532870202b2022696e22202b205349474e4552282929203d3d2031205448454e20474f544f203930300a313230204946205354524c454e28636f6d6d69742920213d203634205448454e20474f544f203930300a313330204c45542071203d2070202b2049544f41286e29202b20225f220a3134302053544f52452871202b202277686f222c205349474e45522829290a3135302053544f52452871202b202263222c20636f6d6d6974290a3136302053544f52452871202b202276222c2030290a3137302053544f52452871202b20226372222c2030290a3138302053544f52452871202b202278222c2030290a3139302053544f52452870202b2022696e22202b205349474e455228292c206e290a3230302053544f52452870202b20226e222c206e202b2031290a3231302052455455524e20300a3930302052455455524e20310a456e642046756e6374696f6e0a0a46756e6374696f6e2052657665616c53706f6e736f7228612055696e7436342c20616e7377657220537472696e672c2073616c7420537472696e67292055696e7436340a31302044494d20742061732055696e7436340a32302044494d207020617320537472696e670a3330204946204c4f414428226f776e6572222920213d205349474e45522829205448454e20474f544f203930300a34302049462061203e3d204c4f414428226e612229205448454e20474f544f203930300a3530204c45542070203d20226122202b2049544f41286129202b20225f220a3630204946204558495354532870202b202273612229203d3d2031205448454e20474f544f203930300a3730204c45542074203d204c4f41442870202b202273746172742229202b204c4f41442822636f6d6d69747722290a383020494620424c4f434b5f4845494748542829203c3d2074205448454e20474f544f203930300a393020494620424c4f434b5f4845494748542829203e2074202b204c4f4144282272657665616c772229205448454e20474f544f203930300a313030204946204845582853484132353628616e73776572202b20223a22202b2073616c74292920213d204c4f41442870202b202273632229205448454e20474f544f203930300a3131302053544f52452870202b20227361222c20616e73776572290a3132302052455455524e20300a3930302052455455524e20310a456e642046756e6374696f6e0a0a46756e6374696f6e2052657665616c28612055696e7436342c206a2055696e7436342c20616e7377657220537472696e672c2073616c7420537472696e67292055696e7436340a31302044494d20742061732055696e7436340a32302044494d20702c207120617320537472696e670a33302049462061203e3d204c4f414428226e612229205448454e20474f544f203930300a3430204c45542070203d20226122202b2049544f41286129202b20225f220a3530204946206a203e3d204c4f41442870202b20226e2229205448454e20474f544f203930300a3630204c45542071203d2070202b2049544f41286a29202b20225f220a3730204946204c4f41442871202b202277686f222920213d205349474e45522829205448454e20474f544f203930300a3830204946204c4f41442871202b202276222920213d2030205448454e20474f544f203930300a3930204c45542074203d204c4f41442870202b202273746172742229202b204c4f41442822636f6d6d69747722290a31303020494620424c4f434b5f4845494748542829203c3d2074205448454e20474f544f203930300a31313020494620424c4f434b5f4845494748542829203e2074202b204c4f4144282272657665616c772229205448454e20474f544f203930300a313230204946204845582853484132353628616e73776572202b20223a22202b2073616c74202b20223a22202b20414444524553535f535452494e47285349474e4552282929292920213d204c4f41442871202b2022632229205448454e20474f544f203930300a3133302053544f52452871202b202276222c2031290a3134302053544f52452871202b2022616e73222c20616e73776572290a3135302052455455524e20300a3930302052455455524e20310a456e642046756e6374696f6e0a0a46756e6374696f6e20536574746c6528612055696e743634292055696e7436340a31302044494d206e2c206a2c206b2c20632c206e722c2068732c2068772c206d642c206e772c20622c20626f6e642c2073686172652c2072656d2c20666f72662c2063722c20646973702061732055696e7436340a32302044494d20702c20712c20772c207820617320537472696e670a33302049462061203e3d204c4f414428226e612229205448454e20474f544f203930300a3430204c45542070203d20226122202b2049544f41286129202b20225f220a3530204946204c4f41442870202b20227374222920213d2030205448454e20474f544f203930300a363020494620424c4f434b5f4845494748542829203c3d204c4f41442870202b202273746172742229202b204c4f41442822636f6d6d6974772229202b204c4f4144282272657665616c772229205448454e20474f544f203930300a3730204c4554206e203d204c4f41442870202b20226e22290a3830204c455420626f6e64203d204c4f41442822626f6e6422290a3930204c45542062203d204c4f41442870202b2022626f756e747922290a313030204c4554206873203d204558495354532870202b2022736122290a313130204c4554206e72203d20300a313230204c4554206a203d20300a313330204946206a203e3d206e205448454e20474f544f203137300a313430204c4554206e72203d206e72202b204c4f41442870202b2049544f41286a29202b20225f7622290a313530204c4554206a203d206a202b20310a31363020474f544f203133300a313730204c4554206877203d20300a313735204c4554206a203d20300a313830204946206a203e3d206e205448454e20474f544f203330300a313930204c45542071203d2070202b2049544f41286a29202b20225f220a323030204946204c4f41442871202b2022762229203d3d2030205448454e20474f544f203238300a323130204c45542078203d204c4f41442871202b2022616e7322290a323230204c45542063203d20300a323330204c4554206b203d20300a323430204946206b203e3d206e205448454e20474f544f203237300a323530204946204c4f41442870202b2049544f41286b29202b20225f762229203d3d2030205448454e20474f544f203236350a323535204946204c4f41442870202b2049544f41286b29202b20225f616e73222920213d2078205448454e20474f544f203236350a323630204c45542063203d2063202b20310a323635204c4554206b203d206b202b20310a32363620474f544f203234300a3237302049462032202a2063203e206e72205448454e20474f544f203239300a323830204c4554206a203d206a202b20310a32383520474f544f203138300a323930204c45542077203d20780a323935204c4554206877203d20310a333030204c45542064697370203d20300a333035204c4554206d64203d20310a333130204946206877203d3d2030205448454e20474f544f203334300a333230204946206873203d3d2030205448454e20474f544f203336300a333330204946207720213d204c4f41442870202b202273612229205448454e20474f544f203336300a33333520474f544f203337300a333430204946206873203d3d2030205448454e20474f544f203336350a333530204c45542077203d204c4f41442870202b2022736122290a33353520474f544f203337300a333630204c45542064697370203d20310a33363220474f544f203337300a333635204c4554206d64203d20320a333730204c4554206e77203d20300a333735204c4554206a203d20300a333830204946206d6420213d2031205448454e20474f544f203433300a333835204946206a203e3d206e205448454e20474f544f203433300a333930204c45542071203d2070202b2049544f41286a29202b20225f220a333935204946204c4f41442871202b2022762229203d3d2030205448454e20474f544f203431300a343030204946204c4f41442871202b2022616e73222920213d2077205448454e20474f544f203431300a343035204c4554206e77203d206e77202b20310a343130204c4554206a203d206a202b20310a34313520474f544f203338350a343330204c4554207368617265203d20300a343335204c45542072656d203d20300a343430204946206e77203d3d2030205448454e20474f544f203436300a343435204c4554207368617265203d2062202f206e770a343530204c45542072656d203d2062202d207368617265202a206e770a343630204c455420666f7266203d20300a343635204c4554206a203d20300a343730204946206a203e3d206e205448454e20474f544f203630300a343735204c45542071203d2070202b2049544f41286a29202b20225f220a343830204c4554206372203d20300a343835204946206d64203d3d2031205448454e20474f544f203532300a343930204946206e72203d3d2030205448454e20474f544f203531300a343935204946204c4f41442871202b2022762229203d3d2030205448454e20474f544f203536300a353130204c4554206372203d20626f6e640a35313520474f544f203536300a353230204946204c4f41442871202b2022762229203d3d2030205448454e20474f544f203536300a353330204946204c4f41442871202b2022616e73222920213d2077205448454e20474f544f203536300a353430204c4554206372203d207368617265202b20626f6e640a35363020494620637220213d2030205448454e20474f544f203537300a353635204c455420666f7266203d20666f7266202b20626f6e640a3537302053544f52452871202b20226372222c206372290a353830204c4554206a203d206a202b20310a35393020474f544f203437300a3630302053544f524528226361727279222c204c4f4144282263617272792229202b20666f7266202b2072656d290a363130204946206e7720213d2030205448454e20474f544f203633300a3632302053544f524528226361727279222c204c4f4144282263617272792229202b2062290a3633302053544f52452870202b20227374222c2031290a3634302053544f52452870202b202277696e222c2077290a3635302053544f52452870202b20226e77222c206e77290a3636302053544f52452870202b202264697370222c2064697370290a3637302053544f52452870202b2022726566756e64222c206d64202d2031290a3638302053544f52452870202b20227368617265222c207368617265290a3639302053544f52452870202b202272656d222c2072656d290a3730302053544f52452870202b2022666f7266222c20666f7266290a3731302052455455524e20300a3930302052455455524e20310a456e642046756e6374696f6e0a0a46756e6374696f6e20576974686472617728612055696e7436342c206a2055696e743634292055696e7436340a31302044494d20616d742061732055696e7436340a32302044494d20702c207120617320537472696e670a33302049462061203e3d204c4f414428226e612229205448454e20474f544f203930300a3430204c45542070203d20226122202b2049544f41286129202b20225f220a3530204946204c4f41442870202b20227374222920213d2031205448454e20474f544f203930300a3630204946206a203e3d204c4f41442870202b20226e2229205448454e20474f544f203930300a3730204c45542071203d2070202b2049544f41286a29202b20225f220a3830204946204c4f41442871202b202277686f222920213d205349474e45522829205448454e20474f544f203930300a3930204946204c4f41442871202b202278222920213d2030205448454e20474f544f203930300a313030204c455420616d74203d204c4f41442871202b2022637222290a31313020494620616d74203d3d2030205448454e20474f544f203930300a3132302053544f52452871202b202278222c2031290a3133302053454e445f4445524f5f544f5f41444452455353285349474e455228292c20616d74290a3134302052455455524e20300a3930302052455455524e20310a456e642046756e6374696f6e0a |
| bond | 1200 |
| carry | 0 |
| commitw | 20 |
| frozen | 1 |
| maxn | 8 |
| na | 0 |
| owner | 24966aebd59c3a756508b15ef514a5f256f1ac1a8765433280c342b75a98ce0500 |
| revealw | 20 |
Transaction Information
Root Hash
Built Height
7909472
Block
Timestamp
1794812148894
Timestamp (UTC)
2026-11-16 06:55:48
Block Age
51m 56s ago
Fee
0.14805
TX Size
11.237 kB
Version
1
Confirmations
169
Signature Type
DERO_HOMOMORPHIC
DERO Asset
2
Ring Size
0.14805
Fees
0.00000
Deposited
Sender
dero1qyjfv6ht6kwr5at9pzc4aag55he9dudvr2rk2sejsrp59d66nr8q2qqzwxwc9
Ring Members (2)
Smart Contract Details
SC Balance
0.00000 DERO
Smart Contract Code
Smart Contract Arguments
| Name | Type | Value |
|---|---|---|
| SC_ACTION | uint64 | 1 |
| SC_CODE | string | "/* gt_audit.bas -- R32a "audit bounty": pay for independent detection, DVM-BASIC. GAME. The sponsor (owner) posts round a asking auditors for a deterministic digest over public chain data: (task, from, upto), e.g. task 1 = block-header digest, task 2 = emission digest. The contract never interprets the task. The sponsor's own answer is HIDDEN: Post stores commit = HEX(SHA256(answer + ":" + salt)). Auditors Enter(a, commit) with a bond during [start, start + commitw], where the auditor commit is HEX(SHA256(answer + ":" + salt + ":" + ADDRESS_STRING(SIGNER()))). In (start + commitw, start + commitw + revealw] the sponsor reveals (RevealSponsor) and auditors reveal (Reveal). Settle(a), by anyone after the reveal window: (1) sponsor revealed, no dissenting majority: entrants whose answer == the sponsor answer win; (2) a STRICT majority of revealed entrants agree on one answer that differs from the sponsor's, or the sponsor did not reveal: that majority wins and disputed = 1 (the detection signal: the sponsor digest was wrong or withheld); (3) no sponsor reveal and no majority: undecided, refund = 1: revealers (or everyone, if nobody revealed) get the bond back, the bounty goes to carry. Winners split the bounty equally and get their bond back; the remainder (bounty mod winners) is recorded and goes to carry. Non-revealers and wrong answers forfeit their bond to carry; no winners -> the bounty to carry. carry is added to the bounty of the NEXT Post (only what has been settled before that Post). Settle stores credits only; each entrant pulls its credit with Withdraw(a, j) (pull payment, once, to SIGNER() only). THREAT MODEL. Copying: a copied commit cannot be revealed by another address (the address is inside the hash). Lazy auditor: the sponsor answer is hidden until after the commit window, so it cannot be copied in time. Sponsor withholding/lying: refunds (3) or the majority path (2) with disputed = 1, which is public. NOT prevented: collusion and bribery among auditors, Sybil entries by one party (incl. the sponsor under another address), and a sponsor majority of Sybils; the majority is only as independent as the auditors are. SIGNER() is known only at ring size 2: Enter/Reveal/Withdraw/owner calls must use ring size 2. STORED KEYS. Global: owner, bond, commitw, revealw, maxn (<= 32, Settle is O(n^2)), frozen, na (rounds posted), carry (forfeits + remainders + unwon bounties awaiting the next Post). Round p = "a" + ITOA(a) + "_": p+task, p+from, p+upto, p+fund (DEROVALUE of Post), p+cin (carry joined), p+bounty (fund + cin), p+sc (sponsor commit), p+start (Post height), p+n (entrants), p+in<signer> (entry index), p+sa (sponsor answer, only if revealed), p+st (settled 1), p+win (winning answer), p+nw (winners), p+disp (1 = majority overrode or replaced the sponsor), p+refund (1 = undecided), p+share, p+rem, p+forf. Entrant q = p + ITOA(j) + "_": q+who (signer), q+c (commit), q+v (revealed 0/1), q+ans (only if revealed), q+cr (credit), q+x (withdrawn 0/1). Return 0 = success; any other value reverts. */ Function Initialize() Uint64 10 STORE("owner", SIGNER()) 20 STORE("bond", 10000) 30 STORE("commitw", 20) 40 STORE("revealw", 20) 50 STORE("maxn", 16) 60 STORE("frozen", 0) 70 STORE("na", 0) 80 STORE("carry", 0) 90 RETURN 0 End Function Function SetParams(bond Uint64, commitw Uint64, revealw Uint64, maxn Uint64) Uint64 10 IF LOAD("owner") != SIGNER() THEN GOTO 900 20 IF LOAD("frozen") != 0 THEN GOTO 900 30 IF bond == 0 || commitw == 0 || revealw == 0 THEN GOTO 900 40 IF maxn == 0 || maxn > 32 THEN GOTO 900 50 STORE("bond", bond) 60 STORE("commitw", commitw) 70 STORE("revealw", revealw) 80 STORE("maxn", maxn) 90 RETURN 0 900 RETURN 1 End Function Function Freeze() Uint64 10 IF LOAD("owner") != SIGNER() THEN GOTO 900 20 STORE("frozen", 1) 30 RETURN 0 900 RETURN 1 End Function Function Post(task Uint64, from Uint64, upto Uint64, commit String) Uint64 10 DIM a as Uint64 20 DIM p as String 30 IF LOAD("owner") != SIGNER() THEN GOTO 900 40 IF LOAD("frozen") == 0 THEN GOTO 900 50 IF DEROVALUE() == 0 THEN GOTO 900 60 IF upto < from THEN GOTO 900 70 IF upto >= BLOCK_HEIGHT() THEN GOTO 900 80 IF STRLEN(commit) != 64 THEN GOTO 900 90 LET a = LOAD("na") 100 LET p = "a" + ITOA(a) + "_" 110 STORE(p + "task", task) 120 STORE(p + "from", from) 130 STORE(p + "upto", upto) 140 STORE(p + "fund", DEROVALUE()) 150 STORE(p + "cin", LOAD("carry")) 160 STORE(p + "bounty", DEROVALUE() + LOAD("carry")) 170 STORE("carry", 0) 180 STORE(p + "sc", commit) 190 STORE(p + "start", BLOCK_HEIGHT()) 200 STORE(p + "n", 0) 210 STORE(p + "st", 0) 220 STORE("na", a + 1) 230 RETURN 0 900 RETURN 1 End Function Function Enter(a Uint64, commit String) Uint64 10 DIM n as Uint64 20 DIM p, q as String 30 IF a >= LOAD("na") THEN GOTO 900 40 IF IS_ADDRESS_VALID(SIGNER()) == 0 THEN GOTO 900 50 IF SIGNER() == LOAD("owner") THEN GOTO 900 60 LET p = "a" + ITOA(a) + "_" 70 IF BLOCK_HEIGHT() > LOAD(p + "start") + LOAD("commitw") THEN GOTO 900 80 IF DEROVALUE() != LOAD("bond") THEN GOTO 900 90 LET n = LOAD(p + "n") 100 IF n >= LOAD("maxn") THEN GOTO 900 110 IF EXISTS(p + "in" + SIGNER()) == 1 THEN GOTO 900 120 IF STRLEN(commit) != 64 THEN GOTO 900 130 LET q = p + ITOA(n) + "_" 140 STORE(q + "who", SIGNER()) 150 STORE(q + "c", commit) 160 STORE(q + "v", 0) 170 STORE(q + "cr", 0) 180 STORE(q + "x", 0) 190 STORE(p + "in" + SIGNER(), n) 200 STORE(p + "n", n + 1) 210 RETURN 0 900 RETURN 1 End Function Function RevealSponsor(a Uint64, answer String, salt String) Uint64 10 DIM t as Uint64 20 DIM p as String 30 IF LOAD("owner") != SIGNER() THEN GOTO 900 40 IF a >= LOAD("na") THEN GOTO 900 50 LET p = "a" + ITOA(a) + "_" 60 IF EXISTS(p + "sa") == 1 THEN GOTO 900 70 LET t = LOAD(p + "start") + LOAD("commitw") 80 IF BLOCK_HEIGHT() <= t THEN GOTO 900 90 IF BLOCK_HEIGHT() > t + LOAD("revealw") THEN GOTO 900 100 IF HEX(SHA256(answer + ":" + salt)) != LOAD(p + "sc") THEN GOTO 900 110 STORE(p + "sa", answer) 120 RETURN 0 900 RETURN 1 End Function Function Reveal(a Uint64, j Uint64, answer String, salt String) Uint64 10 DIM t as Uint64 20 DIM p, q as String 30 IF a >= LOAD("na") THEN GOTO 900 40 LET p = "a" + ITOA(a) + "_" 50 IF j >= LOAD(p + "n") THEN GOTO 900 60 LET q = p + ITOA(j) + "_" 70 IF LOAD(q + "who") != SIGNER() THEN GOTO 900 80 IF LOAD(q + "v") != 0 THEN GOTO 900 90 LET t = LOAD(p + "start") + LOAD("commitw") 100 IF BLOCK_HEIGHT() <= t THEN GOTO 900 110 IF BLOCK_HEIGHT() > t + LOAD("revealw") THEN GOTO 900 120 IF HEX(SHA256(answer + ":" + salt + ":" + ADDRESS_STRING(SIGNER()))) != LOAD(q + "c") THEN GOTO 900 130 STORE(q + "v", 1) 140 STORE(q + "ans", answer) 150 RETURN 0 900 RETURN 1 End Function Function Settle(a Uint64) Uint64 10 DIM n, j, k, c, nr, hs, hw, md, nw, b, bond, share, rem, forf, cr, disp as Uint64 20 DIM p, q, w, x as String 30 IF a >= LOAD("na") THEN GOTO 900 40 LET p = "a" + ITOA(a) + "_" 50 IF LOAD(p + "st") != 0 THEN GOTO 900 60 IF BLOCK_HEIGHT() <= LOAD(p + "start") + LOAD("commitw") + LOAD("revealw") THEN GOTO 900 70 LET n = LOAD(p + "n") 80 LET bond = LOAD("bond") 90 LET b = LOAD(p + "bounty") 100 LET hs = EXISTS(p + "sa") 110 LET nr = 0 120 LET j = 0 130 IF j >= n THEN GOTO 170 140 LET nr = nr + LOAD(p + ITOA(j) + "_v") 150 LET j = j + 1 160 GOTO 130 170 LET hw = 0 175 LET j = 0 180 IF j >= n THEN GOTO 300 190 LET q = p + ITOA(j) + "_" 200 IF LOAD(q + "v") == 0 THEN GOTO 280 210 LET x = LOAD(q + "ans") 220 LET c = 0 230 LET k = 0 240 IF k >= n THEN GOTO 270 250 IF LOAD(p + ITOA(k) + "_v") == 0 THEN GOTO 265 255 IF LOAD(p + ITOA(k) + "_ans") != x THEN GOTO 265 260 LET c = c + 1 265 LET k = k + 1 266 GOTO 240 270 IF 2 * c > nr THEN GOTO 290 280 LET j = j + 1 285 GOTO 180 290 LET w = x 295 LET hw = 1 300 LET disp = 0 305 LET md = 1 310 IF hw == 0 THEN GOTO 340 320 IF hs == 0 THEN GOTO 360 330 IF w != LOAD(p + "sa") THEN GOTO 360 335 GOTO 370 340 IF hs == 0 THEN GOTO 365 350 LET w = LOAD(p + "sa") 355 GOTO 370 360 LET disp = 1 362 GOTO 370 365 LET md = 2 370 LET nw = 0 375 LET j = 0 380 IF md != 1 THEN GOTO 430 385 IF j >= n THEN GOTO 430 390 LET q = p + ITOA(j) + "_" 395 IF LOAD(q + "v") == 0 THEN GOTO 410 400 IF LOAD(q + "ans") != w THEN GOTO 410 405 LET nw = nw + 1 410 LET j = j + 1 415 GOTO 385 430 LET share = 0 435 LET rem = 0 440 IF nw == 0 THEN GOTO 460 445 LET share = b / nw 450 LET rem = b - share * nw 460 LET forf = 0 465 LET j = 0 470 IF j >= n THEN GOTO 600 475 LET q = p + ITOA(j) + "_" 480 LET cr = 0 485 IF md == 1 THEN GOTO 520 490 IF nr == 0 THEN GOTO 510 495 IF LOAD(q + "v") == 0 THEN GOTO 560 510 LET cr = bond 515 GOTO 560 520 IF LOAD(q + "v") == 0 THEN GOTO 560 530 IF LOAD(q + "ans") != w THEN GOTO 560 540 LET cr = share + bond 560 IF cr != 0 THEN GOTO 570 565 LET forf = forf + bond 570 STORE(q + "cr", cr) 580 LET j = j + 1 590 GOTO 470 600 STORE("carry", LOAD("carry") + forf + rem) 610 IF nw != 0 THEN GOTO 630 620 STORE("carry", LOAD("carry") + b) 630 STORE(p + "st", 1) 640 STORE(p + "win", w) 650 STORE(p + "nw", nw) 660 STORE(p + "disp", disp) 670 STORE(p + "refund", md - 1) 680 STORE(p + "share", share) 690 STORE(p + "rem", rem) 700 STORE(p + "forf", forf) 710 RETURN 0 900 RETURN 1 End Function Function Withdraw(a Uint64, j Uint64) Uint64 10 DIM amt as Uint64 20 DIM p, q as String 30 IF a >= LOAD("na") THEN GOTO 900 40 LET p = "a" + ITOA(a) + "_" 50 IF LOAD(p + "st") != 1 THEN GOTO 900 60 IF j >= LOAD(p + "n") THEN GOTO 900 70 LET q = p + ITOA(j) + "_" 80 IF LOAD(q + "who") != SIGNER() THEN GOTO 900 90 IF LOAD(q + "x") != 0 THEN GOTO 900 100 LET amt = LOAD(q + "cr") 110 IF amt == 0 THEN GOTO 900 120 STORE(q + "x", 1) 130 SEND_DERO_TO_ADDRESS(SIGNER(), amt) 140 RETURN 0 900 RETURN 1 End Function " |
Prove Transaction
Prove that you sent DERO in this transaction. Obtain proof using the dero-wallet-cli command or from your wallet statement.
Note: The proof is sent to the server for verification calculations.
Payload proofs are user-provided display proofs; for the strongest verification, confirm with the receiving wallet.