Public functions:
Read-only functions:
Private functions:
Maps
Variables
Constants
(define-public (execute ((sender principal)) (response bool uint))
Source code:
(define-public (execute (sender principal))
(begin
(try! (add-bootstrap-utils))
(try! (contract-call? .bnsx-extensions set-extension-roles
(list
{ extension: .wrapper-migrator, enabled: true, role: "registry" }
)
))
;; mainnet
;; (try! (contract-call? .bnsx-registry mng-set-token-uri "https://api.bns.xyz/nft-metadata/{id}"))
;; (try! (contract-call? .wrapper-migrator set-signers (list
;; { signer: 0x65a660401398c30c63a9ffd69e933b87fd39ce0d, enabled: true }
;; )))
(ok true)
)
)
Parameters:
Name | Type | Description |
---|---|---|
sender | principal |
(define-private (add-bootstrap-utils () (response bool uint))
Source code:
(define-private (add-bootstrap-utils)
(begin
(try! (contract-call? .bnsx-extensions set-extensions
(list
{ extension: DEPLOYER, enabled: true }
;; { extension: 'SPRG2XNKCEV40EMASB8TG3B599ATHPRWRWSM4EB7.xsafe, enabled: true }
{ extension: .test-utils, enabled: true }
)
))
(ok true)
)
)
(define-constant DEPLOYER tx-sender)