Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions Clarinet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ path = 'contracts/dao/extensions/aibtc-action-proposals-v2.clar'
clarity_version = 3
epoch = 3.1

[contracts.aibtc-dao-charter]
path = 'contracts/dao/extensions/aibtc-dao-charter.clar'
clarity_version = 3
epoch = 3.1

[contracts.aibtc-core-proposals]
path = 'contracts/dao/extensions/aibtc-core-proposals.clar'
clarity_version = 2
Expand All @@ -98,6 +93,26 @@ path = 'contracts/dao/extensions/aibtc-core-proposals-v2.clar'
clarity_version = 3
epoch = 3.1

[contracts.aibtc-dao-charter]
path = 'contracts/dao/extensions/aibtc-dao-charter.clar'
clarity_version = 3
epoch = 3.1

[contracts.aibtc-dao-epoch]
path = 'contracts/dao/extensions/aibtc-dao-epoch.clar'
clarity_version = 3
epoch = 3.1

[contracts.aibtc-dao-assets]
path = 'contracts/dao/extensions/aibtc-dao-assets.clar'
clarity_version = 3
epoch = 3.1

[contracts.aibtc-dao-users]
path = 'contracts/dao/extensions/aibtc-dao-users.clar'
clarity_version = 3
epoch = 3.1

[contracts.aibtc-onchain-messaging]
path = 'contracts/dao/extensions/aibtc-onchain-messaging.clar'
clarity_version = 3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
;; title: aibtc-action-configure-timed-vault-dao
;; version: 1.0.0
;; summary: A predefined action to configure the DAO timed vaults.

;; traits
;;

(impl-trait .aibtc-dao-traits-v3.extension)
(impl-trait .aibtc-dao-traits-v3.action)

(define-constant ERR_UNAUTHORIZED (err u10001))
(define-constant ERR_INVALID_PARAMS (err u10002))
;; constants
;;

(define-constant ERR_NOT_DAO_OR_EXTENSION (err u1100))
(define-constant ERR_INVALID_PARAMS (err u1101))

(define-constant CFG_MESSAGE "Executed Action Proposal: Updated configuration in <%= it.dao_token_name %> timed vault extension")
;; template variables
;;

(define-constant CFG_MESSAGE "Executed Action Proposal: Updated configuration in DAO timed vault extension")

;; public functions
;;

(define-public (callback (sender principal) (memo (buff 34))) (ok true))

Expand Down Expand Up @@ -49,8 +65,11 @@
)
)

;; private functions
;;

(define-private (is-dao-or-extension)
(ok (asserts! (or (is-eq tx-sender .aibtc-base-dao)
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_UNAUTHORIZED
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_NOT_DAO_OR_EXTENSION
))
)
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
;; title: aibtc-action-configure-timed-vault-sbtc
;; version: 1.0.0
;; summary: A predefined action to configure the BTC timed vaults.

;; traits
;;

(impl-trait .aibtc-dao-traits-v3.extension)
(impl-trait .aibtc-dao-traits-v3.action)

(define-constant ERR_UNAUTHORIZED (err u10001))
(define-constant ERR_INVALID_PARAMS (err u10002))
;; constants
;;

(define-constant ERR_NOT_DAO_OR_EXTENSION (err u1100))
(define-constant ERR_INVALID_PARAMS (err u1101))

;; template variables
;;

(define-constant CFG_MESSAGE "Executed Action Proposal: Updated configuration in BTC timed vault extension")

;; public functions
;;

(define-public (callback (sender principal) (memo (buff 34))) (ok true))

(define-public (run (parameters (buff 2048)))
Expand Down Expand Up @@ -49,8 +65,11 @@
)
)

;; private functions
;;

(define-private (is-dao-or-extension)
(ok (asserts! (or (is-eq tx-sender .aibtc-base-dao)
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_UNAUTHORIZED
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_NOT_DAO_OR_EXTENSION
))
)
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
;; title: aibtc-action-configure-timed-vault-stx
;; version: 1.0.0
;; summary: A predefined action to configure the STX timed vaults.

;; traits
;;

(impl-trait .aibtc-dao-traits-v3.extension)
(impl-trait .aibtc-dao-traits-v3.action)

(define-constant ERR_UNAUTHORIZED (err u10001))
(define-constant ERR_INVALID_PARAMS (err u10002))
;; constants
;;

(define-constant ERR_NOT_DAO_OR_EXTENSION (err u1100))
(define-constant ERR_INVALID_PARAMS (err u1101))

;; template variables
;;

(define-constant CFG_MESSAGE "Executed Action Proposal: Updated configuration in STX timed vault extension")

;; public functions
;;

(define-public (callback (sender principal) (memo (buff 34))) (ok true))

(define-public (run (parameters (buff 2048)))
Expand Down Expand Up @@ -49,8 +65,11 @@
)
)

;; private functions
;;

(define-private (is-dao-or-extension)
(ok (asserts! (or (is-eq tx-sender .aibtc-base-dao)
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_UNAUTHORIZED
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_NOT_DAO_OR_EXTENSION
))
)
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
;; title: aibtc-action-pmt-dao-add-resource
;; version: 1.0.0
;; summary: A predefined action to add a resource in the DAO payment processor extension.

;; traits
;;

(impl-trait .aibtc-dao-traits-v3.extension)
(impl-trait .aibtc-dao-traits-v3.action)

(define-constant ERR_UNAUTHORIZED (err u10001))
(define-constant ERR_INVALID_PARAMS (err u10002))
;; constants
;;

(define-constant ERR_NOT_DAO_OR_EXTENSION (err u1100))
(define-constant ERR_INVALID_PARAMS (err u1101))

;; template variables
;;

(define-constant CFG_MESSAGE "Executed Action Proposal: Added a resource in the DAO payment processor extension")

;; public functions
;;

(define-public (callback (sender principal) (memo (buff 34))) (ok true))

(define-public (run (parameters (buff 2048)))
Expand All @@ -22,8 +38,11 @@
)
)

;; private functions
;;

(define-private (is-dao-or-extension)
(ok (asserts! (or (is-eq tx-sender .aibtc-base-dao)
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_UNAUTHORIZED
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_NOT_DAO_OR_EXTENSION
))
)
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
;; title: aibtc-action-pmt-dao-toggle-resource
;; version: 1.0.0
;; summary: A predefined action to toggle a resource in the DAO payment processor extension.

;; traits
;;

(impl-trait .aibtc-dao-traits-v3.extension)
(impl-trait .aibtc-dao-traits-v3.action)

(define-constant ERR_UNAUTHORIZED (err u10001))
(define-constant ERR_INVALID_PARAMS (err u10002))
;; constants
;;

(define-constant ERR_NOT_DAO_OR_EXTENSION (err u1100))
(define-constant ERR_INVALID_PARAMS (err u1101))

;; template variables
;;

(define-constant CFG_MESSAGE "Executed Action Proposal: Toggled resource status by name in the DAO payment processor extension")

;; public functions
;;

(define-public (callback (sender principal) (memo (buff 34))) (ok true))

(define-public (run (parameters (buff 2048)))
Expand All @@ -19,8 +35,11 @@
)
)

;; private functions
;;

(define-private (is-dao-or-extension)
(ok (asserts! (or (is-eq tx-sender .aibtc-base-dao)
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_UNAUTHORIZED
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_NOT_DAO_OR_EXTENSION
))
)
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
;; title: aibtc-action-pmt-sbtc-add-resource
;; version: 1.0.0
;; summary: A predefined action to add a resource in the BTC payment processor extension.

;; traits
;;

(impl-trait .aibtc-dao-traits-v3.extension)
(impl-trait .aibtc-dao-traits-v3.action)

(define-constant ERR_UNAUTHORIZED (err u10001))
(define-constant ERR_INVALID_PARAMS (err u10002))
;; constants
;;

(define-constant ERR_NOT_DAO_OR_EXTENSION (err u1100))
(define-constant ERR_INVALID_PARAMS (err u1101))

;; template variables
;;

(define-constant CFG_MESSAGE "Executed Action Proposal: Added a resource in the BTC payment processor extension")

;; public functions
;;

(define-public (callback (sender principal) (memo (buff 34))) (ok true))

(define-public (run (parameters (buff 2048)))
Expand All @@ -22,8 +38,11 @@
)
)

;; private functions
;;

(define-private (is-dao-or-extension)
(ok (asserts! (or (is-eq tx-sender .aibtc-base-dao)
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_UNAUTHORIZED
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_NOT_DAO_OR_EXTENSION
))
)
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
;; title: aibtc-action-pmt-sbtc-toggle-resource
;; version: 1.0.0
;; summary: A predefined action to toggle a resource in the BTC payment processor extension.

;; traits
;;

(impl-trait .aibtc-dao-traits-v3.extension)
(impl-trait .aibtc-dao-traits-v3.action)

(define-constant ERR_UNAUTHORIZED (err u10001))
(define-constant ERR_INVALID_PARAMS (err u10002))
;; constants
;;

(define-constant ERR_NOT_DAO_OR_EXTENSION (err u1100))
(define-constant ERR_INVALID_PARAMS (err u1101))

;; template variables
;;

(define-constant CFG_MESSAGE "Executed Action Proposal: Toggled resource status by name in the BTC payment processor extension")

;; public functions
;;

(define-public (callback (sender principal) (memo (buff 34))) (ok true))

(define-public (run (parameters (buff 2048)))
Expand All @@ -19,8 +35,11 @@
)
)

;; private functions
;;

(define-private (is-dao-or-extension)
(ok (asserts! (or (is-eq tx-sender .aibtc-base-dao)
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_UNAUTHORIZED
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_NOT_DAO_OR_EXTENSION
))
)
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
;; title: aibtc-action-pmt-stx-add-resource
;; version: 1.0.0
;; summary: A predefined action to add a resource in the STX payment processor extension.

;; traits
;;

(impl-trait .aibtc-dao-traits-v3.extension)
(impl-trait .aibtc-dao-traits-v3.action)

(define-constant ERR_UNAUTHORIZED (err u10001))
(define-constant ERR_INVALID_PARAMS (err u10002))
;; constants
;;

(define-constant ERR_NOT_DAO_OR_EXTENSION (err u1100))
(define-constant ERR_INVALID_PARAMS (err u1101))

;; template variables
;;

(define-constant CFG_MESSAGE "Executed Action Proposal: Added a resource in the STX payment processor extension")

;; public functions
;;

(define-public (callback (sender principal) (memo (buff 34))) (ok true))

(define-public (run (parameters (buff 2048)))
Expand All @@ -22,8 +38,11 @@
)
)

;; private functions
;;

(define-private (is-dao-or-extension)
(ok (asserts! (or (is-eq tx-sender .aibtc-base-dao)
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_UNAUTHORIZED
(contract-call? .aibtc-base-dao is-extension contract-caller)) ERR_NOT_DAO_OR_EXTENSION
))
)
Loading