Skip to content

Commit 8d74146

Browse files
committed
chore(ic_panda_frontend): add /token.json
1 parent de64f21 commit 8d74146

File tree

11 files changed

+202
-1639
lines changed

11 files changed

+202
-1639
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-lock.yaml

Lines changed: 92 additions & 1588 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proposals/proposal-455.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=68:nat; evidence=blob "\e5\df\f5\39\1a\bc\2e\c6\03\c8\d5\b2\47\52\96\f3\90\3a\d0\de\f1\e6\65\eb\1e\9a\b1\fb\bf\81\a2\20"})')"
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.13.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.13.5.\n\n1. fix: fix 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

proposals/proposal-456.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_panda_frontend --ic --by-proposal
8+
9+
export BLOB="$(didc encode --format blob '(record {batch_id=82:nat; evidence=blob "\85\86\c2\4c\1b\d1\d6\43\31\7c\30\b1\46\86\e2\37\81\67\d3\8a\ae\a9\31\7f\73\0d\1e\c9\e3\30\ad\3d"})')"
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_panda_frontend v2.13.7\";
14+
url = \"https://panda.fans/\";
15+
summary = \"This proposal executes commit_proposed_batch() on c63a7-6yaaa-aaaap-ab3gq-cai to release ic_panda_frontend v2.13.7.\n\n1. chore: add https://panda.fans/token.json;\n2. chore: update dependencies.\";
16+
action = opt variant {
17+
ExecuteGenericNervousSystemFunction = record {
18+
function_id = 1000 : nat64;
19+
payload = ${BLOB};
20+
}
21+
};
22+
}
23+
)" > proposal-message.json
24+
25+
# quill send proposal-message.json

src/ic_panda_frontend/package.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,63 @@
11
{
22
"dependencies": {
3-
"@dfinity/agent": "^3.2.4",
4-
"@dfinity/auth-client": "^3.2.4",
5-
"@dfinity/candid": "^3.2.4",
6-
"@dfinity/principal": "^3.2.4",
7-
"@dfinity/utils": "^3.0.1",
3+
"@dfinity/agent": "^3.4.1",
4+
"@dfinity/auth-client": "^3.4.1",
5+
"@dfinity/candid": "^3.4.1",
6+
"@dfinity/principal": "^3.4.1",
7+
"@dfinity/utils": "^3.2.0",
88
"@ldclabs/cose-ts": "^1.4.2",
99
"@noble/hashes": "^1.8.0",
1010
"@scure/base": "^2.0.0",
11-
"cborg": "^4.2.14",
11+
"cborg": "^4.2.18",
1212
"debounce": "^2.2.0",
1313
"idb": "^8.0.3",
1414
"markdown-it": "^14.1.0",
15-
"qr": "^0.5.1"
15+
"qr": "^0.5.2"
1616
},
1717
"devDependencies": {
1818
"@floating-ui/dom": "^1.7.4",
1919
"@skeletonlabs/skeleton": "^2.11.0",
2020
"@skeletonlabs/tw-plugin": "^0.4.1",
21-
"@sveltejs/adapter-static": "^3.0.9",
22-
"@sveltejs/kit": "^2.37.0",
23-
"@sveltejs/vite-plugin-svelte": "^6.1.4",
21+
"@sveltejs/adapter-static": "^3.0.10",
22+
"@sveltejs/kit": "^2.48.4",
23+
"@sveltejs/vite-plugin-svelte": "^6.2.1",
2424
"@tailwindcss/forms": "^0.5.10",
25-
"@testing-library/jest-dom": "^6.8.0",
25+
"@testing-library/jest-dom": "^6.9.1",
2626
"@types/eslint": "^9.6.1",
2727
"@types/markdown-it": "^14.1.2",
28-
"@types/node": "^24.3.0",
29-
"@typescript-eslint/eslint-plugin": "^8.42.0",
30-
"@typescript-eslint/parser": "^8.42.0",
31-
"@vite-pwa/assets-generator": "^1.0.0",
32-
"@vite-pwa/sveltekit": "^1.0.0",
28+
"@types/node": "^24.9.2",
29+
"@typescript-eslint/eslint-plugin": "^8.46.2",
30+
"@typescript-eslint/parser": "^8.46.2",
31+
"@vite-pwa/assets-generator": "^1.0.2",
32+
"@vite-pwa/sveltekit": "^1.0.1",
3333
"autoprefixer": "^10.4.21",
34-
"babel-plugin-formatjs": "^10.5.39",
34+
"babel-plugin-formatjs": "^10.5.41",
3535
"cross-fetch": "^4.1.0",
36-
"dotenv": "^17.2.2",
37-
"eslint": "^9.34.0",
36+
"dotenv": "^17.2.3",
37+
"eslint": "^9.39.0",
3838
"eslint-config-prettier": "^10.1.8",
3939
"eslint-plugin-import": "^2.32.0",
4040
"eslint-plugin-prettier": "^5.5.4",
41-
"eslint-plugin-svelte": "^3.12.1",
42-
"jsdom": "^26.1.0",
41+
"eslint-plugin-svelte": "^3.13.0",
42+
"jsdom": "^27.1.0",
4343
"postcss": "^8.5.6",
4444
"postcss-load-config": "^6.0.1",
4545
"prettier": "^3.6.2",
4646
"prettier-plugin-svelte": "^3.4.0",
47-
"prettier-plugin-tailwindcss": "^0.6.14",
47+
"prettier-plugin-tailwindcss": "^0.7.1",
4848
"sort-package-json": "^3.4.0",
49-
"stylelint": "^16.23.1",
50-
"stylelint-config-standard": "^39.0.0",
51-
"svelte": "^5.38.6",
52-
"svelte-check": "^4.3.1",
49+
"stylelint": "^16.25.0",
50+
"stylelint-config-standard": "^39.0.1",
51+
"svelte": "^5.43.2",
52+
"svelte-check": "^4.3.3",
5353
"tailwindcss": "^3.4.17",
5454
"ts-node": "^10.9.2",
5555
"tslib": "^2.8.1",
56-
"typescript": "^5.9.2",
57-
"vite": "^7.1.4",
56+
"typescript": "^5.9.3",
57+
"vite": "^7.1.12",
5858
"vite-plugin-environment": "^1.1.3",
59-
"vite-plugin-pwa": "^1.0.3",
60-
"vitest": "^3.2.4",
59+
"vite-plugin-pwa": "^1.1.0",
60+
"vitest": "^4.0.6",
6161
"workbox-core": "^7.3.0",
6262
"workbox-expiration": "^7.3.0",
6363
"workbox-precaching": "^7.3.0",
@@ -78,5 +78,5 @@
7878
"test": "vitest run"
7979
},
8080
"type": "module",
81-
"version": "2.13.6"
81+
"version": "2.13.7"
8282
}

src/ic_panda_frontend/src/lib/components/core/PageHeader.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@
5959
>
6060
dMsg
6161
</TabAnchor>
62-
<TabAnchor
63-
href="/_/luckypool"
64-
selected={page.url?.pathname.startsWith('/_/luckypool')}
65-
>
66-
Lucky Pool
67-
</TabAnchor>
6862
<TabAnchor
6963
href="https://1bridge.app/?token=PANDA&from=ICP&to=BNB"
7064
target="_blank"
7165
rel="noopener noreferrer"
7266
>
7367
Bridge
7468
</TabAnchor>
69+
<TabAnchor
70+
href="/_/luckypool"
71+
selected={page.url?.pathname.startsWith('/_/luckypool')}
72+
>
73+
Lucky Pool
74+
</TabAnchor>
7575
<!-- <TabAnchor
7676
href="/_/airdrop"
7777
selected={page.url?.pathname.startsWith('/_/airdrop')}

src/ic_panda_frontend/src/lib/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const src = globalThis.location?.href || ''
22

3-
export const APP_VERSION = '2.13.5'
3+
export const APP_VERSION = '2.13.7'
44
export const IS_LOCAL = src.includes('localhost') || src.includes('127.0.0.1')
55
export const ENV = IS_LOCAL ? 'local' : 'ic'
66
export const APP_ORIGIN = IS_LOCAL
8.44 KB
Loading

src/ic_panda_frontend/static/token.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ICPanda",
33
"symbol": "PANDA",
44
"description": "Breathing life into sovereign AI. We are building the open-source stack for agents to remember, transact, and evolve as first-class citizens in Web3. https://panda.fans | https://anda.ai | https://dMsg.net | https://1bridge.app",
5-
"image": "https://panda.fans/_assets/logo.svg",
5+
"image": "https://panda.fans/_assets/logo.webp",
66
"properties": {
77
"website": "https://panda.fans",
88
"contracts": [
@@ -16,12 +16,22 @@
1616
},
1717
{
1818
"chain": "Solana",
19-
"uri": "https://solscan.io/token/PANDAtzUC58ZFYFLGf3YUrstRZMWf6fPMZ8Rjm37FK3"
19+
"uri": "https://solscan.io/token/PANDAvvWniWYKRbrCYQEAyeSJ5uUk1nc49eLqT6yQyL"
2020
}
2121
],
22-
"socials": {
23-
"X": "https://x.com/ICPandaDAO",
24-
"Github": "https://github.com/LDCLabs"
25-
}
22+
"socials": [
23+
{
24+
"name": "Github",
25+
"uri": "https://github.com/LDCLabs"
26+
},
27+
{
28+
"name": "X",
29+
"uri": "https://x.com/ICPandaDAO"
30+
},
31+
{
32+
"name": "Contact",
33+
"uri": "mailto:[email protected]"
34+
}
35+
]
2636
}
2737
}

src/ic_signin_with/src/api_eth.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ fn get_sign_in_with_ethereum_message(
2020
Ok(msg)
2121
}
2222

23+
#[allow(clippy::too_many_arguments)]
2324
#[ic_cdk::update]
2425
fn sign_in_with_ethereum(
2526
domain: String, // Domain requesting sign-in
@@ -40,8 +41,6 @@ fn sign_in_with_ethereum(
4041
return Err("signed message does not match expected message".to_string());
4142
}
4243

43-
ic_cdk::api::debug_print(format!("message_sig {} {}", message_sig.len(), message_sig));
44-
4544
let _addr = recover_eth_address(&message, &message_sig)?;
4645
if addr != _addr {
4746
return Err("signature does not match expected address".to_string());

0 commit comments

Comments
 (0)