Skip to content

Canonical-LLC/agix-multi-owner-minting-policy-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Integration tests for the AGIXMultiOwnerMintingPolicy minting contract.

Creating the Script Address

After compiling the smart contract, it is necessary to make a script address.

First source either the testnet or mainnet environment variables.

For testnet

$ source scripts/envars/testnet-env.envars

For mainnet

$ source scripts/envars/mainnet-env.envars

The environment variable files set CARDANO_NODE_SOCKET_PATH to the path of the appropriate Daedalus socket file (either Testnet Daedalus or the regular mainnet Daedalus). It you run a cardano-node on your own you should set this environment variable to your socket file location after sourcing the environment variable file.

First create the wallets and get the protocol parameters.

$ ./scripts/wallets/make-all-wallets.sh
$ ./scripts/query-protocol-parameters.sh

Next, run:

scripts/compile.sh

This will make the files scripts/testnet/buy.addr or scripts/mainnet/buy.addr.

Example Transactions

The folder scripts/core has parameterized example transactions. This are used by the wrappers in scripts/happy-path and scripts/failure-cases. The various transactions are combined in test scripts in the folder scripts/tests.

Running the Tests

To run the tests run scripts/tests/all.sh

Problem Cases

To execute the problem case that should fail, run scripts/problem-cases/duplicate-signer.sh.

About

Integration tests for the AgixMultiOwnerMintingPolicy security audit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages