contract_name stringlengths 1 40 | code_body stringlengths 0 100k | txid stringlengths 66 66 | block_height int32 0 165k | status stringclasses 3
values |
|---|---|---|---|---|
quotes-v1 | (define-constant owner tx-sender)
(define-non-fungible-token quote uint)
(impl-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)
(define-data-var last-id uint u0)
;; Last token ID, limited to uint range
(define-read-only (get-last-token-id)
(ok (var-get last-id)))
(define-map metadata uint (strin... | 0xea20f35f843b65fb24c29ee0128dae7e8b5e3b76af85aa25a3ad104cddadc873 | 11,876 | success |
pool-registry-v1 | ;; Two traits pool contracts should implement
;;
;; The genesis pox contract implements pool-trait
;; Pools that run as a contract can implement pool-trait-ext with additional information from the user
(define-trait pool-trait ((delegate-stx (uint principal (optional uint)
(optional (tuple (hashbytes (buf... | 0x14f8ca3a28ed6f2c775473cef3cb635b3e7f56903310fe5c7a9a73c9e4f59499 | 12,077 | success |
ashamed-copper-mandrill | ;; hello-world contract
(define-constant sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)
(define-constant recipient 'SP162D87CY84QVVCMJKNKGHC7GGXFGA0TAR9D0XJW)
(define-fungible-token novel-token-19)
(begin (ft-mint? novel-token-19 u12 sender))
(begin (ft-transfer? novel-token-19 u2 sender recipient))
(define-non-... | 0x82760f25fa13279eff30d41c6d49543bc2b615ebe93b48d2aca327bd90724bfb | 12,084 | success |
coming-green-mouse | ;; hello-world contract
(define-constant sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)
(define-constant recipient 'SP162D87CY84QVVCMJKNKGHC7GGXFGA0TAR9D0XJW)
(define-fungible-token novel-token-19)
(begin (ft-mint? novel-token-19 u12 sender))
(begin (ft-transfer? novel-token-19 u2 sender recipient))
(define-non-... | 0x793a32649df9df03dcf4249aa7e9b88cd8d4032cd0fb66713262038ec6452dbc | 12,084 | success |
raw-crimson-bird | ;; hello-world contract
(define-constant sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)
(define-constant recipient 'SP162D87CY84QVVCMJKNKGHC7GGXFGA0TAR9D0XJW)
(define-fungible-token novel-token-19)
(begin (ft-mint? novel-token-19 u12 sender))
(begin (ft-transfer? novel-token-19 u2 sender recipient))
(define-non-... | 0x09732187f4f7efbfbebdd069ab2b24e1f0620af112d2bf4b4d92b5d775444bc5 | 12,084 | success |
puzzled-gold-stork | ;; hello-world contract
(define-constant sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)
(define-constant recipient 'SP162D87CY84QVVCMJKNKGHC7GGXFGA0TAR9D0XJW)
(define-fungible-token novel-token-19)
(begin (ft-mint? novel-token-19 u12 sender))
(begin (ft-transfer? novel-token-19 u2 sender recipient))
(define-non-... | 0x55d66e0ca6fcf2972f5c77994d282a2690280d1fd2c93669af47089ec9b86da5 | 12,084 | success |
balanced-magenta-coral | ;; hello-world contract
(define-constant sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)
(define-constant recipient 'SP38J10VQRENJWK6NY2CX95D8RKXSYTCDJT8EDYYX)
(define-fungible-token novel-token-19)
(begin (ft-mint? novel-token-19 u12 sender))
(begin (ft-transfer? novel-token-19 u2 sender recipient))
(define-non-... | 0x620c1eb84dfd85e5172d4da9c89d93afab10f10cac7a0e995b5b6361a51e14c1 | 12,567 | success |
clovers | (define-fungible-token clovers u1000) | 0x48a995f69666478561c85a8c00cc4f5be88478c198e81df55ce52054c4fbcf2d | 13,274 | success |
pleased-coffee-baboon | (define-non-fungible-token boom uint)
(define-data-var last-id uint u0)
(define-data-var last-series-id uint u0)
(impl-trait .nft-trait.nft-trait)
;;(impl-trait 'ST22HQ6YT0NAHB42F6X8PGZVA70S2XNB7KF03ZABX.sip-009-nft-trait.nft-trait)
;; each nft id to series id
(define-map meta uint {series-id: uint, number: uint})
... | 0x91f5ca91f9ca038a0def4ad6a7b692c5e975f531be272b2e46854621174af7b9 | 13,316 | abort_by_response |
Zen | ;; mint fungible tokens via Dapparatus
;; with a fixed max supply and pass all to sender
(define-constant sender 'SP1TA84JTP4YRFWBK7PYKBA33H3YB60XP654RAR7M)
(define-fungible-token Zen u21000000)
(begin (ft-mint? Zen u21000000 sender)) | 0x619444409b8922d217f531b9db549dbbc675102a1dfb18af4e11af56e5cba33c | 13,374 | success |
Uru | ;; Mint Fungible Tokens via Dapparatus with max supply sent to sender
(define-constant sender 'SP1TA84JTP4YRFWBK7PYKBA33H3YB60XP654RAR7M)
(define-fungible-token Uru u21000000)
(ft-mint? Uru u21000000 sender)
;; traits of contract for function calls against it
(define-trait ft-trait
(
;; Transfer from caller t... | 0xa4baf967aa18cb1f6844363a39bbc85acf3d65aa0fc9ff4cbcfb391f7df82aa5 | 13,411 | abort_by_response |
Uru | ;; Mint Fungible Tokens via Dapparatus with max supply sent to minter
(define-constant minter 'SP1TA84JTP4YRFWBK7PYKBA33H3YB60XP654RAR7M)
(define-fungible-token Uru u21000000)
(ft-mint? Uru u21000000 minter)
;; traits of contract for function calls against it
(define-trait ft-trait
(
;; Transfer from calle... | 0xbf05beedb8f0bbf08492db5960d73888f7c16749b9727728c4d9005cca91417c | 13,415 | abort_by_response |
Uru | ;; Mint Fungible Tokens via Dapparatus with max supply sent to minter
(define-constant minter 'SP1TA84JTP4YRFWBK7PYKBA33H3YB60XP654RAR7M)
(define-fungible-token Uru u21000000)
(ft-mint? Uru u21000000 minter)
;; traits of contract for function calls against it
(define-trait ft-trait
(
;; Transfer from calle... | 0x4a81366ef6da2d7571aa9445a3c28c21cebf58a07effa5d7ef8ec18a8ca41d79 | 13,417 | success |
test1 | (define-non-fungible-token test1) | 0xc4cebe2d90f87afe502d154ad60237898a1339de389a886f5440a5700f944d9c | 13,457 | abort_by_response |
test1 | (nft-get-owner? test1 'sup' ) | 0x564968633a53da7cde7cbeee806a2c12890e36713815f56755dc5b51c966d65e | 13,460 | abort_by_response |
test1 | (define-non-fungible-token quartz (string-ascii 40))
(nft-mint? quartz "quick" "SPH30YCECRTRYW5NXQVFWR1FNTE02FZ3JZYP8GTD") | 0x91a219c27f8f30e7b4c13bcbe9bbebe058c35d8b43a281b757696d9a7e557ebe | 13,463 | abort_by_response |
Obelisk | ;; Mint Fungible Tokens via Dapparatus with max supply sent to minter
(define-constant ERR-UNAUTHORIZED u3)
(define-constant minter 'SP1TA84JTP4YRFWBK7PYKBA33H3YB60XP654RAR7M)
(define-fungible-token Obelisk u42000000)
(ft-mint? Obelisk u42000000 minter)
;; SIP-010 ;;
(impl-trait 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5... | 0x966d70ee491c6576607b0ad6c5ea4f15aa822e98559eccd63587af2b6277b5b7 | 13,484 | abort_by_response |
Obelisk | ;; Mint Fungible Tokens via Dapparatus with max supply sent to minter
(define-constant ERR-UNAUTHORIZED u3)
(define-constant minter 'SP1TA84JTP4YRFWBK7PYKBA33H3YB60XP654RAR7M)
(define-fungible-token Obelisk u42000000)
(ft-mint? Obelisk u42000000 minter)
;; SIP-010 ;;
(impl-trait 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5... | 0x966d70ee491c6576607b0ad6c5ea4f15aa822e98559eccd63587af2b6277b5b7 | 13,484 | abort_by_response |
Obelisk | ;; Mint Fungible Tokens via Dapparatus with max supply sent to minter
(define-constant ERR-UNAUTHORIZED u3)
(define-constant minter 'SP1TA84JTP4YRFWBK7PYKBA33H3YB60XP654RAR7M)
(define-fungible-token Obelisk u21000000)
(ft-mint? Obelisk u21000000 minter)
;; SIP-010 ;;
(impl-trait 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5... | 0xff098ca30bba3f99c764411e02204e82061a26c8285b3a251493ce26309f10bc | 13,544 | abort_by_response |
Obelisk | ;; Mint Fungible Tokens via Dapparatus with max supply sent to minter
(define-constant minter 'SP1TA84JTP4YRFWBK7PYKBA33H3YB60XP654RAR7M)
(define-fungible-token Obelisk u42000000)
(ft-mint? Obelisk u42000000 minter)
(define-public (get-name)
(ok "Obelisk"))
(define-public (get-symbol)
(ok "OBL"))
(define-pub... | 0x5e7c2142b04f41fee10aeed68f8799f953166572e5b01a268177d188b32ae876 | 13,547 | success |
Hollow_Purple | (define-non-fungible-token Hollow_Purple 486f6c6c6f775f507572706c65) | 0x9fb2d05746bc32e1abd3d721212b2ad6fd24bf8e677ae0fde91a8a33d59edf42 | 13,596 | abort_by_response |
Test_for_fungible_token | (define-fungible-token test-for-fungible-token u100000) | 0xb6894d4c1da85d612a3089f7ffaaa0ca42b759db283c8d298cba2771ea0d5713 | 13,599 | success |
Test_for_fungible_token | (define-fungible-token test-for-fungible-token u100000) | 0xb6894d4c1da85d612a3089f7ffaaa0ca42b759db283c8d298cba2771ea0d5713 | 13,599 | success |
Test_for_fungible_token1 | (define-non-fungible-token test-for-fungible-token1 u100000) | 0x95ff844b361ec1ab2e34bedc97b8650f5d9fb628c24ed8f8cd63d61d5b6f0725 | 13,610 | abort_by_response |
Milky-Way | (define-fungible-token Milky-Way)
(define-data-var total-supply uint u0)
(define-read-only (get-total-supply)
(var-get total-supply))
(define-private (mint! (account principal) (amount uint))
(if (<= amount u0)
(err u0)
(begin
(var-set total-supply (+ (var-get total-supply) amount))
(... | 0x7559b1e4e4b6dfc923d86ebc4ddf120f92fb0686afd0db7c1a4b8b70112efddb | 13,775 | success |
contract-20260699149 | ;; wrap the native STX token into an SRC20 compatible token to be usable along other tokens
;; Use https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard
(impl-trait 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard)
;; get the token balance of owner
(define-read-only ... | 0x465968b11249cbb7e4a53c10dd6a0a37a0efcc0aeeb68a5a8edd4956bea6f2d8 | 13,815 | abort_by_response |
contract-20260699149 | ;; wrap the native STX token into an SRC20 compatible token to be usable along other tokens
;; Use https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard
(impl-trait 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard)
;; get the token balance of owner
(define-read-only ... | 0x465968b11249cbb7e4a53c10dd6a0a37a0efcc0aeeb68a5a8edd4956bea6f2d8 | 13,815 | abort_by_response |
tk-stacks | ;; Wrap the native STX token into an SRC20 compatible token to be usable along other tokens
;; Use https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard
(impl-trait 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard)
;; get the token balance of owner
(define-read-only ... | 0x8bdd1817d7f8c9f7ccd76bbd588e96c2380573ea04913d1184df107b5a1a53d0 | 13,914 | abort_by_response |
tk-stacks | ;; Wrap the native STX token into an SRC20 compatible token to be usable along other tokens
;; Use https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard
(impl-trait 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard)
;; get the token balance of owner
(define-read-only ... | 0x8bdd1817d7f8c9f7ccd76bbd588e96c2380573ea04913d1184df107b5a1a53d0 | 13,914 | abort_by_response |
appmap-v1 | ;; application registry for applications wishing to sell NFTs throug the marketplace
(define-data-var administrator principal tx-sender)
;; (define-data-var administrator principal 'ST1NXBK3K5YYMD6FD41MVNP3JS1GABZ8TRVX023PT)
;; (define-data-var administrator principal 'SP3QSAJQ4EA8WXEDSRRKMZZ29NH91VZ6C5X88FGZQ)
(defin... | 0x7ff5f3204bc38ceca15058dc1f4c515beacd33a10b5a9e438c2da67ca38d85c2 | 14,481 | success |
thisisnumberone-v1 |
;; Interface definitions
;; (impl-trait 'ST1ESYCGJB5Z5NBHS39XPC70PGC14WAQK5XXNQYDW.nft-interface.transferable-nft-trait)
;; (impl-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-interface.tradable-nft-trait)
(impl-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)
;; contract variables
(define... | 0xb8ae1c6f6f9de43bbeda0672b9b97a11d06212fbec40c5a65e4941d7a1df1812 | 14,484 | success |
XXXtentacion | (impl-trait 'SPHSC0CQC585RT86XBVYRBJ0HQC44VGQ83DH3AM8.nft-trait.nft-trait)
(define-non-fungible-token XXXtentacion uint)
;; Public functions
(define-constant nft-not-owned-err (err u401)) ;; unauthorized
(define-constant nft-not-found-err (err u404)) ;; not found
(define-constant sender-equals-recipient-err (err u405... | 0xc6095acb4c01cdf03850e6fcfb16c2a261dd6f3d37cfa74feca08d315c7c96b1 | 14,692 | abort_by_response |
XXXtentacion | (impl-trait 'SPHSC0CQC585RT86XBVYRBJ0HQC44VGQ83DH3AM8.nft-trait.nft-trait)
(define-non-fungible-token XXXtentation #1 uint)
;; Public functions
(define-constant nft-not-owned-err (err u401)) ;; unauthorized
(define-constant nft-not-found-err (err u404)) ;; not found
(define-constant sender-equals-recipient-err (err u... | 0x9c161a788bf195043fe20d7568167e2790332644ad83c88bc4ce636ffed9aeb3 | 14,694 | abort_by_response |
XXXtentation | (impl-trait 'SP13VH72MJJAZGWVH8XBR8SBZ00S81A3ZWBR9DPDA.nft-trait.nft-trait)
(define-non-fungible-token XXXtentation uint)
;; Public functions
(define-constant nft-not-owned-err (err u401)) ;; unauthorized
(define-constant nft-not-found-err (err u404)) ;; not found
(define-constant sender-equals-recipient-err (err u40... | 0xc18e602dcf6214a37d2cde5d9a3e8d0a7946bc8d4f0edabb86eaf0d7b4682975 | 14,698 | abort_by_response |
XXXtentation | (impl-trait 'SP13VH72MJJAZGWVH8XBR8SBZ00S81A3ZWBR9DPDA.nft-trait.nft-trait)
(define-non-fungible-token XXXtentation uint)
;; Public functions
(define-constant nft-not-owned-err (err u401)) ;; unauthorized
(define-constant nft-not-found-err (err u404)) ;; not found
(define-constant sender-equals-recipient-err (err u40... | 0xc275e1b3178c11e11f1e7e5086f2267a3c1a662f8fc77002976b487144526bd0 | 14,698 | abort_by_response |
XXXtentation | (define-non-fungible-token XXXtentation uint)
;; Public functions
(define-constant nft-not-owned-err (err u401)) ;; unauthorized
(define-constant nft-not-found-err (err u404)) ;; not found
(define-constant sender-equals-recipient-err (err u405)) ;; method not allowed
(define-private (nft-transfer-err (code uint))
(... | 0xcf1bf0412dcd795e3b92e0f2c49e3774349aff372eda81dc1da70a4c6a3245ee | 14,701 | success |
thisisnumberone-v2 |
;; Interface definitions
;; (impl-trait 'ST1ESYCGJB5Z5NBHS39XPC70PGC14WAQK5XXNQYDW.nft-interface.transferable-nft-trait)
;; (impl-trait 'SP3QSAJQ4EA8WXEDSRRKMZZ29NH91VZ6C5X88FGZQ.nft-interface.tradable-nft-trait)
(impl-trait 'SP3QSAJQ4EA8WXEDSRRKMZZ29NH91VZ6C5X88FGZQ.nft-trait.nft-trait)
;; contract variables
(define... | 0xe1a321036b9dedf34678f8378d53c64ae6e315d5be50e31161ab2e423a2827e2 | 15,296 | abort_by_response |
nft-approvable-trait | (define-trait nft-approvable-trait
(
;; Last token ID, limited to uint range
(get-last-token-id () (response uint uint))
;; URI for metadata associated with the token
(get-token-uri (uint) (response (optional (string-ascii 256)) uint))
;; Owner of a given token identifier
(get-owner (uint) ... | 0x6f04ffe5c6eec71d44709eb226fd4da8531ac6b46ad196268b2c64a6e20292a4 | 15,302 | success |
thisisnumberone-v2 |
;; Interface definitions
;; test/mocknet
;; (impl-trait 'SP3QSAJQ4EA8WXEDSRRKMZZ29NH91VZ6C5X88FGZQ.nft-approvable-trait.nft-approvable-trait)
;; (impl-trait 'SP3QSAJQ4EA8WXEDSRRKMZZ29NH91VZ6C5X88FGZQ.nft-trait.nft-trait)
;; mainnet
(impl-trait SP3QSAJQ4EA8WXEDSRRKMZZ29NH91VZ6C5X88FGZQ.nft-approvable-trait.nft-approvab... | 0x7bc76ce858c687b3502c3d30a25ce60a68919720814cc2dceec3ccf0cb5159f4 | 15,305 | abort_by_response |
thisisnumberone-v2 |
;; Interface definitions
;; test/mocknet
;; (impl-trait 'SP3QSAJQ4EA8WXEDSRRKMZZ29NH91VZ6C5X88FGZQ.nft-approvable-trait.nft-approvable-trait)
;; (impl-trait 'SP3QSAJQ4EA8WXEDSRRKMZZ29NH91VZ6C5X88FGZQ.nft-trait.nft-trait)
;; mainnet
;; (impl-trait SP3QSAJQ4EA8WXEDSRRKMZZ29NH91VZ6C5X88FGZQ.nft-approvable-trait.nft-appro... | 0x7fda9151a5749a1c2e763ed773002ac5b46186ae09e8e3c523541fcae20c9a66 | 15,309 | success |
bitcoin-lib | ;; Bitcoin parsing library for Clarity
;; provides merkle proof parsing & verification, btc block header parsing, btc tx parsing & more
;; Error codes
(define-constant ERR-OUT-OF-BOUNDS u1)
(define-constant ERR-TOO-MANY-TXINS u2)
(define-constant ERR-TOO-MANY-TXOUTS u3)
(define-constant ERR-VARSLICE-TOO-LONG u4)
(defi... | 0xedd750c5771559cb784481ccd014aea91fb0ce019dc54816b5ea51794549eec2 | 15,333 | success |
bitcoin-lib | ;; Bitcoin parsing library for Clarity
;; provides merkle proof parsing & verification, btc block header parsing, btc tx parsing & more
;; Error codes
(define-constant ERR-OUT-OF-BOUNDS u1)
(define-constant ERR-TOO-MANY-TXINS u2)
(define-constant ERR-TOO-MANY-TXOUTS u3)
(define-constant ERR-VARSLICE-TOO-LONG u4)
(defi... | 0xedd750c5771559cb784481ccd014aea91fb0ce019dc54816b5ea51794549eec2 | 15,333 | success |
JoeToken | ;; use the SIP090 interface
(impl-trait 'ST000000000000000000002AMW42H.nft-trait.nft-trait)
;; define a new NFT. Make sure to replace NFT_NAME
(define-non-fungible-token <JoeToken> uint)
;; Store the last issues token ID
(define-data-var last-id uint u0)
;; Claim a new NFT
(define-public (claim)
(ok (mint tx-sende... | 0x0e2f39798fc095761200a11f379e021cad85ff0c51e2b6a54a81496975424a99 | 15,554 | abort_by_response |
JoeToken-v3 | ;; use the SIP-009 interface
(impl-trait 'SP1JSH2FPE8BWNTP228YZ1AZZ0HE0064PS6RXRAY4.nft-trait.nft-trait)
;; define a new NFT.
(define-non-fungible-token JoeToken uint)
;; Store the last issues token ID
(define-data-var last-id uint u0)
;; Claim a new NFT
(define-public (claim)
(ok (mint tx-sender)))
;; SIP-009: ... | 0xf111c3a2038653c67df43b7a1ecfe312b761d91c90305c094257efe51072a31b | 15,648 | abort_by_response |
cc-ft-stx | ;; cc-ft-stx
;; wrap the native STX token into an SRC20 compatible token to be usable along other tokens
;; Use https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard
(impl-trait 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard.ft-trait)
;; constants
;;
;; data maps... | 0x7ccfc71f247949b318f33bb69a461e3d1da5edd2c87a5454b773ae1079c2f6f0 | 16,105 | success |
contract-21967684690 | ;; use the SIP-009 NFT interface
(impl-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)
;; define a new JoeToken NFT.
(define-non-fungible-token JoeToken uint)
;; Errors
(define-constant nft-not-owned-err (err u401)) ;; unauthorized
(define-constant nft-not-found-err (err u404)) ;; not found
(de... | 0x62ccb71e0386fb455a0199b7a2ace4c914315959dd6487e465f7d54b4853f7fb | 16,313 | abort_by_response |
MillieCoin | (define-non-fungible-token millie uint)
;; Public functions
(define-constant nft-not-owned-err (err u401)) ;; unauthorized
(define-constant nft-not-found-err (err u404)) ;; not found
(define-constant sender-equals-recipient-err (err u405)) ;; method not allowed
(define-private (nft-transfer-err (code uint))
(if (is... | 0x4cad48cbfa958e780e48512d9af060401dddc10295d4dcec67ddf15f4d5a1e7b | 16,327 | success |
sip-010-trait | (define-trait sip-010-trait
(
;; Transfer from the caller to a new principal
(transfer (uint principal principal (optional (buff 34))) (response bool uint))
;; the human readable name of the token
(name () (response (string-ascii 32) uint))
;; the ticker symbol, or empty if none
(symbol () (... | 0x5e45ac84f74dd572c8de8d55caa1e5bb1f3a8607e7fc702436d804a76683bc5e | 16,442 | success |
sip-010 | (define-trait ft-trait
(
;; Transfer from the caller to a new principal with optional memo
(transfer (uint principal principal (optional (buff 34))) (response bool uint))
;; the human readable name of the token
(get-name () (response (string-ascii 32) uint))
;; the ticker symbol, or empty if non... | 0x1508a980ed063e85a38728fe5caad0815e2f4ece0a1d77111185cc8c39b4b0ad | 16,628 | success |
wrapped-nothing-v7 | (define-constant ERR-UNAUTHORIZED u1)
(define-constant ERR-YOU-POOR u2)
(define-fungible-token wrapped-nthng)
(define-data-var token-uri (optional (string-utf8 256)) none)
(define-constant contract-creator tx-sender)
(impl-trait 'SP1X6M947Z7E58CNE0H8YJVJTVKS9VW0PHD4Q0A5F.sip-010.ft-trait)
(define-public (donate (amoun... | 0xcccefbdb941211702f0601e5ca2f91e72367771850e12149c64ce4b49fc34ab2 | 16,639 | success |
sip-010-trait-ft-standard | (define-trait sip-010-trait
(
;; Transfer from the caller to a new principal
(transfer (uint principal principal (optional (buff 34))) (response bool uint))
;; the human readable name of the token
(get-name () (response (string-ascii 32) uint))
;; the ticker symbol, or empty if none
(get-sym... | 0x99e01721e57adc2c24f7d371b9d302d581dba1d27250c7e25ea5f241af14c387 | 16,733 | success |
sip-010-trait-ft-standard | (define-trait sip-010-trait
(
;; Transfer from the caller to a new principal
(transfer (uint principal principal (optional (buff 34))) (response bool uint))
;; the human readable name of the token
(get-name () (response (string-ascii 32) uint))
;; the ticker symbol, or empty if none
(get-sym... | 0x99e01721e57adc2c24f7d371b9d302d581dba1d27250c7e25ea5f241af14c387 | 16,733 | success |
hiro-hackathon-winner-2021 | ;; use the SIP009 interface
(impl-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)
;; define a new NFT
(define-non-fungible-token hiro-hackathon-winner-2021 uint)
;; list of NFT winners
(define-constant initial-members (list
'SP1X6M947Z7E58CNE0H8YJVJTVKS9VW0PHD4Q0A5F
'SPGCWKN03B99HBCMJT9ZE035RQJ4... | 0x0fca15db3109a4cbd6d2b7ed1668e30021635250b68f78a2bacf225afa5c9935 | 17,140 | abort_by_response |
drunk-silver-scorpion | ;; hello-world contract
(define-constant sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)
(define-constant recipient 'SP2XRA36RN7QTZSZX6YRPXKYSVHP7CMQ0FMHME0TF)
(define-fungible-token novel-token-19)
(begin (ft-mint? novel-token-19 u12 sender))
(begin (ft-transfer? novel-token-19 u2 sender recipient))
(define-non-... | 0x75cb5fc04fa901497cec25a8890770dbf7fca411b9bde5c6864028312128bcfd | 17,428 | success |
wrapped-nothing-7 | (define-constant ERR-UNAUTHORIZED u1)
(define-constant ERR-YOU-POOR u2)
(define-fungible-token wrapped-nthng)
(define-data-var token-uri (optional(string-utf8 256)) none)
(define-constant contract-creator tx-sender)
(impl-trait 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-010-trait-ft-standard.sip-010-trait)
(define... | 0x2890147c1f38c1a389a342641a4d83f2fc75c34e0f926c0e215c63e9a1ad0a50 | 17,617 | abort_by_response |
wrapped-nothing-v8 | (define-constant ERR-UNAUTHORIZED u1)
(define-constant ERR-YOU-POOR u2)
(define-fungible-token wrapped-nthng)
(define-data-var token-uri (optional (string-utf8 256)) none)
(define-constant contract-creator tx-sender)
(impl-trait 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-010-trait-ft-standard.sip-010-trait)
(defin... | 0x8200e6ada189dd76dc17e0ad8e3857348bb7e3cda7c2600877f59d60eaafda64 | 17,715 | success |
stx-history | ;; historical stacks balance of user
(define-read-only (get-balance (user principal) (bh uint))
(ok (at-block (unwrap! (get-block-info? id-header-hash bh) (err u9999)) (stx-get-balance user)))
)
| 0x92b0bc71f463aac245faebc3b5f47723fb63c768fe07854f042fccadde93cbab | 18,035 | success |
cc-ft-cxc | ;; cc-ft-cxc
;; CrossCheck Token
;; we implement the sip-010
;; In Mainnet Use https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard
(define-fungible-token cxc u19000000000000)
(impl-trait 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard)
;; public functions
;;
;; g... | 0x25dd440acbe0fe9ad518d149614fd3527feb06153039421463df6014204fab66 | 18,097 | abort_by_response |
greet | ;; hello-world contract
(define-public (greet)
(begin
(print "Hello world!")
(ok u0)))
| 0x9c36b02ccb66fcf39cbfb49af573f82a55588afd1bd62068448f8bf7b4c7f6ff | 18,153 | success |
xverse-pool-v2 | ;; (impl-trait ST33GW755MQQP6FZ58S423JJ23GBKK5ZKH3MGR55N.pool-registry-v2.pox-trait-ext)
;; (impl-trait SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60.pool-registry-v1.pox-trait-ext)
(define-constant err-missing-user-pox-addr (err u100))
(define-constant err-map-set-failed (err u101))
(define-constant err-pox-failed (err u1... | 0xbdf1823f1034d3c11a3ca97eea2e063d4fae96e2b03ca07647a915006fd9322c | 18,202 | success |
hiro-hackathon-winner-2021 | ;; use the SIP009 interface
(impl-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)
;; define a new NFT
(define-non-fungible-token hiro-hackathon-winner-2021 uint)
;; list of NFT winners
(define-constant initial-members (list
'SP1X6M947Z7E58CNE0H8YJVJTVKS9VW0PHD4Q0A5F
'SPGCWKN03B99HBCMJT9ZE035RQJ4... | 0x5d1704291538dbeb201161f9f052f79281bea2a944f8c22e4ebdf67005d2b429 | 18,296 | success |
xverse-pool-v2 | ;; (impl-trait ST33GW755MQQP6FZ58S423JJ23GBKK5ZKH3MGR55N.pool-registry-v2.pox-trait-ext)
;; (impl-trait SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60.pool-registry-v1.pox-trait-ext)
(define-constant err-missing-user-pox-addr (err u100))
(define-constant err-map-set-failed (err u101))
(define-constant err-pox-failed (err u1... | 0x57afe1ea0dcb9249f48bdaa2e70f280ea539cbbc6fbc19e4119201ef1a97cf05 | 18,649 | success |
bizarre-peach-earwig | ;; shorten
;; link shortener built on stacks
(define-constant owner 'ST3AA33M8SS15A30ETXE134ZXD8TNEDHT8Q955G40)
(define-constant ERR_PANIC 0)
(define-constant ERR_LINK_DOES_NOT_EXIST 1)
(define-constant ERR_LINK_ALREADY_EXISTS 2)
(define-constant ERR_COULD_NOT_FUND 3)
(define-map links
(string-ascii 5)
{ url: ... | 0x1bd0330faa194ba327d633513f8b0e604dfc0485b9c90930926aff8cba7d7eb9 | 19,020 | success |
dmt-mine | ;; error codes
(define-constant ERR-NO-WINNER u0)
(define-constant ERR-NO-SUCH-MINER u1)
(define-constant ERR-IMMATURE-TOKEN-REWARD u2)
(define-constant ERR-UNAUTHORIZED u3)
(define-constant ERR-ALREADY-CLAIMED u4)
(define-constant ERR-STACKING-NOT-AVAILABLE u5)
(define-constant ERR-CANNOT-STACK u6)
(define-constant ER... | 0x07f647425f1bebaee230347e64cfc700c0e58df9d8fae82779f9f081615c0b7b | 19,193 | abort_by_response |
dmt-mine | ;; error codes
(define-constant ERR-NO-WINNER u0)
(define-constant ERR-NO-SUCH-MINER u1)
(define-constant ERR-IMMATURE-TOKEN-REWARD u2)
(define-constant ERR-UNAUTHORIZED u3)
(define-constant ERR-ALREADY-CLAIMED u4)
(define-constant ERR-STACKING-NOT-AVAILABLE u5)
(define-constant ERR-CANNOT-STACK u6)
(define-constant ER... | 0x5dd3a45f50ac0071da180278c1b3b5e9637759bc62df736a12e594895f1c7ae3 | 19,193 | abort_by_response |
dmt-dao | ;; error codes
(define-constant ERR-NO-WINNER u0)
(define-constant ERR-NO-SUCH-MINER u1)
(define-constant ERR-IMMATURE-TOKEN-REWARD u2)
(define-constant ERR-UNAUTHORIZED u3)
(define-constant ERR-ALREADY-CLAIMED u4)
(define-constant ERR-STACKING-NOT-AVAILABLE u5)
(define-constant ERR-CANNOT-STACK u6)
(define-constant ER... | 0x88461aa9445df11e35e23cf4883e42e47490c9d2a1a493bac4897916adb4f0cb | 19,259 | success |
sip-010 | ;; sip-010 trait
;; use https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard
(define-trait ft-trait
(
;; Transfer from the caller to a new principal
(transfer (uint principal principal) (response bool uint))
;; the human readable name of the token
(get-name ()... | 0xc0c1b03c634e94565122795b6d78293f57bcfd0a63b329eb11f382ceb1d32e91 | 19,908 | success |
token-sangwon |
;; sws-token-01
;; we implement the sip-010
;; In mainnet use https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard
;; for testnet
(impl-trait 'ST23DAB333A5CPFXNK13E5YMX1DZJ07112QA7HWHA.sip-010.ft-trait)
;; (impl-trait sip-10-ft-standard.ft-trait)
;; constants
;;
(define-fungi... | 0x727ed2a2ee5ae6c1e4d3867893404369b31135d7d70bbd523c784139c92dce57 | 19,910 | abort_by_response |
token-sangwon |
;; sws-token-01
;; we implement the sip-010
;; In mainnet use https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard
;; for testnet
(impl-trait 'ST23DAB333A5CPFXNK13E5YMX1DZJ07112QA7HWHA.sip-010.ft-trait)
;; (impl-trait sip-10-ft-standard.ft-trait)
;; constants
;;
(define-fungi... | 0x727ed2a2ee5ae6c1e4d3867893404369b31135d7d70bbd523c784139c92dce57 | 19,911 | abort_by_response |
sangwon-token |
;; sws-token-01
;; we implement the sip-010
;; In mainnet use https://explorer.stacks.co/txid/SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.sip-10-ft-standard
;; for testnet
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.sip-010.ft-trait)
;; (impl-trait sip-10-ft-standard.ft-trait)
;; constants
;;
(define-fungi... | 0xc21e09dc1b652a4ef87894f2af34f9bce54bcf25644b1d8fc888696469f7011c | 19,920 | success |
ruma-v1 |
;; Interface definitions
;; test/mocknet
;; (impl-trait 'SP3QSAJQ4EA8WXEDSRRKMZZ29NH91VZ6C5X88FGZQ.nft-approvable-trait.nft-approvable-trait)
;; (impl-trait 'SP3QSAJQ4EA8WXEDSRRKMZZ29NH91VZ6C5X88FGZQ.nft-trait.nft-trait)
;; mainnet
;; (impl-trait SP3QSAJQ4EA8WXEDSRRKMZZ29NH91VZ6C5X88FGZQ.nft-approvable-trait.nft-appro... | 0xa52896bd8d3e3f8d31ce124687128f5fbd2deb788f03d0a1f91fa7f69bbf8e48 | 20,076 | success |
swapr-trait | ;; this is an SIP-010 method with an additional functions used by swapr
;; as Clarity does not support "includes", copy the needed functions, and add new ones
(define-trait swapr-trait
(
;; Transfer from the caller to a new principal
(transfer (uint principal principal) (response bool uint))
;; the huma... | 0x86361b2b4b8f05ba3cb7f9efb559568ae146317e514ee0c72817c6a1a266abf2 | 20,149 | success |
trait-swapr | ;; this is an SIP-010 method with an additional functions used by swapr
;; as Clarity does not support "includes", copy the needed functions, and add new ones
(define-trait swapr-trait
(
;; Transfer from the caller to a new principal
(transfer (uint principal principal) (response bool uint))
;; the huma... | 0x2e8fdb571815c2f2f0dbd50d7a72afbe5fa573e5499cc93cb56c37332bb43819 | 20,150 | success |
swapr | (use-trait sip-010-token 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.sip-010.ft-trait)
(use-trait swapr-token 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.swapr-trait.swapr-trait)
;; (use-trait sip-010-token .sip-010.ft-trait)
;; (use-trait swapr-token .trait-swapr.swapr-trait)
(define-constant contract-owner 'SP23DAB333... | 0xf231b86f72718ecbb5f49702959aab0de6d9d9ffcf5f4045b37c1bc249390ce5 | 20,151 | success |
narangd-token |
;; sws-token-01
;; we implement the sip-010
;; In mainnet use https://explorer.stacks.co/txid/SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.sip-10-ft-standard
;; for testnet
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.sip-010.ft-trait)
;; (impl-trait .sip-010.ft-trait)
;; constants
;;
(define-fungible-token ... | 0x6d26a7c2e5268d2b6addfcc098adf2480536c2944ecf8e4da2a5fbbb44dd094f | 20,151 | abort_by_response |
stx-token | ;; wrap the native STX token into an SRC20 compatible token to be usable along other tokens
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.sip-010.ft-trait)
;; get the token balance of owner
(define-read-only (get-balance-of (owner principal))
(begin
(ok (print (stx-get-balance owner)))
)
)
(define-re... | 0xed227e9c49257895bf5bc9aada2246e840b3820308a767811561483d64501853 | 20,151 | success |
narangd-token | (impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.sip-010.ft-trait)
;; (impl-trait .sip-010.ft-trait)
;; constants
;;
(define-fungible-token narangd-token)
(define-constant contract-owner 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF)
(define-constant not-owner-err (err u63))
(define-read-only (get-balance-of (ow... | 0x6b4f3b33414c46047d99a4dece4474b4a0c894a29948a34698374a91e860aab2 | 20,157 | success |
sws-nar-token | ;; ;; we implement the sip-010 + a mint function
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.swapr-trait.swapr-trait)
;; (impl-trait .trait-swapr.swapr-trait)
;; ;; we can use an ft-token here, so use it!
(define-fungible-token sws-nar-token)
(define-constant no-acccess-err u40)
;; implement all functions... | 0x3d2156a552d53a21c2a2ce423da19cd69d98f0cc39c0d6a842f766c2c00c22a7 | 20,159 | success |
nft-trait | (define-trait nft-trait
(
;; Last token ID, limited to uint range
(get-last-token-id () (response uint uint))
;; URI for metadata associated with the token
(get-token-uri (uint) (response (optional (string-ascii 256)) uint))
;; Owner of a given token identifier
(get-owner (uint) (response (... | 0x8597b42f6535c134604fb308876a0c46967c3eabd2aa247473b26e2468a19d93 | 20,182 | success |
swag-1000 | (impl-trait 'SPPEYAEM28YFZ2SJWTZRFK1B6MAZV09PB0TQPDR.nft-trait.nft-trait)
(define-non-fungible-token swag-1000 uint)
;; Limited to first 1000 users
(define-constant max-tokens u1000)
;; Error handling
(define-constant nft-max-reached (err u403)) ;; no more tokens availabale
(define-constant nft-not-owned-err (err u40... | 0x7246cfb663ddd90041781919961a131938d34345879d708ed7d855039c70b84d | 20,184 | success |
boomboxes-cycle-12 | (impl-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)
(define-non-fungible-token b-12 uint)
(define-constant dplyr tx-sender)
(define-constant accnt (as-contract tx-sender))
(define-constant px-addr {hashbytes: 0x13effebe0ea4bb45e35694f5a15bb5b96e851afb, version: 0x01})
(define-constant minimum-am... | 0x5d8f968111be4556a13d8d0d25f39d998a749a982d673ae6ba7180ee7ccf1f62 | 20,185 | success |
swapr-trait-v0a | ;; this is an SIP-010 method with an additional functions used by swapr
;; as Clarity does not support "includes", copy the needed functions, and add new ones
(define-trait swapr-trait
(
;; Transfer from the caller to a new principal
(transfer (uint principal principal) (response bool uint))
;; the huma... | 0xb2d8c83a14ce6436314346c34a103d9fe0c6d88ab6b16f55064599593afeed3a | 20,250 | success |
sip-010-v0a | ;; sip-010 trait
;; use https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-10-ft-standard
(define-trait ft-trait
(
;; Transfer from the caller to a new principal
(transfer (uint principal principal) (response bool uint))
;; the human readable name of the token
(get-name ()... | 0x699e7d61a3c9825532bdeb04ac0fcee1ec1b1e3d250625eb57a828b2d4f0a559 | 20,250 | success |
restricted-token-trait-v0a | (define-trait restricted-token-trait
(
;; Called to detect if a transfer restriction will take place. Returns the
;; error code that explains why the transfer failed.
(detect-transfer-restriction (uint principal principal) (response uint uint))
;; Returns human readable string for a specific transf... | 0xe77dcdcdc69d4f6f8737b9e5856441785e8a885191688f77fef228f29af03e35 | 20,252 | success |
swapr-v0a | (use-trait sip-010-token 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.sip-010-v0a.ft-trait)
(use-trait swapr-token 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.swapr-trait-v0a.swapr-trait)
(define-constant contract-owner 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF)
(define-constant no-liquidity-err (err u61))
;; (define-co... | 0xa37a51ba9151bcb3533472bf3c2bcb437944146e02802738fb9cfea8d00c6bd2 | 20,253 | success |
stx-token-v0a | ;; wrap the native STX token into an SRC20 compatible token to be usable along other tokens
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.sip-010-v0a.ft-trait)
;; get the token balance of owner
(define-read-only (get-balance-of (owner principal))
(begin
(ok (print (stx-get-balance owner)))
)
)
(defin... | 0x453a3c38d7257c05480e3032d265c18615e1e22ecc8b3dd5751f0abcae0069b5 | 20,255 | success |
plaid-token-v0a | ;; wrap the native STX token into an SRC20 compatible token to be usable along other tokens
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.sip-010-v0a.ft-trait)
(define-fungible-token plaid)
;; get the token balance of owner
(define-read-only (get-balance-of (owner principal))
(ok (ft-get-balance plaid owne... | 0xc9a7890a3cc0a9edf601bb3bab7e65be7236767ea1c11e209e7dd117ca142e1d | 20,257 | success |
plaid-stx-token-v0a | ;; ;; we implement the sip-010 + a mint function
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.swapr-trait-v0a.swapr-trait)
;; ;; we can use an ft-token here, so use it!
(define-fungible-token plaid-stx-token)
(define-constant no-acccess-err u40)
;; implement all functions required by sip-010
(define-publi... | 0x42a0b19cb2a971afefaafad2d037123084ed890903a706bc98e4fe79c8acde7f | 20,258 | success |
thing-token-v0a | ;; wrap the native STX token into an SRC20 compatible token to be usable along other tokens
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.sip-010-v0a.ft-trait)
(define-fungible-token thing)
;; get the token balance of owner
(define-read-only (get-balance-of (owner principal))
(ok (ft-get-balance thing owne... | 0xfe046e409da60e9057e0b77d7454dde3800d134a614c702beae88438edee2d0f | 20,262 | success |
plaid-thing-token-v0a | ;; ;; we implement the sip-010 + a mint function
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.swapr-trait-v0a.swapr-trait)
;; ;; we can use an ft-token here, so use it!
(define-fungible-token plaid-thing-token)
(define-constant no-acccess-err u40)
;; implement all functions required by sip-010
(define-pub... | 0xcfd3be2333aa314ae119749bf7fcd442b1d1477bf4fcd613c54ad579f48d95d0 | 20,265 | success |
tokensoft-token-v0a | ;; Implement the `ft-trait` trait defined in the `ft-trait` contract - SIP 10
;; This can use sugared syntax in real deployment (unit tests do not allow)
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.sip-010-v0a.ft-trait)
;; ;; Implement the token restriction trait
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07... | 0x40720171cd6543feb77a2f0dbe12b59fe72becdbaa188d521714aa87a20a6999 | 20,267 | success |
tokensoft-stx-token-v0a | ;; ;; we implement the sip-010 + a mint function
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.swapr-trait-v0a.swapr-trait)
;; ;; we can use an ft-token here, so use it!
(define-fungible-token tokensoft-stx-token)
(define-constant no-acccess-err u40)
;; implement all functions required by sip-010
(define-p... | 0x49f34187be3caec3c3c50866ca0b663be67c3b77de19b8b6795f96c856cc8452 | 20,268 | success |
micro-nthng-v0 | (define-fungible-token micro-nothing)
(define-data-var total-supply uint u0)
(define-read-only (get-total-supply)
(var-get total-supply))
(define-private (mint! (account principal) (amount uint))
(if (<= amount u0)
(err u0)
(begin
(var-set total-supply (+ (var-get total-supply) amount))
... | 0x7ba4d47b734b7d39ace9b753b100574df6526f63ea53f7a6bd802a4165c82ef3 | 20,269 | success |
wrapped-nothing-v0 | (define-constant ERR-UNAUTHORIZED u1)
(define-constant ERR-YOU-POOR u2)
(define-fungible-token wrapped-nthng)
(define-data-var token-uri (optional (string-utf8 256)) none)
(define-constant contract-creator tx-sender)
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.sip-010-v0a.ft-trait)
(define-public (donate (a... | 0xf5c50864d755ec26cdad1bc0b19deb7067ed042dc581b5381219f5f8ad1e0281 | 20,270 | success |
plaid-wmno-token-v0 | ;; ;; we implement the sip-010 + a mint function
(impl-trait 'SP23DAB333A5CPFXNK13E5YMX1DZJ07112QNZEBCF.swapr-trait-v0a.swapr-trait)
;; ;; we can use an ft-token here, so use it!
(define-fungible-token plaid-wrapped-nothing-token)
(define-constant no-acccess-err u40)
;; implement all functions required by sip-010
(... | 0xccb28faf171d5de3c118de21ab650bb8ec8a99e2c38769e7c78d66a9dca8c883 | 20,272 | success |
BNS-migrated-helper | (define-read-only (get-migrated-names (owner principal))
(at-block (unwrap-panic (get-block-info? id-header-hash u1)) (contract-call? 'SP000000000000000000002Q6VF78.bns resolve-principal owner))
) | 0x9c2ccd442df1b2ffc09b7948f58f0cc263fd24d9af71e48e3c56d1f9fc1dd635 | 21,305 | success |
fari-token | (define-trait sip-010-trait
(
;; Transfer from the caller to a new principal
(transfer (uint principal principal (optional (buff 34))) (response bool uint))
;; the human readable name of the token
(get-name () (response (string-ascii 32) uint))
;; the ticker symbol, or empty if none
... | 0xd9d18a8210603ada8f0b231cea636ea37975fa55b769b7b137b22eb483f26aa1 | 21,360 | success |
stxpredict_v5 | ;; This is stxpredict - A prediction market on Stacks - v5
;; Create a new market by sending description, resolver account, resolve type: auto or manual and resolve date/time.
;; Once resolve date/time has passed, resolver can call resolveMarket with the final result. Users will manually exit markets.
;; For Auto resol... | 0x4dbac2af76da1e1e6078fe6cdaf871258223863cd0bb3165b738e20ab90d6f38 | 21,379 | success |
resolver_v1_coinbase_btc | (define-constant openOracleSource "coinbase")
(define-constant openOracleSymbol "BTC")
(define-read-only (readMarketThreshold (marketId int))
(begin
(contract-call? 'SP15RGYVK9ACFQWMFFA2TVASDVZH38B4VATY8CJ01.stxpredict_v5 readMarketThreshold marketId)
)
)
;; public function for a user to call to request resol... | 0x5e31c4f4f1e28601fae381cec30015e183d4f0e5eed73a9c5742d4fed8592a7a | 21,386 | success |
resolver_v1_coinbase_btc | (define-constant openOracleSource "coinbase")
(define-constant openOracleSymbol "BTC")
(define-read-only (readMarketThreshold (marketId int))
(begin
(contract-call? 'SP15RGYVK9ACFQWMFFA2TVASDVZH38B4VATY8CJ01.stxpredict_v5 readMarketThreshold marketId)
)
)
;; public function for a user to call to request resol... | 0x5e31c4f4f1e28601fae381cec30015e183d4f0e5eed73a9c5742d4fed8592a7a | 21,387 | success |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.