Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.e2e-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ token:
symbol: "DEMO"
decimals: 18
instrument_id: "DEMO"
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":
"0xC1A0000000000000000000000000000000000001":
name: "USD Coin"
symbol: "USDCx"
decimals: 6
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/defaults/config.api-server.docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ token:
symbol: "DEMO"
decimals: 18
instrument_id: "DEMO"
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":
"0xC1A0000000000000000000000000000000000001":
name: "USD Coin"
symbol: "USDCx"
decimals: 6
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/defaults/config.api-server.local-devnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ token:
symbol: "DEMO"
decimals: 18
instrument_id: "DEMO"
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":
"0xC1A0000000000000000000000000000000000001":
name: "USD Coin"
symbol: "USDCx"
decimals: 6
Expand Down
11 changes: 10 additions & 1 deletion pkg/config/defaults/config.api-server.mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,21 @@ canton:

token:
supported_tokens:
# Display-only synthetic addresses for MetaMask. The api-server's
# eth_call balanceOf facade keys balances by these addresses. They must
# NOT collide with well-known mainnet token contracts (e.g. real USDC,
# USDT, etc.) or MetaMask flags imports as suspected phishing.
"0x9907000000000000000000000000000000000001":
name: "PROMPT"
symbol: "PROMPT"
decimals: 18
instrument_id: "PROMPT"
"0xDE30000000000000000000000000000000000001":
name: "Demo Token"
symbol: "DEMO"
decimals: 18
instrument_id: "DEMO"
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":
"0xC1A0000000000000000000000000000000000001":
name: "USD Coin"
symbol: "USDCx"
decimals: 6
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/tests/env-substitution.api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ token:
symbol: "PROMPT"
decimals: 18
instrument_id: "PROMPT"
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":
"0xC1A0000000000000000000000000000000000001":
name: "USD Coin"
symbol: "USDCx"
decimals: 6
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/tests/invalid-database-url.api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ token:
symbol: "PROMPT"
decimals: 18
instrument_id: "PROMPT"
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":
"0xC1A0000000000000000000000000000000000001":
name: "USD Coin"
symbol: "USDCx"
decimals: 6
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/tests/minimal.api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ token:
symbol: "PROMPT"
decimals: 18
instrument_id: "PROMPT"
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":
"0xC1A0000000000000000000000000000000000001":
name: "USD Coin"
symbol: "USDCx"
decimals: 6
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/tests/missing-env.api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ token:
symbol: "PROMPT"
decimals: 18
instrument_id: "PROMPT"
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":
"0xC1A0000000000000000000000000000000000001":
name: "USD Coin"
symbol: "USDCx"
decimals: 6
Expand Down
9 changes: 6 additions & 3 deletions tests/e2e/devstack/stack/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ const (
DemoTokenVirtualAddr = "0xDE30000000000000000000000000000000000001"

// USDCxTokenVirtualAddr is the well-known virtual EVM address mapped to the
// USDCx external token in the api-server configuration.
// #nosec G101 -- public deterministic EVM contract address, not a credential.
USDCxTokenVirtualAddr = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
// USDCx external token in the api-server configuration. Synthetic (no real
// on-chain meaning) so MetaMask's anti-phishing check — which compares
// imported token addresses against its known-mainnet-tokens registry — does
// not flag USDCx imports as a possible spoof of real-mainnet USDC.
// #nosec G101 -- synthetic placeholder EVM address, not a credential.
USDCxTokenVirtualAddr = "0xC1A0000000000000000000000000000000000001"
)

// CantonHolding is a minimal view of a CIP56Holding contract used by E2E tests.
Expand Down
Loading