contract_name stringlengths 1 40 | code_body stringlengths 0 100k | txid stringlengths 66 66 | block_height int32 0 165k | status stringclasses 3
values |
|---|---|---|---|---|
pox | ;; PoX mainnet constants
;; Min/max number of reward cycles uSTX can be locked for
(define-constant MIN_POX_REWARD_CYCLES u1)
(define-constant MAX_POX_REWARD_CYCLES u12)
;; Default length of the PoX registration window, in burnchain blocks.
(define-constant PREPARE_CYCLE_LENGTH u100)
;; Default length of the PoX rewa... | 0x41356e380d164c5233dd9388799a5508aae929ee1a7e6ea0c18f5359ce7b8c33 | 0 | success |
lockup | (define-map lockups uint (list 4430 { recipient: principal, amount: uint }))
(define-read-only (get-lockups (stx-block-height-opt (optional uint)))
(let ((stx-block-height (default-to block-height stx-block-height-opt)))
(let ((due-schedules (default-to (list) (map-get? lockups stx-block-height))))
... | 0x5f7a2bbff6e954b3fc2d8706afe72a6abc01196ebec1044728ee34446189aeaa | 0 | success |
costs | ;; the .costs contract
;; Helper Functions
;; Return a Cost Specification with just a runtime cost
(define-private (runtime (r uint))
{
runtime: r,
write_length: u0,
write_count: u0,
read_count: u0,
read_length: u0,
})
;; Linear cost-assessment function
(define-private... | 0xdc739522520ffb17ba4ed54a7651f61460279bbae1429e8d33dac06e07820743 | 0 | success |
cost-voting | ;; The .cost-voting contract
;; error codes
(define-constant ERR_NO_SUCH_PROPOSAL 1)
(define-constant ERR_AMOUNT_NOT_POSITIVE 2)
(define-constant ERR_PROPOSAL_EXPIRED 3)
(define-constant ERR_VOTE_ENDED 4)
(define-constant ERR_INSUFFICIENT_FUNDS 5)
(define-constant ERR_FT_TRANSFER ... | 0xd8b9b61b87bc82c88b5446b9d09da0c8f699712e38042298b714ca9aa990eb46 | 0 | success |
bns | ;;;; Errors
(define-constant ERR_PANIC 0)
(define-constant ERR_NAMESPACE_PREORDER_NOT_FOUND 1001)
(define-constant ERR_NAMESPACE_PREORDER_EXPIRED 1002)
(define-constant ERR_NAMESPACE_PREORDER_ALREADY_EXISTS 1003)
(define-constant ERR_NAMESPACE_UNAVAILABLE 1004)
(define-constant ERR_NAMESPACE_NOT_FOUND 1005)
(define-con... | 0xd8a9a4528ae833e1894eee676af8d218f8facbf95e166472df2c1a64219b5dfb | 0 | success |
genesis | ;; Stacks 2.0 Genesis
(print "``... to be a completely separate network and separate block chain, yet share CPU power with Bitcoin`` - Satoshi Nakamoto")
| 0xa57c1b5e787712d833a330647e3efee17f6bb24de48044ea44c10fdf4f82ef23 | 0 | success |
badges | (define-non-fungible-token badge uint)
(define-constant creator (print tx-sender))
(define-data-var last-id uint u0)
(define-data-var max-badges uint u0)
(define-map owners principal {id: uint})
(define-map meta uint {user: principal})
(define-private (asserts-panic (value bool))
(unwrap-panic (if value (some value... | 0xb874ddbb4a602c22bb5647c7a2f8bfcafbbca7c0c663a175f2270ef3665f33de | 32 | success |
hello-world | (begin (print "hello, world")) | 0xd7780d1d9bae60c282fb99021b31913ea1609edaf2937b8c0948e984406513b5 | 438 | success |
forever |
;; forever.arcade.city
(print "Is this thing on?")
| 0xf10a09b859ed8e5130f6fcbe292c04a5b5dc35702889a84e38e489ba990ef0e5 | 442 | success |
forever-test |
;; forever.arcade.city
(print "LOUD NOISES")
| 0xe7a5d7844bb1520ffd05e34fc913be8a65d94987762ff8f13d14264086c5b5aa | 444 | success |
contract-11001881605 | ;; DEPLOY CONTRACT
;;
;; Demonstrates how to publish a simple contract, then call it.
;; -> Before you proceed, sign in using the button in the top right corner.
;; Defining a simple function to get your stx balance:
(define-read-only (my-stx-balance)
(stx-get-balance contract-caller))
;; Verifying the function r... | 0x6735e73a786cf47d843bbf330eefba73c8883784d9fb9f5aaea7933f3c0ca0d2 | 448 | success |
counter-test |
(define-data-var counter int 0)
(define-public (get-counter)
(ok (var-get counter)))
(define-public (increment)
(begin
(var-set counter (+ (var-get counter) 1))
(ok (var-get counter))))
(define-public (decrement)
(begin
(var-set counter (- (var-get counter) ... | 0x9cc09150aa906ca671b2789ae613e9ee0b9ae214bc93f637c2d324a4ed0ec434 | 453 | success |
bright-lime-chameleon | ;; hello-world contract
(define-constant sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)
(define-constant recipient 'SP266DY8151JHQRA7WTPK1MXJHA9F56XA9YXKT8VJ)
(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-... | 0x1858f35fa789e23df82765e3a7b02a48cdb053a237dc94ab483ca961dfe79210 | 887 | abort_by_response |
bright-lime-chameleon | ;; status contract
(define-map statuses
(
(author principal)
)
(
(status (buff 512))
)
)
(define-read-only (get-status (author principal))
(begin
(print author)
(default-to ""
(get status (map-get? statuses {author: author}))
)
)
)
(define-public (write-status!
(status (buff... | 0xe2b4e4576fe2d404292ed813099d715121f555564859933f3b05b0054ea18ff6 | 887 | abort_by_response |
bright-lime-chameleon | ;; status contract
(define-map statuses
(
(author principal)
)
(
(status (buff 512))
)
)
(define-read-only (get-status (author principal))
(begin
(print author)
(default-to ""
(get status (map-get? statuses {author: author}))
)
)
)
(define-public (write-status!
(status (buff... | 0x3ec463b560140a3338f7051fd0cb744dd07e912a2a5dc87a3c6d7f5f519c01fc | 887 | abort_by_response |
bright-lime-chameleon | interface FinishedTxData {
stacksTransaction: StacksTransaction;
txRaw: string;
txId: string;
} | 0x7a19a4e58a12a097fa9ea9e7728f58d1a6f4ef309b1be0f1f538ff51d75e32aa | 890 | abort_by_response |
bright-lime-chameleon | interface FinishedTxData {
stacksTransaction: StacksTransaction;
txRaw: string;
txId: string;
} | 0x4e351c0ebfe14804cad98a540cc3795f073a5a30f7414a4c7606d1e9f3f1ff40 | 890 | abort_by_response |
bright-lime-chameleon | interface FinishedTxData {
stacksTransaction: StacksTransaction;
txRaw: string;
txId: string;
} | 0x1aa2f3baf488425594dc0dd7b55e6ee7f0b948574a5db9294efc435eb00eedf2 | 890 | abort_by_response |
bright-lime-chameleon | interface FinishedTxData {
stacksTransaction: StacksTransaction;
txRaw: string;
txId: string;
} | 0x75640341e402542ed1dfd977c8db16d7503c1de496e264cbbdce078094d0a743 | 890 | abort_by_response |
bright-lime-chameleon | interface FinishedTxData {
stacksTransaction: StacksTransaction;
txRaw: string;
txId: string;
} | 0xc57fee53afc2fbdc84627f07786a5a36b36739abdb96d7696a83d3dc0ac2498d | 890 | abort_by_response |
bright-lime-chameleon | interface FinishedTxData {
stacksTransaction: StacksTransaction;
txRaw: string;
txId: string;
} | 0x89822775f7d00a50da62e993b99b5d1019f4820b54fbabd89b1b7fdef05b2a68 | 890 | abort_by_response |
bright-lime-chameleon | interface FinishedTxData {
stacksTransaction: StacksTransaction;
txRaw: string;
txId: string;
} | 0xd43e2c5b1ad8b4e0b38745fae28a5f9558bbff5b5ac1a3522c4b560222aaab38 | 890 | abort_by_response |
bright-lime-chameleon | interface FinishedTxData {
stacksTransaction: StacksTransaction;
txRaw: string;
txId: string;
} | 0x5d8c680a12a30f721ba7d92b3f34c780bf4e54f58432e10b1563149f94dedcaf | 890 | abort_by_response |
boom-nfts | (define-non-fungible-token boom uint)
(define-data-var last-id uint u0)
(define-map meta uint
(tuple
(creator principal)
(creator-name (optional (tuple (namespace (buff 20)) (name (buff 48)))))
(series-name (string-utf8 80))
(number uint)
(name (string-utf8 80))
(uri (string-ascii 2048))
... | 0xfbf5125588bdb720864686862364e0fe37a42099f8ed073061d258f8d9c40b4e | 1,378 | success |
send_many | ;; send-many
(define-private (send-stx (recipient { to: principal, ustx: uint }))
(stx-transfer? (get ustx recipient) tx-sender (get to recipient)))
(define-private (check-err (result (response bool uint))
(prior (response bool uint)))
(match prior ok-value result
err-value... | 0xada2e1301df587342fca2b23a5c137acca57876c9a198ceaea40145ee725f205 | 1,403 | success |
send-many | ;; send-many
(define-private (send-stx (recipient { to: principal, ustx: uint }))
(stx-transfer? (get ustx recipient) tx-sender (get to recipient)))
(define-private (check-err (result (response bool uint))
(prior (response bool uint)))
(match prior ok-value result
err-value... | 0x59665b756dc0fa9efb3fca9e05a28f572c9b14ca894c115fd3e7d81a563e14f8 | 1,405 | success |
cartman-stacking-consultancy | (define-constant yo-mama-jokes (list
"Yo mama's so poor she can't even pay attention"
"Yo mama's so poor the ducks throw bread at her"
"Yo mama's so poor when she goes to KFC, she has to lick other people's fingers"
"Yo mama's so poor, when she heard about the Last Supper she thought she was running out of food stamps"... | 0x41e12e9a8131e430645cf4172e0d4d11a29a258dee196d9a1ed7c4da38d4577e | 2,592 | abort_by_response |
cartman-stacking-consultancy | (define-constant yo-mama-jokes (list
"Yo mama's so poor she can't even pay attention"
"Yo mama's so poor the ducks throw bread at her"
"Yo mama's so poor when she goes to KFC, she has to lick other people's fingers"
"Yo mama's so poor, when she heard about the Last Supper she thought she was running out of food stamps"... | 0x85c857d3f152ce216b90098ba855cd53c204024580be0a4575504d29f6c9bfcd | 2,598 | success |
cartman-stacking-consulting | (define-constant yo-mama-jokes (list
"Yo mama's so poor she can't even pay attention"
"Yo mama's so poor the ducks throw bread at her"
"Yo mama's so poor when she goes to KFC, she has to lick other people's fingers"
"Yo mama's so poor, when she heard about the Last Supper she thought she was running out of food stamps"... | 0xf8726438e3c456a5f2e07ad70ac0d69c122df1d0ac050dbfb6de1d4403f7443d | 2,600 | abort_by_response |
cartman-stacking-consulting | (define-constant yo-mama-jokes (list
"Yo mama's so poor she can't even pay attention"
"Yo mama's so poor the ducks throw bread at her"
"Yo mama's so poor when she goes to KFC, she has to lick other people's fingers"
"Yo mama's so poor, when she heard about the Last Supper she thought she was running out of food stamps"... | 0xa6974dd317fda4229fad90ed2f4fcf05163d12c48a4c7e1a4d67bd10f4d6a453 | 2,602 | success |
boom-nfts | (define-non-fungible-token boom uint)
(define-data-var last-id uint u0)
(define-data-var last-series-id uint u0)
(define-map meta uint
(tuple
(series-id uint)
(number uint)
(name (string-utf8 80))
(uri (string-ascii 2048))
(mime-type (string-ascii 129))
(hash (buff 64))
))
(define-map in... | 0xb3357063f579ea9805b774ef30dd94e9009e353456e669c666f2e81ea0ad4d0c | 3,106 | abort_by_response |
boom-nfts | (define-non-fungible-token boom uint)
(define-data-var last-id uint u0)
(define-data-var last-series-id uint u0)
(define-map meta uint
(tuple
(series-id uint)
(number uint)
(name (string-utf8 80))
(uri (string-ascii 2048))
(mime-type (string-ascii 129))
(hash (buff 64))
))
(define-map in... | 0xeefe9c848bfe32fb5d734a238f42413ed8a6c638f8d0f9f48b319f19d9611d25 | 3,109 | success |
send-many-memo |
;; send-many
(define-public (send-stx-with-memo (ustx uint) (to principal) (memo (buff 34)))
(let ((transfer-ok (try! (stx-transfer? ustx tx-sender to))))
(print memo)
(ok transfer-ok)))
(define-private (send-stx (recipient { to: principal, ustx: uint, memo: (buff 34) }))
(send-stx-with-memo
(get ustx r... | 0x8dcfeddfefd983c450ac59676916063e95240c2318cca1e3684ae86db85c452a | 3,244 | success |
nothing | (define-fungible-token nothing u42)
(define-public (buy-nothing)
(if (> (ft-get-supply nothing) u42)
(if (is-eq (unwrap-panic (stx-burn? u101010 tx-sender)) true)
(ft-mint? nothing u1 tx-sender)
(err u0))
(err u0)))
(define-public (transfer (to principal) (amount uint))
(ft-transfer?... | 0x2c70e131cb485ded44b8f6bf28e84839083f978b71b4c070635bb0997b266e92 | 4,758 | success |
nothing | (define-fungible-token nothing u42)
(define-public (buy-nothing)
(if (> (ft-get-supply nothing) u42)
(if (is-eq (unwrap-panic (stx-burn? u101010 tx-sender)) true)
(ft-mint? nothing u1 tx-sender)
(err u0))
(err u0)))
(define-public (transfer (to principal) (amount uint))
(ft-transfer?... | 0x2c70e131cb485ded44b8f6bf28e84839083f978b71b4c070635bb0997b266e92 | 4,758 | success |
nthng | (define-fungible-token nothing u42)
(define-public (buy-nothing)
(if (< (ft-get-supply nothing) u42)
(if (unwrap-panic (stx-burn? u101010 tx-sender))
(ft-mint? nothing u1 tx-sender)
(err u0))
(err u0)))
(define-public (transfer (to principal) (amount uint))
(ft-transfer? nothing amou... | 0x104ff96793569113506ea4929b6c2aed3da27bfafbefa311aeb8656d36efb744 | 4,759 | success |
micro-nothing | ;; copyright: (c) 2013-2019 by Blockstack PBC, a public benefit corporation.
;; This file is part of Blockstack.
;; Blockstack is free software. You may redistribute or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License ... | 0x0ab542ced032b23565a15e08c13894e5b73669fe4b9df9bccd555ef680637f22 | 4,880 | abort_by_response |
micro-nothing | ;; copyright: (c) 2013-2019 by Blockstack PBC, a public benefit corporation.
;; This file is part of Blockstack.
;; Blockstack is free software. You may redistribute or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License ... | 0x3da867aa55d33cac8ba7cfc083a8fba7f46f3b61b52ca623c885c2d6b6a7053d | 4,882 | abort_by_response |
micro-nothing | ;; copyright: (c) 2013-2019 by Blockstack PBC, a public benefit corporation.
;; This file is part of Blockstack.
;; Blockstack is free software. You may redistribute or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License ... | 0xa6277c04467e3ca0aab109238008ac8b03cc51e870024702c21bcf26eeb14fd5 | 4,884 | abort_by_response |
micro-nothing | ;; copyright: (c) 2013-2019 by Blockstack PBC, a public benefit corporation.
;; This file is part of Blockstack.
;; Blockstack is free software. You may redistribute or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License ... | 0x4990e733dba860db56fb9200db85885a99432424adf0dfe97e098f58f1b75b2f | 4,885 | abort_by_response |
micro-nothing | ;; copyright: (c) 2013-2019 by Blockstack PBC, a public benefit corporation.
;; This file is part of Blockstack.
;; Blockstack is free software. You may redistribute or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License ... | 0xea87751126b333db328c20e47ce312100a64e10d34c05434bb096bc2151febfe | 4,885 | abort_by_response |
pool-tool | (define-constant contract-creator tx-sender)
(define-constant err-delegate-stack-stx u100)
(define-private (check-err-stacking (list-item (response (tuple (lock-amount uint) (stacker principal) (unlock-burn-height uint)) (tuple (kind (string-ascii 32)) (code uint)))) (result bool))
(match list-item
ok-value resu... | 0x86434ae126b9d9f1f161a2a04ea82ff132519be2c048f50ac0a398bff4066611 | 4,994 | abort_by_response |
pool-tool | (define-constant contract-creator tx-sender)
(define-constant err-delegate-stack-stx u100)
(define-private (check-err-stacking (list-item (response (tuple (lock-amount uint) (stacker principal) (unlock-burn-height uint)) (tuple (kind (string-ascii 32)) (code uint)))) (result bool))
(match list-item
ok-value resu... | 0xb207840aed70713bc6e61df631efe4b6cfcb34c93b1ad1ca2a0ae2fa0f014694 | 4,996 | success |
pool-tool-v1 | (define-constant contract-creator tx-sender)
(define-constant err-delegate-stack-stx u100)
(define-private (check-err-stacking (list-item (response (tuple (lock-amount uint) (stacker principal) (unlock-burn-height uint)) (tuple (kind (string-ascii 32)) (code uint)))) (result bool))
(match list-item
ok-value resu... | 0xf05cd5474faccaa6cf695aa28a4e62318cd8970c61f4d0fcd818cc9e3f313984 | 5,030 | success |
micro-nothing | ;; copyright: (c) 2013-2019 by Blockstack PBC, a public benefit corporation.
;; This file is part of Blockstack.
;; Blockstack is free software. You may redistribute or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License ... | 0xa4b0a9105c5c756b69a70689abdb9cf5cdc7b0633d517c805fd074ca25b83f4d | 5,236 | success |
micro-nothing | ;; copyright: (c) 2013-2019 by Blockstack PBC, a public benefit corporation.
;; This file is part of Blockstack.
;; Blockstack is free software. You may redistribute or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License ... | 0xa4b0a9105c5c756b69a70689abdb9cf5cdc7b0633d517c805fd074ca25b83f4d | 5,234 | success |
micro-nthng | (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))
... | 0x9cb33d416598d7ff6abb1a2e941cc7afd99d2a2e06f1570d64d326fffcea9ceb | 5,235 | success |
micro-nthng | (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))
... | 0x9cb33d416598d7ff6abb1a2e941cc7afd99d2a2e06f1570d64d326fffcea9ceb | 5,237 | success |
something | (define-fungible-token something)
(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))
(... | 0x106228ad1543d3dae14b657cb594f3eaf587badf4fdaf9551947040f53ef567f | 5,478 | success |
send-many-nthng | ;; copied from
;; https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.send-many-memo?chain=mainnet
;; thanks for help <3
;; send-many
(define-public (send-nothing (to principal))
;; (let ((transfer-ok (print true)))
(let ((transfer-ok (contract-call? 'SP32AEEF6WW5Y0NMJ1S8SBSZDAY8R5J32NBZFPKKZ.m... | 0xf26a283715aaf55d8ec7c3b09ddf9d456a60842a4555988e2e22563a8613ba47 | 5,572 | abort_by_response |
send-many-nthng | ;; copied from
;; https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.send-many-memo?chain=mainnet
;; thanks for help <3
;; send-many
(define-public (send-nothing (to principal))
(let ((transfer-ok (contract-call? .micro-nthng transfer to 100000)))
(ok transfer-ok)))
(define-private (check-e... | 0x4612b5870598831b639fef50311765cd0024055aff9c9453cba42ee3adb5ce4a | 5,575 | abort_by_response |
send-many-nthng | ;; copied from
;; https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.send-many-memo?chain=mainnet
;; thanks for help <3
;; send-many
(define-private (send-nothing (to principal))
(let ((transfer-ok (try! (contract-call? .micro-nthng transfer to 100000))))
(ok transfer-ok)))
(define-private ... | 0x44a519c8a27ca2d008d7ccd759ad80439aef1518d562e440dd6d7f0c824c07f9 | 5,576 | abort_by_response |
send-many-nthng | ;; copied from
;; https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.send-many-memo?chain=mainnet
;; thanks for help <3
;; send-many
(define-private (send-nothing (to principal))
(let ((transfer-ok (try! (contract-call? .micro-nthng transfer to 100000))))
(ok transfer-ok)))
(define-private ... | 0x44a519c8a27ca2d008d7ccd759ad80439aef1518d562e440dd6d7f0c824c07f9 | 5,577 | abort_by_response |
send-many-nthng | ;; copied from
;; https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.send-many-memo?chain=mainnet
;; thanks for help <3
;; send-many
(define-public (send-nothing (to principal))
(let ((transfer-ok (contract-call? 'SP32AEEF6WW5Y0NMJ1S8SBSZDAY8R5J32NBZFPKKZ.micro-nthng transfer to u100000)))
(... | 0x98f2ce1266950a114efc9c1cef16c5c42e46e5986589b7d3de69c90f65e52b51 | 5,580 | abort_by_response |
send-many-nthng | ;; copied from
;; https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.send-many-memo?chain=mainnet
;; thanks for help <3
;; send-many
(define-public (send-nothing (to principal))
(let ((transfer-ok (contract-call? 'SP32AEEF6WW5Y0NMJ1S8SBSZDAY8R5J32NBZFPKKZ.micro-nthng transfer to u100000)))
(... | 0x84622aebdc6521f986a3eac58ac7b49505fd90c1e33a64645ddb180e81605655 | 5,582 | abort_by_response |
send-many-nthng | ;; copied from
;; https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.send-many-memo?chain=mainnet
;; thanks for help <3
;; send-many
(define-public (send-nothing (to principal))
(let ((transfer-ok (contract-call? 'SP32AEEF6WW5Y0NMJ1S8SBSZDAY8R5J32NBZFPKKZ.micro-nthng transfer to u100000)))
(... | 0x84622aebdc6521f986a3eac58ac7b49505fd90c1e33a64645ddb180e81605655 | 5,582 | abort_by_response |
send-many-nthng | ;; copied from
;; https://explorer.stacks.co/txid/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.send-many-memo?chain=mainnet
;; thanks for help <3
(define-private (send-nothing (to principal))
(try! (contract-call? .micro-nthng transfer to u100000)))
(define-public (airdrop (recipients (list 750 principal)) (amount uin... | 0x3ea1a18c4fce92cfedfa1c71a0d50f2a75f5b72e510e60b4edccfc1b11e0d7d2 | 5,586 | abort_by_response |
wrapped-nthng | (define-data-var total-supply uint u0)
(define-fungible-token wrapped-token)
(define-read-only (get-total-supply)
(ok (var-get total-supply)))
(define-read-only (get-balance-of (owner principal))
(begin
(ok (ft-get-balance wrapped-token owner))
))
(define-read-only (get-name)
(ok "wrapped-nothing"))
... | 0x01ff7c5d3c2d5ce52353fdf0d1d0b95b16db5c18618c94d4e7ed39c48bed122e | 5,603 | abort_by_response |
KMKZ-Gaia | (define-fungible-token Kamikaze)
(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))
(f... | 0xc0ffecfd38165bb96edd356159a0f68dc230b0bd0f2f825e29ecbad78f170a51 | 5,817 | success |
send-many-nthng | (define-public (send-micro-nothing (amount uint) (to principal))
(let ((transfer-ok (try! (contract-call? .micro-nthng transfer to amount))))
(ok transfer-ok)))
(define-private (check-err (result (response bool uint))
(prior (response bool uint)))
(match prior ok-value result
... | 0xd9d3d363fa2350e822357b839964afeb507a36f1eee60ac7cd9969a84d03ebd1 | 6,125 | abort_by_response |
shit | (define-constant shit-creator tx-sender)
(define-data-var token-uri (string-utf8 265) u"")
(define-constant ERR-UNAUTHORIZED u1)
(define-constant ERR-YOU-POOR u2)
(define-fungible-token shit)
(define-data-var total-supply uint u0)
(define-private (is-creator) (is-eq tx-sender shit-creator))
(define-private (increase-... | 0xd9588379fc661f9fc0383a77aadc8d8929fb48cf5ae0aaf80dada3c286f1774b | 6,506 | success |
xverse-pool-v1 | ;;(impl-trait 'SP000000000000000000002Q6VF78.pool-registry.pox-trait))
(define-constant err-missing-user-pox-addr u100)
(define-constant err-map-set-failed u101)
(define-constant err-pox-failed u102)
(define-constant err-delegate-below-minimum u103)
(define-constant err-missing-user u104)
(define-constant err-non-posit... | 0x80b49c0e6b16c7f8cc3e654061f875d84a671a67bb5bf950b1c4535c05db00aa | 6,515 | success |
xverse-pool-v1 | ;;(impl-trait 'SP000000000000000000002Q6VF78.pool-registry.pox-trait))
(define-constant err-missing-user-pox-addr u100)
(define-constant err-map-set-failed u101)
(define-constant err-pox-failed u102)
(define-constant err-delegate-below-minimum u103)
(define-constant err-missing-user u104)
(define-constant err-non-posit... | 0x80b49c0e6b16c7f8cc3e654061f875d84a671a67bb5bf950b1c4535c05db00aa | 6,516 | success |
boom-nfts-50 | (define-non-fungible-token boom uint)
(define-data-var last-id uint u0)
(define-data-var last-series-id uint u0)
(define-map meta uint
(tuple
(series-id uint)
(number uint)
(name (string-utf8 80))
(uri (string-ascii 2048))
(mime-type (string-ascii 129))
(hash (buff 64))
))
(define-map in... | 0x423d113e14791f5d60f5efbee19bbb05cf5e68d84bcec4e611f2c783b08d05aa | 6,628 | success |
wrapped-nothing | (define-constant ERR-UNAUTHORIZED u1)
(define-constant ERR-YOU-POOR u2)
(define-fungible-token wrapped-nthng)
(define-data-var token-uri (string-utf8 256) u"")
(define-constant contract-creator tx-sender)
(define-public (wrap-nthng (amount uint) (recipient principal))
(if
(is-ok
(contract-call... | 0xf3f0c5c143999ac223ea8dbd2db392eeacd1e432e294ae34ddff99c15497c558 | 6,630 | success |
wrapped-nothing-v2 | (define-constant ERR-UNAUTHORIZED u1)
(define-constant ERR-YOU-POOR u2)
(define-fungible-token wrapped-nthng)
(define-data-var token-uri (string-utf8 256) u"")
(define-constant contract-creator tx-sender)
(define-public (wrap-nthng (amount uint) (recipient principal))
(if
(is-ok
(contract-call... | 0x0e58f66c1d4f32cc4d527c084d205923a87bb86e2b771006f77dba54b5777771 | 6,630 | success |
xverse-pool-v1 | ;;(impl-trait 'SP000000000000000000002Q6VF78.pool-registry.pox-trait))
(define-constant err-missing-user-pox-addr u100)
(define-constant err-map-set-failed u101)
(define-constant err-pox-failed u102)
(define-constant err-delegate-below-minimum u103)
(define-constant err-missing-user u104)
(define-constant err-non-posit... | 0x3e1c64f66cb7a59186dc9e07a10498020868811e49fea14146d7b40ecbf809c8 | 6,636 | success |
wrapped-nothing-v3 | (define-constant ERR-UNAUTHORIZED u1)
(define-constant ERR-YOU-POOR u2)
(define-fungible-token wrapped-nthng)
(define-data-var token-uri (string-utf8 256) u"")
(define-constant contract-creator tx-sender)
(define-public (wrap-nthng (amount uint))
(if
(is-ok
(contract-call? .micro-nthng transfe... | 0x09f80bfa10120044321afef41926257d7c3c9451c78e899b79284375905026ce | 6,642 | success |
wrapped-nothing-v4 | (define-constant ERR-UNAUTHORIZED u1)
(define-constant ERR-YOU-POOR u2)
(define-fungible-token wrapped-nthng)
(define-data-var token-uri (string-utf8 256) u"")
(define-constant contract-creator tx-sender)
(define-public (donate (amount uint))
(stx-transfer? amount tx-sender contract-creator))
(define-public (wr... | 0x7f3bca76a0c4f3005b8c75049f66404b1d0143d277f51f3924c86a112baa6dea | 6,642 | success |
wrapped-nothing-v5 | (define-constant ERR-UNAUTHORIZED u1)
(define-constant ERR-YOU-POOR u2)
(define-fungible-token wrapped-nthng)
(define-data-var token-uri (string-utf8 256) u"")
(define-constant contract-creator tx-sender)
(define-public (donate (amount uint))
(stx-transfer? amount tx-sender contract-creator))
(define-public (wr... | 0xbadc313324124e5cb117e399e6254473cff9123fb165d5c3e1192e7ae30232af | 6,644 | success |
miner-registry | (define-map block-miners {block-number: uint} {miner: principal})
(define-constant ERR-BLOCK-SEQUENCE-INVALID u1000)
(define-data-var current-block-ht uint u0)
(define-private (register-block (block-number uint))
(let ((next-block (+ (var-get current-block-ht) u1)))
(asserts! (and (is-eq block-number next-blo... | 0xc2ae3c1f80f24cb72fbb5dece1ebbddbe4a8cbbfa31bc17f8b9de2e5074760da | 6,734 | abort_by_response |
miner-registry | (define-map block-miners {block-number: uint} {miner: principal})
(define-constant ERR-BLOCK-SEQUENCE-INVALID u1000)
(define-data-var current-block-ht uint u0)
(define-private (register-block (block-number uint))
(let ((next-block (+ (var-get current-block-ht) u1)))
(asserts! (and (is-eq block-number next-blo... | 0x87ee15851740b3e545ca6296b5f452ac81bf686051b0fdf271451423a5b58051 | 6,738 | success |
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 () (response (string-ascii 32) uint))
;; the ticker symbol, or empty if none
(get-symbol () (response (string-a... | 0xfdaf4e8ffad2dc5e023ab6815c8d85b3c52327e3d57c973efddab09ccb18342f | 7,432 | 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 ... | 0xe547bca01878eaaf4758a067d3f522691a8928fcade0b0a4930a825c10d082bc | 7,501 | success |
friedger-pool-nft | (impl-trait 'SP1JSH2FPE8BWNTP228YZ1AZZ0HE0064PS6RXRAY4.nft-trait.nft-trait)
(define-non-fungible-token friedger-pool uint)
;; Internals
(define-private (is-owner (token-id uint) (user principal))
(is-eq user
;; if no owner, return false
(unwrap! (nft-get-owner? friedger-pool token-id) false)))
(defi... | 0x3f85e8d2a5453179438ed00e466e38b6c4acb3d2cefa579d20389b84602a12e7 | 7,528 | success |
beeple | (impl-trait 'SP1JSH2FPE8BWNTP228YZ1AZZ0HE0064PS6RXRAY4.nft-trait.nft-trait)
(define-non-fungible-token beeple uint)
;; Public functions
(define-constant unauthorized-transfer-err (err {kind: "permission-denied", code: u3}))
(define-constant not-found-err (err {kind: "nft-not-found", code: u4}))
;; Transfers tokens to... | 0x8a8b1bd754664715c3280cb41fdf566c741789f200efa74681b79e4409e9800a | 7,539 | 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 (... | 0x80eb693e5e2a9928094792080b7f6d69d66ea9cc881bc465e8d9c5c621bd4d07 | 7,689 | 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 (... | 0x80eb693e5e2a9928094792080b7f6d69d66ea9cc881bc465e8d9c5c621bd4d07 | 7,688 | success |
beeple | (impl-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)
(define-non-fungible-token beeple 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)) ;; ... | 0x8f0393265a8a4102701ef6240b03022c567cf67f04e472e077709fe975424921 | 7,693 | success |
friedger-pool-nft | (impl-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)
(define-non-fungible-token friedger-pool uint)
;; Internals
(define-private (is-owner (token-id uint) (user principal))
(is-eq user
;; if no owner, return false
(unwrap! (nft-get-owner? friedger-pool token-id) false)))
(defi... | 0x10555a156fbd5931f2b33e843221ce73e3fd661127c64d840c3f8392dbd6887c | 7,696 | success |
cruel-moccasin-cattle | ;; hello-world contract
(define-constant sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)
(define-constant recipient 'SP2P8QYQX5PMKVBXQ9FWK8F96J8DJXXW7NB7AA5DT)
(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-... | 0x4546db55125bcb10aa633ec7c37c01ba380e621d7dcbb31db365be0934c5e8a8 | 8,194 | success |
implicit-jade-boar | (define-trait nft-trait
(
(get-last-token-id () (response uint uint))
(get-token-uri (uint) (response (optional (string-ascii 256)) uint))
(get-owner (uint) (response (optional principal) uint))
(transfer (uint principal principal) (response bool uint))))
(define-map hais {hai-id: uint}
{nam... | 0x35a9e7094fe245642fa8b4e24c1b8aacbda55718e2ae42398acbac2c8ebaa487 | 8,315 | abort_by_response |
cautious-sapphire-gorilla | (define-trait nft-trait
(
(get-last-token-id () (response uint uint))
(get-token-uri (uint) (response (optional (string-ascii 256)) uint))
(get-owner (uint) (response (optional principal) uint))
(transfer (uint principal principal) (response bool uint))))
(define-map hais {hai-id: uint}
{nam... | 0x945da0f44d226edbf4c1a0b0f967e81fae95c264e2fedaa9c77fa909179d2e49 | 8,322 | success |
cautious-sapphire-gorilla | (define-trait nft-trait
(
(get-last-token-id () (response uint uint))
(get-token-uri (uint) (response (optional (string-ascii 256)) uint))
(get-owner (uint) (response (optional principal) uint))
(transfer (uint principal principal) (response bool uint))))
(define-map hais {hai-id: uint}
{nam... | 0x945da0f44d226edbf4c1a0b0f967e81fae95c264e2fedaa9c77fa909179d2e49 | 8,322 | success |
openSTXTransfer | ;; hello-world contract
(define-constant sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)
(define-constant recipient 'SPYQQNPCW58XNBEFBCYPCTYV3G683M0YF1937P0D)
(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-f... | 0xb460b6806f21513090de3d207a4bc818b5a0067588258ac3dd6ebd917afa7e27 | 8,576 | success |
stacks-mena-participants | (define-non-fungible-token participation (string-ascii 256))
(define-constant participants
(list
{
name: "Vladimir Novachki aka Vlad, Stornest",
address: (some 'SP2T0QC6JP2DS0N3YQYNW8V9BZNTHJCW3A56ZB5KK),
}
{
name: "Simon Semaan aka planet9, ardkon.com",
address: (some 'SP1BBF4MY... | 0x2a92a663e76bf8d2a27c2db733cf42a5458f708deda46ac385275225a5b16569 | 9,349 | success |
triton-pool-v0 | ;; Error codes
(define-constant ERR_INSUFFICIENT_FUNDS 1)
(define-constant ERR_PERMISSION_DENIED 2)
(define-constant ERR_STX_TRANSFER 3)
;; Constants
(define-constant LIQUIDITY_PROVIDER 'SPYRSAYCD5JXRPG9J93R5HVHEBG2T9VBYKQ37S8W)
;; State
(define-map rewards-state
{ stacker: principal }
{ amount-ustx: uint })
... | 0xe540917ccebd257ca91dfb55098d0c081a2e39d37c3101a31510f19988392139 | 9,431 | success |
neptune-pool | ;; Error codes
(define-constant ERR_INSUFFICIENT_FUNDS 1)
(define-constant ERR_PERMISSION_DENIED 2)
(define-constant ERR_STX_TRANSFER 3)
;; Constants
(define-constant LIQUIDITY_PROVIDER 'SPYRSAYCD5JXRPG9J93R5HVHEBG2T9VBYKQ37S8W)
;; State
(define-map rewards-state
{ stacker: principal }
{ amount-ustx: uint })
... | 0xdcb844259a6b1b5ccbaef4778d3794f6cff1fce112bad6d9380282f17c384d77 | 9,528 | success |
oracle-v1b1 | (define-constant err-recover (err u61))
(define-constant err-incorrect-signature (err u62))
(define-constant err-not-owner (err u63))
(define-constant err-older-timestamp (err u64))
;; TODO(psq): change address for mainnet, change to deployment address (ORACLE_STX)
(define-constant contract-owner 'SPZ0RAC1EFTH949T4W2S... | 0x942475631258db32039e6e240425853ed16f2916f5b405c09d09c4775c9dec4d | 9,601 | success |
oracle-v1 | (define-constant err-recover (err u61))
(define-constant err-incorrect-signature (err u62))
(define-constant err-not-owner (err u63))
(define-constant err-older-timestamp (err u64))
;; TODO(psq): change address for mainnet, change to deployment address (ORACLE_STX)
(define-constant contract-owner 'SPZ0RAC1EFTH949T4W2S... | 0x2677f76c23ec33004e13d494cd9ecb1eae8718113d62103b83b262c1f920b41f | 9,659 | success |
boomboxes-cycle-6 | (impl-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)
(define-non-fungible-token boomboxes-cycle-6 uint)
(define-constant pool-deployer tx-sender)
(define-constant pool-account (as-contract tx-sender))
(define-constant pool-pox-address {hashbytes: 0x13effebe0ea4bb45e35694f5a15bb5b96e851afb, versio... | 0xe865963227144aec75259f9c1f8e67b2d2b5764a29ba88a5794a700818659748 | 9,760 | success |
counter | (define-data-var counter int 0)
(define-read-only (get-counter)
(ok (var-get counter)))
(define-public (increment)
(begin
(var-set counter (+ (var-get counter) 1))
(ok (var-get counter))))
(define-public (decrement)
(begin
(var-set counter (- (var-get counter) 1))
(ok (var-get counter)))) | 0x811d86fced26d03a299fb0a967c59be3f6f1f4ae8f496848d4e46b1265cb2f02 | 10,139 | success |
ard-funding-trait | (define-trait funding-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 () (response (string-ascii 32) uint))
;; the ticker symbol, or empty if none
(get-symbol () (response (str... | 0xe08e2a1cefe06285e320ea8927d8086ee99a58182f52cd389e6d95e9625d6323 | 10,476 | success |
ard-usd-01 | (use-trait funding-trait 'SP1R2J6JB94PMJ2DJNXV1FEHBM7CKR71W96NQKZB8.ard-funding-trait.funding-trait)
(define-fungible-token ardUSD)
;; Errors:
(define-constant ERR-not-application u401)
;; the human readable name of the token
(define-read-only (get-name)
(ok "ard USD"))
;; the ticker symbol, or empty if none PAS... | 0xf255b1fc5e5f1b24db141fe248a6298f02bc533e41fb6c7f89ee79dd44f1aba2 | 10,481 | success |
ardkon-action-funding-001 | (define-constant actionAddress (as-contract tx-sender))
;; note the contract is always deployed by ardkon application: Why? because to make sure the donations are done through the application only
(define-map fund-indices {action_id: (string-utf8 256)} {index: uint}) ;; this will enable us to get length of each of... | 0x2cfcb63e11a489fd04fcdbe01954b1809029a89e0db64e3503e6685eab19a5db | 10,484 | success |
pool-registry | ;; 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... | 0x89cff4241836c31c6a47bc268225b379f076a04709a27ec4665b7747d191d9c2 | 10,876 | success |
friedgerpool-payout-hints | ;; mapping between stacker and recipient of stacker's rewards
(define-map payout-map principal principal)
;; set receiver of the stacker's rewards
(define-public (set-payout-recipient (recipient principal))
(ok (map-set payout-map tx-sender recipient)))
;; remove receiver of the stacker's rewards. Rewards will be... | 0x2613c076562a5ab82aa6795edeb7c3b83f5d9f6c3bf191e4b46af6664cf30937 | 11,165 | success |
wrapped-nothing-v6 | (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-10-ft-standard)
(define-public (donate (amou... | 0x8683d12c9d1d418775d853fd50f22d30432856befa2b7900c8f2dc6117460f3f | 11,521 | abort_by_response |
wrapped-nothing-v6 | (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-10-ft-standard)
(define-public (donate (amo... | 0x13786cf0e6c40d58c47d51284163ea80b6e3dbbae23a2fc070412b77ffe00dd6 | 11,548 | abort_by_response |
wrapped-nothing-v6 | (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-10-ft-standard.ft-trait)
(define-public (do... | 0x022bed728d648ff1a68036c40f3aff8136ee22fee18380731df0ab9d76d3c4a9 | 11,548 | success |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.