Skip to content

The subnet rental canister is responsible for managing rental agreements for subnets on ICP.

License

Notifications You must be signed in to change notification settings

dfinity/subnet-rental-canister

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Subnet Rental Canister

Running the Project

If you want to test the project locally, install dfx version 0.20.0 or later and use the following commands:

# Starts the replica, running in the background
dfx start --background

# Deploys your canisters to the replica and generates your candid interface
dfx deploy

Testing

To run the integration tests, first download PocketIC from GitHub and move the binary into /src/subnet_rental_canister. Then, build the subnet rental canister Wasm by running:

./scripts/build.sh

which will be placed in the root folder of the project.

Next, download the necessary NNS canister Wasms with:

./scripts/download_wasms.sh

A patched version of the CMC is already included in the project.

Finally, run the tests with:

cargo test --test integration_tests

Reproducible Build

See BUILD.md for instructions on how to build the canister Wasm reproducibly.

About

The subnet rental canister is responsible for managing rental agreements for subnets on ICP.

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •