mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-30 04:35:22 +08:00
60 lines
3.1 KiB
Plaintext
60 lines
3.1 KiB
Plaintext
(define-public (stack-stx (amount-ustx uint)
|
|
(pox-addr (tuple (version (buff 1)) (hashbytes (buff 32))))
|
|
(start-burn-ht uint)
|
|
(lock-period uint)
|
|
(signer-sig (optional (buff 65)))
|
|
(signer-key (buff 33))
|
|
(max-amount uint)
|
|
(auth-id uint))
|
|
(contract-call? 'ST000000000000000000002AMW42H.pox-4 stack-stx amount-ustx pox-addr start-burn-ht lock-period signer-sig signer-key max-amount auth-id)
|
|
)
|
|
|
|
(define-public (delegate-stx (amount-ustx uint)
|
|
(delegate-to principal)
|
|
(until-burn-ht (optional uint))
|
|
(pox-addr (optional { version: (buff 1), hashbytes: (buff 32) })))
|
|
(contract-call? 'ST000000000000000000002AMW42H.pox-4 delegate-stx amount-ustx delegate-to until-burn-ht pox-addr)
|
|
)
|
|
|
|
(define-public (revoke-delegate-stx)
|
|
(contract-call? 'ST000000000000000000002AMW42H.pox-4 revoke-delegate-stx)
|
|
)
|
|
|
|
(define-public (allow-contract-caller (caller principal) (until-burn-ht (optional uint)))
|
|
(contract-call? 'ST000000000000000000002AMW42H.pox-4 allow-contract-caller caller until-burn-ht)
|
|
)
|
|
|
|
(define-public (disallow-contract-caller (caller principal))
|
|
(contract-call? 'ST000000000000000000002AMW42H.pox-4 disallow-contract-caller caller)
|
|
)
|
|
|
|
(define-read-only (check-caller-allowed)
|
|
(contract-call? 'ST000000000000000000002AMW42H.pox-4 check-caller-allowed)
|
|
)
|
|
|
|
(define-public (delegate-stack-stx (stacker principal)
|
|
(amount-ustx uint)
|
|
(pox-addr { version: (buff 1), hashbytes: (buff 32) })
|
|
(start-burn-ht uint)
|
|
(lock-period uint))
|
|
(contract-call? 'ST000000000000000000002AMW42H.pox-4 delegate-stack-stx stacker amount-ustx pox-addr start-burn-ht lock-period)
|
|
)
|
|
|
|
(define-public (stack-aggregation-commit-indexed (pox-addr { version: (buff 1), hashbytes: (buff 32) })
|
|
(reward-cycle uint)
|
|
(signer-sig (optional (buff 65)))
|
|
(signer-key (buff 33))
|
|
(max-amount uint)
|
|
(auth-id uint))
|
|
(contract-call? 'ST000000000000000000002AMW42H.pox-4 stack-aggregation-commit-indexed pox-addr reward-cycle signer-sig signer-key max-amount auth-id)
|
|
)
|
|
|
|
(define-public (stack-aggregation-commit (pox-addr { version: (buff 1), hashbytes: (buff 32) })
|
|
(reward-cycle uint)
|
|
(signer-sig (optional (buff 65)))
|
|
(signer-key (buff 33))
|
|
(max-amount uint)
|
|
(auth-id uint))
|
|
(contract-call? 'ST000000000000000000002AMW42H.pox-4 stack-aggregation-commit pox-addr reward-cycle signer-sig signer-key max-amount auth-id)
|
|
)
|