Dataset Viewer
Auto-converted to Parquet Duplicate
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
End of preview. Expand in Data Studio

Stacks Blockchain Clarity Contract Archive

Source code for contracts deployed to Stacks mainnet.

Stats

  • Total Contracts: 39,579
  • Start Block 0
  • Endblock Block 164581

Part of Stacks AI Buildathon GitHub Repository

Downloads last month
19