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

Repository files navigation

Subnet Rental Canister

The subnet rental canister is deployed on ICP with the canister ID qvhpv-4qaaa-aaaaa-aaagq-cai.

Running the Project

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

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

# Deploys your canisters to the replica and generates your candid interface
./scripts/build.sh
dfx canister create subnet_rental_canister
dfx canister install subnet_rental_canister --wasm subnet_rental_canister.wasm.gz

Testing

Build the subnet rental canister Wasm by running:

./scripts/build.sh

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

Next, get the necessary NNS canister Wasms with:

./scripts/get_wasms.sh

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

  •  
  •  
  •  
  •