Skip to content

Latest commit

 

History

History
83 lines (66 loc) · 1.68 KB

README.md

File metadata and controls

83 lines (66 loc) · 1.68 KB

Registries Near

Set of Autonolas registries contracts on NEAR.

Pre-requisites

The program requires that the following environment is satisfied:

rustc --version
rustc 1.81.0 (eeb90cda1 2024-09-04)

near --version
near-cli-rs 0.16.0

Advise the script setup-env.sh to correctly install the required environment.

Development

Install the dependencies:

yarn

If you need to remove / check dependencies, run:

cargo clean
cargo tree

You might also want to completely remove the Cargo.lock file.

Build the code with:

./scripts/build.sh

Manage NEAR accounts

Create / delete accounts, transfer funds and deploy contracts on testnet:

./scripts/setup_contract_account_testnet.sh

Testing

Sandbox:

npx ava test/WormholeMessenger.ts

Testnet:

npx ava --config ava.testnet.config.cjs test/testnet_WormholeMessenger.ts

Testing with debug:

NEAR_WORKSPACES_DEBUG=true npx ava test/WormholeMessenger.ts

Update (only after the relevant upgrade_hash has been set via the governance):

./scripts/upgrade_contract.sh)

Update check (macOS):

sha256 ./artifacts/governance_near.wasm 
near state gov_002.sub_olas.olas_000.testnet

Update check (Linux):

sha256sum ./artifacts/governance_near.wasm 
near state gov_002.sub_olas.olas_000.testnet

Testnet

Acknowledgements

The tokenomics contracts were inspired and based on the following sources: