Skip to content

Commit

Permalink
fix: update bootstrap to cover full init
Browse files Browse the repository at this point in the history
  • Loading branch information
whoabuddy committed Jan 14, 2025
1 parent b194f44 commit 0726495
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions contracts/dao/proposals/aibtc-base-bootstrap-initialization.clar
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,26 @@

(define-public (execute (sender principal))
(begin
;; set initial extensions
;; set initial extensions list
(try! (contract-call? .aibtcdev-base-dao set-extensions
(list
{extension: .aibtc-action-proposals, enabled: true}
{extension: .aibtc-bank-account, enabled: true}
{extension: .aibtc-core-proposals, enabled: true}
{extension: .aibtc-onchain-messaging, enabled: true}
{extension: .aibtc-payments-invoices, enabled: true}
{extension: .aibtc-token-owner, enabled: true}
{extension: .aibtc-treasury, enabled: true}
{extension: .set-account-holder, enabled: true}
{extension: .send-message, enabled: true}
)
))

;; initialize action proposals
(try! (contract-call? .aibtc-action-proposals set-protocol-treasury .aibtc-treasury))
(try! (contract-call? .aibtc-action-proposals set-voting-token .aibtc-token))
;; initialize core proposals
(try! (contract-call? .aibtc-core-proposals set-protocol-treasury .aibtc-treasury))
;; send DAO manifest as onchain message
(try! (contract-call? .aibtc-onchain-messaging send DAO_MANIFEST true))
;; allow assets in treasury
(try! (contract-call? .aibtc-treasury allow-asset .aibtc-token true))
;; print manifest
(print DAO_MANIFEST)
(ok true)
Expand Down

0 comments on commit 0726495

Please sign in to comment.