Skip to content

Commit

Permalink
fix: start cleaning up tests with latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
whoabuddy committed Dec 24, 2024
1 parent c54ecce commit fc8cbe6
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 385 deletions.
43 changes: 41 additions & 2 deletions deployments/default.simnet-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ genesis:
plan:
batches:
- id: 0
transactions: []
epoch: "2.0"
- id: 1
transactions:
- emulated-contract-publish:
contract-name: nft-trait
Expand All @@ -59,8 +62,26 @@ plan:
emulated-sender: SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE
path: "./.cache/requirements/SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-010-trait-ft-standard.clar"
clarity-version: 1
epoch: "2.0"
- id: 1
epoch: "2.1"
- id: 2
transactions: []
epoch: "2.1"
- id: 3
transactions: []
epoch: "2.1"
- id: 4
transactions: []
epoch: "2.1"
- id: 5
transactions: []
epoch: "2.1"
- id: 6
transactions: []
epoch: "2.1"
- id: 7
transactions: []
epoch: "2.1"
- id: 8
transactions:
- emulated-contract-publish:
contract-name: aibtcdev-dao-traits-v1
Expand Down Expand Up @@ -138,3 +159,21 @@ plan:
path: contracts/test-proxy.clar
clarity-version: 2
epoch: "2.5"
- id: 9
transactions: []
epoch: "2.5"
- id: 10
transactions: []
epoch: "2.5"
- id: 11
transactions: []
epoch: "2.5"
- id: 12
transactions: []
epoch: "2.5"
- id: 13
transactions: []
epoch: "2.5"
- id: 14
transactions: []
epoch: "2.5"
25 changes: 25 additions & 0 deletions tests/dao/extensions/aibtc-ext001-actions.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Cl } from "@stacks/transactions";
import { describe, expect, it } from "vitest";

const accounts = simnet.getAccounts();
const address1 = accounts.get("wallet_1")!;
const address2 = accounts.get("wallet_2")!;
const addressDeployer = accounts.get("deployer")!;

const contractAddress = `${addressDeployer}.aibtc-ext001-actions`;

enum ErrCode {
ERR_UNAUTHORIZED = 1000,
ERR_NOT_DAO_OR_EXTENSION,
ERR_NOT_INITIALIZED = 1100,
ERR_ALREADY_INITIALIZED,
ERR_TREASURY_MUST_BE_CONTRACT = 1200,
ERR_TREASURY_CANNOT_BE_SELF,
ERR_TREASURY_ALREADY_SET,
ERR_TREASURY_MISMATCH,
}

const withdrawalAmount = 10000000; // 10 STX
const withdrawalPeriod = 144; // 144 blocks

describe("aibtc-ext001-actions", () => {});
Loading

0 comments on commit fc8cbe6

Please sign in to comment.