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
4 changes: 4 additions & 0 deletions modules/account-lib/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ const coinMessageBuilderFactoryMap = {
tpolygon: Eth.MessageBuilderFactory,
seievm: Eth.MessageBuilderFactory,
tseievm: Eth.MessageBuilderFactory,
flr: Eth.MessageBuilderFactory,
tflr: Eth.MessageBuilderFactory,
mon: Eth.MessageBuilderFactory,
tmon: Eth.MessageBuilderFactory,
};

coins
Expand Down
10 changes: 10 additions & 0 deletions modules/sdk-coin-flr/src/flr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ export class Flr extends AbstractEthLikeNewCoins {
return 'ecdsa';
}

/** @inheritDoc */
supportsMessageSigning(): boolean {
return true;
}

/** @inheritDoc */
supportsSigningTypedData(): boolean {
return true;
}

protected async buildUnsignedSweepTxnTSS(params: RecoverOptions): Promise<OfflineVaultTxInfo | UnsignedSweepTxMPCv2> {
return this.buildUnsignedSweepTxnMPCv2(params);
}
Expand Down
10 changes: 10 additions & 0 deletions modules/sdk-coin-mon/src/mon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ export class Mon extends AbstractEthLikeNewCoins {
return 'ecdsa';
}

/** @inheritDoc */
supportsMessageSigning(): boolean {
return true;
}

/** @inheritDoc */
supportsSigningTypedData(): boolean {
return true;
}

protected async buildUnsignedSweepTxnTSS(params: RecoverOptions): Promise<OfflineVaultTxInfo | UnsignedSweepTxMPCv2> {
return this.buildUnsignedSweepTxnMPCv2(params);
}
Expand Down
8 changes: 7 additions & 1 deletion modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,12 @@ export const allCoinsAndTokens = [
18,
UnderlyingAsset.MON,
BaseUnit.ETH,
[...EVM_FEATURES, CoinFeature.SHARED_EVM_SIGNING, CoinFeature.SUPPORTS_ERC20]
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_MESSAGE_SIGNING,
CoinFeature.SUPPORTS_ERC20,
]
),
account(
'5c5ebe50-fa27-4312-ae3d-7032520aedb5',
Expand All @@ -1525,6 +1530,7 @@ export const allCoinsAndTokens = [
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.SHARED_EVM_MESSAGE_SIGNING,
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
CoinFeature.EVM_NON_BITGO_RECOVERY,
CoinFeature.SUPPORTS_ERC20,
Expand Down
1 change: 1 addition & 0 deletions modules/statics/src/coinFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ export const FLR_FEATURES = [
CoinFeature.MULTISIG_SUPPORT_GATED,
CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA,
CoinFeature.ERC20_BULK_TRANSACTION,
CoinFeature.SHARED_EVM_MESSAGE_SIGNING,
];

export const WFLR_FEATURES = [...ACCOUNT_COIN_DEFAULT_FEATURES, CoinFeature.STABLECOIN, CoinFeature.STAKING];
Expand Down