Skip to content

Commit 451cdba

Browse files
committed
chore: Register IC Delegation Store Canister
1 parent a9b905b commit 451cdba

File tree

3 files changed

+46
-27
lines changed

3 files changed

+46
-27
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@ name: Release
22
on:
33
push:
44
tags:
5-
- 'v*'
5+
- "v*"
66
jobs:
77
test:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v4
11-
- uses: Swatinem/rust-cache@v2
12-
- name: Build canisters
13-
run: |
14-
rustup target add wasm32-unknown-unknown
15-
cargo install ic-wasm
16-
mkdir out
17-
cargo build --target wasm32-unknown-unknown --release --locked -p ic_dmsg_minter -p ic_panda_luckypool -p ic_message -p ic_message_channel -p ic_message_profile -p ic_name_identity
18-
for CAN in ic_dmsg_minter ic_panda_luckypool ic_message ic_message_channel ic_message_profile ic_name_identity
19-
do
20-
cp "target/wasm32-unknown-unknown/release/$CAN.wasm" out/
21-
cp "src/$CAN/$CAN.did" "out/$CAN.did"
22-
WASM="out/$CAN.wasm"
23-
ic-wasm $WASM -o $WASM metadata candid:service -f "out/$CAN.did" -v public
24-
ic-wasm $WASM -o $WASM shrink
25-
ic-wasm $WASM -o $WASM optimize O3 --inline-functions-with-loops
26-
gzip $WASM
27-
SHA256="$(sha256sum < "out/$CAN.wasm.gz" | sed 's/ .*$//g')"
28-
echo $SHA256 > "out/$CAN.wasm.gz.$SHA256.txt"
29-
done
30-
ls -lah out
31-
- name: Release
32-
uses: softprops/action-gh-release@v2
33-
with:
34-
files: out/*
10+
- uses: actions/checkout@v4
11+
- uses: Swatinem/rust-cache@v2
12+
- name: Build canisters
13+
run: |
14+
rustup target add wasm32-unknown-unknown
15+
cargo install ic-wasm
16+
mkdir out
17+
cargo build --target wasm32-unknown-unknown --release --locked -p ic_dmsg_minter -p ic_panda_luckypool -p ic_message -p ic_message_channel -p ic_message_profile -p ic_name_identity -p ic_delegation_store
18+
for CAN in ic_dmsg_minter ic_panda_luckypool ic_message ic_message_channel ic_message_profile ic_name_identity ic_delegation_store
19+
do
20+
cp "target/wasm32-unknown-unknown/release/$CAN.wasm" out/
21+
cp "src/$CAN/$CAN.did" "out/$CAN.did"
22+
WASM="out/$CAN.wasm"
23+
ic-wasm $WASM -o $WASM metadata candid:service -f "out/$CAN.did" -v public
24+
ic-wasm $WASM -o $WASM shrink
25+
ic-wasm $WASM -o $WASM optimize O3 --inline-functions-with-loops
26+
gzip $WASM
27+
SHA256="$(sha256sum < "out/$CAN.wasm.gz" | sed 's/ .*$//g')"
28+
echo $SHA256 > "out/$CAN.wasm.gz.$SHA256.txt"
29+
done
30+
ls -lah out
31+
- name: Release
32+
uses: softprops/action-gh-release@v2
33+
with:
34+
files: out/*

proposals/proposal-437.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
# Load the environment variables
4+
source "$(pwd)"/proposals/env.sh
5+
6+
quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal '(
7+
record {
8+
title = "Register IC Delegation Store Canister";
9+
url = "https://github.com/ldclabs/ic-panda/tree/main/src/ic_delegation_store";
10+
summary = "ic_delegation_store is used to relay the delegation information for II authentication.";
11+
action = opt variant {
12+
RegisterDappCanisters = record {
13+
canister_ids = vec {principal "asxpf-ciaaa-aaaap-an33a-cai"};
14+
}
15+
};
16+
}
17+
)' > proposal-message.json
18+
19+
# quill send proposal-message.json

src/ic_delegation_store/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ic_delegation_store"
3-
description = ""
3+
description = "Relay the delegation information for II authentication"
44
publish = false
55
repository = "https://github.com/ldclabs/ic-panda/tree/main/src/ic_delegation_store"
66
version.workspace = true

0 commit comments

Comments
 (0)