Skip to content
Open
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 .iyarc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# - This CVE affects archive EXTRACTION (unpacking malicious symlinks/hardlinks)
# - Lerna only uses tar for PACKING
GHSA-8qq5-rm4j-mr97

GHSA-r6q2-hw4h-h46w
6 changes: 3 additions & 3 deletions modules/statics/src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AccountNetwork, BaseNetwork, EthereumNetwork, Networks, TronNetwork } f
import {
ACCOUNT_COIN_DEFAULT_FEATURES,
ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_SINGAPORE,
CANTON_FEATURES,
CANTON_TOKEN_FEATURES,
CELO_TOKEN_FEATURES,
COSMOS_SIDECHAIN_FEATURES,
} from './coinFeatures';
Expand Down Expand Up @@ -4225,7 +4225,7 @@ export function cantonToken(
assetName: string,
admin: string,
asset: UnderlyingAsset,
features: CoinFeature[] = CANTON_FEATURES,
features: CoinFeature[] = CANTON_TOKEN_FEATURES,
prefix = '',
suffix: string = name.toUpperCase(),
network: AccountNetwork = Networks.main.canton,
Expand Down Expand Up @@ -4278,7 +4278,7 @@ export function tcantonToken(
assetName: string,
admin: string,
asset: UnderlyingAsset,
features: CoinFeature[] = CANTON_FEATURES,
features: CoinFeature[] = CANTON_TOKEN_FEATURES,
prefix = '',
suffix: string = name.toUpperCase(),
network: AccountNetwork = Networks.test.canton,
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ import { vetTokens } from './coins/vetTokens';
import { cosmosTokens } from './coins/cosmosTokens';
import { jettonTokens } from './coins/jettonTokens';
import { polyxTokens } from './coins/polyxTokens';
import { cantonTokens } from './coins/cantonTokens';
import { flrp } from './flrp';
import {
ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_SINGAPORE_AND_MENA_FZE,
Expand Down Expand Up @@ -159,6 +160,7 @@ export const allCoinsAndTokens = [
...adaTokens,
...jettonTokens,
...polyxTokens,
...cantonTokens,
avaxp(
'5436386e-9e4d-4d82-92df-59d9720d1738',
'avaxp',
Expand Down
4 changes: 4 additions & 0 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3534,6 +3534,10 @@ export enum UnderlyingAsset {
'ada:usda' = 'ada:usda',
'ada:night' = 'ada:night',

// Canton testnet tokens
'tcanton:testcoin1' = 'tcanton:testcoin1',
'tcanton:testtoken' = 'tcanton:testtoken',

// fiats
AED = 'aed',
EUR = 'eur',
Expand Down
10 changes: 10 additions & 0 deletions modules/statics/src/coinFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -755,3 +755,13 @@ export const CANTON_FEATURES = [
CoinFeature.ALPHANUMERIC_MEMO_ID,
CoinFeature.SUPPORTS_TOKENS,
];

export const CANTON_TOKEN_FEATURES = [
...ACCOUNT_COIN_DEFAULT_FEATURES,
CoinFeature.TSS,
CoinFeature.TSS_COLD,
CoinFeature.SUPPORTS_ONE_STEP_DEPOSIT,
CoinFeature.REQUIRES_WALLET_INITIALIZATION_TRANSACTION,
CoinFeature.REQUIRES_DEPOSIT_ACCEPTANCE_TRANSACTION,
CoinFeature.ALPHANUMERIC_MEMO_ID,
];
29 changes: 29 additions & 0 deletions modules/statics/src/coins/cantonTokens.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { tcantonToken } from '../account';
import { UnderlyingAsset } from '../base';
import { CANTON_TOKEN_FEATURES } from '../coinFeatures';

export const cantonTokens = [
// testnet tokens
tcantonToken(
'46356790-0ac4-4c3b-8b70-39094106d772',
'tcanton:testcoin1',
'Test Coin 1',
10,
'https://api.utilities.digitalasset-dev.com/api/token-standard/v0/registrars/',
'TestCoin1',
'auth0_007c65f857f1c3d599cb6df73775::1220d2d732d042c281cee80f483ab80f3cbaa4782860ed5f4dc228ab03dedd2ee8f9',
UnderlyingAsset['tcanton:testcoin1'],
CANTON_TOKEN_FEATURES
),
tcantonToken(
'76e5e451-ce0b-481f-ba6a-79d95fb48b63',
'tcanton:testtoken',
'Test Token',
10,
'https://api.utilities.digitalasset-dev.com/api/token-standard/v0/registrars/',
'TestToken',
'auth0_007c65f857f1c3d599cb6df73775::1220d2d732d042c281cee80f483ab80f3cbaa4782860ed5f4dc228ab03dedd2ee8f9',
UnderlyingAsset['tcanton:testtoken'],
CANTON_TOKEN_FEATURES
),
];