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 reward cycle, in burnchain blocks. (define-constant REWARD_CYCLE_LENGTH u2100) ;; Valid values for burnchain address versions. ;; These correspond to address hash modes in Stacks 2.0. (define-constant ADDRESS_VERSION_P2PKH 0x00) (define-constant ADDRESS_VERSION_P2SH 0x01) (define-constant ADDRESS_VERSION_P2WPKH 0x02) (define-constant ADDRESS_VERSION_P2WSH 0x03) ;; Stacking thresholds (define-constant STACKING_THRESHOLD_25 u20000) (define-constant STACKING_THRESHOLD_100 u5000) ;; The .pox contract ;; Error codes (define-constant ERR_STACKING_UNREACHABLE 255) (define-constant ERR_STACKING_INSUFFICIENT_FUNDS 1) (define-constant ERR_STACKING_INVALID_LOCK_PERIOD 2) (define-constant ERR_STACKING_ALREADY_STACKED 3) (define-constant ERR_STACKING_NO_SUCH_PRINCIPAL 4) (define-constant ERR_STACKING_EXPIRED 5) (define-constant ERR_STACKING_STX_LOCKED 6) (define-constant ERR_STACKING_PERMISSION_DENIED 9) (define-constant ERR_STACKING_THRESHOLD_NOT_MET 11) (define-constant ERR_STACKING_POX_ADDRESS_IN_USE 12) (define-constant ERR_STACKING_INVALID_POX_ADDRESS 13) (define-constant ERR_STACKING_ALREADY_REJECTED 17) (define-constant ERR_STACKING_INVALID_AMOUNT 18) (define-constant ERR_NOT_ALLOWED 19) (define-constant ERR_STACKING_ALREADY_DELEGATED 20) (define-constant ERR_DELEGATION_EXPIRES_DURING_LOCK 21) (define-constant ERR_DELEGATION_TOO_MUCH_LOCKED 22) (define-constant ERR_DELEGATION_POX_ADDR_REQUIRED 23) (define-constant ERR_INVALID_START_BURN_HEIGHT 24) ;; PoX disabling threshold (a percent) (define-constant POX_REJECTION_FRACTION u25) ;; Data vars that store a copy of the burnchain configuration. ;; Implemented as data-vars, so that different configurations can be ;; used in e.g. test harnesses. (define-data-var pox-prepare-cycle-length uint PREPARE_CYCLE_LENGTH) (define-data-var pox-reward-cycle-length uint REWARD_CYCLE_LENGTH) (define-data-var pox-rejection-fraction uint POX_REJECTION_FRACTION) (define-data-var first-burnchain-block-height uint u0) (define-data-var configured bool false) ;; This function can only be called once, when it boots up (define-public (set-burnchain-parameters (first-burn-height uint) (prepare-cycle-length uint) (reward-cycle-length uint) (rejection-fraction uint)) (begin (asserts! (not (var-get configured)) (err ERR_NOT_ALLOWED)) (var-set first-burnchain-block-height first-burn-height) (var-set pox-prepare-cycle-length prepare-cycle-length) (var-set pox-reward-cycle-length reward-cycle-length) (var-set pox-rejection-fraction rejection-fraction) (var-set configured true) (ok true)) ) ;; The Stacking lock-up state and associated metadata. ;; Records can be inserted into this map via one of two ways: ;; * via contract-call? to the (stack-stx) method, or ;; * via a transaction in the underlying burnchain that encodes the same data. ;; In the latter case, this map will be updated by the Stacks ;; node itself, and transactions in the burnchain will take priority ;; over transactions in the Stacks chain when processing this block. (define-map stacking-state { stacker: principal } { ;; how many uSTX locked? amount-ustx: uint, ;; Description of the underlying burnchain address that will ;; receive PoX'ed tokens. Translating this into an address ;; depends on the burnchain being used. When Bitcoin is ;; the burnchain, this gets translated into a p2pkh, p2sh, ;; p2wpkh-p2sh, or p2wsh-p2sh UTXO, depending on the version. pox-addr: { version: (buff 1), hashbytes: (buff 20) }, ;; how long the uSTX are locked, in reward cycles. lock-period: uint, ;; reward cycle when rewards begin first-reward-cycle: uint } ) ;; Delegation relationships (define-map delegation-state { stacker: principal } { amount-ustx: uint, ;; how many uSTX delegated? delegated-to: principal, ;; who are we delegating? until-burn-ht: (optional uint), ;; how long does the delegation last? ;; does the delegate _need_ to use a specific ;; pox recipient address? pox-addr: (optional { version: (buff 1), hashbytes: (buff 20) }) } ) ;; allowed contract-callers (define-map allowance-contract-callers { sender: principal, contract-caller: principal } { until-burn-ht: (optional uint) }) ;; How many uSTX are stacked in a given reward cycle. ;; Updated when a new PoX address is registered, or when more STX are granted ;; to it. (define-map reward-cycle-total-stacked { reward-cycle: uint } { total-ustx: uint } ) ;; Internal map read by the Stacks node to iterate through the list of ;; PoX reward addresses on a per-reward-cycle basis. (define-map reward-cycle-pox-address-list { reward-cycle: uint, index: uint } { pox-addr: { version: (buff 1), hashbytes: (buff 20) }, total-ustx: uint } ) (define-map reward-cycle-pox-address-list-len { reward-cycle: uint } { len: uint } ) ;; how much has been locked up for this address before ;; committing? ;; this map allows stackers to stack amounts < minimum ;; by paying the cost of aggregation during the commit (define-map partial-stacked-by-cycle { pox-addr: { version: (buff 1), hashbytes: (buff 20) }, reward-cycle: uint, sender: principal } { stacked-amount: uint } ) ;; Amount of uSTX that reject PoX, by reward cycle (define-map stacking-rejection { reward-cycle: uint } { amount: uint } ) ;; Who rejected in which reward cycle (define-map stacking-rejectors { stacker: principal, reward-cycle: uint } { amount: uint } ) ;; Getter for stacking-rejectors (define-read-only (get-pox-rejection (stacker principal) (reward-cycle uint)) (map-get? stacking-rejectors { stacker: stacker, reward-cycle: reward-cycle })) ;; Has PoX been rejected in the given reward cycle? (define-read-only (is-pox-active (reward-cycle uint)) (let ( (reject-votes (default-to u0 (get amount (map-get? stacking-rejection { reward-cycle: reward-cycle })))) ) ;; (100 * reject-votes) / stx-liquid-supply < pox-rejection-fraction (< (* u100 reject-votes) (* (var-get pox-rejection-fraction) stx-liquid-supply))) ) ;; What's the reward cycle number of the burnchain block height? ;; Will runtime-abort if height is less than the first burnchain block (this is intentional) (define-private (burn-height-to-reward-cycle (height uint)) (/ (- height (var-get first-burnchain-block-height)) (var-get pox-reward-cycle-length))) ;; What's the block height at the start of a given reward cycle? (define-private (reward-cycle-to-burn-height (cycle uint)) (+ (var-get first-burnchain-block-height) (* cycle (var-get pox-reward-cycle-length)))) ;; What's the current PoX reward cycle? (define-private (current-pox-reward-cycle) (burn-height-to-reward-cycle burn-block-height)) ;; Get the _current_ PoX stacking principal information. If the information ;; is expired, or if there's never been such a stacker, then returns none. (define-read-only (get-stacker-info (stacker principal)) (match (map-get? stacking-state { stacker: stacker }) stacking-info (if (<= (+ (get first-reward-cycle stacking-info) (get lock-period stacking-info)) (current-pox-reward-cycle)) ;; present, but lock has expired none ;; present, and lock has not expired (some stacking-info) ) ;; no state at all none )) (define-private (check-caller-allowed) (or (is-eq tx-sender contract-caller) (let ((caller-allowed ;; if not in the caller map, return false (unwrap! (map-get? allowance-contract-callers { sender: tx-sender, contract-caller: contract-caller }) false))) ;; is the caller allowance expired? (if (< burn-block-height (unwrap! (get until-burn-ht caller-allowed) true)) false true)))) (define-private (get-check-delegation (stacker principal)) (let ((delegation-info (try! (map-get? delegation-state { stacker: stacker })))) ;; did the existing delegation expire? (if (match (get until-burn-ht delegation-info) until-burn-ht (> burn-block-height until-burn-ht) false) ;; it expired, return none none ;; delegation is active (some delegation-info)))) ;; Get the size of the reward set for a reward cycle. ;; Note that this does _not_ return duplicate PoX addresses. ;; Note that this also _will_ return PoX addresses that are beneath ;; the minimum threshold -- i.e. the threshold can increase after insertion. ;; Used internally by the Stacks node, which filters out the entries ;; in this map to select PoX addresses with enough STX. (define-read-only (get-reward-set-size (reward-cycle uint)) (default-to u0 (get len (map-get? reward-cycle-pox-address-list-len { reward-cycle: reward-cycle })))) ;; How many rejection votes have we been accumulating for the next block (define-private (next-cycle-rejection-votes) (default-to u0 (get amount (map-get? stacking-rejection { reward-cycle: (+ u1 (current-pox-reward-cycle)) })))) ;; Add a single PoX address to a single reward cycle. ;; Used to build up a set of per-reward-cycle PoX addresses. ;; No checking will be done -- don't call if this PoX address is already registered in this reward cycle! (define-private (append-reward-cycle-pox-addr (pox-addr (tuple (version (buff 1)) (hashbytes (buff 20)))) (reward-cycle uint) (amount-ustx uint)) (let ( (sz (get-reward-set-size reward-cycle)) ) (map-set reward-cycle-pox-address-list { reward-cycle: reward-cycle, index: sz } { pox-addr: pox-addr, total-ustx: amount-ustx }) (map-set reward-cycle-pox-address-list-len { reward-cycle: reward-cycle } { len: (+ u1 sz) }) (+ u1 sz)) ) ;; How many uSTX are stacked? (define-read-only (get-total-ustx-stacked (reward-cycle uint)) (default-to u0 (get total-ustx (map-get? reward-cycle-total-stacked { reward-cycle: reward-cycle }))) ) ;; Called internally by the node to iterate through the list of PoX addresses in this reward cycle. ;; Returns (optional (tuple (pox-addr <pox-address>) (total-ustx <uint>))) (define-read-only (get-reward-set-pox-address (reward-cycle uint) (index uint)) (map-get? reward-cycle-pox-address-list { reward-cycle: reward-cycle, index: index })) ;; Add a PoX address to the ith reward cycle, if i is between 0 and the given num-cycles (exclusive). ;; Arguments are given as a tuple, so this function can be (map ..)'ed onto a list of its arguments. ;; Used by add-pox-addr-to-reward-cycles. ;; No checking is done. ;; Returns 1 if added. ;; Returns 0 if not added. (define-private (add-pox-addr-to-ith-reward-cycle (cycle-index uint) (params (tuple (pox-addr (tuple (version (buff 1)) (hashbytes (buff 20)))) (first-reward-cycle uint) (num-cycles uint) (amount-ustx uint) (i uint)))) (let ((reward-cycle (+ (get first-reward-cycle params) (get i params))) (num-cycles (get num-cycles params)) (i (get i params))) { pox-addr: (get pox-addr params), first-reward-cycle: (get first-reward-cycle params), num-cycles: num-cycles, amount-ustx: (get amount-ustx params), i: (if (< i num-cycles) (let ((total-ustx (get-total-ustx-stacked reward-cycle))) ;; record how many uSTX this pox-addr will stack for in the given reward cycle (append-reward-cycle-pox-addr (get pox-addr params) reward-cycle (get amount-ustx params)) ;; update running total (map-set reward-cycle-total-stacked { reward-cycle: reward-cycle } { total-ustx: (+ (get amount-ustx params) total-ustx) }) ;; updated _this_ reward cycle (+ i u1)) (+ i u0)) })) ;; Add a PoX address to a given sequence of reward cycle lists. ;; A PoX address can be added to at most 12 consecutive cycles. ;; No checking is done. (define-private (add-pox-addr-to-reward-cycles (pox-addr (tuple (version (buff 1)) (hashbytes (buff 20)))) (first-reward-cycle uint) (num-cycles uint) (amount-ustx uint)) (let ((cycle-indexes (list u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11))) ;; For safety, add up the number of times (add-principal-to-ith-reward-cycle) returns 1. ;; It _should_ be equal to num-cycles. (asserts! (is-eq num-cycles (get i (fold add-pox-addr-to-ith-reward-cycle cycle-indexes { pox-addr: pox-addr, first-reward-cycle: first-reward-cycle, num-cycles: num-cycles, amount-ustx: amount-ustx, i: u0 }))) (err ERR_STACKING_UNREACHABLE)) (ok true))) (define-private (add-pox-partial-stacked-to-ith-cycle (cycle-index uint) (params { pox-addr: { version: (buff 1), hashbytes: (buff 20) }, reward-cycle: uint, num-cycles: uint, amount-ustx: uint })) (let ((pox-addr (get pox-addr params)) (num-cycles (get num-cycles params)) (reward-cycle (get reward-cycle params)) (amount-ustx (get amount-ustx params))) (let ((current-amount (default-to u0 (get stacked-amount (map-get? partial-stacked-by-cycle { sender: tx-sender, pox-addr: pox-addr, reward-cycle: reward-cycle }))))) (if (>= cycle-index num-cycles) ;; do not add to cycles >= cycle-index false ;; otherwise, add to the partial-stacked-by-cycle (map-set partial-stacked-by-cycle { sender: tx-sender, pox-addr: pox-addr, reward-cycle: reward-cycle } { stacked-amount: (+ amount-ustx current-amount) })) ;; produce the next params tuple { pox-addr: pox-addr, reward-cycle: (+ u1 reward-cycle), num-cycles: num-cycles, amount-ustx: amount-ustx }))) ;; Add a PoX address to a given sequence of partial reward cycle lists. ;; A PoX address can be added to at most 12 consecutive cycles. ;; No checking is done. (define-private (add-pox-partial-stacked (pox-addr (tuple (version (buff 1)) (hashbytes (buff 20)))) (first-reward-cycle uint) (num-cycles uint) (amount-ustx uint)) (let ((cycle-indexes (list u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11))) (fold add-pox-partial-stacked-to-ith-cycle cycle-indexes { pox-addr: pox-addr, reward-cycle: first-reward-cycle, num-cycles: num-cycles, amount-ustx: amount-ustx }) true)) ;; What is the minimum number of uSTX to be stacked in the given reward cycle? ;; Used internally by the Stacks node, and visible publicly. (define-read-only (get-stacking-minimum) (/ stx-liquid-supply STACKING_THRESHOLD_25)) ;; Is the address mode valid for a PoX burn address? (define-private (check-pox-addr-version (version (buff 1))) (or (is-eq version ADDRESS_VERSION_P2PKH) (is-eq version ADDRESS_VERSION_P2SH) (is-eq version ADDRESS_VERSION_P2WPKH) (is-eq version ADDRESS_VERSION_P2WSH))) ;; Is the given lock period valid? (define-private (check-pox-lock-period (lock-period uint)) (and (>= lock-period MIN_POX_REWARD_CYCLES) (<= lock-period MAX_POX_REWARD_CYCLES))) ;; Evaluate if a participant can stack an amount of STX for a given period. ;; This method is designed as a read-only method so that it can be used as ;; a set of guard conditions and also as a read-only RPC call that can be ;; performed beforehand. (define-read-only (can-stack-stx (pox-addr (tuple (version (buff 1)) (hashbytes (buff 20)))) (amount-ustx uint) (first-reward-cycle uint) (num-cycles uint)) (begin ;; minimum uSTX must be met (asserts! (<= (print (get-stacking-minimum)) amount-ustx) (err ERR_STACKING_THRESHOLD_NOT_MET)) (minimal-can-stack-stx pox-addr amount-ustx first-reward-cycle num-cycles))) ;; Evaluate if a participant can stack an amount of STX for a given period. ;; This method is designed as a read-only method so that it can be used as ;; a set of guard conditions and also as a read-only RPC call that can be ;; performed beforehand. (define-read-only (minimal-can-stack-stx (pox-addr (tuple (version (buff 1)) (hashbytes (buff 20)))) (amount-ustx uint) (first-reward-cycle uint) (num-cycles uint)) (begin ;; amount must be valid (asserts! (> amount-ustx u0) (err ERR_STACKING_INVALID_AMOUNT)) ;; sender principal must not have rejected in this upcoming reward cycle (asserts! (is-none (get-pox-rejection tx-sender first-reward-cycle)) (err ERR_STACKING_ALREADY_REJECTED)) ;; lock period must be in acceptable range. (asserts! (check-pox-lock-period num-cycles) (err ERR_STACKING_INVALID_LOCK_PERIOD)) ;; address version must be valid (asserts! (check-pox-addr-version (get version pox-addr)) (err ERR_STACKING_INVALID_POX_ADDRESS)) (ok true))) ;; Revoke contract-caller authorization to call stacking methods (define-public (disallow-contract-caller (caller principal)) (begin (asserts! (is-eq tx-sender contract-caller) (err ERR_STACKING_PERMISSION_DENIED)) (ok (map-delete allowance-contract-callers { sender: tx-sender, contract-caller: caller })))) ;; Give a contract-caller authorization to call stacking methods ;; normally, stacking methods may only be invoked by _direct_ transactions ;; (i.e., the tx-sender issues a direct contract-call to the stacking methods) ;; by issuing an allowance, the tx-sender may call through the allowed contract (define-public (allow-contract-caller (caller principal) (until-burn-ht (optional uint))) (begin (asserts! (is-eq tx-sender contract-caller) (err ERR_STACKING_PERMISSION_DENIED)) (ok (map-set allowance-contract-callers { sender: tx-sender, contract-caller: caller } { until-burn-ht: until-burn-ht })))) ;; Lock up some uSTX for stacking! Note that the given amount here is in micro-STX (uSTX). ;; The STX will be locked for the given number of reward cycles (lock-period). ;; This is the self-service interface. tx-sender will be the Stacker. ;; ;; * The given stacker cannot currently be stacking. ;; * You will need the minimum uSTX threshold. This will be determined by (get-stacking-minimum) ;; at the time this method is called. ;; * You may need to increase the amount of uSTX locked up later, since the minimum uSTX threshold ;; may increase between reward cycles. ;; * The Stacker will receive rewards in the reward cycle following `start-burn-ht`. ;; Importantly, `start-burn-ht` may not be further into the future than the next reward cycle, ;; and in most cases should be set to the current burn block height. ;; ;; The tokens will unlock and be returned to the Stacker (tx-sender) automatically. (define-public (stack-stx (amount-ustx uint) (pox-addr (tuple (version (buff 1)) (hashbytes (buff 20)))) (start-burn-ht uint) (lock-period uint)) ;; this stacker's first reward cycle is the _next_ reward cycle (let ((first-reward-cycle (+ u1 (current-pox-reward-cycle))) (specified-reward-cycle (+ u1 (burn-height-to-reward-cycle start-burn-ht)))) ;; the start-burn-ht must result in the next reward cycle, do not allow stackers ;; to "post-date" their `stack-stx` transaction (asserts! (is-eq first-reward-cycle specified-reward-cycle) (err ERR_INVALID_START_BURN_HEIGHT)) ;; must be called directly by the tx-sender or by an allowed contract-caller (asserts! (check-caller-allowed) (err ERR_STACKING_PERMISSION_DENIED)) ;; tx-sender principal must not be stacking (asserts! (is-none (get-stacker-info tx-sender)) (err ERR_STACKING_ALREADY_STACKED)) ;; tx-sender must not be delegating (asserts! (is-none (get-check-delegation tx-sender)) (err ERR_STACKING_ALREADY_DELEGATED)) ;; the Stacker must have sufficient unlocked funds (asserts! (>= (stx-get-balance tx-sender) amount-ustx) (err ERR_STACKING_INSUFFICIENT_FUNDS)) ;; ensure that stacking can be performed (try! (can-stack-stx pox-addr amount-ustx first-reward-cycle lock-period)) ;; register the PoX address with the amount stacked (try! (add-pox-addr-to-reward-cycles pox-addr first-reward-cycle lock-period amount-ustx)) ;; add stacker record (map-set stacking-state { stacker: tx-sender } { amount-ustx: amount-ustx, pox-addr: pox-addr, first-reward-cycle: first-reward-cycle, lock-period: lock-period }) ;; return the lock-up information, so the node can actually carry out the lock. (ok { stacker: tx-sender, lock-amount: amount-ustx, unlock-burn-height: (reward-cycle-to-burn-height (+ first-reward-cycle lock-period)) })) ) (define-public (revoke-delegate-stx) (begin ;; must be called directly by the tx-sender or by an allowed contract-caller (asserts! (check-caller-allowed) (err ERR_STACKING_PERMISSION_DENIED)) (ok (map-delete delegation-state { stacker: tx-sender })))) ;; Delegate to `delegate-to` the ability to stack from a given address. ;; This method _does not_ lock the funds, rather, it allows the delegate ;; to issue the stacking lock. ;; The caller specifies: ;; * amount-ustx: the total amount of ustx the delegate may be allowed to lock ;; * until-burn-ht: an optional burn height at which this delegation expiration ;; * pox-addr: an optional address to which any rewards *must* be sent (define-public (delegate-stx (amount-ustx uint) (delegate-to principal) (until-burn-ht (optional uint)) (pox-addr (optional { version: (buff 1), hashbytes: (buff 20) }))) (begin ;; must be called directly by the tx-sender or by an allowed contract-caller (asserts! (check-caller-allowed) (err ERR_STACKING_PERMISSION_DENIED)) ;; tx-sender principal must not be stacking (asserts! (is-none (get-stacker-info tx-sender)) (err ERR_STACKING_ALREADY_STACKED)) ;; tx-sender must not be delegating (asserts! (is-none (get-check-delegation tx-sender)) (err ERR_STACKING_ALREADY_DELEGATED)) ;; add delegation record (map-set delegation-state { stacker: tx-sender } { amount-ustx: amount-ustx, delegated-to: delegate-to, until-burn-ht: until-burn-ht, pox-addr: pox-addr }) (ok true))) ;; Commit partially stacked STX. ;; This allows a stacker/delegate to lock fewer STX than the minimal threshold in multiple transactions, ;; so long as: 1. The pox-addr is the same. ;; 2. This "commit" transaction is called _before_ the PoX anchor block. ;; This ensures that each entry in the reward set returned to the stacks-node is greater than the threshold, ;; but does not require it be all locked up within a single transaction (define-public (stack-aggregation-commit (pox-addr { version: (buff 1), hashbytes: (buff 20) }) (reward-cycle uint)) (let ((partial-stacked ;; fetch the partial commitments (unwrap! (map-get? partial-stacked-by-cycle { pox-addr: pox-addr, sender: tx-sender, reward-cycle: reward-cycle }) (err ERR_STACKING_NO_SUCH_PRINCIPAL)))) ;; must be called directly by the tx-sender or by an allowed contract-caller (asserts! (check-caller-allowed) (err ERR_STACKING_PERMISSION_DENIED)) (let ((amount-ustx (get stacked-amount partial-stacked))) (try! (can-stack-stx pox-addr amount-ustx reward-cycle u1)) ;; add the pox addr to the reward cycle (add-pox-addr-to-ith-reward-cycle u0 { pox-addr: pox-addr, first-reward-cycle: reward-cycle, num-cycles: u1, amount-ustx: amount-ustx, i: u0 }) ;; don't update the stacking-state map, ;; because it _already has_ this stacker's state ;; don't lock the STX, because the STX is already locked ;; ;; clear the partial-stacked state (map-delete partial-stacked-by-cycle { pox-addr: pox-addr, sender: tx-sender, reward-cycle: reward-cycle }) (ok true)))) ;; As a delegate, stack the given principal's STX using partial-stacked-by-cycle ;; Once the delegate has stacked > minimum, the delegate should call stack-aggregation-commit (define-public (delegate-stack-stx (stacker principal) (amount-ustx uint) (pox-addr { version: (buff 1), hashbytes: (buff 20) }) (start-burn-ht uint) (lock-period uint)) ;; this stacker's first reward cycle is the _next_ reward cycle (let ((first-reward-cycle (+ u1 (current-pox-reward-cycle))) (specified-reward-cycle (+ u1 (burn-height-to-reward-cycle start-burn-ht))) (unlock-burn-height (reward-cycle-to-burn-height (+ (current-pox-reward-cycle) u1 lock-period)))) ;; the start-burn-ht must result in the next reward cycle, do not allow stackers ;; to "post-date" their `stack-stx` transaction (asserts! (is-eq first-reward-cycle specified-reward-cycle) (err ERR_INVALID_START_BURN_HEIGHT)) ;; must be called directly by the tx-sender or by an allowed contract-caller (asserts! (check-caller-allowed) (err ERR_STACKING_PERMISSION_DENIED)) ;; stacker must have delegated to the caller (let ((delegation-info (unwrap! (get-check-delegation stacker) (err ERR_STACKING_PERMISSION_DENIED)))) ;; must have delegated to tx-sender (asserts! (is-eq (get delegated-to delegation-info) tx-sender) (err ERR_STACKING_PERMISSION_DENIED)) ;; must have delegated enough stx (asserts! (>= (get amount-ustx delegation-info) amount-ustx) (err ERR_DELEGATION_TOO_MUCH_LOCKED)) ;; if pox-addr is set, must be equal to pox-addr (asserts! (match (get pox-addr delegation-info) specified-pox-addr (is-eq pox-addr specified-pox-addr) true) (err ERR_DELEGATION_POX_ADDR_REQUIRED)) ;; delegation must not expire before lock period (asserts! (match (get until-burn-ht delegation-info) until-burn-ht (>= until-burn-ht unlock-burn-height) true) (err ERR_DELEGATION_EXPIRES_DURING_LOCK))) ;; stacker principal must not be stacking (asserts! (is-none (get-stacker-info stacker)) (err ERR_STACKING_ALREADY_STACKED)) ;; the Stacker must have sufficient unlocked funds (asserts! (>= (stx-get-balance stacker) amount-ustx) (err ERR_STACKING_INSUFFICIENT_FUNDS)) ;; ensure that stacking can be performed (try! (minimal-can-stack-stx pox-addr amount-ustx first-reward-cycle lock-period)) ;; register the PoX address with the amount stacked via partial stacking ;; before it can be included in the reward set, this must be committed! (add-pox-partial-stacked pox-addr first-reward-cycle lock-period amount-ustx) ;; add stacker record (map-set stacking-state { stacker: stacker } { amount-ustx: amount-ustx, pox-addr: pox-addr, first-reward-cycle: first-reward-cycle, lock-period: lock-period }) ;; return the lock-up information, so the node can actually carry out the lock. (ok { stacker: stacker, lock-amount: amount-ustx, unlock-burn-height: unlock-burn-height }))) ;; Reject Stacking for this reward cycle. ;; tx-sender votes all its uSTX for rejection. ;; Note that unlike PoX, rejecting PoX does not lock the tx-sender's ;; tokens. PoX rejection acts like a coin vote. (define-public (reject-pox) (let ( (balance (stx-get-balance tx-sender)) (vote-reward-cycle (+ u1 (current-pox-reward-cycle))) ) ;; tx-sender principal must not have rejected in this upcoming reward cycle (asserts! (is-none (get-pox-rejection tx-sender vote-reward-cycle)) (err ERR_STACKING_ALREADY_REJECTED)) ;; tx-sender can't be a stacker (asserts! (is-none (get-stacker-info tx-sender)) (err ERR_STACKING_ALREADY_STACKED)) ;; vote for rejection (map-set stacking-rejection { reward-cycle: vote-reward-cycle } { amount: (+ (next-cycle-rejection-votes) balance) } ) ;; mark voted (map-set stacking-rejectors { stacker: tx-sender, reward-cycle: vote-reward-cycle } { amount: balance } ) (ok true)) ) ;; Used for PoX parameters discovery (define-read-only (get-pox-info) (ok { min-amount-ustx: (get-stacking-minimum), reward-cycle-id: (current-pox-reward-cycle), prepare-cycle-length: (var-get pox-prepare-cycle-length), first-burnchain-block-height: (var-get first-burnchain-block-height), reward-cycle-length: (var-get pox-reward-cycle-length), rejection-fraction: (var-get pox-rejection-fraction), current-rejection-votes: (next-cycle-rejection-votes), total-liquid-supply-ustx: stx-liquid-supply, }) )
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)))) (ok due-schedules))))
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 (linear (n uint) (a uint) (b uint)) (+ (* a n) b)) ;; LogN cost-assessment function (define-private (logn (n uint) (a uint) (b uint)) (+ (* a (log2 n)) b)) ;; NLogN cost-assessment function (define-private (nlogn (n uint) (a uint) (b uint)) (+ (* a (* n (log2 n))) b)) ;; Cost Functions (define-read-only (cost_analysis_type_annotate (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_analysis_type_check (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_analysis_type_lookup (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_analysis_visit (n uint)) (runtime u1000)) (define-read-only (cost_analysis_iterable_func (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_analysis_option_cons (n uint)) (runtime u1000)) (define-read-only (cost_analysis_option_check (n uint)) (runtime u1000)) (define-read-only (cost_analysis_bind_name (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_analysis_list_items_check (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_analysis_check_tuple_get (n uint)) (runtime (logn n u1000 u1000))) (define-read-only (cost_analysis_check_tuple_merge (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_analysis_check_tuple_cons (n uint)) (runtime (nlogn n u1000 u1000))) (define-read-only (cost_analysis_tuple_items_check (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_analysis_check_let (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_analysis_lookup_function (n uint)) (runtime u1000)) (define-read-only (cost_analysis_lookup_function_types (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_analysis_lookup_variable_const (n uint)) (runtime u1000)) (define-read-only (cost_analysis_lookup_variable_depth (n uint)) (runtime (nlogn n u1000 u1000))) ;; ast-parse is a very expensive linear operation, ;; primarily because it does the work of capturing ;; most of the analysis phase's linear cost, but also ;; because the most expensive part of the analysis phase ;; is the ast (define-read-only (cost_ast_parse (n uint)) (runtime (linear n u10000 u1000))) (define-read-only (cost_ast_cycle_detection (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_analysis_storage (n uint)) { runtime: (linear n u1000 u1000), write_length: (linear n u1 u1), write_count: u1, read_count: u1, read_length: u1 }) (define-read-only (cost_analysis_use_trait_entry (n uint)) { runtime: (linear n u1000 u1000), write_length: (linear n u1 u1), write_count: u0, read_count: u1, read_length: (linear n u1 u1) }) (define-read-only (cost_analysis_get_function_entry (n uint)) { runtime: (linear n u1000 u1000), write_length: u0, write_count: u0, read_count: u1, read_length: (linear n u1 u1) }) (define-read-only (cost_analysis_fetch_contract_entry (n uint)) { runtime: (linear n u1000 u1000), write_length: u0, write_count: u0, read_count: u1, read_length: (linear n u1 u1) }) (define-read-only (cost_lookup_variable_depth (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_lookup_variable_size (n uint)) (runtime (linear n u1000 u0))) (define-read-only (cost_lookup_function (n uint)) (runtime u1000)) (define-read-only (cost_bind_name (n uint)) (runtime u1000)) (define-read-only (cost_inner_type_check_cost (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_user_function_application (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_let (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_if (n uint)) (runtime u1000)) (define-read-only (cost_asserts (n uint)) (runtime u1000)) (define-read-only (cost_map (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_filter (n uint)) (runtime u1000)) (define-read-only (cost_len (n uint)) (runtime u1000)) (define-read-only (cost_element_at (n uint)) (runtime u1000)) (define-read-only (cost_index_of (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_fold (n uint)) (runtime u1000)) (define-read-only (cost_list_cons (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_type_parse_step (n uint)) (runtime u1000)) (define-read-only (cost_data_hash_cost (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_tuple_get (n uint)) (runtime (nlogn n u1000 u1000))) (define-read-only (cost_tuple_merge (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_tuple_cons (n uint)) (runtime (nlogn n u1000 u1000))) (define-read-only (cost_add (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_sub (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_mul (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_div (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_geq (n uint)) (runtime u1000)) (define-read-only (cost_leq (n uint)) (runtime u1000)) (define-read-only (cost_le (n uint)) (runtime u1000)) (define-read-only (cost_ge (n uint)) (runtime u1000)) (define-read-only (cost_int_cast (n uint)) (runtime u1000)) (define-read-only (cost_mod (n uint)) (runtime u1000)) (define-read-only (cost_pow (n uint)) (runtime u1000)) (define-read-only (cost_sqrti (n uint)) (runtime u1000)) (define-read-only (cost_log2 (n uint)) (runtime u1000)) (define-read-only (cost_xor (n uint)) (runtime u1000)) (define-read-only (cost_not (n uint)) (runtime u1000)) (define-read-only (cost_eq (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_begin (n uint)) (runtime u1000)) (define-read-only (cost_hash160 (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_sha256 (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_sha512 (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_sha512t256 (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_keccak256 (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_secp256k1recover (n uint)) (runtime u1000)) (define-read-only (cost_secp256k1verify (n uint)) (runtime u1000)) (define-read-only (cost_print (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_some_cons (n uint)) (runtime u1000)) (define-read-only (cost_ok_cons (n uint)) (runtime u1000)) (define-read-only (cost_err_cons (n uint)) (runtime u1000)) (define-read-only (cost_default_to (n uint)) (runtime u1000)) (define-read-only (cost_unwrap_ret (n uint)) (runtime u1000)) (define-read-only (cost_unwrap_err_or_ret (n uint)) (runtime u1000)) (define-read-only (cost_is_okay (n uint)) (runtime u1000)) (define-read-only (cost_is_none (n uint)) (runtime u1000)) (define-read-only (cost_is_err (n uint)) (runtime u1000)) (define-read-only (cost_is_some (n uint)) (runtime u1000)) (define-read-only (cost_unwrap (n uint)) (runtime u1000)) (define-read-only (cost_unwrap_err (n uint)) (runtime u1000)) (define-read-only (cost_try_ret (n uint)) (runtime u1000)) (define-read-only (cost_match (n uint)) (runtime u1000)) (define-read-only (cost_or (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_and (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_append (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_concat (n uint)) (runtime (linear n u1000 u1000))) (define-read-only (cost_as_max_len (n uint)) (runtime u1000)) (define-read-only (cost_contract_call (n uint)) (runtime u1000)) (define-read-only (cost_contract_of (n uint)) (runtime u1000)) (define-read-only (cost_principal_of (n uint)) (runtime u1000)) (define-read-only (cost_at_block (n uint)) { runtime: u1000, write_length: u0, write_count: u0, read_count: u1, read_length: u1 }) (define-read-only (cost_load_contract (n uint)) { runtime: (linear n u1000 u1000), write_length: u0, write_count: u0, ;; set to 3 because of the associated metadata loads read_count: u3, read_length: (linear n u1 u1) }) (define-read-only (cost_create_map (n uint)) { runtime: (linear n u1000 u1000), write_length: (linear n u1 u1), write_count: u1, read_count: u0, read_length: u0 }) (define-read-only (cost_create_var (n uint)) { runtime: (linear n u1000 u1000), write_length: (linear n u1 u1), write_count: u2, read_count: u0, read_length: u0 }) (define-read-only (cost_create_nft (n uint)) { runtime: (linear n u1000 u1000), write_length: (linear n u1 u1), write_count: u1, read_count: u0, read_length: u0 }) (define-read-only (cost_create_ft (n uint)) { runtime: u1000, write_length: u1, write_count: u2, read_count: u0, read_length: u0 }) (define-read-only (cost_fetch_entry (n uint)) { runtime: (linear n u1000 u1000), write_length: u0, write_count: u0, read_count: u1, read_length: (linear n u1 u1) }) (define-read-only (cost_set_entry (n uint)) { runtime: (linear n u1000 u1000), write_length: (linear n u1 u1), write_count: u1, read_count: u1, read_length: u0 }) (define-read-only (cost_fetch_var (n uint)) { runtime: (linear n u1000 u1000), write_length: u0, write_count: u0, read_count: u1, read_length: (linear n u1 u1) }) (define-read-only (cost_set_var (n uint)) { runtime: (linear n u1000 u1000), write_length: (linear n u1 u1), write_count: u1, read_count: u1, read_length: u0 }) (define-read-only (cost_contract_storage (n uint)) { runtime: (linear n u1000 u1000), write_length: (linear n u1 u1), write_count: u1, read_count: u0, read_length: u0 }) (define-read-only (cost_block_info (n uint)) { runtime: u1000, write_length: u0, write_count: u0, read_count: u1, read_length: u1 }) (define-read-only (cost_stx_balance (n uint)) { runtime: u1000, write_length: u0, write_count: u0, read_count: u1, read_length: u1 }) (define-read-only (cost_stx_transfer (n uint)) { runtime: u1000, write_length: u1, write_count: u1, read_count: u1, read_length: u1 }) (define-read-only (cost_ft_mint (n uint)) { runtime: u1000, write_length: u1, write_count: u2, read_count: u2, read_length: u1 }) (define-read-only (cost_ft_transfer (n uint)) { runtime: u1000, write_length: u1, write_count: u2, read_count: u2, read_length: u1 }) (define-read-only (cost_ft_balance (n uint)) { runtime: u1000, write_length: u0, write_count: u0, read_count: u1, read_length: u1 }) (define-read-only (cost_nft_mint (n uint)) { runtime: (linear n u1000 u1000), write_length: u1, write_count: u1, read_count: u1, read_length: u1 }) (define-read-only (cost_nft_transfer (n uint)) { runtime: (linear n u1000 u1000), write_length: u1, write_count: u1, read_count: u1, read_length: u1 }) (define-read-only (cost_nft_owner (n uint)) { runtime: (linear n u1000 u1000), write_length: u0, write_count: u0, read_count: u1, read_length: u1 }) (define-read-only (cost_ft_get_supply (n uint)) { runtime: u1000, write_length: u0, write_count: u0, read_count: u1, read_length: u1 }) (define-read-only (cost_ft_burn (n uint)) { runtime: u1000, write_length: u1, write_count: u2, read_count: u2, read_length: u1 }) (define-read-only (cost_nft_burn (n uint)) { runtime: (linear n u1000 u1000), write_length: u1, write_count: u1, read_count: u1, read_length: u1 }) (define-read-only (poison_microblock (n uint)) { runtime: u1000, write_length: u1, write_count: u1, read_count: u1, read_length: u1 })
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 6) (define-constant ERR_STX_TRANSFER 7) (define-constant ERR_VOTE_NOT_CONFIRMED 8) (define-constant ERR_ALREADY_VETOED 9) (define-constant ERR_NOT_LAST_MINER 10) (define-constant ERR_INSUFFICIENT_VOTES 11) (define-constant ERR_VETO_PERIOD_OVER 12) (define-constant ERR_VETO_PERIOD_NOT_OVER 13) (define-constant ERR_PROPOSAL_VETOED 14) (define-constant ERR_PROPOSAL_CONFIRMED 15) (define-constant ERR_FETCHING_BLOCK_INFO 16) (define-constant ERR_TOO_MANY_CONFIRMED 17) (define-constant ERR_UNREACHABLE 255) (define-constant VOTE_LENGTH u2016) (define-constant VETO_LENGTH u1008) (define-constant REQUIRED_PERCENT_STX_VOTE u20) (define-constant REQUIRED_VETOES u500) (define-constant MAX_CONFIRMED_PER_BLOCK u10) ;; cost vote token (define-fungible-token cost-vote-token) ;; proposal counters (define-data-var proposal-count uint u0) (define-data-var confirmed-proposal-count uint u0) ;; cost-function proposals (define-map proposals { proposal-id: uint } { cost-function-contract: principal, cost-function-name: (string-ascii 128), function-contract: principal, function-name: (string-ascii 128), expiration-block-height: uint } ) ;; vote confirmed cost-function proposals (define-map vote-confirmed-proposals { proposal-id: uint } { expiration-block-height: uint } ) ;; miner confirmed cost-function proposals (define-map confirmed-proposals { confirmed-id: uint } { function-contract: principal, function-name: (string-ascii 128), cost-function-contract: principal, cost-function-name: (string-ascii 128), confirmed-height: uint } ) ;; limit the number of miner confirmed-proposals ;; that can be introduced per block ;; track the # of proposals confirmed at a given block-height (define-map confirmed-count-at-block uint uint) (define-map proposal-confirmed-id { proposal-id: uint } { confirmed-id: uint } ) (define-map functions-to-confirmed-ids { function-contract: principal, function-name: (string-ascii 128) } { proposal-id: uint } ) ;; cost-function proposal votes (define-map proposal-votes { proposal-id: uint } { votes: uint }) ;; cost-function proposal vetos (define-map proposal-vetos { proposal-id: uint } { vetos: uint }) ;; proposal vetos per block (define-map exercised-veto { proposal-id: uint, veto-height: uint } { vetoed: bool }) ;; the number of votes a specific principal has committed to a proposal (define-map principal-proposal-votes { address: principal, proposal-id: uint } { votes: uint }) ;; getter for cost-function proposals (define-read-only (get-proposal (proposal-id uint)) (map-get? proposals { proposal-id: proposal-id })) ;; getter for confirmed cost-function proposals (define-read-only (get-confirmed-proposal (confirmed-id uint)) (map-get? confirmed-proposals { confirmed-id: confirmed-id })) ;; getter for cost-function proposal votes (define-read-only (get-proposal-votes (proposal-id uint)) (get votes (map-get? proposal-votes { proposal-id: proposal-id }))) ;; getter for cost-function proposal vetos (define-read-only (get-proposal-vetos (proposal-id uint)) (get vetos (map-get? proposal-vetos { proposal-id: proposal-id }))) ;; getter for cost-function proposal votes, for specific principal (define-read-only (get-principal-votes (address principal) (proposal-id uint)) (get votes (map-get? principal-proposal-votes { address: address, proposal-id: proposal-id }))) ;; Propose cost-functions (define-public (submit-proposal (function-contract principal) (function-name (string-ascii 128)) (cost-function-contract principal) (cost-function-name (string-ascii 128))) (begin (map-insert proposals { proposal-id: (var-get proposal-count) } { cost-function-contract: cost-function-contract, cost-function-name: cost-function-name, function-contract: function-contract, function-name: function-name, expiration-block-height: (+ block-height VOTE_LENGTH) }) (map-insert proposal-votes { proposal-id: (var-get proposal-count) } { votes: u0 }) (var-set proposal-count (+ (var-get proposal-count) u1)) (ok (- (var-get proposal-count) u1)))) ;; Vote on a proposal (define-public (vote-proposal (proposal-id uint) (amount uint)) (let ( (expiration-block-height (get expiration-block-height (unwrap! (map-get? proposals { proposal-id: proposal-id }) (err ERR_NO_SUCH_PROPOSAL)))) (cur-votes (default-to u0 (get votes (map-get? proposal-votes { proposal-id: proposal-id })))) (cur-principal-votes (default-to u0 (get votes (map-get? principal-proposal-votes { address: tx-sender, proposal-id: proposal-id }))))) ;; a vote must have a positive amount (asserts! (> amount u0) (err ERR_AMOUNT_NOT_POSITIVE)) ;; the vote must occur before the expiration (asserts! (< block-height expiration-block-height) (err ERR_PROPOSAL_EXPIRED)) ;; the proposal must not already be voter confirmed (asserts! (is-none (map-get? vote-confirmed-proposals { proposal-id: proposal-id })) (err ERR_VOTE_ENDED)) (unwrap! (stx-transfer? amount tx-sender (as-contract tx-sender)) (err ERR_INSUFFICIENT_FUNDS)) (unwrap! (ft-mint? cost-vote-token amount tx-sender) (err ERR_UNREACHABLE)) (map-set proposal-votes { proposal-id: proposal-id } { votes: (+ amount cur-votes) }) (map-set principal-proposal-votes { address: tx-sender, proposal-id: proposal-id} { votes: (+ amount cur-principal-votes)}) (ok true))) ;; Withdraw votes (define-public (withdraw-votes (proposal-id uint) (amount uint)) (let ( (cur-votes (default-to u0 (get votes (map-get? proposal-votes { proposal-id: proposal-id })))) (cur-principal-votes (default-to u0 (get votes (map-get? principal-proposal-votes { address: tx-sender, proposal-id: proposal-id })))) (sender tx-sender)) (asserts! (> amount u0) (err ERR_AMOUNT_NOT_POSITIVE)) (asserts! (>= cur-principal-votes amount) (err ERR_INSUFFICIENT_FUNDS)) (unwrap! (as-contract (stx-transfer? amount tx-sender sender)) (err ERR_STX_TRANSFER)) (unwrap! (as-contract (ft-transfer? cost-vote-token amount sender tx-sender)) (err ERR_FT_TRANSFER)) (map-set proposal-votes { proposal-id: proposal-id } { votes: (- cur-votes amount) }) (map-set principal-proposal-votes { address: tx-sender, proposal-id: proposal-id } { votes: (- cur-principal-votes amount) }) (ok true))) ;; Miner veto (define-public (veto (proposal-id uint)) (let ( (cur-vetos (default-to u0 (get vetos (map-get? proposal-vetos { proposal-id: proposal-id })))) (expiration-block-height (get expiration-block-height (unwrap! (map-get? vote-confirmed-proposals { proposal-id: proposal-id }) (err ERR_VOTE_NOT_CONFIRMED)))) (vetoed (default-to false (get vetoed (map-get? exercised-veto { proposal-id: proposal-id, veto-height: block-height })))) (last-miner (unwrap! (get-block-info? miner-address (- block-height u1)) (err ERR_FETCHING_BLOCK_INFO)))) ;; a miner can only veto once per block (asserts! (not vetoed) (err ERR_ALREADY_VETOED)) ;; vetoes must be cast within the veto period (asserts! (< block-height expiration-block-height) (err ERR_VETO_PERIOD_OVER)) ;; a miner can only veto if they mined the previous block (asserts! (is-eq contract-caller last-miner) (err ERR_NOT_LAST_MINER)) ;; a veto cannot be cast if a proposal has already been miner confirmed (asserts! (is-none (map-get? proposal-confirmed-id { proposal-id: proposal-id })) (err ERR_PROPOSAL_CONFIRMED)) (map-set proposal-vetos { proposal-id: proposal-id } { vetos: (+ u1 cur-vetos) }) (map-set exercised-veto { proposal-id: proposal-id, veto-height: block-height } { vetoed: true }) (ok true))) ;; Confirm proposal has reached required vote count (define-public (confirm-votes (proposal-id uint)) (let ( (votes (default-to u0 (get votes (map-get? proposal-votes { proposal-id: proposal-id })))) (proposal (unwrap! (map-get? proposals { proposal-id: proposal-id }) (err ERR_NO_SUCH_PROPOSAL))) (confirmed-count (var-get confirmed-proposal-count)) (expiration-block-height (get expiration-block-height proposal))) ;; confirmation fails if invoked after proposal has expired (asserts! (< block-height expiration-block-height) (err ERR_PROPOSAL_EXPIRED)) ;; confirmation fails if the required threshold of votes is not met (asserts! (>= (/ (* votes u100) stx-liquid-supply) REQUIRED_PERCENT_STX_VOTE) (err ERR_INSUFFICIENT_VOTES)) (map-insert vote-confirmed-proposals { proposal-id: proposal-id } { expiration-block-height: (+ VETO_LENGTH block-height) }) (ok true))) ;; Confirm proposal hasn't been vetoed (define-public (confirm-miners (proposal-id uint)) (let ((vetos (default-to u0 (get vetos (map-get? proposal-vetos { proposal-id: proposal-id })))) (vote-confirmed-proposal (unwrap! (map-get? vote-confirmed-proposals { proposal-id: proposal-id }) (err ERR_NO_SUCH_PROPOSAL))) (proposal (unwrap! (map-get? proposals { proposal-id: proposal-id }) (err ERR_NO_SUCH_PROPOSAL))) (confirmed-count (var-get confirmed-proposal-count)) (expiration-block-height (get expiration-block-height vote-confirmed-proposal)) (confirmed-this-block (default-to u0 (map-get? confirmed-count-at-block block-height)))) ;; have we already confirmed too many proposals in this block (asserts! (< confirmed-this-block MAX_CONFIRMED_PER_BLOCK) (err ERR_TOO_MANY_CONFIRMED)) (map-set confirmed-count-at-block block-height (+ u1 confirmed-this-block)) ;; miner confirmation will fail if invoked before the expiration (asserts! (>= block-height expiration-block-height) (err ERR_VETO_PERIOD_NOT_OVER)) ;; miner confirmation will fail if there are enough vetos (asserts! (< vetos REQUIRED_VETOES) (err ERR_PROPOSAL_VETOED)) (map-insert confirmed-proposals { confirmed-id: confirmed-count } { function-contract: (get function-contract proposal), function-name: (get function-name proposal), cost-function-contract: (get cost-function-contract proposal), cost-function-name: (get cost-function-name proposal), confirmed-height: block-height }) (map-insert proposal-confirmed-id { proposal-id: proposal-id } { confirmed-id: confirmed-count }) (var-set confirmed-proposal-count (+ confirmed-count u1)) (ok true)))
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-constant ERR_NAMESPACE_ALREADY_EXISTS 1006) (define-constant ERR_NAMESPACE_NOT_LAUNCHED 1007) (define-constant ERR_NAMESPACE_PRICE_FUNCTION_INVALID 1008) (define-constant ERR_NAMESPACE_PREORDER_CLAIMABILITY_EXPIRED 1009) (define-constant ERR_NAMESPACE_PREORDER_LAUNCHABILITY_EXPIRED 1010) (define-constant ERR_NAMESPACE_OPERATION_UNAUTHORIZED 1011) (define-constant ERR_NAMESPACE_STX_BURNT_INSUFFICIENT 1012) (define-constant ERR_NAMESPACE_BLANK 1013) (define-constant ERR_NAMESPACE_ALREADY_LAUNCHED 1014) (define-constant ERR_NAMESPACE_HASH_MALFORMED 1015) (define-constant ERR_NAMESPACE_CHARSET_INVALID 1016) (define-constant ERR_NAME_PREORDER_NOT_FOUND 2001) (define-constant ERR_NAME_PREORDER_EXPIRED 2002) (define-constant ERR_NAME_PREORDER_FUNDS_INSUFFICIENT 2003) (define-constant ERR_NAME_UNAVAILABLE 2004) (define-constant ERR_NAME_OPERATION_UNAUTHORIZED 2006) (define-constant ERR_NAME_STX_BURNT_INSUFFICIENT 2007) (define-constant ERR_NAME_EXPIRED 2008) (define-constant ERR_NAME_GRACE_PERIOD 2009) (define-constant ERR_NAME_BLANK 2010) (define-constant ERR_NAME_ALREADY_CLAIMED 2011) (define-constant ERR_NAME_CLAIMABILITY_EXPIRED 2012) (define-constant ERR_NAME_NOT_FOUND 2013) (define-constant ERR_NAME_REVOKED 2014) (define-constant ERR_NAME_TRANSFER_FAILED 2015) (define-constant ERR_NAME_PREORDER_ALREADY_EXISTS 2016) (define-constant ERR_NAME_HASH_MALFORMED 2017) (define-constant ERR_NAME_PREORDERED_BEFORE_NAMESPACE_LAUNCH 2018) (define-constant ERR_NAME_NOT_RESOLVABLE 2019) (define-constant ERR_NAME_COULD_NOT_BE_MINTED 2020) (define-constant ERR_NAME_COULD_NOT_BE_TRANSFERED 2021) (define-constant ERR_NAME_CHARSET_INVALID 2022) (define-constant ERR_PRINCIPAL_ALREADY_ASSOCIATED 3001) (define-constant ERR_INSUFFICIENT_FUNDS 4001) (define-constant NAMESPACE_PREORDER_CLAIMABILITY_TTL u144) (define-constant NAMESPACE_LAUNCHABILITY_TTL u52595) (define-constant NAME_PREORDER_CLAIMABILITY_TTL u144) (define-constant NAME_GRACE_PERIOD_DURATION u5000) (define-data-var attachment-index uint u0) ;; Price tables (define-constant NAMESPACE_PRICE_TIERS (list u640000000000 u64000000000 u64000000000 u6400000000 u6400000000 u6400000000 u6400000000 u640000000 u640000000 u640000000 u640000000 u640000000 u640000000 u640000000 u640000000 u640000000 u640000000 u640000000 u640000000 u640000000)) ;;;; Data (define-map namespaces (buff 20) { namespace-import: principal, revealed-at: uint, launched-at: (optional uint), lifetime: uint, can-update-price-function: bool, price-function: { buckets: (list 16 uint), base: uint, coeff: uint, nonalpha-discount: uint, no-vowel-discount: uint } }) (define-map namespace-preorders { hashed-salted-namespace: (buff 20), buyer: principal } { created-at: uint, claimed: bool, stx-burned: uint }) (define-non-fungible-token names { name: (buff 48), namespace: (buff 20) }) ;; Rule 1-1 -> 1 principal, 1 name (define-map owner-name principal { name: (buff 48), namespace: (buff 20) }) ;; Only applies to non-revoked, non-expired names. ;; A principal can own many expired names (but they will be transferred away once someone re-registers them), ;; and can own many revoked names (but they do not resolve and cannot be transferred or updated). (define-map name-properties { name: (buff 48), namespace: (buff 20) } { registered-at: (optional uint), imported-at: (optional uint), revoked-at: (optional uint), zonefile-hash: (buff 20) }) (define-map name-preorders { hashed-salted-fqn: (buff 20), buyer: principal } { created-at: uint, claimed: bool, stx-burned: uint }) (define-private (min (a uint) (b uint)) (if (<= a b) a b)) (define-private (max (a uint) (b uint)) (if (> a b) a b)) (define-private (get-exp-at-index (buckets (list 16 uint)) (index uint)) (unwrap-panic (element-at buckets index))) (define-private (is-digit (char (buff 1))) (or (is-eq char 0x30) ;; 0 (is-eq char 0x31) ;; 1 (is-eq char 0x32) ;; 2 (is-eq char 0x33) ;; 3 (is-eq char 0x34) ;; 4 (is-eq char 0x35) ;; 5 (is-eq char 0x36) ;; 6 (is-eq char 0x37) ;; 7 (is-eq char 0x38) ;; 8 (is-eq char 0x39))) ;; 9 (define-private (is-lowercase-alpha (char (buff 1))) (or (is-eq char 0x61) ;; a (is-eq char 0x62) ;; b (is-eq char 0x63) ;; c (is-eq char 0x64) ;; d (is-eq char 0x65) ;; e (is-eq char 0x66) ;; f (is-eq char 0x67) ;; g (is-eq char 0x68) ;; h (is-eq char 0x69) ;; i (is-eq char 0x6a) ;; j (is-eq char 0x6b) ;; k (is-eq char 0x6c) ;; l (is-eq char 0x6d) ;; m (is-eq char 0x6e) ;; n (is-eq char 0x6f) ;; o (is-eq char 0x70) ;; p (is-eq char 0x71) ;; q (is-eq char 0x72) ;; r (is-eq char 0x73) ;; s (is-eq char 0x74) ;; t (is-eq char 0x75) ;; u (is-eq char 0x76) ;; v (is-eq char 0x77) ;; w (is-eq char 0x78) ;; x (is-eq char 0x79) ;; y (is-eq char 0x7a))) ;; z (define-private (is-vowel (char (buff 1))) (or (is-eq char 0x61) ;; a (is-eq char 0x65) ;; e (is-eq char 0x69) ;; i (is-eq char 0x6f) ;; o (is-eq char 0x75) ;; u (is-eq char 0x79))) ;; y (define-private (is-special-char (char (buff 1))) (or (is-eq char 0x2d) ;; - (is-eq char 0x5f))) ;; _ (define-private (is-char-valid (char (buff 1))) (or (is-lowercase-alpha char) (is-digit char) (is-special-char char))) (define-private (is-nonalpha (char (buff 1))) (or (is-digit char) (is-special-char char))) (define-private (has-vowels-chars (name (buff 48))) (> (len (filter is-vowel name)) u0)) (define-private (has-nonalpha-chars (name (buff 48))) (> (len (filter is-nonalpha name)) u0)) (define-private (has-invalid-chars (name (buff 48))) (< (len (filter is-char-valid name)) (len name))) (define-private (name-lease-started-at? (namespace-launched-at (optional uint)) (namespace-revealed-at uint) (name-props (tuple (registered-at (optional uint)) (imported-at (optional uint)) (revoked-at (optional uint)) (zonefile-hash (buff 20))))) (let ((registered-at (get registered-at name-props)) (imported-at (get imported-at name-props))) (if (is-none namespace-launched-at) (begin ;; The namespace must not be expired (asserts! (> (+ namespace-revealed-at NAMESPACE_LAUNCHABILITY_TTL) block-height) (err ERR_NAMESPACE_PREORDER_LAUNCHABILITY_EXPIRED)) (ok (unwrap-panic imported-at))) (begin ;; The namespace must be launched (asserts! (is-some namespace-launched-at) (err ERR_NAMESPACE_NOT_LAUNCHED)) ;; Sanity check: the name must have been either be registered or imported (asserts! (is-eq (xor (match registered-at res 1 0) (match imported-at res 1 0)) 1) (err ERR_PANIC)) ;; If the name was launched, then started-at will come from registered-at (if (is-some registered-at) ;; The name was registered - We return the registration block height (ok (unwrap-panic registered-at)) ;; The name was imported (if (and (>= (unwrap-panic imported-at) namespace-revealed-at) (<= (unwrap-panic imported-at) (unwrap-panic namespace-launched-at))) ;; The name was imported after revealing the namespace and before launching the namespace - We return the launch block height (ok (unwrap-panic namespace-launched-at)) (ok u0))))))) ;; Note: the following method is used in name-import and name-register. The latter ensure that the name ;; can be registered, the former does not. (define-private (mint-or-transfer-name? (namespace (buff 20)) (name (buff 48)) (beneficiary principal)) (let ( (current-owner (nft-get-owner? names (tuple (name name) (namespace namespace))))) ;; The principal can register a name (asserts! (try! (can-receive-name beneficiary)) (err ERR_PRINCIPAL_ALREADY_ASSOCIATED)) (if (is-none current-owner) ;; This is a new name, let's mint it (begin (unwrap! (nft-mint? names { name: name, namespace: namespace } beneficiary) (err ERR_NAME_COULD_NOT_BE_MINTED)) (map-set owner-name beneficiary { name: name, namespace: namespace }) (ok true)) (update-name-ownership? namespace name (unwrap-panic current-owner) beneficiary)))) (define-private (update-name-ownership? (namespace (buff 20)) (name (buff 48)) (from principal) (to principal)) (if (is-eq from to) (ok true) (begin (unwrap! (nft-transfer? names { name: name, namespace: namespace } from to) (err ERR_NAME_COULD_NOT_BE_TRANSFERED)) (map-delete owner-name from) (map-set owner-name to { name: name, namespace: namespace }) (ok true)))) (define-private (update-zonefile-and-props (namespace (buff 20)) (name (buff 48)) (registered-at (optional uint)) (imported-at (optional uint)) (revoked-at (optional uint)) (zonefile-hash (buff 20)) (op (string-ascii 16))) (let ((current-index (var-get attachment-index))) ;; Emit event used as a system hinter (print { attachment: { hash: zonefile-hash, attachment-index: current-index, metadata: { name: name, namespace: namespace, tx-sender: tx-sender, op: op } }}) ;; Update cursor (var-set attachment-index (+ u1 current-index)) (map-set name-properties { name: name, namespace: namespace } { registered-at: registered-at, imported-at: imported-at, revoked-at: revoked-at, zonefile-hash: zonefile-hash }))) (define-private (is-namespace-available (namespace (buff 20))) (match (map-get? namespaces namespace) namespace-props (begin ;; Is the namespace launched? (if (is-some (get launched-at namespace-props)) false (> block-height (+ (get revealed-at namespace-props) NAMESPACE_LAUNCHABILITY_TTL)))) ;; Is the namespace expired? true)) (define-private (compute-name-price (name (buff 48)) (price-function (tuple (buckets (list 16 uint)) (base uint) (coeff uint) (nonalpha-discount uint) (no-vowel-discount uint)))) (let ( (exponent (get-exp-at-index (get buckets price-function) (min u15 (- (len name) u1)))) (no-vowel-discount (if (not (has-vowels-chars name)) (get no-vowel-discount price-function) u1)) (nonalpha-discount (if (has-nonalpha-chars name) (get nonalpha-discount price-function) u1))) (* (/ (* (get coeff price-function) (pow (get base price-function) exponent)) (max nonalpha-discount no-vowel-discount)) u10))) ;;;; NAMESPACES ;; NAMESPACE_PREORDER ;; This step registers the salted hash of the namespace with BNS nodes, and burns the requisite amount of cryptocurrency. ;; Additionally, this step proves to the BNS nodes that user has honored the BNS consensus rules by including a recent ;; consensus hash in the transaction. ;; Returns pre-order's expiration date (in blocks). (define-public (namespace-preorder (hashed-salted-namespace (buff 20)) (stx-to-burn uint)) (let ((former-preorder (map-get? namespace-preorders { hashed-salted-namespace: hashed-salted-namespace, buyer: tx-sender }))) ;; Ensure eventual former pre-order expired (asserts! (if (is-none former-preorder) true (>= block-height (+ NAMESPACE_PREORDER_CLAIMABILITY_TTL (unwrap-panic (get created-at former-preorder))))) (err ERR_NAMESPACE_PREORDER_ALREADY_EXISTS)) ;; Ensure that the hashed namespace is 20 bytes long (asserts! (is-eq (len hashed-salted-namespace) u20) (err ERR_NAMESPACE_HASH_MALFORMED)) ;; Ensure that user will be burning a positive amount of tokens (asserts! (> stx-to-burn u0) (err ERR_NAMESPACE_STX_BURNT_INSUFFICIENT)) ;; Burn the tokens (unwrap! (stx-burn? stx-to-burn tx-sender) (err ERR_INSUFFICIENT_FUNDS)) ;; Register the preorder (map-set namespace-preorders { hashed-salted-namespace: hashed-salted-namespace, buyer: tx-sender } { created-at: block-height, claimed: false, stx-burned: stx-to-burn }) (ok (+ block-height NAMESPACE_PREORDER_CLAIMABILITY_TTL)))) ;; NAMESPACE_REVEAL ;; This second step reveals the salt and the namespace ID (pairing it with its NAMESPACE_PREORDER). It reveals how long ;; names last in this namespace before they expire or must be renewed, and it sets a price function for the namespace ;; that determines how cheap or expensive names its will be. (define-public (namespace-reveal (namespace (buff 20)) (namespace-salt (buff 20)) (p-func-base uint) (p-func-coeff uint) (p-func-b1 uint) (p-func-b2 uint) (p-func-b3 uint) (p-func-b4 uint) (p-func-b5 uint) (p-func-b6 uint) (p-func-b7 uint) (p-func-b8 uint) (p-func-b9 uint) (p-func-b10 uint) (p-func-b11 uint) (p-func-b12 uint) (p-func-b13 uint) (p-func-b14 uint) (p-func-b15 uint) (p-func-b16 uint) (p-func-non-alpha-discount uint) (p-func-no-vowel-discount uint) (lifetime uint) (namespace-import principal)) ;; The salt and namespace must hash to a preorder entry in the `namespace_preorders` table. ;; The sender must match the principal in the preorder entry (implied) (let ( (hashed-salted-namespace (hash160 (concat namespace namespace-salt))) (price-function (tuple (buckets (list p-func-b1 p-func-b2 p-func-b3 p-func-b4 p-func-b5 p-func-b6 p-func-b7 p-func-b8 p-func-b9 p-func-b10 p-func-b11 p-func-b12 p-func-b13 p-func-b14 p-func-b15 p-func-b16)) (base p-func-base) (coeff p-func-coeff) (nonalpha-discount p-func-non-alpha-discount) (no-vowel-discount p-func-no-vowel-discount))) (preorder (unwrap! (map-get? namespace-preorders { hashed-salted-namespace: hashed-salted-namespace, buyer: tx-sender }) (err ERR_NAMESPACE_PREORDER_NOT_FOUND))) (namespace-price (try! (get-namespace-price namespace)))) ;; The namespace must only have valid chars (asserts! (not (has-invalid-chars namespace)) (err ERR_NAMESPACE_CHARSET_INVALID)) ;; The namespace must not exist in the `namespaces` table, or be expired (asserts! (is-namespace-available namespace) (err ERR_NAMESPACE_ALREADY_EXISTS)) ;; The amount burnt must be equal to or greater than the cost of the namespace (asserts! (>= (get stx-burned preorder) namespace-price) (err ERR_NAMESPACE_STX_BURNT_INSUFFICIENT)) ;; This transaction must arrive within 24 hours of its `NAMESPACE_PREORDER` (asserts! (< block-height (+ (get created-at preorder) NAMESPACE_PREORDER_CLAIMABILITY_TTL)) (err ERR_NAMESPACE_PREORDER_CLAIMABILITY_EXPIRED)) ;; The preorder record for this namespace will be marked as "claimed" (map-set namespace-preorders { hashed-salted-namespace: hashed-salted-namespace, buyer: tx-sender } { created-at: (get created-at preorder), claimed: true, stx-burned: (get stx-burned preorder) }) ;; The namespace will be set as "revealed" but not "launched", its price function, its renewal rules, its version, ;; and its import principal will be written to the `namespaces` table. (map-set namespaces namespace { namespace-import: namespace-import, revealed-at: block-height, launched-at: none, lifetime: lifetime, can-update-price-function: true, price-function: price-function }) (ok true))) ;; NAME_IMPORT ;; Once a namespace is revealed, the user has the option to populate it with a set of names. Each imported name is given ;; both an owner and some off-chain state. This step is optional; Namespace creators are not required to import names. (define-public (name-import (namespace (buff 20)) (name (buff 48)) (beneficiary principal) (zonefile-hash (buff 20))) (let ( (namespace-props (unwrap! (map-get? namespaces namespace) (err ERR_NAMESPACE_NOT_FOUND)))) ;; The name must only have valid chars (asserts! (not (has-invalid-chars name)) (err ERR_NAME_CHARSET_INVALID)) ;; The sender principal must match the namespace's import principal (asserts! (is-eq (get namespace-import namespace-props) tx-sender) (err ERR_NAMESPACE_OPERATION_UNAUTHORIZED)) ;; The name's namespace must not be launched (asserts! (is-none (get launched-at namespace-props)) (err ERR_NAMESPACE_ALREADY_LAUNCHED)) ;; Less than 1 year must have passed since the namespace was "revealed" (asserts! (< block-height (+ (get revealed-at namespace-props) NAMESPACE_LAUNCHABILITY_TTL)) (err ERR_NAMESPACE_PREORDER_LAUNCHABILITY_EXPIRED)) ;; Mint the new name (try! (mint-or-transfer-name? namespace name beneficiary)) ;; Update zonefile and props (update-zonefile-and-props namespace name none (some block-height) ;; Set imported-at none zonefile-hash "name-import") (ok true))) ;; NAMESPACE_READY ;; The final step of the process launches the namespace and makes the namespace available to the public. Once a namespace ;; is launched, anyone can register a name in it if they pay the appropriate amount of cryptocurrency. (define-public (namespace-ready (namespace (buff 20))) (let ( (namespace-props (unwrap! (map-get? namespaces namespace) (err ERR_NAMESPACE_NOT_FOUND)))) ;; The sender principal must match the namespace's import principal (asserts! (is-eq (get namespace-import namespace-props) tx-sender) (err ERR_NAMESPACE_OPERATION_UNAUTHORIZED)) ;; The name's namespace must not be launched (asserts! (is-none (get launched-at namespace-props)) (err ERR_NAMESPACE_ALREADY_LAUNCHED)) ;; Less than 1 year must have passed since the namespace was "revealed" (asserts! (< block-height (+ (get revealed-at namespace-props) NAMESPACE_LAUNCHABILITY_TTL)) (err ERR_NAMESPACE_PREORDER_LAUNCHABILITY_EXPIRED)) (let ((namespace-props-updated (merge namespace-props { launched-at: (some block-height) }))) ;; The namespace will be set to "launched" (map-set namespaces namespace namespace-props-updated) ;; Emit an event (print { namespace: namespace, status: "ready", properties: namespace-props-updated }) (ok true)))) ;; NAMESPACE_UPDATE_FUNCTION_PRICE (define-public (namespace-update-function-price (namespace (buff 20)) (p-func-base uint) (p-func-coeff uint) (p-func-b1 uint) (p-func-b2 uint) (p-func-b3 uint) (p-func-b4 uint) (p-func-b5 uint) (p-func-b6 uint) (p-func-b7 uint) (p-func-b8 uint) (p-func-b9 uint) (p-func-b10 uint) (p-func-b11 uint) (p-func-b12 uint) (p-func-b13 uint) (p-func-b14 uint) (p-func-b15 uint) (p-func-b16 uint) (p-func-non-alpha-discount uint) (p-func-no-vowel-discount uint)) (let ( (namespace-props (unwrap! (map-get? namespaces namespace) (err ERR_NAMESPACE_NOT_FOUND))) (price-function (tuple (buckets (list p-func-b1 p-func-b2 p-func-b3 p-func-b4 p-func-b5 p-func-b6 p-func-b7 p-func-b8 p-func-b9 p-func-b10 p-func-b11 p-func-b12 p-func-b13 p-func-b14 p-func-b15 p-func-b16)) (base p-func-base) (coeff p-func-coeff) (nonalpha-discount p-func-non-alpha-discount) (no-vowel-discount p-func-no-vowel-discount)))) ;; The sender principal must match the namespace's import principal (asserts! (is-eq (get namespace-import namespace-props) tx-sender) (err ERR_NAMESPACE_OPERATION_UNAUTHORIZED)) ;; The namespace price function must still be editable (asserts! (get can-update-price-function namespace-props) (err ERR_NAMESPACE_OPERATION_UNAUTHORIZED)) (map-set namespaces namespace (merge namespace-props { price-function: price-function })) (ok true))) ;; NAMESPACE_REVOKE_PRICE_EDITION (define-public (namespace-revoke-function-price-edition (namespace (buff 20))) (let ( (namespace-props (unwrap! (map-get? namespaces namespace) (err ERR_NAMESPACE_NOT_FOUND)))) ;; The sender principal must match the namespace's import principal (asserts! (is-eq (get namespace-import namespace-props) tx-sender) (err ERR_NAMESPACE_OPERATION_UNAUTHORIZED)) (map-set namespaces namespace (merge namespace-props { can-update-price-function: false })) (ok true))) ;; NAME_PREORDER ;; This is the first transaction to be sent. It tells all BNS nodes the salted hash of the BNS name, ;; and it burns the registration fee. (define-public (name-preorder (hashed-salted-fqn (buff 20)) (stx-to-burn uint)) (let ((former-preorder (map-get? name-preorders { hashed-salted-fqn: hashed-salted-fqn, buyer: tx-sender }))) ;; Ensure eventual former pre-order expired (asserts! (if (is-none former-preorder) true (>= block-height (+ NAME_PREORDER_CLAIMABILITY_TTL (unwrap-panic (get created-at former-preorder))))) (err ERR_NAME_PREORDER_ALREADY_EXISTS)) (asserts! (> stx-to-burn u0) (err ERR_NAMESPACE_STX_BURNT_INSUFFICIENT)) ;; Ensure that the hashed fqn is 20 bytes long (asserts! (is-eq (len hashed-salted-fqn) u20) (err ERR_NAME_HASH_MALFORMED)) ;; Ensure that user will be burning a positive amount of tokens (asserts! (> stx-to-burn u0) (err ERR_NAME_STX_BURNT_INSUFFICIENT)) ;; Burn the tokens (unwrap! (stx-burn? stx-to-burn tx-sender) (err ERR_INSUFFICIENT_FUNDS)) ;; Register the pre-order (map-set name-preorders { hashed-salted-fqn: hashed-salted-fqn, buyer: tx-sender } { created-at: block-height, stx-burned: stx-to-burn, claimed: false }) (ok (+ block-height NAME_PREORDER_CLAIMABILITY_TTL)))) ;; NAME_REGISTRATION ;; This is the second transaction to be sent. It reveals the salt and the name to all BNS nodes, ;; and assigns the name an initial public key hash and zone file hash (define-public (name-register (namespace (buff 20)) (name (buff 48)) (salt (buff 20)) (zonefile-hash (buff 20))) (let ( (hashed-salted-fqn (hash160 (concat (concat (concat name 0x2e) namespace) salt))) (namespace-props (unwrap! (map-get? namespaces namespace) (err ERR_NAMESPACE_NOT_FOUND))) (preorder (unwrap! (map-get? name-preorders { hashed-salted-fqn: hashed-salted-fqn, buyer: tx-sender }) (err ERR_NAME_PREORDER_NOT_FOUND)))) ;; The name can be registered (asserts! (try! (can-name-be-registered namespace name)) (err ERR_NAME_UNAVAILABLE)) ;; The preorder must have been created after the launch of the namespace (asserts! (> (get created-at preorder) (unwrap-panic (get launched-at namespace-props))) (err ERR_NAME_PREORDERED_BEFORE_NAMESPACE_LAUNCH)) ;; The preorder entry must be unclaimed (asserts! (is-eq (get claimed preorder) false) (err ERR_NAME_ALREADY_CLAIMED)) ;; Less than 24 hours must have passed since the name was preordered (asserts! (< block-height (+ (get created-at preorder) NAME_PREORDER_CLAIMABILITY_TTL)) (err ERR_NAME_CLAIMABILITY_EXPIRED)) ;; The amount burnt must be equal to or greater than the cost of the name (asserts! (>= (get stx-burned preorder) (compute-name-price name (get price-function namespace-props))) (err ERR_NAME_STX_BURNT_INSUFFICIENT)) ;; Mint the name if new, transfer the name otherwise. (try! (mint-or-transfer-name? namespace name tx-sender)) ;; Update name's metadata / properties (update-zonefile-and-props namespace name (some block-height) none none zonefile-hash "name-register") (ok true))) ;; NAME_UPDATE ;; A NAME_UPDATE transaction changes the name's zone file hash. You would send one of these transactions ;; if you wanted to change the name's zone file contents. ;; For example, you would do this if you want to deploy your own Gaia hub and want other people to read from it. (define-public (name-update (namespace (buff 20)) (name (buff 48)) (zonefile-hash (buff 20))) (let ( (data (try! (check-name-ops-preconditions namespace name)))) ;; Update the zonefile (update-zonefile-and-props namespace name (get registered-at (get name-props data)) (get imported-at (get name-props data)) none zonefile-hash "name-update") (ok true))) ;; NAME_TRANSFER ;; A NAME_TRANSFER transaction changes the name's public key hash. You would send one of these transactions if you wanted to: ;; - Change your private key ;; - Send the name to someone else ;; When transferring a name, you have the option to also clear the name's zone file hash (i.e. set it to null). ;; This is useful for when you send the name to someone else, so the recipient's name does not resolve to your zone file. (define-public (name-transfer (namespace (buff 20)) (name (buff 48)) (new-owner principal) (zonefile-hash (optional (buff 20)))) (let ( (data (try! (check-name-ops-preconditions namespace name))) (can-new-owner-get-name (try! (can-receive-name new-owner)))) ;; The new owner does not own a name (asserts! can-new-owner-get-name (err ERR_PRINCIPAL_ALREADY_ASSOCIATED)) ;; Transfer the name (unwrap! (update-name-ownership? namespace name tx-sender new-owner) (err ERR_NAME_TRANSFER_FAILED)) ;; Update or clear the zonefile (update-zonefile-and-props namespace name (get registered-at (get name-props data)) (get imported-at (get name-props data)) none (if (is-none zonefile-hash) 0x (unwrap-panic zonefile-hash)) "name-transfer") (ok true))) ;; NAME_REVOKE ;; A NAME_REVOKE transaction makes a name unresolvable. The BNS consensus rules stipulate that once a name ;; is revoked, no one can change its public key hash or its zone file hash. ;; The name's zone file hash is set to null to prevent it from resolving. ;; You should only do this if your private key is compromised, or if you want to render your name unusable for whatever reason. (define-public (name-revoke (namespace (buff 20)) (name (buff 48))) (let ( (data (try! (check-name-ops-preconditions namespace name)))) ;; Clear the zonefile (update-zonefile-and-props namespace name (get registered-at (get name-props data)) (get imported-at (get name-props data)) (some block-height) 0x "name-revoke") (ok true))) ;; NAME_RENEWAL ;; Depending in the namespace rules, a name can expire. For example, names in the .id namespace expire after 2 years. ;; You need to send a NAME_RENEWAL every so often to keep your name. ;; You will pay the registration cost of your name to the namespace's designated burn address when you renew it. ;; When a name expires, it enters a month-long "grace period" (5000 blocks). ;; It will stop resolving in the grace period, and all of the above operations will cease to be honored by the BNS consensus rules. ;; You may, however, send a NAME_RENEWAL during this grace period to preserve your name. ;; If your name is in a namespace where names do not expire, then you never need to use this transaction. (define-public (name-renewal (namespace (buff 20)) (name (buff 48)) (stx-to-burn uint) (new-owner (optional principal)) (zonefile-hash (optional (buff 20)))) (let ( (namespace-props (unwrap! (map-get? namespaces namespace) (err ERR_NAMESPACE_NOT_FOUND))) (owner (unwrap! (nft-get-owner? names { name: name, namespace: namespace }) (err ERR_NAME_NOT_FOUND))) ;; The name must exist (name-props (unwrap! (map-get? name-properties { name: name, namespace: namespace }) (err ERR_NAME_NOT_FOUND)))) ;; The name must exist ;; The namespace must be launched (asserts! (is-some (get launched-at namespace-props)) (err ERR_NAMESPACE_NOT_LAUNCHED)) ;; The namespace should require renewals (asserts! (> (get lifetime namespace-props) u0) (err ERR_NAME_OPERATION_UNAUTHORIZED)) ;; The sender must match the name's current owner (asserts! (is-eq owner tx-sender) (err ERR_NAME_OPERATION_UNAUTHORIZED)) ;; If expired, the name must be in the renewal grace period. (if (try! (is-name-lease-expired namespace name)) (asserts! (is-eq (try! (is-name-in-grace-period namespace name)) true) (err ERR_NAME_EXPIRED)) true) ;; The amount burnt must be equal to or greater than the cost of the namespace (asserts! (>= stx-to-burn (compute-name-price name (get price-function namespace-props))) (err ERR_NAME_STX_BURNT_INSUFFICIENT)) ;; The name must not be revoked (asserts! (is-none (get revoked-at name-props)) (err ERR_NAME_REVOKED)) ;; Transfer the name, if any new-owner (if (is-none new-owner) true (try! (can-receive-name (unwrap-panic new-owner)))) ;; Update the zonefile, if any. (if (is-none zonefile-hash) (map-set name-properties { name: name, namespace: namespace } { registered-at: (some block-height), imported-at: none, revoked-at: none, zonefile-hash: (get zonefile-hash name-props) }) (update-zonefile-and-props namespace name (some block-height) none none (unwrap-panic zonefile-hash) "name-renewal")) (ok true))) ;; Additionals public methods (define-read-only (get-namespace-price (namespace (buff 20))) (let ((namespace-len (len namespace))) (asserts! (> namespace-len u0) (err ERR_NAMESPACE_BLANK)) (ok (unwrap-panic (element-at NAMESPACE_PRICE_TIERS (min u7 (- namespace-len u1))))))) (define-read-only (get-name-price (namespace (buff 20)) (name (buff 48))) (let ( (namespace-props (unwrap! (map-get? namespaces namespace) (err ERR_NAMESPACE_NOT_FOUND)))) (ok (compute-name-price name (get price-function namespace-props))))) (define-read-only (check-name-ops-preconditions (namespace (buff 20)) (name (buff 48))) (let ( (owner (unwrap! (nft-get-owner? names { name: name, namespace: namespace }) (err ERR_NAME_NOT_FOUND))) ;; The name must exist (namespace-props (unwrap! (map-get? namespaces namespace) (err ERR_NAMESPACE_NOT_FOUND))) (name-props (unwrap! (map-get? name-properties { name: name, namespace: namespace }) (err ERR_NAME_NOT_FOUND)))) ;; The name must exist ;; The namespace must be launched (asserts! (is-some (get launched-at namespace-props)) (err ERR_NAMESPACE_NOT_LAUNCHED)) ;; The sender must match the name's current owner (asserts! (is-eq owner tx-sender) (err ERR_NAME_OPERATION_UNAUTHORIZED)) ;; The name must not be in the renewal grace period (asserts! (is-eq (try! (is-name-in-grace-period namespace name)) false) (err ERR_NAME_GRACE_PERIOD)) ;; The name must not be expired (asserts! (is-eq (try! (is-name-lease-expired namespace name)) false) (err ERR_NAME_EXPIRED)) ;; The name must not be revoked (asserts! (is-none (get revoked-at name-props)) (err ERR_NAME_REVOKED)) (ok { namespace-props: namespace-props, name-props: name-props, owner: owner }))) (define-read-only (can-namespace-be-registered (namespace (buff 20))) (ok (is-namespace-available namespace))) (define-read-only (is-name-lease-expired (namespace (buff 20)) (name (buff 48))) (let ( (namespace-props (unwrap! (map-get? namespaces namespace) (err ERR_NAMESPACE_NOT_FOUND))) (name-props (unwrap! (map-get? name-properties { name: name, namespace: namespace }) (err ERR_NAME_NOT_FOUND))) (lease-started-at (try! (name-lease-started-at? (get launched-at namespace-props) (get revealed-at namespace-props) name-props))) (lifetime (get lifetime namespace-props))) (if (is-eq lifetime u0) (ok false) (ok (> block-height (+ lifetime lease-started-at)))))) (define-read-only (is-name-in-grace-period (namespace (buff 20)) (name (buff 48))) (let ( (namespace-props (unwrap! (map-get? namespaces namespace) (err ERR_NAMESPACE_NOT_FOUND))) (name-props (unwrap! (map-get? name-properties { name: name, namespace: namespace }) (err ERR_NAME_NOT_FOUND))) (lease-started-at (try! (name-lease-started-at? (get launched-at namespace-props) (get revealed-at namespace-props) name-props))) (lifetime (get lifetime namespace-props))) (if (is-eq lifetime u0) (ok false) (ok (and (> block-height (+ lifetime lease-started-at)) (<= block-height (+ (+ lifetime lease-started-at) NAME_GRACE_PERIOD_DURATION))))))) (define-read-only (resolve-principal (owner principal)) (match (map-get? owner-name owner) name (match (name-resolve (get namespace name) (get name name)) resolved-name (ok name) error (err {code: error, name: (some name)})) (err {code: ERR_NAME_NOT_FOUND, name: none}))) (define-read-only (can-receive-name (owner principal)) (let ((current-owned-name (map-get? owner-name owner))) (if (is-none current-owned-name) (ok true) (let ( (namespace (unwrap-panic (get namespace current-owned-name))) (name (unwrap-panic (get name current-owned-name)))) (if (is-namespace-available namespace) (ok true) (begin ;; Early return if lease is expired (asserts! (not (try! (is-name-lease-expired namespace name))) (ok true)) (let ( (name-props (unwrap-panic (map-get? name-properties { name: name, namespace: namespace })))) ;; Has name been revoked? (asserts! (is-some (get revoked-at name-props)) (ok false)) (ok true)))))))) (define-read-only (can-name-be-registered (namespace (buff 20)) (name (buff 48))) (let ( (wrapped-name-props (map-get? name-properties { name: name, namespace: namespace })) (namespace-props (unwrap! (map-get? namespaces namespace) (ok false)))) ;; The name must only have valid chars (asserts! (not (has-invalid-chars name)) (err ERR_NAME_CHARSET_INVALID)) ;; Ensure that namespace has been launched (unwrap! (get launched-at namespace-props) (ok false)) ;; Early return - Name has never be minted (asserts! (is-some (nft-get-owner? names { name: name, namespace: namespace })) (ok true)) (let ((name-props (unwrap-panic wrapped-name-props))) ;; Integrity check - Ensure that the name was either "imported" or "registered". (asserts! (is-eq (xor (match (get registered-at name-props) res 1 0) (match (get imported-at name-props) res 1 0)) 1) (err ERR_PANIC)) ;; Is lease expired? (is-name-lease-expired namespace name)))) (define-read-only (name-resolve (namespace (buff 20)) (name (buff 48))) (let ( (owner (unwrap! (nft-get-owner? names { name: name, namespace: namespace }) (err ERR_NAME_NOT_FOUND))) ;; The name must exist (name-props (unwrap! (map-get? name-properties { name: name, namespace: namespace }) (err ERR_NAME_NOT_FOUND))) (namespace-props (unwrap! (map-get? namespaces namespace) (err ERR_NAMESPACE_NOT_FOUND)))) ;; The name must not be in grace period (asserts! (not (try! (is-name-in-grace-period namespace name))) (err ERR_NAME_GRACE_PERIOD)) ;; The name must not be expired (asserts! (not (try! (is-name-lease-expired namespace name))) (err ERR_NAME_EXPIRED)) ;; The name must not be revoked (asserts! (is-none (get revoked-at name-props)) (err ERR_NAME_REVOKED)) ;; Get the zonefile (let ( (lease-started-at (try! (name-lease-started-at? (get launched-at namespace-props) (get revealed-at namespace-props) name-props)))) (ok { zonefile-hash: (get zonefile-hash name-props), owner: owner, lease-started-at: lease-started-at, lease-ending-at: (if (is-eq (get lifetime namespace-props) u0) none (some (+ lease-started-at (get lifetime namespace-props)))) })))) (define-read-only (get-namespace-properties (namespace (buff 20))) (let ( (namespace-props (unwrap! (map-get? namespaces namespace) (err ERR_NAMESPACE_NOT_FOUND)))) (ok { namespace: namespace, properties: namespace-props })))
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) none))) (define-private (mint-badge (user principal)) (let ((id (+ u1 (var-get last-id)))) (begin (asserts-panic (map-insert owners user {id: id})) (asserts-panic (var-set last-id id)) (asserts-panic (map-insert meta id {user: user})) (unwrap-panic (nft-mint? badge id user))))) (define-public (mint-all (users (list 5000 principal)) (total-badges uint)) (begin (if (is-eq (var-get last-id) u0) (var-set max-badges total-badges) true ) (if (and (< (var-get last-id) (var-get max-badges)) (is-eq tx-sender creator)) (ok (map mint-badge users)) (err u0)))) (define-read-only (get-owner? (id uint)) (nft-get-owner? badge id)) (define-read-only (get-last-id) (var-get last-id)) (define-read-only (get-meta? (id uint)) (map-get? meta id)) (define-read-only (get-meta-by-user? (user principal)) (match (map-get? owners user) owner (map-get? meta (get id owner)) none)) (define-read-only (get-badge-meta) {uri: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/2wCEAAQEBAQEBAYEBAYJBgYGCQwJCQkJDA8MDAwMDA8SDw8PDw8PEhISEhISEhIVFRUVFRUZGRkZGRwcHBwcHBwcHBwBBAUFBwcHDAcHDB0UEBQdHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHf/CABEIAlgCWAMBIgACEQEDEQH/xAAdAAAABwEBAQAAAAAAAAAAAAAAAQIDBAUGBwgJ/9oACAEBAAAAAPM8iRJkypUyysZ06XKfecWZmACBJbYjw4ECvrYUSLEhxIsWNHYaZbaS2lKEklKUkREkERJIJ7PJlSpUufaWdhOmSH3TAABkAAYDMaHW1tbWQocSHDhxY0VhllpttCEpQlJJSkiIkgiSRF26VKmS7K2s7GfKkumAZgAwZEQMw3FhVdZWVsKHChwokWLHYZaabQhCUoSkkpJJERERJIu6y5kyzt7SznS5CgFGRAjAMzBEZhqLAqaurr4kGFDhRI0ZhhlpttCEJShJJSSCJISCSRd8mTbS4trOwlvgGZEADAAMzBAwI8Stp6uqhxIUKFEixo8dlltttCEJShKSSlJEkJCSL0HOs7q2trCY8RmCABgAwADMEYDcaHUVbLz0esz2erokWPHZZabbQ2lCUEgkpSkJIgkvRdldXFvZzXQZkDAAAAABmADNWmv7dSKqopw/e2SKXC8x5JURGGGmm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HUsFZ6jiaDu9VAc4nsb1ZLyiRNUHChkihLaqUPfdFZI4WHvQqjsHlsVc1RVU+BBM1L8vtFwjOKugKlTgKDXxVvqOFg7vCrXXZ18wVLkWU96yfIqQtFz/aqJHSFZwRkUUZXfCmLlUrWqmZ5D2Q40TUYecnnsQWTAN4DcFUeYTQn7YcqcRGxV94rJwxj+4A76jUV4oDcI4jD/AOr8yNCykMUODckWL0cTGjzVQmi/slDMWN6p7kLqFDxC4kuMD1Cy5gP9wcbQspDHCS0igjI+Q+SeY5hnHkPuiaCCjIX8RtBHB1EIv/If/TLJgDT9FZMiEEiYIIa2jMayJ+KG9vqoQdbcVkiAnCylcVlRMXhF5K0U6I/BGb9I9woqEHEAoMiTDc7b2UHhFb53zKMtAt1k8EGiBLm8WBnwmeahbTzR8w9iJhdaoEfekozxRBUA2qFArgo7FlQCowRoKKKp5DnCirdoQOtD4EOZioEGWUA1rKhZQbVEFEFGGGCywD6Qo3COYqJlGhK8lfxMD3eIdUXCKPwAhnCDwlQt5Ag+KDAeYODYV6DdYenBZUhlEjP4or5RP2h8YZxmHthD5IQ9we3/AP/Z"})
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 returns a balance above zero - if not, rectify ;; by requesting more funds from the Faucet of Blockstack Explorer: ;; -> Publish the contract using Deploy Contract from the toolbox menu ;; then replace the string below with the name of the published contract: (define-constant contract .contract-0) ;; The contract function can be called when the contract is deployed. ;; The test verifies that the balance from the contract call is correct. ;; Note: It may take a few minutes before the contract is ready. ;; If it says no such contract exists, wait then refresh the call ;; by typing in the editor. ;;
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) 1)) (ok (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-fungible-token hello-nft uint) (begin (nft-mint? hello-nft u1 sender)) (begin (nft-mint? hello-nft u2 sender)) (begin (nft-transfer? hello-nft u1 sender recipient)) (define-public (test-emit-event) (begin (print "Event! Hello world") (ok u1))) (begin (test-emit-event)) (define-public (test-event-types) (begin (unwrap-panic (ft-mint? novel-token-19 u3 recipient)) (unwrap-panic (nft-mint? hello-nft u2 recipient)) (unwrap-panic (stx-transfer? u60 tx-sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)) (unwrap-panic (stx-burn? u20 tx-sender)) (ok u1))) (define-map store ((key (buff 32))) ((value (buff 32)))) (define-public (get-value (key (buff 32))) (begin (match (map-get? store ((key key))) entry (ok (get value entry)) (err 0)))) (define-public (set-value (key (buff 32)) (value (buff 32))) (begin (map-set store ((key key)) ((value value))) (ok u1)))
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 512)) ) (begin (print tx-sender) (print status) (map-set statuses ((author tx-sender)) ((status status)) ) (ok status) ) )
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 512)) ) (begin (print tx-sender) (print status) (map-set statuses ((author tx-sender)) ((status status)) ) (ok status) ) )
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)) (mime-type (string-ascii 129)) (hash (buff 64)) )) (define-map index-by-series-item (tuple (creator principal) (series-name (string-utf8 80)) (number uint)) uint) (define-map series-meta (tuple (creator principal) (series-name (string-utf8 80)) ) (tuple (count uint) (uri (string-ascii 2048)))) (define-private (update-series-meta (creator principal) (series-name (string-utf8 80)) (uri (string-ascii 2048))) (match (map-get? series-meta {creator: creator, series-name: series-name}) entry (map-set series-meta {creator: creator, series-name: series-name} {count: (+ u1 (get count entry)), uri: (get uri entry)}) (map-insert series-meta {creator: creator, series-name: series-name} {count: u1, uri: uri}))) (define-private (mint-boom (entry (tuple (name (string-utf8 80)) (number uint) (uri (string-ascii 2048)) (mime-type (string-ascii 129)) (hash (buff 64)))) (context (tuple (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-name (string-utf8 80)) (count uint) (ids (list 10 uint))))) (let ((id (+ u1 (var-get last-id))) (creator (get creator context)) (creator-name (get creator-name context)) (series-name (get series-name context)) (count (get count context)) (ids (get ids context)) (number (get number entry)) (uri (get uri entry)) (mime-type (get mime-type entry)) (hash (get hash entry))) (begin (unwrap-panic (nft-mint? boom id creator)) (asserts-panic (var-set last-id id)) (asserts-panic (map-insert meta id {creator: creator, creator-name: creator-name, series-name: series-name, number: number, name: (get name entry), uri: uri, mime-type: mime-type, hash: hash})) (asserts-panic (map-insert index-by-series-item {creator: creator, series-name: series-name, number: number} id)) (update-series-meta creator series-name uri) {creator: creator, creator-name: creator-name, series-name: series-name, count: (+ u1 count), ids: (unwrap-panic (as-max-len? (append ids id) u10))}))) (define-public (mint-series (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-name (string-utf8 80)) (copies (list 10 (tuple (name (string-utf8 80)) (number uint) (uri (string-ascii 2048)) (mime-type (string-ascii 129)) (hash (buff 64)))))) (let ((context (fold mint-boom copies {creator: creator, creator-name: creator-name, series-name: series-name, count: u0, ids: (list)}))) (ok {count: (get count context), ids: (get ids context)}))) ;; error codes ;; (err u1) -- sender does not own the asset ;; (err u2) -- sender and recipient are the same principal ;; (err u3) -- asset identified by asset-identifier does not exist ;; (err u4) -- sender is not tx sender or contract caller (define-public (transfer (id uint) (sender principal) (recipient principal)) (if (or (is-eq sender tx-sender) (is-eq sender contract-caller)) (match (nft-transfer? boom id sender recipient) success (ok success) error (err {kind: "nft-transfer-failed", code: error})) (err {kind: "permission-denied", code: u4}))) (define-public (burn (id uint)) (match (get-owner-raw? id) owner (if (or (is-eq owner tx-sender) (is-eq owner contract-caller)) (nft-burn? boom id owner) (err u4)) (err u3))) (define-read-only (get-owner (id uint)) (ok (nft-get-owner? boom id))) (define-read-only (get-owner-raw? (id uint)) (nft-get-owner? boom id)) (define-read-only (get-boom-meta) {uri: "boom10.png", name: "Boom NFT (max per series: 10)"} ) (define-read-only (get-series-meta? (creator principal) (series-name (string-utf8 80))) (map-get? series-meta {creator: creator, series-name: series-name})) (define-read-only (get-meta? (creator principal) (series-name (string-utf8 80)) (number uint)) (match (map-get? index-by-series-item {creator: creator, series-name: series-name, number: number}) id (map-get? meta id) none)) (define-read-only (last-token-id) (ok (var-get last-id))) (define-read-only (last-token-id-raw) (var-get last-id)) (define-private (asserts-panic (value bool)) (unwrap-panic (if value (some value) none)))
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 (err err-value))) (define-public (send-many (recipients (list 200 { to: principal, ustx: uint }))) (fold check-err (map send-stx recipients) (ok true)))
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 (err err-value))) (define-public (send-many (recipients (list 200 { to: principal, ustx: uint }))) (fold check-err (map send-stx recipients) (ok true)))
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" "Yo mama's so poor she waves around a popsicle and calls it air conditioning" "Yo mama's so poor she uses Cheerios for earrings" "Yo mama's so poor she opend a Gmail account just so she could eat the spam" "Yo mama's so poor when she gets mad she can't afford to fly off the handle so she's gotta go Greyhound off the handle" "Yo mama's so poor she cuts coupons out to be institutionalized" "Yo mama's so poor she only understands hand-outs" "Yo mama's so poor she walked down the road with one shoe. And if you ask her if she lost a shoe, she'd say \"No, I found one.\"" )) (define-private (humiliate) (default-to "Got no more yo mama jokes" (element-at yo-mama-jokes (mod block-height (len yo-mama-jokes))))) (define-private (does-meet-threshold) (< (contract-call? 'ST000000000000000000002AMW42H.pox get-stacking-minimum) (stx-get-balance tx-sender))) (define-read-only (cartman-can-i-stack) (if (does-meet-threshold) "Yes you can" (humiliate)))
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" "Yo mama's so poor she waves around a popsicle and calls it air conditioning" "Yo mama's so poor she uses Cheerios for earrings" "Yo mama's so poor she opend a Gmail account just so she could eat the spam" "Yo mama's so poor when she gets mad she can't afford to fly off the handle so she's gotta go Greyhound off the handle" "Yo mama's so poor she cuts coupons out to be institutionalized" "Yo mama's so poor she only understands hand-outs" "Yo mama's so poor she walked down the road with one shoe. And if you ask her if she lost a shoe, she'd say \"No, I found one.\"" )) (define-private (humiliate) (default-to "Got no more yo mama jokes" (element-at yo-mama-jokes (mod block-height (len yo-mama-jokes))))) (define-private (does-meet-threshold) (< (contract-call? 'SP000000000000000000002Q6VF78.pox get-stacking-minimum) (/ (stx-get-balance tx-sender) u1000000))) (define-read-only (cartman-can-i-stack) (if (does-meet-threshold) "Yes you can" (humiliate)))
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" "Yo mama's so poor she waves around a popsicle and calls it air conditioning" "Yo mama's so poor she uses Cheerios for earrings" "Yo mama's so poor she opend a Gmail account just so she could eat the spam" "Yo mama's so poor when she gets mad she can't afford to fly off the handle so she's gotta go Greyhound off the handle" "Yo mama's so poor she cuts coupons out to be institutionalized" "Yo mama's so poor she only understands hand-outs" "Yo mama's so poor she walked down the road with one shoe. And if you ask her if she lost a shoe, she'd say \"No, I found one.\"" )) (define-private (humiliate) (default-to "Got no more yo mama jokes" (element-at yo-mama-jokes (mod block-height (len yo-mama-jokes))))) (define-private (does-meet-threshold) (< (contract-call? 'ST000000000000000000002AMW42H.pox get-stacking-minimum) (stx-get-balance tx-sender))) (define-read-only (cartman-can-i-stack) (if (does-meet-threshold) "Yes you can" (humiliate)))
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" "Yo mama's so poor she waves around a popsicle and calls it air conditioning" "Yo mama's so poor she uses Cheerios for earrings" "Yo mama's so poor she opend a Gmail account just so she could eat the spam" "Yo mama's so poor when she gets mad she can't afford to fly off the handle so she's gotta go Greyhound off the handle" "Yo mama's so poor she cuts coupons out to be institutionalized" "Yo mama's so poor she only understands hand-outs" "Yo mama's so poor she walked down the road with one shoe. And if you ask her if she lost a shoe, she'd say \"No, I found one.\"" )) (define-private (humiliate) (default-to "Got no more yo mama jokes" (element-at yo-mama-jokes (mod block-height (len yo-mama-jokes))))) (define-private (does-meet-threshold) (< (contract-call? 'SP000000000000000000002Q6VF78.pox get-stacking-minimum) (stx-get-balance tx-sender))) (define-read-only (cartman-can-i-stack) (if (does-meet-threshold) "Yes you can" (humiliate)))
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 index-by-series-item (tuple (series-id uint) (number uint)) uint) (define-map series-meta uint (tuple (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-name (string-utf8 80)) (count uint) (uri (string-ascii 2048)) (mime-type (string-ascii 129)) )) (define-private (owns-name (user principal) (username (tuple (namespace (buff 20)) (name (buff 48))))) (match (contract-call? 'ST000000000000000000002AMW42H.bns name-resolve (get namespace username) (get name username)) details (is-eq user (get owner details)) error false ) ) (define-private (inc-last-series-id) (let ((series-id (+ u1 (var-get last-series-id)))) (begin (var-set last-series-id series-id) series-id ))) (define-private (is-creator (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48)))))) (and (or (is-eq creator tx-sender) (is-eq creator contract-caller)) (match creator-name username (owns-name creator username) true ))) (define-private (same-series-meta (series-id uint) (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-name (string-utf8 80)) (uri (string-ascii 2048))) (match (get-series-meta-raw? series-id) entry (and (or (is-eq creator tx-sender) (is-eq creator contract-caller)) (is-eq creator (get creator entry)) (is-eq creator-name (get creator-name entry)) (is-eq series-name (get series-name entry)) (is-eq uri (get uri entry))) false ) ) (define-private (update-series-meta (series-id uint) (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-name (string-utf8 80)) (uri (string-ascii 2048)) (mime-type (string-ascii 129))) (match (map-get? series-meta series-id) entry (map-set series-meta series-id {creator: (get creator entry), creator-name: (get creator-name entry), series-name: (get series-name entry), count: (+ u1 (get count entry)), uri: (get uri entry), mime-type: (get mime-type entry)}) (map-insert series-meta series-id {creator: creator, creator-name: creator-name, series-name: series-name, count: u1, uri: uri, mime-type: mime-type}))) (define-private (mint-boom (entry (tuple (number uint) (name (string-utf8 80)) (uri (string-ascii 2048)) (mime-type (string-ascii 129)) (hash (buff 64)))) (context (tuple (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-id uint) (series-name (string-utf8 80)) (series-uri (string-ascii 2048)) (series-mime-type (string-ascii 129)) (count uint) (ids (list 10 uint))))) (let ((id (+ u1 (var-get last-id))) (creator (get creator context)) (creator-name (get creator-name context)) (series-id (get series-id context)) (series-name (get series-name context)) (series-uri (get series-uri context)) (series-mime-type (get series-mime-type context)) (count (get count context)) (ids (get ids context)) (number (get number entry)) (uri (get uri entry)) (mime-type (get mime-type entry)) (hash (get hash entry))) (begin (unwrap-panic (nft-mint? boom id creator)) (asserts-panic (var-set last-id id)) (asserts-panic (map-insert meta id {series-id: series-id, number: number, name: (get name entry), uri: uri, mime-type: mime-type, hash: hash})) (asserts-panic (map-insert index-by-series-item {series-id: series-id, number: number} id)) (update-series-meta series-id creator creator-name series-name series-uri series-mime-type) {creator: creator, creator-name: creator-name, series-id: series-id, series-name: series-name, series-uri: series-uri, series-mime-type: series-mime-type, count: (+ u1 count), ids: (unwrap-panic (as-max-len? (append ids id) u10))}))) (define-public (mint-series (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (existing-series-id (optional uint)) (series-name (string-utf8 80)) (series-uri (string-ascii 2048)) (series-mime-type (string-ascii 129)) (copies (list 10 (tuple (name (string-utf8 80)) (number uint) (uri (string-ascii 2048)) (mime-type (string-ascii 129)) (hash (buff 64)))))) (let ((series-id (match existing-series-id id (begin (asserts! (same-series-meta id creator creator-name series-name series-uri) (err {kind: "permission-denied", code: u0})) id) (begin (asserts! (is-creator creator creator-name) (err {kind: "not-creator", code: u1})) (inc-last-series-id))))) (let ((context (fold mint-boom copies {creator: creator, creator-name: creator-name, series-id: series-id, series-name: series-name, series-uri: series-uri, series-mime-type: series-mime-type, count: u0, ids: (list)}))) (ok {count: (get count context), ids: (get ids context), series-id: series-id})))) ;; error codes ;; (err u1) -- sender does not own the asset ;; (err u2) -- sender and recipient are the same principal ;; (err u3) -- asset identified by asset-identifier does not exist ;; (err u4) -- sender is not tx sender or contract caller (define-public (transfer (id uint) (sender principal) (recipient principal)) (if (or (is-eq sender tx-sender) (is-eq sender contract-caller)) (match (nft-transfer? boom id sender recipient) success (ok success) error (err {kind: "nft-transfer-failed", code: error})) (err {kind: "permission-denied", code: u4}))) (define-public (burn (id uint)) (match (get-owner-raw? id) owner (if (or (is-eq owner tx-sender) (is-eq owner contract-caller)) (nft-burn? boom id owner) (err u4)) (err u3))) (define-read-only (get-owner (id uint)) (ok (nft-get-owner? boom id))) (define-read-only (get-owner-raw? (id uint)) (nft-get-owner? boom id)) (define-read-only (get-boom-meta) {uri: "https://boom.money/images/boom10.png", name: "Boom Collectible", mime-type: "image/png"} ) (define-read-only (get-series-meta-raw? (series-id uint)) (map-get? series-meta series-id)) (define-read-only (get-meta? (id uint)) (map-get? meta id)) (define-read-only (get-meta-by-serial? (series-id uint) (number uint)) (match (map-get? index-by-series-item {series-id: series-id, number: number}) id (map-get? meta id) none)) (define-read-only (last-token-id) (ok (var-get last-id))) (define-read-only (last-token-id-raw) (var-get last-id)) (define-read-only (last-series-id-raw) (var-get last-series-id) ) (define-private (asserts-panic (value bool)) (unwrap-panic (if value (some value) none)))
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 index-by-series-item (tuple (series-id uint) (number uint)) uint) (define-map series-meta uint (tuple (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-name (string-utf8 80)) (count uint) (uri (string-ascii 2048)) (mime-type (string-ascii 129)) )) (define-private (owns-name (user principal) (username (tuple (namespace (buff 20)) (name (buff 48))))) (match (contract-call? 'SP000000000000000000002Q6VF78.bns name-resolve (get namespace username) (get name username)) details (is-eq user (get owner details)) error false ) ) (define-private (inc-last-series-id) (let ((series-id (+ u1 (var-get last-series-id)))) (begin (var-set last-series-id series-id) series-id ))) (define-private (is-creator (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48)))))) (and (or (is-eq creator tx-sender) (is-eq creator contract-caller)) (match creator-name username (owns-name creator username) true ))) (define-private (same-series-meta (series-id uint) (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-name (string-utf8 80)) (uri (string-ascii 2048))) (match (get-series-meta-raw? series-id) entry (and (or (is-eq creator tx-sender) (is-eq creator contract-caller)) (is-eq creator (get creator entry)) (is-eq creator-name (get creator-name entry)) (is-eq series-name (get series-name entry)) (is-eq uri (get uri entry))) false ) ) (define-private (update-series-meta (series-id uint) (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-name (string-utf8 80)) (uri (string-ascii 2048)) (mime-type (string-ascii 129))) (match (map-get? series-meta series-id) entry (map-set series-meta series-id {creator: (get creator entry), creator-name: (get creator-name entry), series-name: (get series-name entry), count: (+ u1 (get count entry)), uri: (get uri entry), mime-type: (get mime-type entry)}) (map-insert series-meta series-id {creator: creator, creator-name: creator-name, series-name: series-name, count: u1, uri: uri, mime-type: mime-type}))) (define-private (mint-boom (entry (tuple (number uint) (name (string-utf8 80)) (uri (string-ascii 2048)) (mime-type (string-ascii 129)) (hash (buff 64)))) (context (tuple (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-id uint) (series-name (string-utf8 80)) (series-uri (string-ascii 2048)) (series-mime-type (string-ascii 129)) (count uint) (ids (list 10 uint))))) (let ((id (+ u1 (var-get last-id))) (creator (get creator context)) (creator-name (get creator-name context)) (series-id (get series-id context)) (series-name (get series-name context)) (series-uri (get series-uri context)) (series-mime-type (get series-mime-type context)) (count (get count context)) (ids (get ids context)) (number (get number entry)) (uri (get uri entry)) (mime-type (get mime-type entry)) (hash (get hash entry))) (begin (unwrap-panic (nft-mint? boom id creator)) (asserts-panic (var-set last-id id)) (asserts-panic (map-insert meta id {series-id: series-id, number: number, name: (get name entry), uri: uri, mime-type: mime-type, hash: hash})) (asserts-panic (map-insert index-by-series-item {series-id: series-id, number: number} id)) (update-series-meta series-id creator creator-name series-name series-uri series-mime-type) {creator: creator, creator-name: creator-name, series-id: series-id, series-name: series-name, series-uri: series-uri, series-mime-type: series-mime-type, count: (+ u1 count), ids: (unwrap-panic (as-max-len? (append ids id) u10))}))) (define-public (mint-series (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (existing-series-id (optional uint)) (series-name (string-utf8 80)) (series-uri (string-ascii 2048)) (series-mime-type (string-ascii 129)) (copies (list 10 (tuple (name (string-utf8 80)) (number uint) (uri (string-ascii 2048)) (mime-type (string-ascii 129)) (hash (buff 64)))))) (let ((series-id (match existing-series-id id (begin (asserts! (same-series-meta id creator creator-name series-name series-uri) (err {kind: "permission-denied", code: u0})) id) (begin (asserts! (is-creator creator creator-name) (err {kind: "not-creator", code: u1})) (inc-last-series-id))))) (let ((context (fold mint-boom copies {creator: creator, creator-name: creator-name, series-id: series-id, series-name: series-name, series-uri: series-uri, series-mime-type: series-mime-type, count: u0, ids: (list)}))) (ok {count: (get count context), ids: (get ids context), series-id: series-id})))) ;; error codes ;; (err u1) -- sender does not own the asset ;; (err u2) -- sender and recipient are the same principal ;; (err u3) -- asset identified by asset-identifier does not exist ;; (err u4) -- sender is not tx sender or contract caller (define-public (transfer (id uint) (sender principal) (recipient principal)) (if (or (is-eq sender tx-sender) (is-eq sender contract-caller)) (match (nft-transfer? boom id sender recipient) success (ok success) error (err {kind: "nft-transfer-failed", code: error})) (err {kind: "permission-denied", code: u4}))) (define-public (burn (id uint)) (match (get-owner-raw? id) owner (if (or (is-eq owner tx-sender) (is-eq owner contract-caller)) (nft-burn? boom id owner) (err u4)) (err u3))) (define-read-only (get-owner (id uint)) (ok (nft-get-owner? boom id))) (define-read-only (get-owner-raw? (id uint)) (nft-get-owner? boom id)) (define-read-only (get-boom-meta) {uri: "https://boom.money/images/boom10.png", name: "Boom Collectible", mime-type: "image/png"} ) (define-read-only (get-series-meta-raw? (series-id uint)) (map-get? series-meta series-id)) (define-read-only (get-meta? (id uint)) (map-get? meta id)) (define-read-only (get-meta-by-serial? (series-id uint) (number uint)) (match (map-get? index-by-series-item {series-id: series-id, number: number}) id (map-get? meta id) none)) (define-read-only (last-token-id) (ok (var-get last-id))) (define-read-only (last-token-id-raw) (var-get last-id)) (define-read-only (last-series-id-raw) (var-get last-series-id) ) (define-private (asserts-panic (value bool)) (unwrap-panic (if value (some value) none)))
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 recipient) (get to recipient) (get memo recipient))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (send-many (recipients (list 200 { to: principal, ustx: uint, memo: (buff 34) }))) (fold check-err (map send-stx recipients) (ok true)))
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? nothing amount tx-sender to)) (define-public (donate-to-dan) (stx-transfer? u100000000 tx-sender 'SP1AWFMSB3AGMFZY9JBWR9GRWR6EHBTMVA9JW4M20)) (define-public (donate-to-brad) (stx-transfer? u100000000 tx-sender 'SPT9JHCME25ZBZM9WCGP7ZN38YA82F77YM5HM08B)) (define-public (donate-to-haz) (stx-transfer? u100000000 tx-sender 'SP2F2NYNDDJTAXFB62PJX351DCM4ZNEVRYJSC92CT))
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? nothing amount tx-sender to)) (define-public (donate-to-dan) (stx-transfer? u100000000 tx-sender 'SP1AWFMSB3AGMFZY9JBWR9GRWR6EHBTMVA9JW4M20)) (define-public (donate-to-brad) (stx-transfer? u100000000 tx-sender 'SPT9JHCME25ZBZM9WCGP7ZN38YA82F77YM5HM08B)) (define-public (donate-to-haz) (stx-transfer? u100000000 tx-sender 'SP2F2NYNDDJTAXFB62PJX351DCM4ZNEVRYJSC92CT))
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 amount tx-sender to)) (define-public (donate-to-dan) (stx-transfer? u100000000 tx-sender 'SP1AWFMSB3AGMFZY9JBWR9GRWR6EHBTMVA9JW4M20)) (define-public (donate-to-brad) (stx-transfer? u100000000 tx-sender 'SPT9JHCME25ZBZM9WCGP7ZN38YA82F77YM5HM08B)) (define-public (donate-to-haz) (stx-transfer? u100000000 tx-sender 'SP2F2NYNDDJTAXFB62PJX351DCM4ZNEVRYJSC92CT))
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 or ;; (at your option) any later version. ;; Blockstack is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY, including without the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with Blockstack. If not, see <http://www.gnu.org/licenses/>. ;; Fungible Token, modeled after ERC-20 (define-fungible-token micro-nothing) ;; Storage (define-map allowances ((spender principal) (owner principal)) ((allowance uint))) (define-data-var total-supply uint u0) ;; Internals ;; Total number of tokens in existence. (define-private (get-total-supply) (var-get total-supply)) ;; Gets the amount of tokens that an owner allowed to a spender. (define-private (allowance-of (spender principal) (owner principal)) (begin (print (map-get? allowances ((spender spender) (owner owner)))) (print (get allowance (map-get? allowances ((spender spender) (owner owner))))) (default-to u0 (get allowance (map-get? allowances ((spender spender) (owner owner)))))) ) (define-public (get-allowance-of (spender principal) (owner principal)) (ok (allowance-of spender owner)) ) ;; Transfers tokens to a specified principal. (define-public (transfer (recipient principal) (amount uint)) (ft-transfer? micro-nothing amount tx-sender recipient) ) ;; Decrease allowance of a specified spender. (define-private (decrease-allowance (spender principal) (owner principal) (amount uint)) (let ((allowance (allowance-of spender owner))) (if (or (> amount allowance) (<= amount u0)) true (begin (map-set allowances ((spender spender) (owner owner)) ((allowance (- allowance amount)))) true)))) ;; Internal - Increase allowance of a specified spender. (define-private (increase-allowance (spender principal) (owner principal) (amount uint)) (let ((allowance (allowance-of spender owner))) (if (<= amount u0) false (begin (print (tuple (spender spender) (owner owner))) (print (map-set allowances ((spender spender) (owner owner)) ((allowance (+ allowance amount))))) true)))) ;; Public functions ;; Transfers tokens to a specified principal. (define-public (transfer-token (recipient principal) (amount uint)) (transfer recipient amount) ) ;; Transfers tokens to a specified principal, performed by a spender (define-public (transfer-from (owner principal) (recipient principal) (amount uint)) (let ((allowance (allowance-of tx-sender owner))) (if (or (> amount allowance) (<= amount u0)) (err false) (if (and (is-ok (ft-transfer? micro-nothing amount owner recipient)) (decrease-allowance tx-sender owner amount)) (ok true) (err false))))) ;; Update the allowance for a given spender (define-public (approve (spender principal) (amount uint)) (if (and (> amount u0) (increase-allowance spender tx-sender amount)) (ok amount) (err false))) ;; Revoke a given spender (define-public (revoke (spender principal)) (let ((allowance (allowance-of spender tx-sender))) (if (and (> allowance u0) (decrease-allowance spender tx-sender allowance)) (ok 0) (err false)))) (define-public (balance-of (owner principal)) (begin (print owner) (ok (ft-get-balance micro-nothing owner)) ) ) ;; Mint new tokens. (define-private (mint! (account principal) (amount uint)) (if (<= amount u0) (err false) (begin (var-set total-supply (+ (var-get total-supply) amount)) (ft-mint? micro-nothing amount account) (ok amount)))) (define-public (transfer (to principal) (amount uint)) (ft-transfer? micro-nothing amount tx-sender to)) ;; Initialize the contract (begin (mint! 'SP1AWFMSB3AGMFZY9JBWR9GRWR6EHBTMVA9JW4M20 u20000000000000) (mint! 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60 u20000000000000) (mint! 'SP2F2NYNDDJTAXFB62PJX351DCM4ZNEVRYJSC92CT u20000000000000) (mint! 'SPT9JHCME25ZBZM9WCGP7ZN38YA82F77YM5HM08B u20000000000000))
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 or ;; (at your option) any later version. ;; Blockstack is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY, including without the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with Blockstack. If not, see <http://www.gnu.org/licenses/>. ;; Fungible Token, modeled after ERC-20 (define-fungible-token micro-nothing) ;; Storage (define-map allowances ((spender principal) (owner principal)) ((allowance uint))) (define-data-var total-supply uint u0) ;; Internals ;; Total number of tokens in existence. (define-private (get-total-supply) (var-get total-supply)) ;; Gets the amount of tokens that an owner allowed to a spender. (define-private (allowance-of (spender principal) (owner principal)) (begin (print (map-get? allowances ((spender spender) (owner owner)))) (print (get allowance (map-get? allowances ((spender spender) (owner owner))))) (default-to u0 (get allowance (map-get? allowances ((spender spender) (owner owner)))))) ) (define-public (get-allowance-of (spender principal) (owner principal)) (ok (allowance-of spender owner)) ) ;; Transfers tokens to a specified principal. (define-public (transfer (recipient principal) (amount uint)) (ft-transfer? micro-nothing amount tx-sender recipient) ) ;; Decrease allowance of a specified spender. (define-private (decrease-allowance (spender principal) (owner principal) (amount uint)) (let ((allowance (allowance-of spender owner))) (if (or (> amount allowance) (<= amount u0)) true (begin (map-set allowances ((spender spender) (owner owner)) ((allowance (- allowance amount)))) true)))) ;; Internal - Increase allowance of a specified spender. (define-private (increase-allowance (spender principal) (owner principal) (amount uint)) (let ((allowance (allowance-of spender owner))) (if (<= amount u0) false (begin (print (tuple (spender spender) (owner owner))) (print (map-set allowances ((spender spender) (owner owner)) ((allowance (+ allowance amount))))) true)))) ;; Public functions ;; Transfers tokens to a specified principal. (define-public (transfer-token (recipient principal) (amount uint)) (transfer recipient amount) ) ;; Transfers tokens to a specified principal, performed by a spender (define-public (transfer-from (owner principal) (recipient principal) (amount uint)) (let ((allowance (allowance-of tx-sender owner))) (if (or (> amount allowance) (<= amount u0)) (err false) (if (and (is-ok (ft-transfer? micro-nothing amount owner recipient)) (decrease-allowance tx-sender owner amount)) (ok true) (err false))))) ;; Update the allowance for a given spender (define-public (approve (spender principal) (amount uint)) (if (and (> amount u0) (increase-allowance spender tx-sender amount)) (ok amount) (err false))) ;; Revoke a given spender (define-public (revoke (spender principal)) (let ((allowance (allowance-of spender tx-sender))) (if (and (> allowance u0) (decrease-allowance spender tx-sender allowance)) (ok 0) (err false)))) (define-public (balance-of (owner principal)) (begin (print owner) (ok (ft-get-balance micro-nothing owner)) ) ) ;; Mint new tokens. (define-private (mint! (account principal) (amount uint)) (if (<= amount u0) (err false) (begin (var-set total-supply (+ (var-get total-supply) amount)) (ft-mint? micro-nothing amount account) (ok amount)))) (define-public (transfer (to principal) (amount uint)) (ft-transfer? micro-nothing amount tx-sender to)) ;; Initialize the contract (begin (mint! 'SP1AWFMSB3AGMFZY9JBWR9GRWR6EHBTMVA9JW4M20 u20000000000) (mint! 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60 u20000000000) (mint! 'SP2F2NYNDDJTAXFB62PJX351DCM4ZNEVRYJSC92CT u20000000000) (mint! 'SPT9JHCME25ZBZM9WCGP7ZN38YA82F77YM5HM08B u20000000000))
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 or ;; (at your option) any later version. ;; Blockstack is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY, including without the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with Blockstack. If not, see <http://www.gnu.org/licenses/>. ;; Fungible Token, modeled after ERC-20 (define-fungible-token micro-nothing) ;; Storage (define-map allowances ((spender principal) (owner principal)) ((allowance uint))) (define-data-var total-supply uint u0) ;; Internals ;; Total number of tokens in existence. (define-private (get-total-supply) (var-get total-supply)) ;; Gets the amount of tokens that an owner allowed to a spender. (define-private (allowance-of (spender principal) (owner principal)) (begin (print (map-get? allowances ((spender spender) (owner owner)))) (print (get allowance (map-get? allowances ((spender spender) (owner owner))))) (default-to u0 (get allowance (map-get? allowances ((spender spender) (owner owner)))))) ) (define-public (get-allowance-of (spender principal) (owner principal)) (ok (allowance-of spender owner)) ) ;; Transfers tokens to a specified principal. (define-public (transfer (recipient principal) (amount uint)) (ft-transfer? micro-nothing amount tx-sender recipient) ) ;; Decrease allowance of a specified spender. (define-private (decrease-allowance (spender principal) (owner principal) (amount uint)) (let ((allowance (allowance-of spender owner))) (if (or (> amount allowance) (<= amount u0)) true (begin (map-set allowances ((spender spender) (owner owner)) ((allowance (- allowance amount)))) true)))) ;; Internal - Increase allowance of a specified spender. (define-private (increase-allowance (spender principal) (owner principal) (amount uint)) (let ((allowance (allowance-of spender owner))) (if (<= amount u0) false (begin (print (tuple (spender spender) (owner owner))) (print (map-set allowances ((spender spender) (owner owner)) ((allowance (+ allowance amount))))) true)))) ;; Public functions ;; Transfers tokens to a specified principal. (define-public (transfer-token (recipient principal) (amount uint)) (transfer recipient amount) ) ;; Transfers tokens to a specified principal, performed by a spender (define-public (transfer-from (owner principal) (recipient principal) (amount uint)) (let ((allowance (allowance-of tx-sender owner))) (if (or (> amount allowance) (<= amount u0)) (err false) (if (and (is-ok (ft-transfer? micro-nothing amount owner recipient)) (decrease-allowance tx-sender owner amount)) (ok true) (err false))))) ;; Update the allowance for a given spender (define-public (approve (spender principal) (amount uint)) (if (and (> amount u0) (increase-allowance spender tx-sender amount)) (ok amount) (err false))) ;; Revoke a given spender (define-public (revoke (spender principal)) (let ((allowance (allowance-of spender tx-sender))) (if (and (> allowance u0) (decrease-allowance spender tx-sender allowance)) (ok 0) (err false)))) (define-public (balance-of (owner principal)) (begin (print owner) (ok (ft-get-balance micro-nothing owner)) ) ) ;; Mint new tokens. (define-private (mint! (account principal) (amount uint)) (if (<= amount u0) (err false) (begin (var-set total-supply (+ (var-get total-supply) amount)) (ft-mint? micro-nothing amount account) (ok amount)))) (define-public (transfer (to principal) (amount uint)) (ft-transfer? micro-nothing amount tx-sender to)) ;; Initialize the contract (begin (mint! 'SP1AWFMSB3AGMFZY9JBWR9GRWR6EHBTMVA9JW4M20 u200000000) (mint! 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60 u200000000) (mint! 'SP2F2NYNDDJTAXFB62PJX351DCM4ZNEVRYJSC92CT u200000000) (mint! 'SPT9JHCME25ZBZM9WCGP7ZN38YA82F77YM5HM08B u200000000))
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 or ;; (at your option) any later version. ;; Blockstack is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY, including without the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with Blockstack. If not, see <http://www.gnu.org/licenses/>. ;; Fungible Token, modeled after ERC-20 (define-fungible-token micro-nothing) ;; Storage (define-map allowances ((spender principal) (owner principal)) ((allowance uint))) (define-data-var total-supply uint u0) ;; Internals ;; Total number of tokens in existence. (define-private (get-total-supply) (var-get total-supply)) ;; Gets the amount of tokens that an owner allowed to a spender. (define-private (allowance-of (spender principal) (owner principal)) (begin (print (map-get? allowances ((spender spender) (owner owner)))) (print (get allowance (map-get? allowances ((spender spender) (owner owner))))) (default-to u0 (get allowance (map-get? allowances ((spender spender) (owner owner)))))) ) (define-public (get-allowance-of (spender principal) (owner principal)) (ok (allowance-of spender owner)) ) ;; Transfers tokens to a specified principal. (define-public (transfer (recipient principal) (amount uint)) (ft-transfer? micro-nothing amount tx-sender recipient) ) ;; Decrease allowance of a specified spender. (define-private (decrease-allowance (spender principal) (owner principal) (amount uint)) (let ((allowance (allowance-of spender owner))) (if (or (> amount allowance) (<= amount u0)) true (begin (map-set allowances ((spender spender) (owner owner)) ((allowance (- allowance amount)))) true)))) ;; Internal - Increase allowance of a specified spender. (define-private (increase-allowance (spender principal) (owner principal) (amount uint)) (let ((allowance (allowance-of spender owner))) (if (<= amount u0) false (begin (print (tuple (spender spender) (owner owner))) (print (map-set allowances ((spender spender) (owner owner)) ((allowance (+ allowance amount))))) true)))) ;; Public functions ;; Transfers tokens to a specified principal. (define-public (transfer-token (recipient principal) (amount uint)) (transfer recipient amount) ) ;; Transfers tokens to a specified principal, performed by a spender (define-public (transfer-from (owner principal) (recipient principal) (amount uint)) (let ((allowance (allowance-of tx-sender owner))) (if (or (> amount allowance) (<= amount u0)) (err false) (if (and (is-ok (ft-transfer? micro-nothing amount owner recipient)) (decrease-allowance tx-sender owner amount)) (ok true) (err false))))) ;; Update the allowance for a given spender (define-public (approve (spender principal) (amount uint)) (if (and (> amount u0) (increase-allowance spender tx-sender amount)) (ok amount) (err false))) ;; Revoke a given spender (define-public (revoke (spender principal)) (let ((allowance (allowance-of spender tx-sender))) (if (and (> allowance u0) (decrease-allowance spender tx-sender allowance)) (ok 0) (err false)))) (define-public (balance-of (owner principal)) (begin (print owner) (ok (ft-get-balance micro-nothing owner)) ) ) ;; Mint new tokens. (define-private (mint! (account principal) (amount uint)) (if (<= amount u0) (err false) (begin (var-set total-supply (+ (var-get total-supply) amount)) (ft-mint? micro-nothing amount account) (ok amount)))) (define-public (transfer (to principal) (amount uint)) (ft-transfer? micro-nothing amount tx-sender to)) ;; Initialize the contract (begin (mint! 'SP1AWFMSB3AGMFZY9JBWR9GRWR6EHBTMVA9JW4M20 u200000000) (mint! 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60 u200000000) (mint! 'SP2F2NYNDDJTAXFB62PJX351DCM4ZNEVRYJSC92CT u200000000) (mint! 'SPT9JHCME25ZBZM9WCGP7ZN38YA82F77YM5HM08B u200000000))
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 or ;; (at your option) any later version. ;; Blockstack is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY, including without the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with Blockstack. If not, see <http://www.gnu.org/licenses/>. ;; Fungible Token, modeled after ERC-20 (define-fungible-token micro-nothing) ;; Storage (define-map allowances ((spender principal) (owner principal)) ((allowance uint))) (define-data-var total-supply uint u0) ;; Internals ;; Total number of tokens in existence. (define-private (get-total-supply) (var-get total-supply)) ;; Gets the amount of tokens that an owner allowed to a spender. (define-private (allowance-of (spender principal) (owner principal)) (begin (print (map-get? allowances ((spender spender) (owner owner)))) (print (get allowance (map-get? allowances ((spender spender) (owner owner))))) (default-to u0 (get allowance (map-get? allowances ((spender spender) (owner owner)))))) ) (define-public (get-allowance-of (spender principal) (owner principal)) (ok (allowance-of spender owner)) ) ;; Transfers tokens to a specified principal. (define-public (transfer (recipient principal) (amount uint)) (ft-transfer? micro-nothing amount tx-sender recipient) ) ;; Decrease allowance of a specified spender. (define-private (decrease-allowance (spender principal) (owner principal) (amount uint)) (let ((allowance (allowance-of spender owner))) (if (or (> amount allowance) (<= amount u0)) true (begin (map-set allowances ((spender spender) (owner owner)) ((allowance (- allowance amount)))) true)))) ;; Internal - Increase allowance of a specified spender. (define-private (increase-allowance (spender principal) (owner principal) (amount uint)) (let ((allowance (allowance-of spender owner))) (if (<= amount u0) false (begin (print (tuple (spender spender) (owner owner))) (print (map-set allowances ((spender spender) (owner owner)) ((allowance (+ allowance amount))))) true)))) ;; Public functions ;; Transfers tokens to a specified principal. (define-public (transfer-token (recipient principal) (amount uint)) (transfer recipient amount) ) ;; Transfers tokens to a specified principal, performed by a spender (define-public (transfer-from (owner principal) (recipient principal) (amount uint)) (let ((allowance (allowance-of tx-sender owner))) (if (or (> amount allowance) (<= amount u0)) (err false) (if (and (is-ok (ft-transfer? micro-nothing amount owner recipient)) (decrease-allowance tx-sender owner amount)) (ok true) (err false))))) ;; Update the allowance for a given spender (define-public (approve (spender principal) (amount uint)) (if (and (> amount u0) (increase-allowance spender tx-sender amount)) (ok amount) (err false))) ;; Revoke a given spender (define-public (revoke (spender principal)) (let ((allowance (allowance-of spender tx-sender))) (if (and (> allowance u0) (decrease-allowance spender tx-sender allowance)) (ok 0) (err false)))) (define-public (balance-of (owner principal)) (begin (print owner) (ok (ft-get-balance micro-nothing owner)) ) ) ;; Mint new tokens. (define-private (mint! (account principal) (amount uint)) (if (<= amount u0) (err false) (begin (var-set total-supply (+ (var-get total-supply) amount)) (ft-mint? micro-nothing amount account) (ok amount)))) (define-public (transfer (to principal) (amount uint)) (ft-transfer? micro-nothing amount tx-sender to)) ;; Initialize the contract (begin (mint! 'SP1AWFMSB3AGMFZY9JBWR9GRWR6EHBTMVA9JW4M20 u2000000) (mint! 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60 u2000000) (mint! 'SP2F2NYNDDJTAXFB62PJX351DCM4ZNEVRYJSC92CT u2000000) (mint! 'SPT9JHCME25ZBZM9WCGP7ZN38YA82F77YM5HM08B u2000000))
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 result err-value false)) (define-private (min (amount-1 uint) (amount-2 uint)) (if (< amount-1 amount-2) amount-1 amount-2)) (define-private (pox-delegate-stack-stx (member {stacker: principal, amount-ustx: uint}) (context (tuple (pox-address (tuple (hashbytes (buff 20)) (version (buff 1)))) ( start-burn-ht uint) (lock-period uint) (result (list 750 (response (tuple (lock-amount uint) (stacker principal) (unlock-burn-height uint)) (tuple (kind (string-ascii 32)) (code uint)))))))) (let ((stacker (get stacker member))) (let ((pox-address (get pox-address context)) (start-burn-ht (get start-burn-ht context)) (lock-period (get lock-period context)) (amount-ustx (min (get amount-ustx member) (stx-get-balance stacker)))) (if (> amount-ustx u0) (let ((stack-result (match (contract-call? 'SP000000000000000000002Q6VF78.pox delegate-stack-stx stacker amount-ustx pox-address start-burn-ht lock-period) stacker-details (ok stacker-details) error (err {kind: "native-function-failed", code: (to-uint error)})))) {pox-address: pox-address, start-burn-ht: start-burn-ht, lock-period: lock-period, result: (unwrap-panic (as-max-len? (append (get result context) stack-result) u750))}) {pox-address: pox-address, start-burn-ht: start-burn-ht, lock-period: lock-period, result: (get result context)} )))) (define-private (get-total (stack-result (response (tuple (lock-amount uint) (stacker principal) (unlock-burn-height uint)) (tuple (kind (string-ascii 32)) (code uint)))) (total uint)) (match stack-result details (+ total (get lock-amount details)) error total)) (define-public (delegate-stack-stx-and-commit (members (list 750 (tuple (stacker principal) (amount-ustx uint)))) (pox-address (tuple (hashbytes (buff 20)) (version (buff 1)))) (start-burn-ht uint) (lock-period uint) (reward-cycle uint)) (let ((stack-result (get result (fold pox-delegate-stack-stx members {start-burn-ht: start-burn-ht, pox-address: pox-address, lock-period: lock-period, result: (list)})))) (if (fold check-err-stacking stack-result true) (let ((total (fold get-total stack-result u0))) (match (contract-call? 'ST000000000000000000002AMW42H.pox stack-aggregation-commit pox-address reward-cycle) success (ok {total: total, stack-result: stack-result}) error (err {kind: "native-pox-failed", code: (to-uint error), stack-result: stack-result}))) (err {kind: "delegate-stack-stx-failed", code: err-delegate-stack-stx, stack-result: stack-result})))) ;; ;; payout ;; (define-private (stx-transfer (details {stacker: principal, part-ustx: uint})) (stx-transfer? (get part-ustx details) tx-sender (get stacker details))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-private (calc-parts (member {stacker: principal, amount-ustx: uint}) (context {payout-ustx: uint, stacked-ustx: uint, result: (list 750 {stacker: principal, part-ustx: uint})})) (let ((amount-ustx (get amount-ustx member)) (payout-ustx (get payout-ustx context)) (stacked-ustx (get stacked-ustx context))) (let ((payout-details {stacker: (get stacker member), part-ustx: (/ (* amount-ustx payout-ustx) stacked-ustx)})) {payout-ustx: payout-ustx, stacked-ustx: stacked-ustx, result: (unwrap-panic (as-max-len? (append (get result context) payout-details) u750))}))) (define-public (payout (payout-ustx uint) (stacked-ustx uint) (members (list 750 (tuple (stacker principal) (amount-ustx uint))))) (let ((member-parts (get result (fold calc-parts members {payout-ustx: payout-ustx, stacked-ustx: stacked-ustx, result: (list)})))) (fold check-err (map stx-transfer member-parts) (ok true)))) ;; ;; donate ;; (define-public (donate (amount uint)) (stx-transfer? amount tx-sender (as-contract tx-sender)) ) (define-public (empty-contract) (if (is-eq tx-sender contract-creator) (let ((contract-balance (stx-get-balance (as-contract tx-sender)))) (if (> contract-balance u0) (as-contract (stx-transfer? contract-balance tx-sender contract-creator)) (ok false))) (ok false)))
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 result err-value false)) (define-private (min (amount-1 uint) (amount-2 uint)) (if (< amount-1 amount-2) amount-1 amount-2)) (define-private (pox-delegate-stack-stx (member {stacker: principal, amount-ustx: uint}) (context (tuple (pox-address (tuple (hashbytes (buff 20)) (version (buff 1)))) ( start-burn-ht uint) (lock-period uint) (result (list 750 (response (tuple (lock-amount uint) (stacker principal) (unlock-burn-height uint)) (tuple (kind (string-ascii 32)) (code uint)))))))) (let ((stacker (get stacker member))) (let ((pox-address (get pox-address context)) (start-burn-ht (get start-burn-ht context)) (lock-period (get lock-period context)) (amount-ustx (min (get amount-ustx member) (stx-get-balance stacker)))) (if (> amount-ustx u0) (let ((stack-result (match (contract-call? 'SP000000000000000000002Q6VF78.pox delegate-stack-stx stacker amount-ustx pox-address start-burn-ht lock-period) stacker-details (ok stacker-details) error (err {kind: "native-function-failed", code: (to-uint error)})))) {pox-address: pox-address, start-burn-ht: start-burn-ht, lock-period: lock-period, result: (unwrap-panic (as-max-len? (append (get result context) stack-result) u750))}) {pox-address: pox-address, start-burn-ht: start-burn-ht, lock-period: lock-period, result: (get result context)} )))) (define-private (get-total (stack-result (response (tuple (lock-amount uint) (stacker principal) (unlock-burn-height uint)) (tuple (kind (string-ascii 32)) (code uint)))) (total uint)) (match stack-result details (+ total (get lock-amount details)) error total)) (define-public (delegate-stack-stx-and-commit (members (list 750 (tuple (stacker principal) (amount-ustx uint)))) (pox-address (tuple (hashbytes (buff 20)) (version (buff 1)))) (start-burn-ht uint) (lock-period uint) (reward-cycle uint)) (let ((stack-result (get result (fold pox-delegate-stack-stx members {start-burn-ht: start-burn-ht, pox-address: pox-address, lock-period: lock-period, result: (list)})))) (if (fold check-err-stacking stack-result true) (let ((total (fold get-total stack-result u0))) (match (contract-call? 'SP000000000000000000002Q6VF78.pox stack-aggregation-commit pox-address reward-cycle) success (ok {total: total, stack-result: stack-result}) error (err {kind: "native-pox-failed", code: (to-uint error), stack-result: stack-result}))) (err {kind: "delegate-stack-stx-failed", code: err-delegate-stack-stx, stack-result: stack-result})))) ;; ;; payout ;; (define-private (stx-transfer (details {stacker: principal, part-ustx: uint})) (stx-transfer? (get part-ustx details) tx-sender (get stacker details))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-private (calc-parts (member {stacker: principal, amount-ustx: uint}) (context {payout-ustx: uint, stacked-ustx: uint, result: (list 750 {stacker: principal, part-ustx: uint})})) (let ((amount-ustx (get amount-ustx member)) (payout-ustx (get payout-ustx context)) (stacked-ustx (get stacked-ustx context))) (let ((payout-details {stacker: (get stacker member), part-ustx: (/ (* amount-ustx payout-ustx) stacked-ustx)})) {payout-ustx: payout-ustx, stacked-ustx: stacked-ustx, result: (unwrap-panic (as-max-len? (append (get result context) payout-details) u750))}))) (define-public (payout (payout-ustx uint) (stacked-ustx uint) (members (list 750 (tuple (stacker principal) (amount-ustx uint))))) (let ((member-parts (get result (fold calc-parts members {payout-ustx: payout-ustx, stacked-ustx: stacked-ustx, result: (list)})))) (fold check-err (map stx-transfer member-parts) (ok true)))) ;; ;; donate ;; (define-public (donate (amount uint)) (stx-transfer? amount tx-sender (as-contract tx-sender)) ) (define-public (empty-contract) (if (is-eq tx-sender contract-creator) (let ((contract-balance (stx-get-balance (as-contract tx-sender)))) (if (> contract-balance u0) (as-contract (stx-transfer? contract-balance tx-sender contract-creator)) (ok false))) (ok false)))
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 result err-value false)) (define-private (min (amount-1 uint) (amount-2 uint)) (if (< amount-1 amount-2) amount-1 amount-2)) (define-private (pox-delegate-stack-stx (member {stacker: principal, amount-ustx: uint}) (context (tuple (pox-address (tuple (hashbytes (buff 20)) (version (buff 1)))) ( start-burn-ht uint) (lock-period uint) (result (list 750 (response (tuple (lock-amount uint) (stacker principal) (unlock-burn-height uint)) (tuple (kind (string-ascii 32)) (code uint)))))))) (let ((stacker (get stacker member))) (let ((pox-address (get pox-address context)) (start-burn-ht (get start-burn-ht context)) (lock-period (get lock-period context)) (amount-ustx (min (get amount-ustx member) (stx-get-balance stacker)))) (if (> amount-ustx u0) (let ((stack-result (match (contract-call? 'SP000000000000000000002Q6VF78.pox delegate-stack-stx stacker amount-ustx pox-address start-burn-ht lock-period) stacker-details (ok stacker-details) error (err {kind: "native-function-failed", code: (to-uint error)})))) {pox-address: pox-address, start-burn-ht: start-burn-ht, lock-period: lock-period, result: (unwrap-panic (as-max-len? (append (get result context) stack-result) u750))}) {pox-address: pox-address, start-burn-ht: start-burn-ht, lock-period: lock-period, result: (get result context)} )))) (define-private (get-total (stack-result (response (tuple (lock-amount uint) (stacker principal) (unlock-burn-height uint)) (tuple (kind (string-ascii 32)) (code uint)))) (total uint)) (match stack-result details (+ total (get lock-amount details)) error total)) (define-public (delegate-stack-stx-and-commit (members (list 750 (tuple (stacker principal) (amount-ustx uint)))) (pox-address (tuple (hashbytes (buff 20)) (version (buff 1)))) (start-burn-ht uint) (lock-period uint) (reward-cycle uint)) (let ((stack-result (get result (fold pox-delegate-stack-stx members {start-burn-ht: start-burn-ht, pox-address: pox-address, lock-period: lock-period, result: (list)})))) (if (fold check-err-stacking stack-result true) (ok {stack-result: stack-result}) (err {kind: "delegate-stack-stx-failed", code: err-delegate-stack-stx, stack-result: stack-result})))) ;; ;; payout ;; (define-private (stx-transfer (details {stacker: principal, part-ustx: uint})) (stx-transfer? (get part-ustx details) tx-sender (get stacker details))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-private (calc-parts (member {stacker: principal, amount-ustx: uint}) (context {payout-ustx: uint, stacked-ustx: uint, result: (list 750 {stacker: principal, part-ustx: uint})})) (let ((amount-ustx (get amount-ustx member)) (payout-ustx (get payout-ustx context)) (stacked-ustx (get stacked-ustx context))) (let ((payout-details {stacker: (get stacker member), part-ustx: (/ (* amount-ustx payout-ustx) stacked-ustx)})) {payout-ustx: payout-ustx, stacked-ustx: stacked-ustx, result: (unwrap-panic (as-max-len? (append (get result context) payout-details) u750))}))) (define-public (payout (payout-ustx uint) (stacked-ustx uint) (members (list 750 (tuple (stacker principal) (amount-ustx uint))))) (let ((member-parts (get result (fold calc-parts members {payout-ustx: payout-ustx, stacked-ustx: stacked-ustx, result: (list)})))) (fold check-err (map stx-transfer member-parts) (ok true)))) ;; ;; donate ;; (define-public (donate (amount uint)) (stx-transfer? amount tx-sender (as-contract tx-sender)) ) (define-public (empty-contract) (if (is-eq tx-sender contract-creator) (let ((contract-balance (stx-get-balance (as-contract tx-sender)))) (if (> contract-balance u0) (as-contract (stx-transfer? contract-balance tx-sender contract-creator)) (ok false))) (ok false)))
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 or ;; (at your option) any later version. ;; Blockstack is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY, including without the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with Blockstack. If not, see <http://www.gnu.org/licenses/>. ;; Fungible Token, modeled after ERC-20 (define-fungible-token micro-nothing) (define-data-var total-supply uint u0) ;; Internals ;; Total number of tokens in existence. (define-read-only (get-total-supply) (var-get total-supply)) ;; Public functions ;; Mint new tokens. (define-private (mint! (account principal) (amount uint)) (if (<= amount u0) (err u0) (begin (var-set total-supply (+ (var-get total-supply) amount)) (ft-mint? micro-nothing amount account)))) (define-public (transfer (to principal) (amount uint)) (ft-transfer? micro-nothing amount tx-sender to)) ;; Initialize the contract (mint! 'SP1AWFMSB3AGMFZY9JBWR9GRWR6EHBTMVA9JW4M20 u20000000000000) (mint! 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60 u20000000000000) (mint! 'SP2F2NYNDDJTAXFB62PJX351DCM4ZNEVRYJSC92CT u20000000000000) (mint! 'SP32AEEF6WW5Y0NMJ1S8SBSZDAY8R5J32NBZFPKKZ u20000000000000) (mint! 'SPT9JHCME25ZBZM9WCGP7ZN38YA82F77YM5HM08B u20000000000000)
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 or ;; (at your option) any later version. ;; Blockstack is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY, including without the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with Blockstack. If not, see <http://www.gnu.org/licenses/>. ;; Fungible Token, modeled after ERC-20 (define-fungible-token micro-nothing) (define-data-var total-supply uint u0) ;; Internals ;; Total number of tokens in existence. (define-read-only (get-total-supply) (var-get total-supply)) ;; Public functions ;; Mint new tokens. (define-private (mint! (account principal) (amount uint)) (if (<= amount u0) (err u0) (begin (var-set total-supply (+ (var-get total-supply) amount)) (ft-mint? micro-nothing amount account)))) (define-public (transfer (to principal) (amount uint)) (ft-transfer? micro-nothing amount tx-sender to)) ;; Initialize the contract (mint! 'SP1AWFMSB3AGMFZY9JBWR9GRWR6EHBTMVA9JW4M20 u20000000000000) (mint! 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60 u20000000000000) (mint! 'SP2F2NYNDDJTAXFB62PJX351DCM4ZNEVRYJSC92CT u20000000000000) (mint! 'SP32AEEF6WW5Y0NMJ1S8SBSZDAY8R5J32NBZFPKKZ u20000000000000) (mint! 'SPT9JHCME25ZBZM9WCGP7ZN38YA82F77YM5HM08B u20000000000000)
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)) (ft-mint? micro-nothing amount account)))) (define-public (transfer (to principal) (amount uint)) (if (> (ft-get-balance micro-nothing tx-sender) u0) (ft-transfer? micro-nothing amount tx-sender to) (err u0))) (mint! 'SP1AWFMSB3AGMFZY9JBWR9GRWR6EHBTMVA9JW4M20 u20000000000000) (mint! 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60 u20000000000000) (mint! 'SP2F2NYNDDJTAXFB62PJX351DCM4ZNEVRYJSC92CT u20000000000000) (mint! 'SP32AEEF6WW5Y0NMJ1S8SBSZDAY8R5J32NBZFPKKZ u20000000000000) (mint! 'SPT9JHCME25ZBZM9WCGP7ZN38YA82F77YM5HM08B u20000000000000)
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)) (ft-mint? micro-nothing amount account)))) (define-public (transfer (to principal) (amount uint)) (if (> (ft-get-balance micro-nothing tx-sender) u0) (ft-transfer? micro-nothing amount tx-sender to) (err u0))) (mint! 'SP1AWFMSB3AGMFZY9JBWR9GRWR6EHBTMVA9JW4M20 u20000000000000) (mint! 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60 u20000000000000) (mint! 'SP2F2NYNDDJTAXFB62PJX351DCM4ZNEVRYJSC92CT u20000000000000) (mint! 'SP32AEEF6WW5Y0NMJ1S8SBSZDAY8R5J32NBZFPKKZ u20000000000000) (mint! 'SPT9JHCME25ZBZM9WCGP7ZN38YA82F77YM5HM08B u20000000000000)
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)) (ft-mint? something amount account)))) (define-public (transfer (to principal) (amount uint)) (if (> (ft-get-balance something tx-sender) u0) (ft-transfer? something amount tx-sender to) (err u0))) (mint! 'SP343J7DNE122AVCSC4HEK4MF871PW470ZSXJ5K66 u100000000000000)
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.micro-nthng transfer to 100000))) (ok transfer-ok))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (send-many (recipients (list 750 principal))) (fold check-err (map send-nothing recipients) (ok true)))
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-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (send-many (recipients (list 750 principal))) (fold check-err (map send-nothing recipients) (ok true)))
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 (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (send-many (recipients (list 750 principal))) (fold check-err (map send-nothing recipients) (ok u1)))
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 (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (send-many (recipients (list 750 principal))) (fold check-err (map send-nothing recipients) (ok u1)))
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))) (ok transfer-ok))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (airdrop (recipients (list 750 principal)) (amount uint)) (fold check-err (map send-nothing recipients) (ok true)))
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))) (ok transfer-ok))) (define-private (check-err (result (response uint)) (prior (response uint))) (match prior ok-value result err-value (err err-value))) (define-public (airdrop (recipients (list 750 principal)) (amount uint)) (fold check-err (map send-nothing recipients) (ok u0)))
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))) (ok transfer-ok))) (define-private (check-err (result (response uint)) (prior (response uint))) (match prior ok-value result err-value (err err-value))) (define-public (airdrop (recipients (list 750 principal)) (amount uint)) (fold check-err (map send-nothing recipients) (ok u0)))
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 uint)) (begin (map send-nothing recipients) (ok u0)))
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")) (define-read-only (decimals) (ok u6)) (define-public (transfer (recipient principal) (amount uint)) (begin (ft-transfer? wrapped-token amount tx-sender recipient) )) (define-public (transfer-from (sender principal) (recipient principal) (amount uint)) (ft-transfer? wrapped-token amount sender recipient)) (define-public (wrap (amount uint)) (let ((contract-address (as-contract tx-sender))) (if (and (is-ok (contract-call? .micro-nthng contract-address amount)) (is-ok (ft-mint? wrapped-token amount tx-sender)) ) (begin (var-set total-supply (+ (var-get total-supply) amount)) (print amount) (print (var-get total-supply)) (ok (list amount (var-get total-supply))) ) (err false) ) ))
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)) (ft-mint? Kamikaze amount account)))) (define-public (transfer (to principal) (amount uint)) (if (> (ft-get-balance Kamikaze tx-sender) u0) (ft-transfer? Kamikaze amount tx-sender to) (err u0))) (mint! 'SP1V3DG055N7CMYYXXC6XVXMSW81ECBG5C1M60E09 u1997)
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 err-value (err err-value))) (define-public (airdrop (recipients (list 200 { to: principal, amount: uint }))) (fold check-err (map send-micro-nothing recipients) (ok true)))
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-supply (increment uint)) (var-set total-supply (+ (var-get total-supply) increment))) (define-private (mint-shit (amount uint) (recipient principal)) (let ((amount-in-ushit (* amount u1000000))) (if (is-ok (ft-mint? shit amount-in-ushit recipient)) (begin (ok (increase-supply amount-in-ushit))) (err ERR-YOU-POOR)))) ;; taking a shit would cost 1/1000 STX ;; shit ain't free now is it (define-private (burn (stx-to-burn uint)) (is-ok (stx-burn? (* stx-to-burn u1000) tx-sender))) (define-public (give-a-shit (shits-to-give uint) (shits-given-to principal)) (if (is-ok (transfer shits-to-give tx-sender shits-given-to)) (begin (print tx-sender) (print "gives a shit about") (print shits-given-to) (ok true) ) (err ERR-YOU-POOR))) (define-public (take-a-shit (how-big-a-shit uint)) (if (burn how-big-a-shit) (mint-shit how-big-a-shit tx-sender) (err ERR-YOU-POOR))) (define-public (transfer (amount uint) (from principal) (to principal)) (begin (asserts! (is-eq from tx-sender) (err ERR-UNAUTHORIZED)) (ft-transfer? shit amount from to) ) ) (define-public (set-token-uri (uri (string-utf8 265))) (if (is-creator) (ok (var-set token-uri uri)) (err ERR-UNAUTHORIZED))) (define-read-only (get-name) (ok "shit")) (define-read-only (get-symbol) (ok "SHT")) (define-read-only (get-decimals) (ok u6)) (define-read-only (get-balance-of (user principal)) (ok (ft-get-balance shit user))) (define-read-only (get-total-supply) (ok (var-get total-supply))) (define-read-only (get-token-uri) (ok (var-get token-uri)))
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-positive-amount u105) (define-map user-data principal {pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint}) (define-map stackers-by-start-cycle {reward-cycle: uint, index: uint} (list 30 {lock-amount: uint, stacker: principal, unlock-burn-height: uint, pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint})) (define-map stackers-by-start-cycle-len uint uint) (define-map totals-by-start-cycle uint uint) ;; Backport of .pox's burn-height-to-reward-cycle (define-private (burn-height-to-reward-cycle (height uint)) (let ( (pox-info (unwrap-panic (contract-call? 'SP000000000000000000002Q6VF78.pox get-pox-info))) ) (/ (- height (get first-burnchain-block-height pox-info)) (get reward-cycle-length pox-info))) ) ;; Backport of .pox's reward-cycle-to-burn-height (define-private (reward-cycle-to-burn-height (cycle uint)) (let ( (pox-info (unwrap-panic (contract-call? 'SP000000000000000000002Q6VF78.pox get-pox-info))) ) (+ (get first-burnchain-block-height pox-info) (* cycle (get reward-cycle-length pox-info)))) ) ;; What's the current PoX reward cycle? (define-private (current-pox-reward-cycle) (burn-height-to-reward-cycle burn-block-height)) (define-private (pox-get-stacker-info (user principal)) (contract-call? 'SP000000000000000000002Q6VF78.pox get-stacker-info user)) (define-private (pox-delegate-stx (amount-ustx uint) (delegate-to principal) (until-burn-ht (optional uint))) (if (> amount-ustx u100) (let ((result-revoke (contract-call? 'SP000000000000000000002Q6VF78.pox revoke-delegate-stx))) (match (contract-call? 'SP000000000000000000002Q6VF78.pox delegate-stx amount-ustx delegate-to until-burn-ht none) success (ok success) error (err {kind: "delegate-stx-failed", code: (to-uint error)}) )) (err {kind: "permission-denied", code: err-delegate-below-minimum}))) (define-private (min (amount-1 uint) (amount-2 uint)) (if (< amount-1 amount-2) amount-1 amount-2)) (define-private (asserts-panic (value bool)) (unwrap-panic (if value (some true) none))) (define-private (merge-details (stacker {lock-amount: uint, stacker: principal, unlock-burn-height: uint}) (user {pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint})) {lock-amount: (get lock-amount stacker), stacker: (get stacker stacker), unlock-burn-height: (get unlock-burn-height stacker), pox-addr: (get pox-addr user), cycle: (get cycle user), locking-period: (get locking-period user)}) (define-private (insert-in-new-list (reward-cycle uint) (last-index uint) (details {lock-amount: uint, stacker: principal, unlock-burn-height: uint, pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint})) (let ((index (+ last-index u1))) (asserts-panic (map-insert stackers-by-start-cycle (print {reward-cycle: reward-cycle, index: index}) (list details))) (asserts-panic (map-set stackers-by-start-cycle-len reward-cycle index)))) (define-private (map-set-details (details {lock-amount: uint, stacker: principal, unlock-burn-height: uint, pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint})) (let ((reward-cycle (+ (burn-height-to-reward-cycle burn-block-height) u1))) (let ((last-index (get-status-list-length reward-cycle))) (match (map-get? stackers-by-start-cycle {reward-cycle: reward-cycle, index: last-index}) stackers (match (as-max-len? (append stackers details) u30) new-list (map-set stackers-by-start-cycle (print {reward-cycle: reward-cycle, index: last-index}) new-list) (insert-in-new-list reward-cycle last-index details)) (map-insert stackers-by-start-cycle (print {reward-cycle: reward-cycle, index: last-index}) (list details))) (map-set totals-by-start-cycle reward-cycle (+ (get-total reward-cycle) (get lock-amount details)))))) (define-private (pox-delegate-stack-stx (details {user: principal, amount-ustx: uint}) (context (tuple (pox-address (tuple (hashbytes (buff 20)) (version (buff 1)))) (start-burn-ht uint) (lock-period uint) (result (list 30 (response (tuple (lock-amount uint) (stacker principal) (unlock-burn-height uint)) (tuple (kind (string-ascii 32)) (code uint)))))))) (let ((user (get user details))) (let ((pox-address (get pox-address context)) (start-burn-ht (get start-burn-ht context)) (lock-period (get lock-period context)) (amount-ustx (min (get amount-ustx details) (stx-get-balance user)))) (let ((stack-result (if (> amount-ustx u0) (match (map-get? user-data user) user-details (match (contract-call? 'SP000000000000000000002Q6VF78.pox delegate-stack-stx user amount-ustx pox-address start-burn-ht lock-period) stacker-details (begin (map-set-details (merge-details stacker-details user-details)) (ok stacker-details)) error (err {kind: "native-function-failed", code: (to-uint error)})) (err {kind: "user-not-found", code: err-missing-user})) (err {kind: "invalid-amount", code: err-non-positive-amount})))) {pox-address: pox-address, start-burn-ht: start-burn-ht, lock-period: lock-period, result: (unwrap-panic (as-max-len? (append (get result context) stack-result) u30))})))) (define-public (delegate-stx (amount-ustx uint) (delegate-to principal) (until-burn-ht (optional uint)) (pool-pox-addr (optional (tuple (hashbytes (buff 20)) (version (buff 1))))) (user-pox-addr (tuple (hashbytes (buff 20)) (version (buff 1)))) (locking-period uint)) (begin (asserts! (map-set user-data tx-sender {pox-addr: user-pox-addr, cycle: (current-pox-reward-cycle), locking-period: locking-period}) (err {kind: "map-fn-failed", code: err-map-set-failed})) (pox-delegate-stx amount-ustx delegate-to until-burn-ht))) (define-public (delegate-stack-stx (users (list 30 (tuple (user principal) (amount-ustx uint)))) (pox-address { version: (buff 1), hashbytes: (buff 20) }) (start-burn-ht uint) (lock-period uint)) (let ((stack-result (get result (fold pox-delegate-stack-stx users {start-burn-ht: start-burn-ht, pox-address: pox-address, lock-period: lock-period, result: (list)})))) (ok stack-result))) (define-read-only (get-status (user principal)) (match (pox-get-stacker-info user) stacker-info (match (map-get? user-data user) user-info (ok {stacker-info: stacker-info, user-info: user-info, total: (get-total (get cycle user-info))}) (err {kind: "no-user-info"})) (err {kind: "no-stacker-info"}))) (define-read-only (get-status-list-length (reward-cycle uint)) (default-to u0 (map-get? stackers-by-start-cycle-len reward-cycle)) ) (define-read-only (get-status-list (reward-cycle uint) (index uint)) {total: (get-total reward-cycle), status-list: (map-get? stackers-by-start-cycle {reward-cycle: reward-cycle, index: index})} ) (define-read-only (get-total (reward-cycle uint)) (default-to u0 (map-get? totals-by-start-cycle reward-cycle)) )
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-positive-amount u105) (define-map user-data principal {pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint}) (define-map stackers-by-start-cycle {reward-cycle: uint, index: uint} (list 30 {lock-amount: uint, stacker: principal, unlock-burn-height: uint, pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint})) (define-map stackers-by-start-cycle-len uint uint) (define-map totals-by-start-cycle uint uint) ;; Backport of .pox's burn-height-to-reward-cycle (define-private (burn-height-to-reward-cycle (height uint)) (let ( (pox-info (unwrap-panic (contract-call? 'SP000000000000000000002Q6VF78.pox get-pox-info))) ) (/ (- height (get first-burnchain-block-height pox-info)) (get reward-cycle-length pox-info))) ) ;; Backport of .pox's reward-cycle-to-burn-height (define-private (reward-cycle-to-burn-height (cycle uint)) (let ( (pox-info (unwrap-panic (contract-call? 'SP000000000000000000002Q6VF78.pox get-pox-info))) ) (+ (get first-burnchain-block-height pox-info) (* cycle (get reward-cycle-length pox-info)))) ) ;; What's the current PoX reward cycle? (define-private (current-pox-reward-cycle) (burn-height-to-reward-cycle burn-block-height)) (define-private (pox-get-stacker-info (user principal)) (contract-call? 'SP000000000000000000002Q6VF78.pox get-stacker-info user)) (define-private (pox-delegate-stx (amount-ustx uint) (delegate-to principal) (until-burn-ht (optional uint))) (if (> amount-ustx u100) (let ((result-revoke (contract-call? 'SP000000000000000000002Q6VF78.pox revoke-delegate-stx))) (match (contract-call? 'SP000000000000000000002Q6VF78.pox delegate-stx amount-ustx delegate-to until-burn-ht none) success (ok success) error (err {kind: "delegate-stx-failed", code: (to-uint error)}) )) (err {kind: "permission-denied", code: err-delegate-below-minimum}))) (define-private (min (amount-1 uint) (amount-2 uint)) (if (< amount-1 amount-2) amount-1 amount-2)) (define-private (asserts-panic (value bool)) (unwrap-panic (if value (some true) none))) (define-private (merge-details (stacker {lock-amount: uint, stacker: principal, unlock-burn-height: uint}) (user {pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint})) {lock-amount: (get lock-amount stacker), stacker: (get stacker stacker), unlock-burn-height: (get unlock-burn-height stacker), pox-addr: (get pox-addr user), cycle: (get cycle user), locking-period: (get locking-period user)}) (define-private (insert-in-new-list (reward-cycle uint) (last-index uint) (details {lock-amount: uint, stacker: principal, unlock-burn-height: uint, pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint})) (let ((index (+ last-index u1))) (asserts-panic (map-insert stackers-by-start-cycle (print {reward-cycle: reward-cycle, index: index}) (list details))) (asserts-panic (map-set stackers-by-start-cycle-len reward-cycle index)))) (define-private (map-set-details (details {lock-amount: uint, stacker: principal, unlock-burn-height: uint, pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint})) (let ((reward-cycle (+ (burn-height-to-reward-cycle burn-block-height) u1))) (let ((last-index (get-status-list-length reward-cycle))) (match (map-get? stackers-by-start-cycle {reward-cycle: reward-cycle, index: last-index}) stackers (match (as-max-len? (append stackers details) u30) new-list (map-set stackers-by-start-cycle (print {reward-cycle: reward-cycle, index: last-index}) new-list) (insert-in-new-list reward-cycle last-index details)) (map-insert stackers-by-start-cycle (print {reward-cycle: reward-cycle, index: last-index}) (list details))) (map-set totals-by-start-cycle reward-cycle (+ (get-total reward-cycle) (get lock-amount details)))))) (define-private (pox-delegate-stack-stx (details {user: principal, amount-ustx: uint}) (context (tuple (pox-address (tuple (hashbytes (buff 20)) (version (buff 1)))) (start-burn-ht uint) (lock-period uint) (result (list 30 (response (tuple (lock-amount uint) (stacker principal) (unlock-burn-height uint)) (tuple (kind (string-ascii 32)) (code uint)))))))) (let ((user (get user details))) (let ((pox-address (get pox-address context)) (start-burn-ht (get start-burn-ht context)) (lock-period (get lock-period context)) (amount-ustx (min (get amount-ustx details) (stx-get-balance user)))) (let ((stack-result (if (> amount-ustx u0) (match (map-get? user-data user) user-details (match (contract-call? 'SP000000000000000000002Q6VF78.pox delegate-stack-stx user amount-ustx pox-address start-burn-ht lock-period) stacker-details (begin (map-set-details (merge-details stacker-details user-details)) (ok stacker-details)) error (err {kind: "native-function-failed", code: (to-uint error)})) (err {kind: "user-not-found", code: err-missing-user})) (err {kind: "invalid-amount", code: err-non-positive-amount})))) {pox-address: pox-address, start-burn-ht: start-burn-ht, lock-period: lock-period, result: (unwrap-panic (as-max-len? (append (get result context) stack-result) u30))})))) (define-public (delegate-stx (amount-ustx uint) (delegate-to principal) (until-burn-ht (optional uint)) (pool-pox-addr (optional (tuple (hashbytes (buff 20)) (version (buff 1))))) (user-pox-addr (tuple (hashbytes (buff 20)) (version (buff 1)))) (locking-period uint)) (begin (asserts! (map-set user-data tx-sender {pox-addr: user-pox-addr, cycle: (current-pox-reward-cycle), locking-period: locking-period}) (err {kind: "map-fn-failed", code: err-map-set-failed})) (pox-delegate-stx amount-ustx delegate-to until-burn-ht))) (define-public (delegate-stack-stx (users (list 30 (tuple (user principal) (amount-ustx uint)))) (pox-address { version: (buff 1), hashbytes: (buff 20) }) (start-burn-ht uint) (lock-period uint)) (let ((stack-result (get result (fold pox-delegate-stack-stx users {start-burn-ht: start-burn-ht, pox-address: pox-address, lock-period: lock-period, result: (list)})))) (ok stack-result))) (define-read-only (get-status (user principal)) (match (pox-get-stacker-info user) stacker-info (match (map-get? user-data user) user-info (ok {stacker-info: stacker-info, user-info: user-info, total: (get-total (get cycle user-info))}) (err {kind: "no-user-info"})) (err {kind: "no-stacker-info"}))) (define-read-only (get-status-list-length (reward-cycle uint)) (default-to u0 (map-get? stackers-by-start-cycle-len reward-cycle)) ) (define-read-only (get-status-list (reward-cycle uint) (index uint)) {total: (get-total reward-cycle), status-list: (map-get? stackers-by-start-cycle {reward-cycle: reward-cycle, index: index})} ) (define-read-only (get-total (reward-cycle uint)) (default-to u0 (map-get? totals-by-start-cycle reward-cycle)) )
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 index-by-series-item (tuple (series-id uint) (number uint)) uint) (define-map series-meta uint (tuple (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-name (string-utf8 80)) (count uint) (uri (string-ascii 2048)) (mime-type (string-ascii 129)) )) (define-private (owns-name (user principal) (username (tuple (namespace (buff 20)) (name (buff 48))))) (match (contract-call? 'SP000000000000000000002Q6VF78.bns name-resolve (get namespace username) (get name username)) details (is-eq user (get owner details)) error false ) ) (define-private (inc-last-series-id) (let ((series-id (+ u1 (var-get last-series-id)))) (begin (var-set last-series-id series-id) series-id ))) (define-private (is-creator (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48)))))) (and (or (is-eq creator tx-sender) (is-eq creator contract-caller)) (match creator-name username (owns-name creator username) true ))) (define-private (same-series-meta (series-id uint) (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-name (string-utf8 80)) (uri (string-ascii 2048))) (match (get-series-meta-raw? series-id) entry (and (or (is-eq creator tx-sender) (is-eq creator contract-caller)) (is-eq creator (get creator entry)) (is-eq creator-name (get creator-name entry)) (is-eq series-name (get series-name entry)) (is-eq uri (get uri entry))) false ) ) (define-private (update-series-meta (series-id uint) (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-name (string-utf8 80)) (uri (string-ascii 2048)) (mime-type (string-ascii 129))) (match (map-get? series-meta series-id) entry (map-set series-meta series-id {creator: (get creator entry), creator-name: (get creator-name entry), series-name: (get series-name entry), count: (+ u1 (get count entry)), uri: (get uri entry), mime-type: (get mime-type entry)}) (map-insert series-meta series-id {creator: creator, creator-name: creator-name, series-name: series-name, count: u1, uri: uri, mime-type: mime-type}))) (define-private (mint-boom (entry (tuple (number uint) (name (string-utf8 80)) (uri (string-ascii 2048)) (mime-type (string-ascii 129)) (hash (buff 64)))) (context (tuple (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (series-id uint) (series-name (string-utf8 80)) (series-uri (string-ascii 2048)) (series-mime-type (string-ascii 129)) (count uint) (ids (list 50 uint))))) (let ((id (+ u1 (var-get last-id))) (creator (get creator context)) (creator-name (get creator-name context)) (series-id (get series-id context)) (series-name (get series-name context)) (series-uri (get series-uri context)) (series-mime-type (get series-mime-type context)) (count (get count context)) (ids (get ids context)) (number (get number entry)) (uri (get uri entry)) (mime-type (get mime-type entry)) (hash (get hash entry))) (begin (unwrap-panic (nft-mint? boom id creator)) (asserts-panic (var-set last-id id)) (asserts-panic (map-insert meta id {series-id: series-id, number: number, name: (get name entry), uri: uri, mime-type: mime-type, hash: hash})) (asserts-panic (map-insert index-by-series-item {series-id: series-id, number: number} id)) (update-series-meta series-id creator creator-name series-name series-uri series-mime-type) {creator: creator, creator-name: creator-name, series-id: series-id, series-name: series-name, series-uri: series-uri, series-mime-type: series-mime-type, count: (+ u1 count), ids: (unwrap-panic (as-max-len? (append ids id) u10))}))) (define-public (mint-series (creator principal) (creator-name (optional (tuple (namespace (buff 20)) (name (buff 48))))) (existing-series-id (optional uint)) (series-name (string-utf8 80)) (series-uri (string-ascii 2048)) (series-mime-type (string-ascii 129)) (copies (list 50 (tuple (name (string-utf8 80)) (number uint) (uri (string-ascii 2048)) (mime-type (string-ascii 129)) (hash (buff 64)))))) (let ((series-id (match existing-series-id id (begin (asserts! (same-series-meta id creator creator-name series-name series-uri) (err {kind: "permission-denied", code: u0})) id) (begin (asserts! (is-creator creator creator-name) (err {kind: "not-creator", code: u1})) (inc-last-series-id))))) (let ((context (fold mint-boom copies {creator: creator, creator-name: creator-name, series-id: series-id, series-name: series-name, series-uri: series-uri, series-mime-type: series-mime-type, count: u0, ids: (list)}))) (ok {count: (get count context), ids: (get ids context), series-id: series-id})))) ;; error codes ;; (err u1) -- sender does not own the asset ;; (err u2) -- sender and recipient are the same principal ;; (err u3) -- asset identified by asset-identifier does not exist ;; (err u4) -- sender is not tx sender or contract caller (define-public (transfer (id uint) (sender principal) (recipient principal)) (if (or (is-eq sender tx-sender) (is-eq sender contract-caller)) (match (nft-transfer? boom id sender recipient) success (ok success) error (err {kind: "nft-transfer-failed", code: error})) (err {kind: "permission-denied", code: u4}))) (define-public (burn (id uint)) (match (get-owner-raw? id) owner (if (or (is-eq owner tx-sender) (is-eq owner contract-caller)) (nft-burn? boom id owner) (err u4)) (err u3))) (define-read-only (get-owner (id uint)) (ok (nft-get-owner? boom id))) (define-read-only (get-owner-raw? (id uint)) (nft-get-owner? boom id)) (define-read-only (get-boom-meta) {uri: "https://boom.money/images/boom10.png", name: "Boom Collectible", mime-type: "image/png"} ) (define-read-only (get-series-meta-raw? (series-id uint)) (map-get? series-meta series-id)) (define-read-only (get-meta? (id uint)) (map-get? meta id)) (define-read-only (get-meta-by-serial? (series-id uint) (number uint)) (match (map-get? index-by-series-item {series-id: series-id, number: number}) id (map-get? meta id) none)) (define-read-only (last-token-id) (ok (var-get last-id))) (define-read-only (last-token-id-raw) (var-get last-id)) (define-read-only (last-series-id-raw) (var-get last-series-id) ) (define-private (asserts-panic (value bool)) (unwrap-panic (if value (some value) none)))
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? .micro-nthng transfer (as-contract tx-sender) amount)) (begin (ft-mint? wrapped-nthng amount recipient) ) (err ERR-YOU-POOR))) (define-public (unwrap (amount uint)) (if (is-ok (ft-burn? wrapped-nthng amount tx-sender)) (let ((unwrapper tx-sender)) (as-contract (contract-call? .micro-nthng transfer (as-contract tx-sender) amount))) (err ERR-YOU-POOR) )) ;;;;;;;;;;;;;;;;;;;;; SIP 010 ;;;;;;;;;;;;;;;;;;;;;; (define-public (transfer (amount uint) (from principal) (to principal)) (begin (asserts! (is-eq from tx-sender) (err ERR-UNAUTHORIZED)) (ft-transfer? wrapped-nthng amount from to) ) ) (define-public (get-name) (ok "Wrapped Nothing")) (define-public (get-symbol) (ok "WMNO")) (define-public (get-decimals) (ok u0)) (define-public (get-balance-of (user principal)) (ok (ft-get-balance wrapped-nthng user))) (define-public (get-total-supply) (ok (ft-get-supply wrapped-nthng))) (define-public (set-token-uri (value (string-utf8 256))) (if (is-eq tx-sender contract-creator) (ok (var-set token-uri value)) (err ERR-UNAUTHORIZED))) (define-public (get-token-uri) (ok (var-get token-uri))) ;; send-many (define-public (send-nothing (amount uint) (to principal)) (let ((transfer-ok (try! (transfer amount tx-sender to)))) (ok transfer-ok))) (define-private (send-nothing-unwrap (recipient { to: principal, amount: uint })) (send-nothing (get amount recipient) (get to recipient))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (send-many (recipients (list 200 { to: principal, amount: uint }))) (fold check-err (map send-nothing-unwrap recipients) (ok true)))
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? .micro-nthng transfer (as-contract tx-sender) amount)) (begin (ft-mint? wrapped-nthng amount recipient) ) (err ERR-YOU-POOR))) (define-public (unwrap (amount uint)) (if (is-ok (ft-burn? wrapped-nthng amount tx-sender)) (let ((unwrapper tx-sender)) (as-contract (contract-call? .micro-nthng transfer (as-contract tx-sender) amount))) (err ERR-YOU-POOR) )) ;;;;;;;;;;;;;;;;;;;;; SIP 010 ;;;;;;;;;;;;;;;;;;;;;; (define-public (transfer (amount uint) (from principal) (to principal)) (begin (asserts! (is-eq from tx-sender) (err ERR-UNAUTHORIZED)) (ft-transfer? wrapped-nthng amount from to) ) ) (define-public (get-name) (ok "Wrapped Nothing")) (define-public (get-symbol) (ok "WMNO")) (define-public (get-decimals) (ok u0)) (define-public (get-balance-of (user principal)) (ok (ft-get-balance wrapped-nthng user))) (define-public (get-total-supply) (ok (ft-get-supply wrapped-nthng))) (define-public (set-token-uri (value (string-utf8 256))) (if (is-eq tx-sender contract-creator) (ok (var-set token-uri value)) (err ERR-UNAUTHORIZED))) (define-public (get-token-uri) (ok (var-get token-uri))) ;; send-many (define-public (send-nothing (amount uint) (to principal)) (let ((transfer-ok (try! (transfer amount tx-sender to)))) (ok transfer-ok))) (define-private (send-nothing-unwrap (recipient { to: principal, amount: uint })) (send-nothing (get amount recipient) (get to recipient))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (send-many (recipients (list 200 { to: principal, amount: uint }))) (fold check-err (map send-nothing-unwrap recipients) (ok true)))
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-positive-amount u105) (define-map user-data principal {pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint}) (define-map stackers-by-start-cycle {reward-cycle: uint, index: uint} (list 30 {lock-amount: uint, stacker: principal, unlock-burn-height: uint, pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint})) (define-map stackers-by-start-cycle-len uint uint) (define-map totals-by-start-cycle uint uint) ;; Backport of .pox's burn-height-to-reward-cycle (define-private (burn-height-to-reward-cycle (height uint)) (let ( (pox-info (unwrap-panic (contract-call? 'SP000000000000000000002Q6VF78.pox get-pox-info))) ) (/ (- height (get first-burnchain-block-height pox-info)) (get reward-cycle-length pox-info))) ) ;; Backport of .pox's reward-cycle-to-burn-height (define-private (reward-cycle-to-burn-height (cycle uint)) (let ( (pox-info (unwrap-panic (contract-call? 'SP000000000000000000002Q6VF78.pox get-pox-info))) ) (+ (get first-burnchain-block-height pox-info) (* cycle (get reward-cycle-length pox-info)))) ) ;; What's the current PoX reward cycle? (define-private (current-pox-reward-cycle) (burn-height-to-reward-cycle burn-block-height)) (define-private (pox-get-stacker-info (user principal)) (contract-call? 'SP000000000000000000002Q6VF78.pox get-stacker-info user)) (define-private (pox-delegate-stx (amount-ustx uint) (delegate-to principal) (until-burn-ht (optional uint))) (if (> amount-ustx u100) (let ((result-revoke (contract-call? 'SP000000000000000000002Q6VF78.pox revoke-delegate-stx))) (match (contract-call? 'SP000000000000000000002Q6VF78.pox delegate-stx amount-ustx delegate-to until-burn-ht none) success (ok success) error (err {kind: "delegate-stx-failed", code: (to-uint error)}) )) (err {kind: "permission-denied", code: err-delegate-below-minimum}))) (define-private (min (amount-1 uint) (amount-2 uint)) (if (< amount-1 amount-2) amount-1 amount-2)) (define-private (asserts-panic (value bool)) (unwrap-panic (if value (some true) none))) (define-private (merge-details (stacker {lock-amount: uint, stacker: principal, unlock-burn-height: uint}) (user {pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint})) {lock-amount: (get lock-amount stacker), stacker: (get stacker stacker), unlock-burn-height: (get unlock-burn-height stacker), pox-addr: (get pox-addr user), cycle: (get cycle user), locking-period: (get locking-period user)}) (define-private (insert-in-new-list (reward-cycle uint) (last-index uint) (details {lock-amount: uint, stacker: principal, unlock-burn-height: uint, pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint})) (let ((index (+ last-index u1))) (asserts-panic (map-insert stackers-by-start-cycle (print {reward-cycle: reward-cycle, index: index}) (list details))) (asserts-panic (map-set stackers-by-start-cycle-len reward-cycle index)))) (define-private (map-set-details (details {lock-amount: uint, stacker: principal, unlock-burn-height: uint, pox-addr: (tuple (hashbytes (buff 20)) (version (buff 1))), cycle: uint, locking-period: uint})) (let ((reward-cycle (+ (burn-height-to-reward-cycle burn-block-height) u1))) (let ((last-index (get-status-list-length reward-cycle))) (match (map-get? stackers-by-start-cycle {reward-cycle: reward-cycle, index: last-index}) stackers (match (as-max-len? (append stackers details) u30) new-list (map-set stackers-by-start-cycle (print {reward-cycle: reward-cycle, index: last-index}) new-list) (insert-in-new-list reward-cycle last-index details)) (map-insert stackers-by-start-cycle (print {reward-cycle: reward-cycle, index: last-index}) (list details))) (map-set totals-by-start-cycle reward-cycle (+ (get-total reward-cycle) (get lock-amount details)))))) (define-private (pox-delegate-stack-stx (details {user: principal, amount-ustx: uint}) (context (tuple (pox-address (tuple (hashbytes (buff 20)) (version (buff 1)))) (start-burn-ht uint) (lock-period uint) (result (list 30 (response (tuple (lock-amount uint) (stacker principal) (unlock-burn-height uint)) (tuple (kind (string-ascii 32)) (code uint)))))))) (let ((user (get user details))) (let ((pox-address (get pox-address context)) (start-burn-ht (get start-burn-ht context)) (lock-period (get lock-period context)) (amount-ustx (min (get amount-ustx details) (stx-get-balance user)))) (let ((stack-result (if (> amount-ustx u0) (match (map-get? user-data user) user-details (match (contract-call? 'SP000000000000000000002Q6VF78.pox delegate-stack-stx user amount-ustx pox-address start-burn-ht lock-period) stacker-details (begin (map-set-details (merge-details stacker-details user-details)) (ok stacker-details)) error (err {kind: "native-function-failed", code: (to-uint error)})) (err {kind: "user-not-found", code: err-missing-user})) (err {kind: "invalid-amount", code: err-non-positive-amount})))) {pox-address: pox-address, start-burn-ht: start-burn-ht, lock-period: lock-period, result: (unwrap-panic (as-max-len? (append (get result context) stack-result) u30))})))) (define-public (delegate-stx (amount-ustx uint) (delegate-to principal) (until-burn-ht (optional uint)) (pool-pox-addr (optional (tuple (hashbytes (buff 20)) (version (buff 1))))) (user-pox-addr (tuple (hashbytes (buff 20)) (version (buff 1)))) (locking-period uint)) (begin (asserts! (map-set user-data tx-sender {pox-addr: user-pox-addr, cycle: (current-pox-reward-cycle), locking-period: locking-period}) (err {kind: "map-fn-failed", code: err-map-set-failed})) (pox-delegate-stx amount-ustx delegate-to until-burn-ht))) (define-public (delegate-stack-stx (users (list 30 (tuple (user principal) (amount-ustx uint)))) (pox-address { version: (buff 1), hashbytes: (buff 20) }) (start-burn-ht uint) (lock-period uint)) (let ((stack-result (get result (fold pox-delegate-stack-stx users {start-burn-ht: start-burn-ht, pox-address: pox-address, lock-period: lock-period, result: (list)})))) (ok stack-result))) (define-read-only (get-status (user principal)) (match (pox-get-stacker-info user) stacker-info (match (map-get? user-data user) user-info (ok {stacker-info: stacker-info, user-info: user-info, total: (get-total (get first-reward-cycle stacker-info))}) (err {kind: "no-user-info"})) (err {kind: "no-stacker-info"}))) (define-read-only (get-status-list-length (reward-cycle uint)) (default-to u0 (map-get? stackers-by-start-cycle-len reward-cycle)) ) (define-read-only (get-status-list (reward-cycle uint) (index uint)) {total: (get-total reward-cycle), status-list: (map-get? stackers-by-start-cycle {reward-cycle: reward-cycle, index: index})} ) (define-read-only (get-total (reward-cycle uint)) (default-to u0 (map-get? totals-by-start-cycle reward-cycle)) )
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 transfer (as-contract tx-sender) amount)) (begin (ft-mint? wrapped-nthng amount tx-sender) ) (err ERR-YOU-POOR))) (define-public (unwrap (amount uint)) (if (is-ok (ft-burn? wrapped-nthng amount tx-sender)) (let ((unwrapper tx-sender)) (as-contract (contract-call? .micro-nthng transfer (as-contract tx-sender) amount))) (err ERR-YOU-POOR) )) ;;;;;;;;;;;;;;;;;;;;; SIP 010 ;;;;;;;;;;;;;;;;;;;;;; (define-public (transfer (amount uint) (from principal) (to principal)) (begin (asserts! (is-eq from tx-sender) (err ERR-UNAUTHORIZED)) (ft-transfer? wrapped-nthng amount from to) ) ) (define-public (get-name) (ok "Wrapped Nothing")) (define-public (get-symbol) (ok "WMNO")) (define-public (get-decimals) (ok u0)) (define-public (get-balance-of (user principal)) (ok (ft-get-balance wrapped-nthng user))) (define-public (get-total-supply) (ok (ft-get-supply wrapped-nthng))) (define-public (set-token-uri (value (string-utf8 256))) (if (is-eq tx-sender contract-creator) (ok (var-set token-uri value)) (err ERR-UNAUTHORIZED))) (define-public (get-token-uri) (ok (var-get token-uri))) ;; send-many (define-public (send-nothing (amount uint) (to principal)) (let ((transfer-ok (try! (transfer amount tx-sender to)))) (ok transfer-ok))) (define-private (send-nothing-unwrap (recipient { to: principal, amount: uint })) (send-nothing (get amount recipient) (get to recipient))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (send-many (recipients (list 200 { to: principal, amount: uint }))) (fold check-err (map send-nothing-unwrap recipients) (ok true)))
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 (wrap-nthng (amount uint)) (if (is-ok (contract-call? .micro-nthng transfer (as-contract tx-sender) amount)) (begin (ft-mint? wrapped-nthng amount tx-sender) ) (err ERR-YOU-POOR))) (define-public (unwrap (amount uint)) (if (is-ok (ft-burn? wrapped-nthng amount tx-sender)) (let ((unwrapper tx-sender)) (as-contract (contract-call? .micro-nthng transfer unwrapper amount))) (err ERR-YOU-POOR) )) ;;;;;;;;;;;;;;;;;;;;; SIP 010 ;;;;;;;;;;;;;;;;;;;;;; (define-public (transfer (amount uint) (from principal) (to principal)) (begin (asserts! (is-eq from tx-sender) (err ERR-UNAUTHORIZED)) (ft-transfer? wrapped-nthng amount from to) ) ) (define-public (get-name) (ok "Wrapped Nothing")) (define-public (get-symbol) (ok "WMNO")) (define-public (get-decimals) (ok u0)) (define-public (get-balance-of (user principal)) (ok (ft-get-balance wrapped-nthng user))) (define-public (get-total-supply) (ok (ft-get-supply wrapped-nthng))) (define-public (set-token-uri (value (string-utf8 256))) (if (is-eq tx-sender contract-creator) (ok (var-set token-uri value)) (err ERR-UNAUTHORIZED))) (define-public (get-token-uri) (ok (var-get token-uri))) ;; send-many\ (define-public (send-nothing (amount uint) (to principal)) (let ((transfer-ok (try! (transfer amount tx-sender to)))) (ok transfer-ok))) (define-private (send-nothing-unwrap (recipient { to: principal, amount: uint })) (send-nothing (get amount recipient) (get to recipient))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (send-many (recipients (list 200 { to: principal, amount: uint }))) (fold check-err (map send-nothing-unwrap recipients) (ok true)))
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 (wrap-nthng (amount uint)) (if (is-ok (contract-call? .micro-nthng transfer (as-contract tx-sender) amount)) (begin (ft-mint? wrapped-nthng amount tx-sender) ) (err ERR-YOU-POOR))) (define-public (unwrap (amount uint)) (if (is-ok (ft-burn? wrapped-nthng amount tx-sender)) (let ((unwrapper tx-sender)) (as-contract (contract-call? .micro-nthng transfer unwrapper amount))) (err ERR-YOU-POOR) )) ;;;;;;;;;;;;;;;;;;;;; SIP 010 ;;;;;;;;;;;;;;;;;;;;;; (define-public (transfer (amount uint) (from principal) (to principal)) (begin (asserts! (is-eq from tx-sender) (err ERR-UNAUTHORIZED)) (ft-transfer? wrapped-nthng amount from to) ) ) (define-read-only (get-name) (ok "Wrapped Nothing")) (define-read-only (get-symbol) (ok "WMNO")) (define-read-only (get-decimals) (ok u0)) (define-read-only (get-balance-of (user principal)) (ok (ft-get-balance wrapped-nthng user))) (define-read-only (get-total-supply) (ok (ft-get-supply wrapped-nthng))) (define-public (set-token-uri (value (string-utf8 256))) (if (is-eq tx-sender contract-creator) (ok (var-set token-uri value)) (err ERR-UNAUTHORIZED))) (define-read-only (get-token-uri) (ok (var-get token-uri))) ;; send-many\ (define-public (send-nothing (amount uint) (to principal)) (let ((transfer-ok (try! (transfer amount tx-sender to)))) (ok transfer-ok))) (define-private (send-nothing-unwrap (recipient { to: principal, amount: uint })) (send-nothing (get amount recipient) (get to recipient))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (send-many (recipients (list 200 { to: principal, amount: uint }))) (fold check-err (map send-nothing-unwrap recipients) (ok true)))
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-block) (<= next-block block-height)) (err ERR-BLOCK-SEQUENCE-INVALID)) (let ((miner (unwrap-panic (get-block-info? miner-address next-block)))) (map-set block-miners {block-number: next-block} {miner: miner}) (var-set current-block-ht next-block) (ok (print "Added block successfuly"))))) (define-public (register-blocks (block-numbers (list 750))) (begin (map register-block block-numbers) (ok true)))
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-block) (<= next-block block-height)) (err ERR-BLOCK-SEQUENCE-INVALID)) (let ((miner (default-to (as-contract tx-sender) (get-block-info? miner-address next-block)))) (map-set block-miners {block-number: next-block} {miner: miner}) (var-set current-block-ht next-block) (ok (print "Added block successfully"))))) (define-public (register-blocks (block-numbers (list 750 uint))) (begin (map register-block block-numbers) (ok true)))
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-ascii 32) uint)) ;; the number of decimals used, e.g. 6 would mean 1_000_000 represents 1 token (get-decimals () (response uint uint)) ;; the balance of the passed principal (get-balance-of (principal) (response uint uint)) ;; the current total supply (which does not need to be a constant) (get-total-supply () (response uint uint)) ;; an optional URI that represents metadata of this token (get-token-uri () (response (optional (string-utf8 256)) uint)) ) )
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 (optional principal) uint)) ;; Transfer from the sender to a new principal (transfer (uint principal principal) (response bool (tuple (kind (string-ascii 32)) (code uint)))) ) )
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))) (define-private (find (user principal) (ctx {member: principal, index: uint, result: uint})) (let ((member (get member ctx)) (index (get index ctx))) (if (is-eq user member) {member: member, index: (+ index u1), result: index} {member: member, index: (+ index u1), result: (get result ctx)}))) ;; Public functions (define-constant err-permission-denied u1) ;; Last token ID, limited to uint range (define-read-only (get-last-token-id) (ok (len initial-members))) ;; URI for metadata associated with the token (define-read-only (get-token-uri (token-id uint)) (ok (some "https://pool.friedger.de/nft.json"))) (define-read-only (get-meta (id uint)) (ok {name: "Friedger Pool Early Member", uri: "https://pool.friedger.de/nft.png", mime-type: "image/png"})) (define-read-only (get-nft-meta) (ok {name: "Friedger Pool", uri: "https://pool.friedger.de/nft.png", mime-type: "image/png"})) ;; Gets the owner of the 'SPecified token ID. (define-read-only (get-owner (token-id uint)) (ok (nft-get-owner? friedger-pool token-id))) ;; Transfers tokens to a 'SPecified principal. (define-public (transfer (token-id uint) (sender principal) (recipient principal)) (if (and (is-owner token-id sender) (is-eq sender tx-sender)) (match (nft-transfer? friedger-pool token-id sender recipient) success (ok success) error (err {kind: "nft-transfer-failed", code: error}) ) (err {kind: "permission-denied", code: err-permission-denied}))) ;; Claim pre-minted tokens. (define-public (claim (amount-in-stx uint)) (let ((token-id (get result (fold find initial-members {member: tx-sender, index: u1, result: u0}))) (amount-ustx (* amount-in-stx u1000000))) (if (> token-id u0) (begin (if (> amount-in-stx u0) (match (stx-transfer? amount-ustx tx-sender 'SP3AQDW78BWS2AZMBZWD7XWGH5HQS3HHVS2MC9NBD) success true error true) true) (match (nft-mint? friedger-pool token-id tx-sender) success (ok success) error (err {kind: "nft-mint-failed", code: error}))) (err {kind: "permission-denied", code: err-permission-denied})))) ;; list of members (define-constant initial-members (list 'SP103VXJR1E4KHSF19KKDXN1BNAG3HHRMD5QWDCNY 'SP1049B6SW0W3ZH4TQDGWPPVARFHCHM3MFZ89MHG5 'SP107ENYMVJ2YN23E0YZJ1DC28YX0KAFRWQ2XR0R 'SP108W069Y9R0GZS67CPH1WM5G96BX0NB60335GQ3 'SP10SDYWM9JSP6NGRP8VJKD98ZVGWMFJKECSNBDKC 'SP11EZAAA9HD45A3N763QZDJ3BQ3VMJER5AXA7YRJ 'SP11GJVQTMN2ECK740M36Q7TR8JPCGPGE4MSB3EDZ 'SP1293BDR2HFT5SS1MET8Y1QNCAPM2Q171C0H1GP4 'SP12B127ZFK123WNKMZ7CYP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J5WTPADHACJEGBWTH33M 'SPH3Z6V35EXH7M26HDFW7X6JVK40ET61FJWM7XBQ 'SPHC5BHG1PMB6AKH1CCVS1M7824Y4E01P17CJ4VS 'SPM97MPV98TWEKPXS8X5FTVHXY5CJQC24X30SFJV 'SPPW1RX5YQKVNFXHKWS27RBS1HAVZGH1HX5HWNA2 'SPVNN29HEMCFMF7GRHT0CNFT4XD7TV4ET59C9T5P 'SPW4KNVH5F7MVDFX1DV79DSC0TMWW90J19D6AJ3P 'SPW88YG19W24JK0ZWANM1BM609EMYN00J7EXXP2R 'SPXJ32593DZD5H0EHQJ0JHQ16Z6P9F8GA7AH8NKR 'SPY1BSPJZYBZH3K6QJA3XYS8GQKZDKSFDDQH7ZS5 'SPYCBWGFNH829GDE0F20ZDD30P58YZBJP18Z0ETF 'SPZ7PNAV29ZPTVYM9ZEAC2BY5R3C7P6Y451W8600 'SPZWKC7GN140C3GVPXHW4JXT2CD51HAFQRJ63MNK 'SPZX7DMGEHBBEN7FD7T3FZVS8P7WAYKB04531877))
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 a specified principal. (define-public (transfer (token-id uint) (sender principal) (recipient principal)) (if (and (is-eq tx-sender (unwrap! (nft-get-owner? beeple token-id) not-found-err)) (is-eq tx-sender sender) (not (is-eq recipient sender))) (match (nft-transfer? beeple token-id sender recipient) success (ok success) error (err {kind: "nft-transfer-failed", code: error})) unauthorized-transfer-err)) ;; Gets the owner of the specified token ID. (define-read-only (get-owner (token-id uint)) (ok (nft-get-owner? beeple token-id))) ;; Gets the owner of the specified token ID. (define-read-only (get-last-token-id) (ok u1)) (define-read-only (get-token-uri (token-id uint)) (ok (some "ipfs://ipfs/QmPAg1mjxcEQPPtqsLoEcauVedaeMH81WXDPvPx3VC5zUz"))) (define-read-only (get-meta (token-id uint)) (if (is-eq token-id u1) (ok (some {name: "EVERYDAYS: THE FIRST 5000 DAYS", uri: "https://ipfsgateway.makersplace.com/ipfs/QmZ15eQX8FPjfrtdX3QYbrhZxJpbLpvDpsgb2p3VEH8Bqq", mime-type: "image/jpeg"})) (ok none))) (define-read-only (get-nft-meta) (ok (some {name: "beeple", uri: "https://ipfsgateway.makersplace.com/ipfs/QmZ15eQX8FPjfrtdX3QYbrhZxJpbLpvDpsgb2p3VEH8Bqq", mime-type: "image/jpeg"}))) ;; Initialize the contract (try! (nft-mint? beeple u1 tx-sender))
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 (optional principal) uint)) ;; Transfer from the sender to a new principal (transfer (uint principal principal) (response bool uint)) ) )
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 (optional principal) uint)) ;; Transfer from the sender to a new principal (transfer (uint principal principal) (response bool uint)) ) )
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)) ;; method not allowed (define-private (nft-transfer-err (code uint)) (if (is-eq u1 code) nft-not-owned-err (if (is-eq u2 code) sender-equals-recipient-err (if (is-eq u3 code) nft-not-found-err (err code))))) ;; Transfers tokens to a specified principal. (define-public (transfer (token-id uint) (sender principal) (recipient principal)) (if (and (is-eq tx-sender (unwrap! (nft-get-owner? beeple token-id) nft-not-found-err)) (is-eq tx-sender sender) (not (is-eq recipient sender))) (match (nft-transfer? beeple token-id sender recipient) success (ok success) error (nft-transfer-err error)) nft-not-owned-err)) ;; Gets the owner of the specified token ID. (define-read-only (get-owner (token-id uint)) (ok (nft-get-owner? beeple token-id))) ;; Gets the owner of the specified token ID. (define-read-only (get-last-token-id) (ok u1)) (define-read-only (get-token-uri (token-id uint)) (ok (some "ipfs://ipfs/QmPAg1mjxcEQPPtqsLoEcauVedaeMH81WXDPvPx3VC5zUz"))) (define-read-only (get-meta (token-id uint)) (if (is-eq token-id u1) (ok (some {name: "EVERYDAYS: THE FIRST 5000 DAYS", uri: "https://ipfsgateway.makersplace.com/ipfs/QmZ15eQX8FPjfrtdX3QYbrhZxJpbLpvDpsgb2p3VEH8Bqq", mime-type: "image/jpeg"})) (ok none))) (define-read-only (get-nft-meta) (ok (some {name: "beeple", uri: "https://ipfsgateway.makersplace.com/ipfs/QmZ15eQX8FPjfrtdX3QYbrhZxJpbLpvDpsgb2p3VEH8Bqq", mime-type: "image/jpeg"}))) (define-read-only (get-errstr (code uint)) (ok (if (is-eq u401 code) "nft-not-owned" (if (is-eq u404 code) "nft-not-found" (if (is-eq u405 code) "sender-equals-recipient" "unknown-error"))))) ;; Initialize the contract (try! (nft-mint? beeple u1 tx-sender))
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))) (define-private (find (user principal) (ctx {member: principal, index: uint, result: uint})) (let ((member (get member ctx)) (index (get index ctx))) (if (is-eq user member) {member: member, index: (+ index u1), result: index} {member: member, index: (+ index u1), result: (get result ctx)}))) ;; Public functions (define-constant err-permission-denied u1) ;; Last token ID, limited to uint range (define-read-only (get-last-token-id) (ok (len initial-members))) ;; URI for metadata associated with the token (define-read-only (get-token-uri (token-id uint)) (ok (some "https://pool.friedger.de/nft.json"))) (define-read-only (get-meta (id uint)) (ok {name: "Friedger Pool Early Member", uri: "https://pool.friedger.de/nft.webp", mime-type: "image/webp", hash: "b502961ef5e1762fa76263a8353bd976c291bd61cf8b7d4514fcf2787db76ac0"})) (define-read-only (get-nft-meta) (ok {name: "Friedger Pool", uri: "https://pool.friedger.de/nft.webp", mime-type: "image/webp"})) ;; Gets the owner of the 'SPecified token ID. (define-read-only (get-owner (token-id uint)) (ok (nft-get-owner? friedger-pool token-id))) ;; Transfers tokens to a 'SPecified principal. (define-public (transfer (token-id uint) (sender principal) (recipient principal)) (if (and (is-owner token-id sender) (is-eq sender tx-sender)) (match (nft-transfer? friedger-pool token-id sender recipient) success (ok success) error (nft-transfer-err error)) nft-not-owned-err)) ;; Claim pre-minted tokens. (define-public (claim (amount-in-stx uint)) (let ((token-id (get result (fold find initial-members {member: tx-sender, index: u1, result: u0}))) (amount-ustx (* amount-in-stx u1000000))) (if (> token-id u0) (begin (if (> amount-in-stx u0) (match (stx-transfer? amount-ustx tx-sender 'SP3AQDW78BWS2AZMBZWD7XWGH5HQS3HHVS2MC9NBD) success true error true) true) (match (nft-mint? friedger-pool token-id tx-sender) success (ok success) error (nft-mint-err error))) nft-not-owned-err))) ;; error handling (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-constant nft-exists-err (err u409)) ;; conflict (define-private (nft-transfer-err (code uint)) (if (is-eq u1 code) nft-not-owned-err (if (is-eq u2 code) sender-equals-recipient-err (if (is-eq u3 code) nft-not-found-err (err code))))) (define-private (nft-mint-err (code uint)) (if (is-eq u1 code) nft-exists-err (err code))) (define-read-only (get-errstr (code uint)) (ok (if (is-eq u401 code) "nft-not-owned" (if (is-eq u404 code) "nft-not-found" (if (is-eq u405 code) "sender-equals-recipient" (if (is-eq u409 code) "nft-exists" "unknown-error")))))) ;; list of members (define-constant initial-members (list 'SP103VXJR1E4KHSF19KKDXN1BNAG3HHRMD5QWDCNY 'SP1049B6SW0W3ZH4TQDGWPPVARFHCHM3MFZ89MHG5 'SP107ENYMVJ2YN23E0YZJ1DC28YX0KAFRWQ2XR0R 'SP108W069Y9R0GZS67CPH1WM5G96BX0NB60335GQ3 'SP10SDYWM9JSP6NGRP8VJKD98ZVGWMFJKECSNBDKC 'SP11EZAAA9HD45A3N763QZDJ3BQ3VMJER5AXA7YRJ 'SP11GJVQTMN2ECK740M36Q7TR8JPCGPGE4MSB3EDZ 'SP1293BDR2HFT5SS1MET8Y1QNCAPM2Q171C0H1GP4 'SP12B127ZFK123WNKMZ7CYP8S42BV4T3SQ2TVYVGX 'SP12Q5VPEFGG0307Z88DQMQ4NNWG4CDNYNQXYP0MZ 'SP1308DQKXZK593BES4GV419HMM3X94MM3TSVFA88 'SP13NXPSHAQ5PHS4EZ55DEF0HCXVF263B72G8NKQR 'SP15RF9ZKWJARCMMYDN26Z54X5ZX96AHABTV7QTNC 'SP1688J09PXA3NFCEAMFSPQDT4QEHP8KJH7SB7DF6 'SP17DGYKZ8GKW8TRKE53WE6B0MVEZGXZQWRGS6SGM 'SP17PF38015BBJ5YZ8B2PR3BV8HVDTG1A6QXFXM6S 'SP17RJTW2FERBBRBC0HQH70BDQETKT76C2QRCAAS4 'SP18DC9K6VVB5XV33G122M2GHM208129TWJGZHR6H 'SP1A86KRVMMXD3QFXRWHWKNAEW07A6KTDX21SK40F 'SP1A8V2HEF1AT2J9V2WR9TX1YY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EAC2BY5R3C7P6Y451W8600 'SPZWKC7GN140C3GVPXHW4JXT2CD51HAFQRJ63MNK 'SPZX7DMGEHBBEN7FD7T3FZVS8P7WAYKB04531877))
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-fungible-token hello-nft uint) (begin (nft-mint? hello-nft u1 sender)) (begin (nft-mint? hello-nft u2 sender)) (begin (nft-transfer? hello-nft u1 sender recipient)) (define-public (test-emit-event) (begin (print "Event! Hello world") (ok u1))) (begin (test-emit-event)) (define-public (test-event-types) (begin (unwrap-panic (ft-mint? novel-token-19 u3 recipient)) (unwrap-panic (nft-mint? hello-nft u2 recipient)) (unwrap-panic (stx-transfer? u60 tx-sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)) (unwrap-panic (stx-burn? u20 tx-sender)) (ok u1))) (define-map store {key: (buff 32)} {value: (buff 32)}) (define-public (get-value (key (buff 32))) (begin (match (map-get? store {key: key}) entry (ok (get value entry)) (err 0)))) (define-public (set-value (key (buff 32)) (value (buff 32))) (begin (map-set store {key: key} {value: value}) (ok u1)))
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} {name: (string-ascii 20),target-aip: (string-ascii 20),num-timeblocks: uint, date-of-birth: uint}) (define-read-only (get-meta-data (hai-id uint)) (map-get? hais {hai-id: hai-id})) (define-non-fungible-token nft-hais uint) (define-data-var next-id uint u1) (define-private (get-time) (unwrap-panic (get-block-info? time (- block-height u1)))) (define-public (create-hai (name (string-ascii 20)) (target-aip (string-ascii 20)) (num-timeblocks uint)) (let ((hai-id (var-get next-id))) (if (is-ok (nft-mint? nft-hais hai-id tx-sender)) (begin (var-set next-id (+ hai-id u1)) (map-set hais {hai-id: hai-id}{name: name, target-aip: target-aip, num-timeblocks: num-timeblocks, date-of-birth: (get-time)}) (ok hai-id)) err-hai-exists))) (define-public (transfer (hai-id uint) (sender principal) (recipient principal)) (let ((owner (unwrap! (unwrap-panic (get-owner hai-id)) err-hai-unborn))) (if (is-eq owner sender) (match (nft-transfer? nft-hais hai-id sender recipient) success (ok success) error (err-nft-transfer error)) err-transfer-not-allowed))) (define-read-only (get-last-token-id) (ok (- (var-get next-id) u1))) (define-read-only (get-token-uri (hai-id uint)) (ok none)) (define-read-only (get-owner (hai-id uint)) (match (nft-get-owner? nft-hais hai-id) owner (ok (some owner)) (ok none))) (define-constant err-transfer-not-allowed (err u401)) (define-constant err-hai-unborn (err u404)) (define-constant err-sender-equals-recipient (err u405)) (define-constant err-hai-exists (err u409)) (define-constant err-hai-died (err u501)) (define-map err-strings (response uint uint) (string-ascii 32)) (map-insert err-strings err-transfer-not-allowed "transfer-not-allowed") (map-insert err-strings err-hai-unborn "hai-unborn") (map-insert err-strings err-sender-equals-recipient "sender-equals-recipient") (map-insert err-strings err-hai-exists "hai-exists") (map-insert err-strings err-hai-died "hai-died") (define-private (err-nft-transfer (code uint)) (if (is-eq u1 code) err-transfer-not-allowed (if (is-eq u2 code) err-sender-equals-recipient (if (is-eq u3 code) err-hai-unborn (err code))))) (define-private (err-nft-mint (code uint)) (if (is-eq u1 code) err-hai-exists (err code))) (define-read-only (get-errstr (code uint)) (unwrap! (map-get? err-strings (err code)) "unknown-error"))
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} {name: (string-ascii 20), target-aip: (string-ascii 20), num-timeblocks: uint, date-of-birth: uint}) (define-read-only (get-meta-data (hai-id uint)) (map-get? hais {hai-id: hai-id})) (define-non-fungible-token nft-hais uint) (define-data-var next-id uint u1) (define-private (get-time) (unwrap-panic (get-block-info? time (- block-height u1)))) (define-public (create-hai (name (string-ascii 20)) (target-aip (string-ascii 20)) (num-timeblocks uint)) (let ((hai-id (var-get next-id))) (if (is-ok (nft-mint? nft-hais hai-id tx-sender)) (begin (var-set next-id (+ hai-id u1)) (map-set hais {hai-id: hai-id} {name: name, target-aip: target-aip, num-timeblocks: num-timeblocks, date-of-birth: (get-time)}) (ok hai-id)) err-hai-exists))) (define-public (transfer (hai-id uint) (sender principal) (recipient principal)) (let ((owner (unwrap! (unwrap-panic (get-owner hai-id)) err-hai-unborn))) (if (is-eq owner sender) (match (nft-transfer? nft-hais hai-id sender recipient) success (ok success) error (err-nft-transfer error)) err-transfer-not-allowed))) (define-read-only (get-last-token-id) (ok (- (var-get next-id) u1))) (define-read-only (get-token-uri (hai-id uint)) (ok none)) (define-read-only (get-owner (hai-id uint)) (match (nft-get-owner? nft-hais hai-id) owner (ok (some owner)) (ok none))) (define-constant err-transfer-not-allowed (err u401)) (define-constant err-hai-unborn (err u404)) (define-constant err-sender-equals-recipient (err u405)) (define-constant err-hai-exists (err u409)) (define-constant err-hai-died (err u501)) (define-map err-strings (response uint uint) (string-ascii 32)) (map-insert err-strings err-transfer-not-allowed "transfer-not-allowed") (map-insert err-strings err-hai-unborn "hai-unborn") (map-insert err-strings err-sender-equals-recipient "sender-equals-recipient") (map-insert err-strings err-hai-exists "hai-exists") (map-insert err-strings err-hai-died "hai-died") (define-private (err-nft-transfer (code uint)) (if (is-eq u1 code) err-transfer-not-allowed (if (is-eq u2 code) err-sender-equals-recipient (if (is-eq u3 code) err-hai-unborn (err code))))) (define-private (err-nft-mint (code uint)) (if (is-eq u1 code) err-hai-exists (err code))) (define-read-only (get-errstr (code uint)) (unwrap! (map-get? err-strings (err code)) "unknown-error"))
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} {name: (string-ascii 20), target-aip: (string-ascii 20), num-timeblocks: uint, date-of-birth: uint}) (define-read-only (get-meta-data (hai-id uint)) (map-get? hais {hai-id: hai-id})) (define-non-fungible-token nft-hais uint) (define-data-var next-id uint u1) (define-private (get-time) (unwrap-panic (get-block-info? time (- block-height u1)))) (define-public (create-hai (name (string-ascii 20)) (target-aip (string-ascii 20)) (num-timeblocks uint)) (let ((hai-id (var-get next-id))) (if (is-ok (nft-mint? nft-hais hai-id tx-sender)) (begin (var-set next-id (+ hai-id u1)) (map-set hais {hai-id: hai-id} {name: name, target-aip: target-aip, num-timeblocks: num-timeblocks, date-of-birth: (get-time)}) (ok hai-id)) err-hai-exists))) (define-public (transfer (hai-id uint) (sender principal) (recipient principal)) (let ((owner (unwrap! (unwrap-panic (get-owner hai-id)) err-hai-unborn))) (if (is-eq owner sender) (match (nft-transfer? nft-hais hai-id sender recipient) success (ok success) error (err-nft-transfer error)) err-transfer-not-allowed))) (define-read-only (get-last-token-id) (ok (- (var-get next-id) u1))) (define-read-only (get-token-uri (hai-id uint)) (ok none)) (define-read-only (get-owner (hai-id uint)) (match (nft-get-owner? nft-hais hai-id) owner (ok (some owner)) (ok none))) (define-constant err-transfer-not-allowed (err u401)) (define-constant err-hai-unborn (err u404)) (define-constant err-sender-equals-recipient (err u405)) (define-constant err-hai-exists (err u409)) (define-constant err-hai-died (err u501)) (define-map err-strings (response uint uint) (string-ascii 32)) (map-insert err-strings err-transfer-not-allowed "transfer-not-allowed") (map-insert err-strings err-hai-unborn "hai-unborn") (map-insert err-strings err-sender-equals-recipient "sender-equals-recipient") (map-insert err-strings err-hai-exists "hai-exists") (map-insert err-strings err-hai-died "hai-died") (define-private (err-nft-transfer (code uint)) (if (is-eq u1 code) err-transfer-not-allowed (if (is-eq u2 code) err-sender-equals-recipient (if (is-eq u3 code) err-hai-unborn (err code))))) (define-private (err-nft-mint (code uint)) (if (is-eq u1 code) err-hai-exists (err code))) (define-read-only (get-errstr (code uint)) (unwrap! (map-get? err-strings (err code)) "unknown-error"))
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-fungible-token hello-nft uint) (begin (nft-mint? hello-nft u1 sender)) (begin (nft-mint? hello-nft u2 sender)) (begin (nft-transfer? hello-nft u1 sender recipient)) (define-public (test-emit-event) (begin (print "Event! Hello world") (ok u1))) (begin (test-emit-event)) (define-public (test-event-types) (begin (unwrap-panic (ft-mint? novel-token-19 u3 recipient)) (unwrap-panic (nft-mint? hello-nft u2 recipient)) (unwrap-panic (stx-transfer? u60 tx-sender 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)) (unwrap-panic (stx-burn? u20 tx-sender)) (ok u1))) (define-map store {key: (buff 32)} {value: (buff 32)}) (define-public (get-value (key (buff 32))) (begin (match (map-get? store {key: key}) entry (ok (get value entry)) (err 0)))) (define-public (set-value (key (buff 32)) (value (buff 32))) (begin (map-set store {key: key} {value: value}) (ok u1)))
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 'SP1BBF4MY50BJW4YT1NVQPZMG20S52S2C71TRK5B6), } { name: "Roland Naddour aka TMDR11, Blockvote", address: (some 'SPAFTX8TJ51M4PAN62BMXFYTGCRKXTEQ0B70ZX9S), } { name: "Ibrahim Shedid strong, bypa-ss.com", address: (some 'SP2MYW78H7ZM0SSKETJJKJG54YBANW4GKG2FBKJA1), } { name: "Mario Nassef, tandasmart.com", address: none, } { name: "Hany Boraie, PassApp", address: none, } { name: "Bishoy Moussa, valify.me", address: (some 'SP5T0BR3GXMYWR3AH8A7AM70V6QY0BFDD0XWH3H6), } { name: "Ahmed Abdelmalek, TOGO", address: (some 'SP1QA3R2MD6ZC4KCYYFFSDCZHE5DWN9JZG4PMMN3S), } )) (map say-name participants) (define-private (say-name (participant {name: (string-ascii 50), address: (optional principal)})) (let ( (name (get name participant)) (address (get address participant)) ) (print name) (if (is-some address) (nft-mint? participation name (unwrap-panic address)) (ok true))))
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 }) ;; Private Functions ;;----------------------------------------------------------------- (define-private (check-caller-allowed) (is-some (map-get? rewards-state { stacker: tx-sender }))) ;; Public Functions ;;----------------------------------------------------------------- ;; This function will only be called by liquidity provider (define-public (fill-liquidity-pool (amount-ustx uint)) ;; validate caller as the liquidity provider (begin (asserts! (is-eq tx-sender LIQUIDITY_PROVIDER) (err ERR_PERMISSION_DENIED)) ;; do transfer from liquidity provider to smart contract address (unwrap! (stx-transfer? amount-ustx tx-sender (as-contract tx-sender)) (err ERR_INSUFFICIENT_FUNDS)) ;; if everything succeeds, return ok (ok true)) ) ;; This function will only be called by liquidity provider (define-public (set-rewards (stacker principal) (amount-ustx uint)) (begin ;; validate caller as the liquidity provider (asserts! (is-eq tx-sender LIQUIDITY_PROVIDER) (err ERR_PERMISSION_DENIED)) ;; populate rewards-state map with the stacker address and reward amount ( ok (map-set rewards-state { stacker: stacker } { amount-ustx: amount-ustx }))) ) ;; claim rewards from pool (define-public (claim-rewards) (begin (asserts! (check-caller-allowed) (err ERR_PERMISSION_DENIED)) (let ((amnt (default-to u0 (get amount-ustx (map-get? rewards-state { stacker: tx-sender}))))) (unwrap! (as-contract (stx-transfer? amnt tx-sender tx-sender)) (err ERR_STX_TRANSFER)) (map-delete rewards-state { stacker: tx-sender}) (ok true))))
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 }) ;; Private Functions ;;----------------------------------------------------------------- (define-private (check-caller-allowed) (is-some (map-get? rewards-state { stacker: tx-sender }))) ;; Public Functions ;;----------------------------------------------------------------- ;; This function will only be called by liquidity provider (define-public (fill-liquidity-pool (amount-ustx uint)) ;; validate caller as the liquidity provider (begin (asserts! (is-eq tx-sender contract-caller LIQUIDITY_PROVIDER) (err ERR_PERMISSION_DENIED)) ;; do transfer from liquidity provider to smart contract address (unwrap! (stx-transfer? amount-ustx tx-sender (as-contract tx-sender)) (err ERR_INSUFFICIENT_FUNDS)) ;; if everything succeeds, return ok (ok true)) ) ;; This function will only be called by liquidity provider (define-public (set-rewards (stacker principal) (amount-ustx uint)) (begin ;; validate caller as the liquidity provider (asserts! (is-eq tx-sender contract-caller LIQUIDITY_PROVIDER) (err ERR_PERMISSION_DENIED)) ;; populate rewards-state map with the stacker address and reward amount ( ok (map-set rewards-state { stacker: stacker } { amount-ustx: amount-ustx }))) ) ;; claim rewards from pool (define-public (claim-rewards) (begin ;; validate caller is transaction sender (asserts! (is-eq tx-sender contract-caller) (err ERR_PERMISSION_DENIED)) (asserts! (check-caller-allowed) (err ERR_PERMISSION_DENIED)) (let ((amnt (default-to u0 (get amount-ustx (map-get? rewards-state { stacker: tx-sender})))) (requester tx-sender)) (unwrap! (as-contract (stx-transfer? amnt tx-sender requester)) (err ERR_STX_TRANSFER)) (map-delete rewards-state { stacker: tx-sender}) (ok true))))
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 'SPZ0RAC1EFTH949T4W2SYY6YBHJRMAF4ECT5A7DD) ;; "\x19Ethereum Signed Message:\n32" (define-constant eth-preamble 0x19457468657265756d205369676e6564204d6573736167653a0a3332) (define-map oracle-data { source: (string-ascii 16), symbol: (string-ascii 32) } { timestamp: uint, height: uint, amount: uint } ) (define-map sources { source: (string-ascii 16) } { public-key: (buff 33) } ) (define-data-var offsets-timestamp (list 8 uint) (list u60 u61 u62 u63)) (define-data-var offsets-amount (list 8 uint) (list u120 u121 u122 u123 u124 u125 u126 u127)) (define-data-var offsets-symbol-offset (list 8 uint) (list u94 u95)) ;; 1 byte might be enough (define-data-var offsets-symbol-length (list 8 uint) (list u223)) ;; assume 1 byte is enough (define-constant BUFF_TO_UINT8 (list 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x1e 0x1f 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27 0x28 0x29 0x2a 0x2b 0x2c 0x2d 0x2e 0x2f 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x3a 0x3b 0x3c 0x3d 0x3e 0x3f 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49 0x4a 0x4b 0x4c 0x4d 0x4e 0x4f 0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57 0x58 0x59 0x5a 0x5b 0x5c 0x5d 0x5e 0x5f 0x60 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x7b 0x7c 0x7d 0x7e 0x7f 0x80 0x81 0x82 0x83 0x84 0x85 0x86 0x87 0x88 0x89 0x8a 0x8b 0x8c 0x8d 0x8e 0x8f 0x90 0x91 0x92 0x93 0x94 0x95 0x96 0x97 0x98 0x99 0x9a 0x9b 0x9c 0x9d 0x9e 0x9f 0xa0 0xa1 0xa2 0xa3 0xa4 0xa5 0xa6 0xa7 0xa8 0xa9 0xaa 0xab 0xac 0xad 0xae 0xaf 0xb0 0xb1 0xb2 0xb3 0xb4 0xb5 0xb6 0xb7 0xb8 0xb9 0xba 0xbb 0xbc 0xbd 0xbe 0xbf 0xc0 0xc1 0xc2 0xc3 0xc4 0xc5 0xc6 0xc7 0xc8 0xc9 0xca 0xcb 0xcc 0xcd 0xce 0xcf 0xd0 0xd1 0xd2 0xd3 0xd4 0xd5 0xd6 0xd7 0xd8 0xd9 0xda 0xdb 0xdc 0xdd 0xde 0xdf 0xe0 0xe1 0xe2 0xe3 0xe4 0xe5 0xe6 0xe7 0xe8 0xe9 0xea 0xeb 0xec 0xed 0xee 0xef 0xf0 0xf1 0xf2 0xf3 0xf4 0xf5 0xf6 0xf7 0xf8 0xf9 0xfa 0xfb 0xfc 0xfd 0xfe 0xff )) (define-constant UINT8_TO_ASCII (list "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." " " "!" "\"" "#" "$" "%" "&" "'" "(" ")" "*" "+" "," "-" "." "/" "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" ":" ";" "<" "=" ">" "?" "@" "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" "Y" "Z" "[" "." "]" "^" "_" "@" "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" "t" "u" "v" "w" "x" "y" "z" "{" "|" "}" "~" "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." )) (define-private (buff-to-u8 (byte (buff 1))) (unwrap-panic (index-of BUFF_TO_UINT8 byte)) ) (define-private (buff-to-ascii (byte (buff 1))) (unwrap-panic (element-at UINT8_TO_ASCII (unwrap-panic (index-of BUFF_TO_UINT8 byte)))) ) (define-private (add-and-shift-uint-offsets (idx uint) (input { acc: uint, data: (buff 256) })) (let ( (acc (get acc input)) (data (get data input)) (byte (buff-to-u8 (unwrap-panic (element-at data idx)))) ) { acc: (+ (* acc u256) byte), data: data }) ) (define-private (buff-to-uint (word (buff 256)) (offsets (list 8 uint))) (get acc (fold add-and-shift-uint-offsets offsets { acc: u0, data: word }) ) ) (define-private (construct-string (idx uint) (input { acc: (string-ascii 32), offset: uint, length: uint, data: (buff 256) })) (let ( (acc (get acc input)) (offset (get offset input)) (length (get length input)) (data (get data input)) (char (buff-to-ascii (unwrap-panic (element-at data (+ idx offset))))) ) (if (> length u0) { acc: (unwrap-panic (as-max-len? (concat acc char) u32)), offset: offset, length: (- length u1), data: data } input ) ) ) (define-private (buff-to-string (msg (buff 256)) (symbol-offset uint) (symbol-length uint)) (get acc (fold construct-string (list u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31) { acc: "", offset: symbol-offset, length: symbol-length, data: msg }) ) ) ;; this one liner took 3-4 whole days to get right... you are welcome! (define-read-only (verify-signature (msg (buff 256)) (signature (buff 65)) (public-key (buff 33))) (is-eq (unwrap-panic (secp256k1-recover? (keccak256 (concat eth-preamble (keccak256 msg))) signature)) public-key) ) ;; 32-63 of message (define-read-only (extract-timestamp (msg (buff 256))) (buff-to-uint msg (var-get offsets-timestamp)) ) ;; 96-127 of message (define-read-only (extract-amount (msg (buff 256))) (buff-to-uint msg (var-get offsets-amount)) ) ;; 64-95 offset ;; length usually at 192, value at 224 (define-read-only (extract-symbol (msg (buff 256))) (let ((length-offset (buff-to-uint msg (var-get offsets-symbol-offset)))) (let ((symbol-offset (+ length-offset u32)) (symbol-length (buff-to-uint msg (list (+ length-offset u31))))) (unwrap-panic (as-max-len? (buff-to-string msg symbol-offset symbol-length) u32)) ) ) ) ;; source needs to be known and have a key ;; verify message was signed with source ;; verify timestamp is strictly higher than current one, we don't want to go back in time (define-public (add-price (source (string-ascii 16)) (msg (buff 256)) (sig (buff 65))) (if (verify-signature msg sig (get public-key (unwrap-panic (map-get? sources {source: source})))) (let ((timestamp (extract-timestamp msg)) (amount (extract-amount msg)) (symbol (extract-symbol msg)) (data-opt (map-get? oracle-data {source: source, symbol: symbol}))) (if (is-some data-opt) (let ((data (unwrap-panic data-opt)) (prior-timestamp (get timestamp data))) (if (> timestamp prior-timestamp) (begin (map-set oracle-data {source: source, symbol: symbol} {timestamp: timestamp, height: block-height, amount: amount }) (ok true) ) err-older-timestamp ) ) (begin (map-set oracle-data {source: source, symbol: symbol} {timestamp: timestamp, height: block-height, amount: amount }) (ok true) ) ) ) err-incorrect-signature ) ) (define-private (call-add-price (price {src: (string-ascii 16), msg: (buff 256), sig: (buff 65)})) (unwrap-panic (add-price (get src price) (get msg price) (get sig price))) ) ;; main entry point for adding a batch or quotes in one transaction (define-public (add-prices (prices (list 100 {src: (string-ascii 16), msg: (buff 256), sig: (buff 65)}))) (begin (map call-add-price prices) (ok true) ) ) ;; the price has been vetted by add-price, so it can be retrieved as fast as can be (define-read-only (get-price (source (string-ascii 16)) (symbol (string-ascii 32))) (map-get? oracle-data {source: source, symbol: symbol}) ) (define-public (add-source (source (string-ascii 16)) (public-key (buff 33))) ;; check sender ;; insert source into known sources (if (is-eq tx-sender contract-owner) (begin (map-set sources { source: source} { public-key: public-key }) (ok true) ) err-not-owner ) ) (define-public (revoke-source (source (string-ascii 16))) ;; check sender ;; remove source from known sources (if (is-eq tx-sender contract-owner) (begin (map-delete sources { source: source}) (ok true) ) err-not-owner ) ) (define-read-only (check-source (source (string-ascii 16))) (map-get? sources { source: source}) ) ;; preseed with trusted sources ;; need compressed version of public keys (map-set sources {source: "coinbase"} {public-key: 0x034170a2083dccbc2be253885a8d0e9f7ce859eb370d0c5cae3b6994af4cb9d666}) ;; Eth: 0xfCEAdAFab14d46e20144F48824d0C09B1a03F2BC (map-set sources {source: "okcoin"} {public-key: 0x0325df290b8c4930adcf8cd5c883616a1204ccc3d6ba3c4a636d6bcecd08e466d3}) ;; Eth: 0x419c555b739212684432050b7ce459ea8e7b8bda (map-set sources {source: "artifix-okcoin"} {public-key: 0x02752f4db204f7cdf6e022dc486af2572579bc9a0fe7c769b58d95f42234269367}) ;; stx: SPZ0RAC1EFTH949T4W2SYY6YBHJRMAF4ECT5A7DD (map-set sources {source: "artifix-binance"} {public-key: 0x02752f4db204f7cdf6e022dc486af2572579bc9a0fe7c769b58d95f42234269367}) ;; stx: SPZ0RAC1EFTH949T4W2SYY6YBHJRMAF4ECT5A7DD
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 'SPZ0RAC1EFTH949T4W2SYY6YBHJRMAF4ECT5A7DD) ;; "\x19Ethereum Signed Message:\n32" (define-constant eth-preamble 0x19457468657265756d205369676e6564204d6573736167653a0a3332) (define-map oracle-data { source: (string-ascii 16), symbol: (string-ascii 32) } { timestamp: uint, height: uint, amount: uint } ) (define-map sources { source: (string-ascii 16) } { public-key: (buff 33) } ) (define-data-var offsets-timestamp (list 8 uint) (list u60 u61 u62 u63)) (define-data-var offsets-amount (list 8 uint) (list u120 u121 u122 u123 u124 u125 u126 u127)) (define-data-var offsets-symbol-offset (list 8 uint) (list u94 u95)) ;; 1 byte might be enough (define-data-var offsets-symbol-length (list 8 uint) (list u223)) ;; assume 1 byte is enough (define-constant BUFF_TO_UINT8 (list 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x1e 0x1f 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27 0x28 0x29 0x2a 0x2b 0x2c 0x2d 0x2e 0x2f 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x3a 0x3b 0x3c 0x3d 0x3e 0x3f 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49 0x4a 0x4b 0x4c 0x4d 0x4e 0x4f 0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57 0x58 0x59 0x5a 0x5b 0x5c 0x5d 0x5e 0x5f 0x60 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x7b 0x7c 0x7d 0x7e 0x7f 0x80 0x81 0x82 0x83 0x84 0x85 0x86 0x87 0x88 0x89 0x8a 0x8b 0x8c 0x8d 0x8e 0x8f 0x90 0x91 0x92 0x93 0x94 0x95 0x96 0x97 0x98 0x99 0x9a 0x9b 0x9c 0x9d 0x9e 0x9f 0xa0 0xa1 0xa2 0xa3 0xa4 0xa5 0xa6 0xa7 0xa8 0xa9 0xaa 0xab 0xac 0xad 0xae 0xaf 0xb0 0xb1 0xb2 0xb3 0xb4 0xb5 0xb6 0xb7 0xb8 0xb9 0xba 0xbb 0xbc 0xbd 0xbe 0xbf 0xc0 0xc1 0xc2 0xc3 0xc4 0xc5 0xc6 0xc7 0xc8 0xc9 0xca 0xcb 0xcc 0xcd 0xce 0xcf 0xd0 0xd1 0xd2 0xd3 0xd4 0xd5 0xd6 0xd7 0xd8 0xd9 0xda 0xdb 0xdc 0xdd 0xde 0xdf 0xe0 0xe1 0xe2 0xe3 0xe4 0xe5 0xe6 0xe7 0xe8 0xe9 0xea 0xeb 0xec 0xed 0xee 0xef 0xf0 0xf1 0xf2 0xf3 0xf4 0xf5 0xf6 0xf7 0xf8 0xf9 0xfa 0xfb 0xfc 0xfd 0xfe 0xff )) (define-constant UINT8_TO_ASCII (list "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." " " "!" "\"" "#" "$" "%" "&" "'" "(" ")" "*" "+" "," "-" "." "/" "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" ":" ";" "<" "=" ">" "?" "@" "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" "Y" "Z" "[" "." "]" "^" "_" "@" "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" "t" "u" "v" "w" "x" "y" "z" "{" "|" "}" "~" "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." "." )) (define-private (buff-to-u8 (byte (buff 1))) (unwrap-panic (index-of BUFF_TO_UINT8 byte)) ) (define-private (buff-to-ascii (byte (buff 1))) (unwrap-panic (element-at UINT8_TO_ASCII (unwrap-panic (index-of BUFF_TO_UINT8 byte)))) ) (define-private (add-and-shift-uint-offsets (idx uint) (input { acc: uint, data: (buff 256) })) (let ( (acc (get acc input)) (data (get data input)) (byte (buff-to-u8 (unwrap-panic (element-at data idx)))) ) { acc: (+ (* acc u256) byte), data: data }) ) (define-private (buff-to-uint (word (buff 256)) (offsets (list 8 uint))) (get acc (fold add-and-shift-uint-offsets offsets { acc: u0, data: word }) ) ) (define-private (construct-string (idx uint) (input { acc: (string-ascii 32), offset: uint, length: uint, data: (buff 256) })) (let ( (acc (get acc input)) (offset (get offset input)) (length (get length input)) (data (get data input)) (char (buff-to-ascii (unwrap-panic (element-at data (+ idx offset))))) ) (if (> length u0) { acc: (unwrap-panic (as-max-len? (concat acc char) u32)), offset: offset, length: (- length u1), data: data } input ) ) ) (define-private (buff-to-string (msg (buff 256)) (symbol-offset uint) (symbol-length uint)) (get acc (fold construct-string (list u0 u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31) { acc: "", offset: symbol-offset, length: symbol-length, data: msg }) ) ) ;; this one liner took 3-4 whole days to get right... you are welcome! (define-read-only (verify-signature (msg (buff 256)) (signature (buff 65)) (public-key (buff 33))) (is-eq (unwrap-panic (secp256k1-recover? (keccak256 (concat eth-preamble (keccak256 msg))) signature)) public-key) ) ;; 32-63 of message (define-read-only (extract-timestamp (msg (buff 256))) (buff-to-uint msg (var-get offsets-timestamp)) ) ;; 96-127 of message (define-read-only (extract-amount (msg (buff 256))) (buff-to-uint msg (var-get offsets-amount)) ) ;; 64-95 offset ;; length usually at 192, value at 224 (define-read-only (extract-symbol (msg (buff 256))) (let ((length-offset (buff-to-uint msg (var-get offsets-symbol-offset)))) (let ((symbol-offset (+ length-offset u32)) (symbol-length (buff-to-uint msg (list (+ length-offset u31))))) (unwrap-panic (as-max-len? (buff-to-string msg symbol-offset symbol-length) u32)) ) ) ) ;; source needs to be known and have a key ;; verify message was signed with source ;; verify timestamp is strictly higher than current one, we don't want to go back in time (define-public (add-price (source (string-ascii 16)) (msg (buff 256)) (sig (buff 65))) (if (verify-signature msg sig (get public-key (unwrap-panic (map-get? sources {source: source})))) (let ((timestamp (extract-timestamp msg)) (amount (extract-amount msg)) (symbol (extract-symbol msg)) (data-opt (map-get? oracle-data {source: source, symbol: symbol}))) (if (is-some data-opt) (let ((data (unwrap-panic data-opt)) (prior-timestamp (get timestamp data))) (if (> timestamp prior-timestamp) (begin (map-set oracle-data {source: source, symbol: symbol} {timestamp: timestamp, height: block-height, amount: amount }) (ok true) ) err-older-timestamp ) ) (begin (map-set oracle-data {source: source, symbol: symbol} {timestamp: timestamp, height: block-height, amount: amount }) (ok true) ) ) ) err-incorrect-signature ) ) (define-private (call-add-price (price {src: (string-ascii 16), msg: (buff 256), sig: (buff 65)})) (unwrap-panic (add-price (get src price) (get msg price) (get sig price))) ) ;; main entry point for adding a batch or quotes in one transaction (define-public (add-prices (prices (list 100 {src: (string-ascii 16), msg: (buff 256), sig: (buff 65)}))) (begin (map call-add-price prices) (ok true) ) ) ;; the price has been vetted by add-price, so it can be retrieved as fast as can be (define-read-only (get-price (source (string-ascii 16)) (symbol (string-ascii 32))) (map-get? oracle-data {source: source, symbol: symbol}) ) (define-public (add-source (source (string-ascii 16)) (public-key (buff 33))) ;; check sender ;; insert source into known sources (if (is-eq tx-sender contract-owner) (begin (map-set sources { source: source} { public-key: public-key }) (ok true) ) err-not-owner ) ) (define-public (revoke-source (source (string-ascii 16))) ;; check sender ;; remove source from known sources (if (is-eq tx-sender contract-owner) (begin (map-delete sources { source: source}) (ok true) ) err-not-owner ) ) (define-read-only (check-source (source (string-ascii 16))) (map-get? sources { source: source}) ) ;; preseed with trusted sources ;; need compressed version of public keys (map-set sources {source: "coinbase"} {public-key: 0x034170a2083dccbc2be253885a8d0e9f7ce859eb370d0c5cae3b6994af4cb9d666}) ;; Eth: 0xfCEAdAFab14d46e20144F48824d0C09B1a03F2BC (map-set sources {source: "okcoin"} {public-key: 0x0325df290b8c4930adcf8cd5c883616a1204ccc3d6ba3c4a636d6bcecd08e466d3}) ;; Eth: 0x419c555b739212684432050b7ce459ea8e7b8bda (map-set sources {source: "artifix-okcoin"} {public-key: 0x02752f4db204f7cdf6e022dc486af2572579bc9a0fe7c769b58d95f42234269367}) ;; stx: SPZ0RAC1EFTH949T4W2SYY6YBHJRMAF4ECT5A7DD (map-set sources {source: "artifix-binance"} {public-key: 0x02752f4db204f7cdf6e022dc486af2572579bc9a0fe7c769b58d95f42234269367}) ;; stx: SPZ0RAC1EFTH949T4W2SYY6YBHJRMAF4ECT5A7DD
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, version: 0x01}) (define-constant minimum-amount u100000000) (define-constant time-limit u678350) (define-data-var last-id uint u0) (define-data-var start (optional uint) none) (define-data-var total-stacked uint u0) (define-map meta uint (tuple (stacker principal) (amount-ustx uint) (until-burn-ht (optional uint)) (stacked-ustx (optional uint)) (reward (optional uint)))) (define-map lookup principal uint) (define-private (pox-delegate-stx-and-stack (amount-ustx uint) (until-burn-ht (optional uint))) (begin (let ((ignore-result-revoke (contract-call? 'SP000000000000000000002Q6VF78.pox revoke-delegate-stx)) (start-block-ht (+ burn-block-height u1)) (locking-cycles u1)) (match (contract-call? 'SP000000000000000000002Q6VF78.pox delegate-stx amount-ustx pool-account until-burn-ht none) success (let ((stacker tx-sender)) (match (as-contract (contract-call? 'SP000000000000000000002Q6VF78.pox delegate-stack-stx stacker amount-ustx pool-pox-address start-block-ht locking-cycles)) stack-success (ok stack-success) stack-error (print (err (to-uint stack-error))))) error (err (to-uint error)))))) (define-private (mint-and-delegatedly-stack (stacker principal) (amount-ustx uint) (until-burn-ht (optional uint))) (let ((id (+ u1 (var-get last-id)))) (asserts! (>= amount-ustx minimum-amount) err-delegate-below-minimum) (asserts! (< burn-block-height time-limit) err-delegate-too-late) (asserts! (>= (stx-get-balance tx-sender) amount-ustx) err-not-enough-funds) (var-set last-id id) (match (pox-delegate-stx-and-stack amount-ustx until-burn-ht) success-pox (match (nft-mint? boomboxes-cycle-6 id stacker) success-mint (begin (asserts! (map-insert lookup stacker id) err-map-function-failed) (asserts! (map-insert meta id {stacker: stacker, amount-ustx: amount-ustx, stacked-ustx: (some (get lock-amount success-pox)), until-burn-ht: until-burn-ht, reward: none}) err-map-function-failed) (ok id)) error-minting (err-nft-mint error-minting)) error-pox (err error-pox)))) (define-public (delegate-stx (stacker principal) (amount-ustx uint) (until-burn-ht (optional uint)) (pox-addr (optional (tuple (hashbytes (buff 20)) (version (buff 1)))))) (if (and (or (is-eq stacker tx-sender) (is-eq stacker contract-caller)) (is-none (map-get? lookup stacker))) (mint-and-delegatedly-stack stacker amount-ustx until-burn-ht) err-delegate-invalid-stacker)) ;; function for pool admins (define-private (get-total (stack-result (response (tuple (lock-amount uint) (stacker principal) (unlock-burn-height uint)) (tuple (kind (string-ascii 32)) (code uint)))) (total uint)) (match stack-result details (+ total (get lock-amount details)) error total)) (define-private (update-meta (id uint) (stacked-ustx uint)) (match (map-get? meta id) entry (map-set meta id { stacker: (get stacker entry), amount-ustx: (get amount-ustx entry), until-burn-ht: (get until-burn-ht entry), stacked-ustx: (some stacked-ustx), reward: (get reward entry)}) false)) (define-public (stack-aggregation-commit (reward-cycle uint)) (if (> burn-block-height time-limit) (match (as-contract (contract-call? 'SP000000000000000000002Q6VF78.pox stack-aggregation-commit pool-pox-address reward-cycle)) success (ok success) error (err-pox-stack-aggregation-commit error)) err-commit-too-early)) (define-read-only (nft-details (nft-id uint)) (ok {stacked-ustx: (unwrap! (unwrap! (get stacked-ustx (map-get? meta nft-id)) err-invalid-asset-id) err-invalid-asset-id), owner: (unwrap! (nft-get-owner? boomboxes-cycle-6 nft-id) err-no-asset-owner)})) (define-private (payout-nft (nft-id uint) (context (tuple (reward-ustx uint) (total-ustx uint) (stx-from principal) (result (list 750 (response bool uint)))))) (let ((reward-ustx (get reward-ustx context)) (total-ustx (get total-ustx context)) (stx-from (get stx-from context))) (let ( (transfer-result (match (nft-details nft-id) entry (let ((reward-amount (/ (* reward-ustx (get stacked-ustx entry)) total-ustx))) (match (stx-transfer? reward-amount stx-from (get owner entry)) success-stx-transfer (ok true) error-stx-transfer (err-stx-transfer error-stx-transfer))) error (err error)))) {reward-ustx: reward-ustx, total-ustx: total-ustx, stx-from: stx-from, result: (unwrap-panic (as-max-len? (append (get result context) transfer-result) u750))}))) (define-private (sum-stacked-ustx (nft-id uint) (total uint)) (match (map-get? meta nft-id) entry (match (get stacked-ustx entry) amount (+ total amount) total) total)) (define-read-only (get-total-stacked-ustx (nfts (list 750 uint))) (fold sum-stacked-ustx nfts u0)) (define-public (payout (reward-ustx uint) (nfts (list 750 uint))) (let ((total-ustx (get-total-stacked-ustx nfts))) (ok (fold payout-nft nfts {reward-ustx: reward-ustx, total-ustx: total-ustx, stx-from: tx-sender, result: (list)})))) (define-read-only (get-total-stacked) (var-get total-stacked)) (define-public (allow-contract-caller (this-contract principal)) (if (is-eq tx-sender pool-deployer) (as-contract (contract-call? 'SP000000000000000000002Q6VF78.pox allow-contract-caller this-contract none)) (err 403))) ;; NFT functions (define-public (transfer (id uint) (sender principal) (recipient principal)) (if (or (is-eq sender tx-sender) (is-eq sender contract-caller)) (match (nft-transfer? boomboxes-cycle-6 id sender recipient) success (ok success) error (err-nft-transfer error)) err-not-allowed-sender)) (define-read-only (get-owner (id uint)) (ok (nft-get-owner? boomboxes-cycle-6 id))) (define-read-only (get-owner-raw? (id uint)) (nft-get-owner? boomboxes-cycle-6 id)) (define-read-only (get-meta (id uint)) {uri: "https://boom-nft-41369b66-36da-4442-be60-fff6d755b065.s3.amazonaws.com/24762181-0ba6-4c5b-9065-1c874fb334d2.svg", name: "Boombox, 1st Edition", mime-type: "image/svg+xml"}) (define-read-only (get-nft-meta) {uri: "https://boom-nft-41369b66-36da-4442-be60-fff6d755b065.s3.amazonaws.com/24762181-0ba6-4c5b-9065-1c874fb334d2.svg", name: "Boomboxes", mime-type: "image/svg+xml"}) (define-read-only (get-last-token-id) (ok (var-get last-id))) (define-read-only (last-token-id-raw) (var-get last-id)) (define-read-only (get-token-uri (id uint)) (ok none)) ;; error handling (define-constant err-nft-not-owned (err u401)) ;; unauthorized (define-constant err-not-allowed-sender (err u403)) ;; forbidden (define-constant err-nft-not-found (err u404)) ;; not found (define-constant err-sender-equals-recipient (err u405)) ;; method not allowed (define-constant err-nft-exists (err u409)) ;; conflict (define-constant err-not-enough-funds (err u4021)) ;; payment required (define-constant err-amount-not-positive (err u4022)) ;; payment required (define-constant err-map-function-failed (err u601)) (define-constant err-invalid-asset-id (err u602)) (define-constant err-no-asset-owner (err u603)) (define-constant err-delegate-below-minimum (err u604)) (define-constant err-delegate-invalid-stacker (err u605)) (define-constant err-delegate-too-late (err u606)) (define-constant err-commit-too-early (err u607)) (define-map err-strings (response uint uint) (string-ascii 32)) (map-insert err-strings err-nft-not-owned "nft-not-owned") (map-insert err-strings err-not-allowed-sender "not-allowed-sender") (map-insert err-strings err-nft-not-found "nft-not-found") (map-insert err-strings err-sender-equals-recipient "sender-equals-recipient") (map-insert err-strings err-nft-exists "nft-exists") (map-insert err-strings err-map-function-failed "map-function-failed") (map-insert err-strings err-invalid-asset-id "invalid-asset-id") (map-insert err-strings err-no-asset-owner "no-asset-owner") (map-insert err-strings err-delegate-below-minimum "delegate-below-minimum") (map-insert err-strings err-delegate-invalid-stacker "delegate-invalid-stacker") (map-insert err-strings err-delegate-too-late "delegate-too-late") (map-insert err-strings err-commit-too-early "commit-too-early") (define-private (err-pox-stack-aggregation-commit (code int)) (err (to-uint (* 1000 code)))) (define-private (err-stx-transfer (code uint)) (if (is-eq u1 code) err-not-enough-funds (if (is-eq u2 code) err-sender-equals-recipient (if (is-eq u3 code) err-amount-not-positive (if (is-eq u4 code) err-not-allowed-sender (err code)))))) (define-private (err-nft-transfer (code uint)) (if (is-eq u1 code) err-nft-not-owned (if (is-eq u2 code) err-sender-equals-recipient (if (is-eq u3 code) err-nft-not-found (err code))))) (define-private (err-nft-mint (code uint)) (if (is-eq u1 code) err-nft-exists (err code))) (define-read-only (get-errstr (code uint)) (unwrap! (map-get? err-strings (err code)) "unknown-error"))
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 (string-ascii 32) uint)) ;; the number of decimals used, e.g. 6 would mean 1_000_000 represents 1 token (get-decimals () (response uint uint)) ;; the balance of the passed principal (get-balance-of (principal) (response uint uint)) (donate-to-action-guest ( uint principal) (response bool uint)) ;; the current total supply (which does not need to be a constant) (get-total-supply () (response uint uint)) ;; an optional URI that represents metadata of this token ) )
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 PASS (define-read-only (get-symbol) (ok u"ARDUSD")) ;; 10000000 the number of decimals used, e.g. 6 would mean 1_000_000 represents 1 token (define-read-only (get-decimals) (ok u6)) ;; the balance of the passed principal (define-read-only (get-balance-of (sender principal)) (ok (ft-get-balance ardUSD sender))) ;; the current total supply (which does not need to be a constant) (define-read-only (get-total-supply) (ok (ft-get-supply ardUSD))) ;; an optional URI that represents metadata of this token (define-read-only (get-token-uri) (ok none)) (define-public (transfer (amount uint) (sender principal) (recipient principal)) (begin (asserts! (is-eq tx-sender sender) (err u401)) (ft-transfer? ardUSD amount sender recipient) )) (define-constant account-contractor 'SP1R2J6JB94PMJ2DJNXV1FEHBM7CKR71W96NQKZB8) ;; How could we make the buyer easier where users upon purchare they can buy ;; instead of the process of buying usd it is better to just transsfer the amount directly to the account holder ;; but as well this will give us the oppurtunity to make double case scenarios where a user can transfer his funds to ardkon usd and then he can choose to donate to several actions and this will be most basically used in the process of having a wallet (define-public (donate-to-action-guest (amount uint) (contract principal)) (begin (asserts! (is-eq tx-sender account-contractor) (err u401)) (ft-mint? ardUSD amount contract) ))
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 the following fund allocations (define-constant owner tx-sender) (define-map fund-allocation { action_id: (string-utf8 256), fund_id: (string-utf8 256)} { fund_name: (string-utf8 256), fund_owner: (string-utf8 256), fund_reciever_principal: principal, fund_paid: bool, USD: uint, STX: uint}) (define-map fund_reciepts { action_id: (string-utf8 256), fund_id: (string-utf8 256)} { fund_name: (string-utf8 256), reciept_id: (string-utf8 256), fund_reciever_principal: principal, reciept_approved: bool, USD: uint, STX: uint}) (define-map total_fund_usd { action_id: (string-utf8 256)} { usd: uint}) (define-map total_fund_stx { action_id: (string-utf8 256)} { stx: uint}) (define-constant account-contractor 'SP1R2J6JB94PMJ2DJNXV1FEHBM7CKR71W96NQKZB8) ;; change later so that it will be the same as the application (define-map action-indices {action_id: (string-utf8 256)} {index: uint}) ;; this will enable us to get length of each of the following actions (define-map fund-registry { action_id: (string-utf8 256), index: uint } { donor-name: (string-utf8 256), donation-type: (string-utf8 256), donor-country: (string-utf8 256), donor-email: (string-utf8 256), donation-currency: (string-utf8 256), amount: uint}) (define-data-var index uint u0) (define-data-var is_valid uint u1) (define-data-var validator uint u1) (define-public (fund-stx-action (amount uint) (action_id (string-utf8 256)) (donation-type (string-utf8 256)) (donor-name (string-utf8 256)) (donor-country (string-utf8 256)) (donor-email (string-utf8 256))) (let ( (action-index (map-get? action-indices {action_id: action_id})) (a-index (get index action-index)) (next-index (+ (default-to u0 a-index) u1)) (action-amount (map-get? total_fund_stx { action_id: action_id})) (total-stx-fund (default-to u0 (get stx action-amount)))) (begin (map-set action-indices {action_id: action_id} {index: next-index}) (map-insert fund-registry { action_id: action_id, index: next-index } { donor-name: donor-name, donation-type: donation-type, donor-country: donor-country, donor-email: donor-email, donation-currency: u"stx", amount: amount}) (map-set total_fund_stx { action_id: action_id} {stx: (+ total-stx-fund amount)}) (unwrap! (stx-transfer? amount tx-sender actionAddress) (err u32)) ) (ok "donation done") )) (define-public (fund-action-usd ( action_id (string-utf8 256)) (donor-name (string-utf8 256)) (donor-country (string-utf8 256)) (donor-email (string-utf8 256)) (donation-type (string-utf8 256)) (amount uint)) (let ( (action-index (map-get? action-indices {action_id: action_id})) (a-index (get index action-index)) (next-index (+ (default-to u0 a-index) u1)) (action-amount (map-get? total_fund_usd { action_id: action_id})) (total-usd-fund (default-to u0 (get usd action-amount))) ) (begin (asserts! (is-eq tx-sender account-contractor) (err u21)) ;; note when adding assertx error (map-set action-indices {action_id: action_id} {index: next-index}) (map-insert fund-registry { action_id: action_id, index: next-index } { donor-name: donor-name, donor-country: donor-country, donor-email: donor-email, donation-currency: u"USD", donation-type: donation-type, amount: amount}) (map-set total_fund_usd { action_id: action_id} {usd: (+ total-usd-fund amount) }) (unwrap! (contract-call? 'SP1R2J6JB94PMJ2DJNXV1FEHBM7CKR71W96NQKZB8.ard-usd-01 donate-to-action-guest amount actionAddress) (err u12)) ) (ok "donation added") ) ) (define-public (add-fund-allocation (fund_name (string-utf8 256)) (action_id (string-utf8 256)) (fund_owner (string-utf8 256)) (fund_id (string-utf8 256)) (fund_reciever_principal principal) (ardUSD uint) (ardSTX uint)) ;; let the action-id owner add fund allocation to his action (begin (asserts! (is-eq tx-sender account-contractor) (err u21)) (map-set fund-allocation { action_id: action_id, fund_id: fund_id} { fund_name: fund_name, fund_owner: fund_owner, fund_reciever_principal: fund_reciever_principal, fund_paid: false, STX: ardSTX, USD: ardUSD}) (ok "add fund allocation") ) ) (define-public (add-fund-reciepts (fund_name (string-utf8 256)) (action_id (string-utf8 256)) (reciept_id (string-utf8 256)) (fund_id (string-utf8 256)) (ardUSD uint) (ardSTX uint)) ;; let the action-id owner add fund allocation to his action (let ( (fund_info (unwrap! (map-get? fund-allocation { action_id: action_id, fund_id: fund_id}) (err 21) )) (reciever (get fund_reciever_principal fund_info)) ) (begin (asserts! (is-eq reciever tx-sender ) (err 211)) (map-set fund_reciepts { action_id: action_id, fund_id: fund_id} { fund_name: fund_name, reciept_id: reciept_id, fund_reciever_principal: tx-sender, reciept_approved: false, USD: ardUSD, STX: ardSTX}) (ok "add reciepts ") ) ) ) (define-public (collect-funds (fund_id (string-utf8 256)) (action_id (string-utf8 256))) (let ( (fund_info (unwrap! (map-get? fund-allocation { action_id: action_id, fund_id: fund_id}) (err 21) )) (reciever (get fund_reciever_principal fund_info)) (fund_owner (get fund_owner fund_info)) (fund_name (get fund_name fund_info)) (USD (get USD fund_info)) (STX (get STX fund_info)) (usd_tuple (default-to {usd: u0} (map-get? total_fund_usd { action_id: action_id}) )) (total_usd (get usd usd_tuple)) (stx_tuple (default-to {stx: u0} (map-get? total_fund_stx { action_id: action_id}) )) (total_stx (get stx stx_tuple)) (recipient tx-sender) (sender (as-contract tx-sender)) (USD_TRANSFER (/ (* USD u95) u100)) (USD_TRANSACTION (/ (* USD u5) u100) ) (STX_TRANSFER (/ (* STX u95) u100) ) (STX_TRANSACTION (/ (* STX u5) u100) ) ) (begin (print reciever) (asserts! (>= total_stx STX ) (err 222)) (asserts! (>= total_usd USD ) (err 333)) (if (> total_stx u0) (begin (unwrap! (stx-transfer? STX_TRANSFER actionAddress reciever) (err 211)) (unwrap! (stx-transfer? STX_TRANSACTION actionAddress account-contractor) (err 211)) (map-set fund-allocation {action_id: action_id, fund_id: fund_id} { fund_name: fund_name, fund_owner: fund_owner, fund_reciever_principal: reciever, fund_paid: true, STX: STX, USD: USD}) (print "done") ) (print "false") ) (if (> total_usd u0) (begin (unwrap! (contract-call? 'SP1R2J6JB94PMJ2DJNXV1FEHBM7CKR71W96NQKZB8.ard-usd-01 transfer USD_TRANSFER actionAddress reciever) (err 21)) (unwrap! (contract-call? 'SP1R2J6JB94PMJ2DJNXV1FEHBM7CKR71W96NQKZB8.ard-usd-01 transfer USD_TRANSACTION actionAddress account-contractor) (err 21)) (map-set fund-allocation {action_id: action_id, fund_id: fund_id} { fund_name: fund_name, fund_owner: fund_owner, fund_reciever_principal: reciever, fund_paid: true, STX: STX, USD: USD}) (print "done") ) (print "false") ) (ok "Collection Done") ) ) ) (define-map term-indices {action_id: (string-utf8 256)} {index: uint}) (define-map terms-indices-id {action_id: (string-utf8 256), index: uint } { term_id: (string-utf8 256)}) ;; this will enable us to get length of each of the following actions (define-map terms_and_conditions {action_id: (string-utf8 256), term_id: (string-utf8 256)} {term: (string-utf8 256), votes: uint}) (define-public (add-terms (term (string-utf8 256)) (term_id (string-utf8 256)) (action_id (string-utf8 256))) (let ( (action-term-index (map-get? term-indices {action_id: action_id})) (a-index (get index action-term-index)) (next-index (+ (default-to u0 a-index) u1)) ) (begin (asserts! (is-eq tx-sender account-contractor) (err u21)) (map-set terms_and_conditions { action_id: action_id, term_id: term_id} { term: term, votes: u0, }) (map-set terms-indices-id { action_id: action_id, index: next-index} { term_id: term_id }) (map-set term-indices { action_id: action_id } { index: next-index }) (ok next-index) ) ) ) (define-map term-votes {user_id: (string-utf8 256) , term_id: (string-utf8 256)} {vote: bool}) (define-public (vote-on-term (item {term_id: (string-utf8 256), vote: bool, action_id: (string-utf8 256), user_id: (string-utf8 256)})) (let ( (term_id (get term_id item)) (vote (get vote item)) (action_id (get action_id item)) (user_id (get user_id item)) (term_map (default-to { term: u"none", votes: u0} (map-get? terms_and_conditions {action_id: action_id, term_id: term_id})) ) (term (get term term_map)) (votes (get votes term_map)) ) (begin (asserts! vote (err 21)) (map-set terms_and_conditions {action_id: action_id, term_id: term_id} { term: term, votes: (+ votes u1) }) (map-set term-votes {user_id: user_id, term_id: term_id} { vote: vote }) (ok true) ) ) ) (define-read-only (get-donor (item {action_id: (string-utf8 256), index: uint})) (map-get? fund-registry item)) (define-read-only (get-fund-list (ids (list 180 {action_id: (string-utf8 256), index: uint}))) (map get-donor ids)) (define-read-only (get-fund-list-index (action_id (string-utf8 256))) (map-get? action-indices {action_id: action_id}) ) (define-read-only (get-fund-status (action_id (string-utf8 256)) (fund_id (string-utf8 256)) ) (map-get? fund-allocation {action_id: action_id, fund_id: fund_id}) )
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 (buff 20)) (version (buff 1))))) (response bool int)))) (define-trait pool-trait-ext ((delegate-stx (uint principal (optional uint) (optional (tuple (hashbytes (buff 20)) (version (buff 1)))) (tuple (hashbytes (buff 20)) (version (buff 1))) uint) (response bool int)))) (define-constant ERR_INVALID_PAYOUT u1) (define-constant ERR_INVALID_STATUS u2) (define-constant ERR_NAME_REGISTERED u3) (define-constant ERR_NATIVE_FUNCTION_FAILED u4) (define-constant ERR_NAME_NOT_ON_CHAIN u5) (define-constant ERR_REGISTRATION u6) (define-constant ERR_NAME_PRICE u7) (define-constant ERR_PERMISSION_DENIED u403) (define-constant ERR_NAME_NOT_REGISTERED u404) ;; list of registered pools (define-map registry uint (tuple (name (tuple (namespace (buff 20)) (name (buff 48)))) (delegatee principal) (pox-address (list 12 (tuple (hashbytes (buff 20)) (version (buff 1))))) (url (string-ascii 250)) (contract (optional principal)) (extended-contract (optional principal)) (minimum-ustx (optional uint)) (locking-period (list 12 uint)) (payout (string-ascii 5)) (date-of-payout (string-ascii 80)) (fees (string-ascii 80)) (status uint))) ;; list of means of payout (define-map payouts (string-ascii 5) (tuple (name (string-ascii 80) ) )) (define-map statuses uint (string-ascii 80) ) (define-map lookup principal uint) (define-data-var last-id uint u0) (define-private (get-id? (delegatee principal)) (map-get? lookup delegatee)) (define-private (get-owner (name (tuple (namespace (buff 20)) (name (buff 48))))) (match (contract-call? 'SP000000000000000000002Q6VF78.bns name-resolve (get namespace name) (get name name)) entry (some (get owner entry)) error none)) (define-private (can-register (name (tuple (namespace (buff 20)) (name (buff 48))))) (match (contract-call? 'SP000000000000000000002Q6VF78.bns can-name-be-registered (get namespace name) (get name name)) result result error false)) (define-private (can-receive-name (user principal)) (match (contract-call? 'SP000000000000000000002Q6VF78.bns can-receive-name user) result result error false)) (define-private (register-name (name (tuple (namespace (buff 20)) (name (buff 48)))) (user principal)) (match (print (contract-call? 'SP000000000000000000002Q6VF78.bns name-preorder (hash160 (concat (concat (concat (get name name) 0x2e) (get namespace name)) 0x00)) (unwrap! (get-name-price name) (err ERR_NAME_PRICE)))) result-preorder (match (print (contract-call? 'SP000000000000000000002Q6VF78.bns name-register (get namespace name) (get name name) 0x00 0x00 )) result-register (ok true) error (err (to-uint error))) error (err (to-uint error)))) (define-private (get-name-price (name (tuple (namespace (buff 20)) (name (buff 48))))) (print (contract-call? 'SP000000000000000000002Q6VF78.bns get-name-price (get namespace name) (get name name)))) (define-private (to-response (success bool)) (if success (ok true) (err ERR_NATIVE_FUNCTION_FAILED))) (define-public (add-payout (symbol (string-ascii 5)) (name (string-ascii 80))) (ok (map-insert payouts symbol {name: name}))) (define-public (add-status (status uint) (name (string-ascii 80))) (ok (map-insert statuses status name))) ;; register a new pool that implements the simple pool trait like genesis "pox" contract. (define-public (register (name (tuple (namespace (buff 20)) (name (buff 48)))) (delegatee principal) (pox-address (list 12 (tuple (hashbytes (buff 20)) (version (buff 1))))) (url (string-ascii 250)) (contract <pool-trait>) (minimum-ustx (optional uint)) (locking-period (list 12 uint)) (payout (string-ascii 5)) (date-of-payout (string-ascii 80)) (fees (string-ascii 80)) (status uint)) (base-register name delegatee pox-address url (some (contract-of contract)) none minimum-ustx locking-period payout date-of-payout fees status)) ;; register a new pool that implements the extended pool trait (define-public (register-ext (name (tuple (namespace (buff 20)) (name (buff 48)))) (delegatee principal) (pox-address (list 12 (tuple (hashbytes (buff 20)) (version (buff 1))))) (url (string-ascii 250)) (contract <pool-trait-ext>) (minimum-ustx (optional uint)) (locking-period (list 12 uint)) (payout (string-ascii 5)) (date-of-payout (string-ascii 80)) (fees (string-ascii 80)) (status uint)) (base-register name delegatee pox-address url none (some (contract-of contract)) minimum-ustx locking-period payout date-of-payout fees status)) (define-private (base-register (name (tuple (namespace (buff 20)) (name (buff 48)))) (delegatee principal) (pox-address (list 12 (tuple (hashbytes (buff 20)) (version (buff 1))))) (url (string-ascii 250)) (contract (optional principal)) (extended-contract (optional principal)) (minimum-ustx (optional uint)) (locking-period (list 12 uint)) (payout (string-ascii 5)) (date-of-payout (string-ascii 80)) (fees (string-ascii 80)) (status uint)) (let ((id (+ (get-last-id) u1))) (unwrap! (map-get? payouts payout) (err ERR_INVALID_PAYOUT)) (unwrap! (map-get? statuses status) (err ERR_INVALID_STATUS)) (match (get-owner name) owner (asserts! (is-eq tx-sender owner) (err ERR_PERMISSION_DENIED)) (begin (asserts! (and (can-receive-name tx-sender) (can-register name)) (err ERR_NAME_NOT_ON_CHAIN)) (unwrap! (register-name name tx-sender) (err ERR_REGISTRATION)))) (if (is-none (map-get? lookup delegatee)) (begin (var-set last-id id) (map-insert registry id {name: name, delegatee: delegatee, pox-address: pox-address, url: url, contract: contract, extended-contract: extended-contract, minimum-ustx: minimum-ustx, locking-period: locking-period, payout: payout, date-of-payout: date-of-payout, fees: fees, status: status}) (map-insert lookup delegatee id) (ok id)) (err ERR_NAME_REGISTERED)))) (define-public (update (name (tuple (namespace (buff 20)) (name (buff 48)))) (delegatee principal) (pox-address (list 12 (tuple (hashbytes (buff 20)) (version (buff 1))))) (url (string-ascii 250)) (contract <pool-trait>) (minimum-ustx (optional uint)) (locking-period (list 12 uint)) (payout (string-ascii 5)) (date-of-payout (string-ascii 80)) (fees (string-ascii 80)) (status uint)) (base-update name delegatee pox-address url (some (contract-of contract)) none minimum-ustx locking-period payout date-of-payout fees status)) (define-public (update-ext (name (tuple (namespace (buff 20)) (name (buff 48)))) (delegatee principal) (pox-address (list 12 (tuple (hashbytes (buff 20)) (version (buff 1))))) (url (string-ascii 250)) (contract <pool-trait-ext>) (minimum-ustx (optional uint)) (locking-period (list 12 uint)) (payout (string-ascii 5)) (date-of-payout (string-ascii 80)) (fees (string-ascii 80)) (status uint)) (base-update name delegatee pox-address url none (some (contract-of contract)) minimum-ustx locking-period payout date-of-payout fees status)) (define-private (base-update (name (tuple (namespace (buff 20)) (name (buff 48)))) (delegatee principal) (pox-address (list 12 (tuple (hashbytes (buff 20)) (version (buff 1))))) (url (string-ascii 250)) (contract (optional principal)) (extended-contract (optional principal)) (minimum-ustx (optional uint)) (locking-period (list 12 uint)) (payout (string-ascii 5)) (date-of-payout (string-ascii 80)) (fees (string-ascii 80)) (status uint)) (if (is-eq tx-sender (unwrap! (get-owner name) (err ERR_NAME_NOT_ON_CHAIN))) (let ((id (unwrap! (get-id? delegatee) (err ERR_NAME_NOT_REGISTERED)))) (unwrap! (map-get? payouts payout) (err ERR_INVALID_PAYOUT)) (unwrap! (map-get? statuses status) (err ERR_INVALID_STATUS)) (to-response (map-set registry id {name: name, delegatee: delegatee, pox-address: pox-address, url: url, contract: contract, extended-contract: extended-contract, minimum-ustx: minimum-ustx, locking-period: locking-period, payout: payout, date-of-payout: date-of-payout, fees: fees, status: status}))) (err ERR_PERMISSION_DENIED))) (define-read-only (get-last-id) (var-get last-id)) (define-read-only (get-pool-by-delegatee (delegatee principal)) (map-get? registry (unwrap! (get-id? delegatee) none))) (define-read-only (get-pool (pool-id uint)) (map-get? registry pool-id) ) (define-private (add-registry-data (pool-id uint) (result (list 20 (optional (tuple (contract (optional principal)) (delegatee principal) (extended-contract (optional principal)) (locking-period (list 12 uint)) (minimum-ustx (optional uint)) (name (tuple (name (buff 48)) (namespace (buff 20)))) (payout (string-ascii 5)) (pox-address (list 12 (tuple (hashbytes (buff 20)) (version (buff 1))))) (url (string-ascii 250)) (date-of-payout (string-ascii 80)) (fees (string-ascii 80)) (status uint)))))) (unwrap-panic (as-max-len? (append result (map-get? registry pool-id)) u20))) (define-read-only (get-pools (pool-ids (list 20 uint))) (fold add-registry-data pool-ids (list))) (add-payout "BTC" "Bitcoin") (add-payout "STX" "Stacks") (add-status u0 "in development") (add-status u1 "in production") (add-status u11 "open for stacking") (add-status u21 "closed for stacking") (add-status u99 "retired")
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 sent to stacker (define-public (delete-payout-recipient (recipient principal)) (ok (map-delete payout-map tx-sender)))
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 (amount uint)) (stx-transfer? amount tx-sender contract-creator)) (define-public (wrap-nthng (amount uint)) (if (is-ok (contract-call? .micro-nthng transfer (as-contract tx-sender) amount)) (begin (ft-mint? wrapped-nthng amount tx-sender) ) (err ERR-YOU-POOR))) (define-public (unwrap (amount uint)) (if (is-ok (ft-burn? wrapped-nthng amount tx-sender)) (let ((unwrapper tx-sender)) (as-contract (contract-call? .micro-nthng transfer unwrapper amount))) (err ERR-YOU-POOR) )) ;;;;;;;;;;;;;;;;;;;;; SIP 010 ;;;;;;;;;;;;;;;;;;;;;; (define-public (transfer (amount uint) (from principal) (to principal)) (begin (asserts! (is-eq from tx-sender) (err ERR-UNAUTHORIZED)) (ft-transfer? wrapped-nthng amount from to) ) ) (define-read-only (get-name) (ok "Wrapped Nothing")) (define-read-only (get-symbol) (ok "WMNO")) (define-read-only (get-decimals) (ok u0)) (define-read-only (get-balance-of (user principal)) (ok (ft-get-balance wrapped-nthng user))) (define-read-only (get-total-supply) (ok (ft-get-supply wrapped-nthng))) (define-public (set-token-uri (value (string-utf8 256))) (if (is-eq tx-sender contract-creator) (ok (var-set token-uri (some value))) (err ERR-UNAUTHORIZED))) (define-read-only (get-token-uri) (ok (var-get token-uri))) ;; send-many\ (define-public (send-nothing (amount uint) (to principal)) (let ((transfer-ok (try! (transfer amount tx-sender to)))) (ok transfer-ok))) (define-private (send-nothing-unwrap (recipient { to: principal, amount: uint })) (send-nothing (get amount recipient) (get to recipient))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (send-many (recipients (list 200 { to: principal, amount: uint }))) (fold check-err (map send-nothing-unwrap recipients) (ok true)))
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 (amount uint)) (stx-transfer? amount tx-sender contract-creator)) (define-public (wrap-nthng (amount uint)) (if (is-ok (contract-call? .micro-nthng transfer (as-contract tx-sender) amount)) (begin (ft-mint? wrapped-nthng amount tx-sender) ) (err ERR-YOU-POOR))) (define-public (unwrap (amount uint)) (if (is-ok (ft-burn? wrapped-nthng amount tx-sender)) (let ((unwrapper tx-sender)) (as-contract (contract-call? .micro-nthng transfer unwrapper amount))) (err ERR-YOU-POOR) )) ;;;;;;;;;;;;;;;;;;;;; SIP 010 ;;;;;;;;;;;;;;;;;;;;;; (define-public (transfer (amount uint) (from principal) (to principal)) (begin (asserts! (is-eq from tx-sender) (err ERR-UNAUTHORIZED)) (ft-transfer? wrapped-nthng amount from to) ) ) (define-read-only (get-name) (ok "Wrapped Nothing")) (define-read-only (get-symbol) (ok "WMNO")) (define-read-only (get-decimals) (ok u0)) (define-read-only (get-balance-of (user principal)) (ok (ft-get-balance wrapped-nthng user))) (define-read-only (get-total-supply) (ok (ft-get-supply wrapped-nthng))) (define-public (set-token-uri (value (string-utf8 256))) (if (is-eq tx-sender contract-creator) (ok (var-set token-uri (some value))) (err ERR-UNAUTHORIZED))) (define-read-only (get-token-uri) (ok (var-get token-uri))) ;; send-many\ (define-public (send-nothing (amount uint) (to principal)) (let ((transfer-ok (try! (transfer amount tx-sender to)))) (ok transfer-ok))) (define-private (send-nothing-unwrap (recipient { to: principal, amount: uint })) (send-nothing (get amount recipient) (get to recipient))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (send-many (recipients (list 200 { to: principal, amount: uint }))) (fold check-err (map send-nothing-unwrap recipients) (ok true)))
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 (donate (amount uint)) (stx-transfer? amount tx-sender contract-creator)) (define-public (wrap-nthng (amount uint)) (if (is-ok (contract-call? .micro-nthng transfer (as-contract tx-sender) amount)) (begin (ft-mint? wrapped-nthng amount tx-sender) ) (err ERR-YOU-POOR))) (define-public (unwrap (amount uint)) (if (is-ok (ft-burn? wrapped-nthng amount tx-sender)) (let ((unwrapper tx-sender)) (as-contract (contract-call? .micro-nthng transfer unwrapper amount))) (err ERR-YOU-POOR) )) ;;;;;;;;;;;;;;;;;;;;; SIP 010 ;;;;;;;;;;;;;;;;;;;;;; (define-public (transfer (amount uint) (from principal) (to principal)) (begin (asserts! (is-eq from tx-sender) (err ERR-UNAUTHORIZED)) (ft-transfer? wrapped-nthng amount from to) ) ) (define-read-only (get-name) (ok "Wrapped Nothing")) (define-read-only (get-symbol) (ok "WMNO")) (define-read-only (get-decimals) (ok u0)) (define-read-only (get-balance-of (user principal)) (ok (ft-get-balance wrapped-nthng user))) (define-read-only (get-total-supply) (ok (ft-get-supply wrapped-nthng))) (define-public (set-token-uri (value (string-utf8 256))) (if (is-eq tx-sender contract-creator) (ok (var-set token-uri (some value))) (err ERR-UNAUTHORIZED))) (define-read-only (get-token-uri) (ok (var-get token-uri))) ;; send-many\ (define-public (send-nothing (amount uint) (to principal)) (let ((transfer-ok (try! (transfer amount tx-sender to)))) (ok transfer-ok))) (define-private (send-nothing-unwrap (recipient { to: principal, amount: uint })) (send-nothing (get amount recipient) (get to recipient))) (define-private (check-err (result (response bool uint)) (prior (response bool uint))) (match prior ok-value result err-value (err err-value))) (define-public (send-many (recipients (list 200 { to: principal, amount: uint }))) (fold check-err (map send-nothing-unwrap recipients) (ok true)))
0x022bed728d648ff1a68036c40f3aff8136ee22fee18380731df0ab9d76d3c4a9
11,548
success