Skip to content

Latest commit

 

History

History
102 lines (68 loc) · 1.96 KB

proposal-bootstrap.md

File metadata and controls

102 lines (68 loc) · 1.96 KB

proposal-bootstrap

proposal-bootstrap.clar

Public functions:

Read-only functions:

Private functions:

Maps

Variables

Constants

Functions

execute

View in file

(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

add-bootstrap-utils

View in file

(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)
  )
)

Maps

Variables

Constants

DEPLOYER

(define-constant DEPLOYER tx-sender)

View in file