Skip to content

Commit

Permalink
Add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
aterga committed Mar 12, 2024
1 parent 7a84697 commit 6ddfc1a
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 9 deletions.
144 changes: 136 additions & 8 deletions dfx.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,152 @@
{
"canisters": {
"internet_identity": {
"build": "",
"candid": "candid/internet_identity.did",
"type": "custom",
"wasm": ""
},
"nns-cycles-minting": {
"build": "",
"candid": "candid/nns-cycles-minting.did",
"remote": {
"id": {
"ic": "rkp4c-7iaaa-aaaaa-aaaca-cai",
"local": "rkp4c-7iaaa-aaaaa-aaaca-cai"
}
},
"type": "custom",
"wasm": ""
},
"nns-dapp": {
"build": "",
"candid": "candid/nns-dapp.did",
"type": "custom",
"candid": "",
"wasm": "nns-dapp.wasm"
"wasm": ""
},
"internet_identity": {
"nns-genesis-token": {
"build": "",
"candid": "candid/nns-genesis-token.did",
"remote": {
"id": {
"ic": "renrk-eyaaa-aaaaa-aaada-cai",
"local": "renrk-eyaaa-aaaaa-aaada-cai"
}
},
"type": "custom",
"candid": "",
"wasm": "internet_identity_dev.wasm"
"wasm": ""
},
"sns_aggregator": {
"nns-governance": {
"build": "",
"candid": "candid/nns-governance.did",
"remote": {
"id": {
"ic": "rrkah-fqaaa-aaaaa-aaaaq-cai",
"local": "rrkah-fqaaa-aaaaa-aaaaq-cai"
}
},
"type": "custom",
"wasm": ""
},
"nns-ledger": {
"build": "",
"candid": "candid/nns-ledger.did",
"remote": {
"id": {
"ic": "ryjl3-tyaaa-aaaaa-aaaba-cai",
"local": "ryjl3-tyaaa-aaaaa-aaaba-cai"
}
},
"type": "custom",
"wasm": ""
},
"nns-lifeline": {
"build": "",
"candid": "candid/nns-lifeline.did",
"remote": {
"id": {
"ic": "rno2w-sqaaa-aaaaa-aaacq-cai",
"local": "rno2w-sqaaa-aaaaa-aaacq-cai"
}
},
"type": "custom",
"wasm": ""
},
"nns-registry": {
"build": "",
"candid": "candid/nns-registry.did",
"remote": {
"id": {
"ic": "rwlgt-iiaaa-aaaaa-aaaaa-cai",
"local": "rwlgt-iiaaa-aaaaa-aaaaa-cai"
}
},
"type": "custom",
"wasm": ""
},
"nns-root": {
"build": "",
"candid": "candid/nns-root.did",
"remote": {
"id": {
"ic": "r7inp-6aaaa-aaaaa-aaabq-cai",
"local": "r7inp-6aaaa-aaaaa-aaabq-cai"
}
},
"type": "custom",
"wasm": ""
},
"nns-sns-wasm": {
"build": "",
"candid": "candid/nns-sns-wasm.did",
"remote": {
"id": {
"ic": "qaa6y-5yaaa-aaaaa-aaafa-cai",
"local": "qaa6y-5yaaa-aaaaa-aaafa-cai"
}
},
"type": "custom",
"wasm": ""
},
"sns_aggregator": {
"candid": "candid/sns_aggregator.did",
"type": "custom",
"wasm": "sns_aggregator.wasm"
},
"sns_governance": {
"build": "",
"candid": "candid/sns_governance.did",
"type": "custom",
"wasm": ""
},
"sns_index": {
"build": "",
"candid": "candid/sns_index.did",
"type": "custom",
"wasm": ""
},
"sns_ledger": {
"build": "",
"candid": "candid/sns_ledger.did",
"type": "custom",
"wasm": ""
},
"sns_root": {
"build": "",
"candid": "candid/sns_root.did",
"type": "custom",
"wasm": ""
},
"sns_swap": {
"build": "",
"candid": "candid/sns_swap.did",
"type": "custom",
"wasm": ""
},
"test": {
"candid": "candid/test.did",
"type": "rust",
"package": "test"
"package": "test",
"type": "rust"
}
}
}
2 changes: 1 addition & 1 deletion run_basic_scenario.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"

# Set the ICP/XDR conversion rate (needed for the NNS Governance and the Neurons' Fund).
./set-icp-xdr-rate.sh 200000
./set-icp-xdr-rate.sh 10000

# Deploy test canister
./deploy_test_canister.sh
Expand Down
18 changes: 18 additions & 0 deletions set-icp-xdr-rate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -euo pipefail

cd -- "$(dirname -- "${BASH_SOURCE[0]}")"

. ./constants.sh normal

export XDR_PERMYRIAD_PER_ICP="${1:-106292}"

echo "Setting ICP/XDR conversion rate to ${XDR_PERMYRIAD_PER_ICP} ..."

ic-admin \
--nns-url "${NETWORK_URL}" \
propose-xdr-icp-conversion-rate \
--xdr-permyriad-per-icp "${XDR_PERMYRIAD_PER_ICP}" \
--test-neuron-proposer \
--summary "Set ICP/XDR conversion rate to ${XDR_PERMYRIAD_PER_ICP}"

0 comments on commit 6ddfc1a

Please sign in to comment.