Skip to content

Commit

Permalink
chore: deploy to production env
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Sep 15, 2024
1 parent cc39ac6 commit 1cf49e0
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 2 deletions.
25 changes: 25 additions & 0 deletions proposals/proposal-089.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

# Load the environment variables
source "$(pwd)"/proposals/env.sh

# build and get batch_id, evidence:
# dfx deploy ic_panda_frontend --ic --by-proposal

export BLOB="$(didc encode --format blob '(record {batch_id=44:nat; evidence=blob "\b5\81\62\88\ca\97\70\e1\31\a9\b1\16\5c\93\42\6f\3b\30\19\4b\4b\87\7e\24\a9\bb\aa\d4\fc\f8\dc\11"})')"

quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal "(
record {
title = \"Execute commit_proposed_batch() to release ic_panda_frontend v2\";
url = \"https://panda.fans/\";
summary = \"This proposal executes commit_proposed_batch() on c63a7-6yaaa-aaaap-ab3gq-cai to release ic_panda_frontend v2.0.0.\n\n1. feat: E2EE Messages!\";
action = opt variant {
ExecuteGenericNervousSystemFunction = record {
function_id = 1000 : nat64;
payload = ${BLOB};
}
};
}
)" > proposal-message.json

quill send proposal-message.json
19 changes: 19 additions & 0 deletions proposals/proposal-090.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

# Load the environment variables
source "$(pwd)"/proposals/env.sh

quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal '(
record {
title = "Register E2EE Message canisters";
url = "https://dashboard.internetcomputer.org/sns/d7wvo-iiaaa-aaaaq-aacsq-cai/proposal/90";
summary = "E2EE Message canisters: ic_cose_canister, ic_message, ic_message_channel, ic_message_profile.\n\nRefer: https://github.com/ldclabs/ic-panda/blob/main/canister_ids.json";
action = opt variant {
RegisterDappCanisters = record {
canister_ids = vec {principal "n3bau-gaaaa-aaaaj-qa4oq-cai"; principal "nscli-qiaaa-aaaaj-qa4pa-cai"; principal "nvdn4-5qaaa-aaaaj-qa4pq-cai"; principal "ijyxz-wyaaa-aaaaj-qa4qa-cai"};
}
};
}
)' > proposal-message.json

quill send proposal-message.json
2 changes: 0 additions & 2 deletions src/ic_message/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ pub mod state {

pub fn ed25519_public_key(caller: &Principal) -> Result<PublicKeyOutput, String> {
with(|s| {
ic_cdk::print(format!("schnorr_key_name: {}", s.schnorr_key_name));
ic_cdk::print(format!("ed25519_public_key: {:?}", s.ed25519_public_key));
let pk = s
.ed25519_public_key
.as_ref()
Expand Down
1 change: 1 addition & 0 deletions src/ic_panda_frontend/static/.ic-assets.json5
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
{
"match": "**/*",
"security_policy": "standard",
"headers": {
// Security: The Content Security Policy (CSP) given below aims at working with many apps rather than providing maximal security.
// We recommend tightening the CSP for your specific application. Some recommendations are as follows:
Expand Down

0 comments on commit 1cf49e0

Please sign in to comment.