Skip to content

Commit 6c26d1a

Browse files
committed
chore: improve token price reactivity in wallet
1 parent 554ebdf commit 6c26d1a

22 files changed

+402
-118
lines changed

proposals/proposal-267.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
3+
# Load the environment variables
4+
source "$(pwd)"/proposals/env.sh
5+
6+
# build and get batch_id, evidence:
7+
# dfx deploy ic_message_frontend --ic --by-proposal
8+
9+
export BLOB="$(didc encode --format blob '(record {batch_id=40:nat; evidence=blob "\fe\dc\ef\ba\6f\8b\d5\f2\7a\61\67\09\b4\21\a6\08\dc\11\c4\11\06\cd\c6\45\71\59\e6\2f\1d\2c\e9\f1"})')"
10+
11+
quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal "(
12+
record {
13+
title = \"Execute commit_proposed_batch() to release ic_message_frontend v2.8.5\";
14+
url = \"https://dMsg.net/\";
15+
summary = \"This proposal executes commit_proposed_batch() on 2fvu6-tqaaa-aaaap-akksa-cai to release ic_message_frontend v2.8.5.\n\n1. feat: add token price info.\";
16+
action = opt variant {
17+
ExecuteGenericNervousSystemFunction = record {
18+
function_id = 1100 : nat64;
19+
payload = ${BLOB};
20+
}
21+
};
22+
}
23+
)" > proposal-message.json
24+
25+
# quill send proposal-message.json

proposals/proposal-268.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
3+
# Load the environment variables
4+
source "$(pwd)"/proposals/env.sh
5+
6+
# build and get batch_id, evidence:
7+
# dfx deploy ic_message_frontend --ic --by-proposal
8+
9+
export BLOB="$(didc encode --format blob '(record {batch_id=41:nat; evidence=blob "\ad\98\2d\a3\bf\62\82\20\54\cb\3c\88\06\64\24\ab\e2\b5\01\a1\60\7b\49\ef\68\65\31\26\79\41\c0\d3"})')"
10+
11+
quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal "(
12+
record {
13+
title = \"Execute commit_proposed_batch() to release ic_message_frontend v2.8.6\";
14+
url = \"https://dMsg.net/\";
15+
summary = \"This proposal executes commit_proposed_batch() on 2fvu6-tqaaa-aaaap-akksa-cai to release ic_message_frontend v2.8.6.\n\n1. chore: improve token price reactivity in wallet.\";
16+
action = opt variant {
17+
ExecuteGenericNervousSystemFunction = record {
18+
function_id = 1100 : nat64;
19+
payload = ${BLOB};
20+
}
21+
};
22+
}
23+
)" > proposal-message.json
24+
25+
# quill send proposal-message.json

src/ic_message_frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@
8383
"test": "vitest run"
8484
},
8585
"type": "module",
86-
"version": "2.8.5"
86+
"version": "2.8.6"
8787
}

src/ic_message_frontend/src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<link href="https://dmsg.net" rel="canonical" />
1010
<meta content="ICPanda Message - dMsg.net" property="og:title" />
1111
<meta
12-
content="A decentralized end-to-end encrypted messaging application fully running on the Internet Computer blockchain."
12+
content="The world's 1st decentralized end-to-end encrypted messaging application fully running on the Internet Computer blockchain."
1313
name="description" property="og:description" />
1414
<meta content="website" property="og:type" />
1515
<meta content="https://dmsg.net" property="og:url" />

src/ic_message_frontend/src/declarations/ic_message_frontend/ic_message_frontend.did

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ type AssetCanisterArgs = variant {
144144
Upgrade: UpgradeArgs;
145145
};
146146

147-
type InitArgs = record {};
147+
type InitArgs = record {
148+
set_permissions: opt SetPermissions;
149+
};
148150

149151
type UpgradeArgs = record {
150152
set_permissions: opt SetPermissions;

src/ic_message_frontend/src/declarations/ic_message_frontend/ic_message_frontend.did.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export interface HttpResponse {
6565
'streaming_strategy' : [] | [StreamingStrategy],
6666
'status_code' : number,
6767
}
68-
export type InitArgs = {};
68+
export interface InitArgs { 'set_permissions' : [] | [SetPermissions] }
6969
export type Key = string;
7070
export interface ListPermitted { 'permission' : Permission }
7171
export type Permission = { 'Prepare' : null } |

src/ic_message_frontend/src/declarations/ic_message_frontend/ic_message_frontend.did.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const idlFactory = ({ IDL }) => {
77
const UpgradeArgs = IDL.Record({
88
'set_permissions' : IDL.Opt(SetPermissions),
99
});
10-
const InitArgs = IDL.Record({});
10+
const InitArgs = IDL.Record({ 'set_permissions' : IDL.Opt(SetPermissions) });
1111
const AssetCanisterArgs = IDL.Variant({
1212
'Upgrade' : UpgradeArgs,
1313
'Init' : InitArgs,
@@ -287,7 +287,7 @@ export const init = ({ IDL }) => {
287287
const UpgradeArgs = IDL.Record({
288288
'set_permissions' : IDL.Opt(SetPermissions),
289289
});
290-
const InitArgs = IDL.Record({});
290+
const InitArgs = IDL.Record({ 'set_permissions' : IDL.Opt(SetPermissions) });
291291
const AssetCanisterArgs = IDL.Variant({
292292
'Upgrade' : UpgradeArgs,
293293
'Init' : InitArgs,

src/ic_message_frontend/src/declarations/ic_oss_bucket_02/ic_oss_bucket_02.did

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ type BucketInfo = record {
33
total_chunks : nat64;
44
trusted_eddsa_pub_keys : vec blob;
55
managers : vec principal;
6+
governance_canister : opt principal;
67
name : text;
78
max_custom_data_size : nat16;
89
auditors : vec principal;
@@ -79,6 +80,7 @@ type FolderInfo = record {
7980
};
8081
type FolderName = record { id : nat32; name : text };
8182
type InitArgs = record {
83+
governance_canister : opt principal;
8284
name : text;
8385
max_custom_data_size : nat16;
8486
max_children : nat16;
@@ -146,6 +148,7 @@ type UpdateFolderInput = record {
146148
name : opt text;
147149
};
148150
type UpgradeArgs = record {
151+
governance_canister : opt principal;
149152
max_custom_data_size : opt nat16;
150153
max_children : opt nat16;
151154
enable_hash_index : opt bool;

src/ic_message_frontend/src/declarations/ic_oss_bucket_02/ic_oss_bucket_02.did.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export interface BucketInfo {
77
'total_chunks' : bigint,
88
'trusted_eddsa_pub_keys' : Array<Uint8Array | number[]>,
99
'managers' : Array<Principal>,
10+
'governance_canister' : [] | [Principal],
1011
'name' : string,
1112
'max_custom_data_size' : number,
1213
'auditors' : Array<Principal>,
@@ -86,6 +87,7 @@ export interface FolderInfo {
8687
}
8788
export interface FolderName { 'id' : number, 'name' : string }
8889
export interface InitArgs {
90+
'governance_canister' : [] | [Principal],
8991
'name' : string,
9092
'max_custom_data_size' : number,
9193
'max_children' : number,
@@ -175,6 +177,7 @@ export interface UpdateFolderInput {
175177
'name' : [] | [string],
176178
}
177179
export interface UpgradeArgs {
180+
'governance_canister' : [] | [Principal],
178181
'max_custom_data_size' : [] | [number],
179182
'max_children' : [] | [number],
180183
'enable_hash_index' : [] | [boolean],

src/ic_message_frontend/src/declarations/ic_oss_bucket_02/ic_oss_bucket_02.did.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
export const idlFactory = ({ IDL }) => {
22
const UpgradeArgs = IDL.Record({
3+
'governance_canister' : IDL.Opt(IDL.Principal),
34
'max_custom_data_size' : IDL.Opt(IDL.Nat16),
45
'max_children' : IDL.Opt(IDL.Nat16),
56
'enable_hash_index' : IDL.Opt(IDL.Bool),
67
'max_file_size' : IDL.Opt(IDL.Nat64),
78
'max_folder_depth' : IDL.Opt(IDL.Nat8),
89
});
910
const InitArgs = IDL.Record({
11+
'governance_canister' : IDL.Opt(IDL.Principal),
1012
'name' : IDL.Text,
1113
'max_custom_data_size' : IDL.Nat16,
1214
'max_children' : IDL.Nat16,
@@ -66,6 +68,7 @@ export const idlFactory = ({ IDL }) => {
6668
'total_chunks' : IDL.Nat64,
6769
'trusted_eddsa_pub_keys' : IDL.Vec(IDL.Vec(IDL.Nat8)),
6870
'managers' : IDL.Vec(IDL.Principal),
71+
'governance_canister' : IDL.Opt(IDL.Principal),
6972
'name' : IDL.Text,
7073
'max_custom_data_size' : IDL.Nat16,
7174
'auditors' : IDL.Vec(IDL.Principal),
@@ -365,13 +368,15 @@ export const idlFactory = ({ IDL }) => {
365368
};
366369
export const init = ({ IDL }) => {
367370
const UpgradeArgs = IDL.Record({
371+
'governance_canister' : IDL.Opt(IDL.Principal),
368372
'max_custom_data_size' : IDL.Opt(IDL.Nat16),
369373
'max_children' : IDL.Opt(IDL.Nat16),
370374
'enable_hash_index' : IDL.Opt(IDL.Bool),
371375
'max_file_size' : IDL.Opt(IDL.Nat64),
372376
'max_folder_depth' : IDL.Opt(IDL.Nat8),
373377
});
374378
const InitArgs = IDL.Record({
379+
'governance_canister' : IDL.Opt(IDL.Principal),
375380
'name' : IDL.Text,
376381
'max_custom_data_size' : IDL.Nat16,
377382
'max_children' : IDL.Nat16,

0 commit comments

Comments
 (0)