Skip to content

Commit 1762816

Browse files
committed
fix: make VetNFTCollection extend NFTCollectionIdDefinedToken
Ticket: COIN-5253
1 parent c31e25c commit 1762816

File tree

3 files changed

+1
-119
lines changed

3 files changed

+1
-119
lines changed

modules/statics/src/account.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,13 +589,11 @@ export class AptNFTCollection extends NFTCollectionIdDefinedToken {}
589589
* The Vechain network supports non-fungible tokens
590590
* Every NFT belongs to an NFT collection(contract).
591591
*/
592-
export class VetNFTCollection extends AccountCoinToken {
593-
public nftCollectionId: string;
592+
export class VetNFTCollection extends NFTCollectionIdDefinedToken {
594593
public gasTankToken?: string;
595594

596595
constructor(options: NFTCollectionIdConstructorOptions & { gasTankToken?: string }) {
597596
super(options);
598-
this.nftCollectionId = options.nftCollectionId;
599597
this.gasTankToken = options.gasTankToken;
600598
}
601599
}

modules/statics/src/coins.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ import {
4747
tsuiToken,
4848
ttaoToken,
4949
ttronToken,
50-
tvetNFTCollection,
5150
tworldErc20,
5251
txrpToken,
5352
tzkethErc20,
@@ -4241,22 +4240,6 @@ export const coins = CoinMap.fromCoins([
42414240
UnderlyingAsset['tapt:beta3loanbook'],
42424241
APT_FEATURES
42434242
),
4244-
vetNFTCollection(
4245-
'4f56375d-f682-4045-a3a2-cabb29556c07',
4246-
'vet:sdt',
4247-
'StarGate Delegator Token',
4248-
'0x1856c533ac2d94340aaa8544d35a5c1d4a21dee7',
4249-
UnderlyingAsset['vet:sdt'],
4250-
VET_FEATURES
4251-
),
4252-
tvetNFTCollection(
4253-
'dd710759-1b87-4435-bef5-db377040deaf',
4254-
'tvet:sdt',
4255-
'Testnet StarGate Delegator Token',
4256-
'0x1ec1d168574603ec35b9d229843b7c2b44bcb770',
4257-
UnderlyingAsset['tvet:sdt'],
4258-
VET_FEATURES
4259-
),
42604243
fiat('3f89b1f5-4ada-49c0-a613-15e484d42426', 'fiatusd', 'US Dollar', Networks.main.fiat, 2, UnderlyingAsset.USD),
42614244
fiat(
42624245
'8691cc4f-a425-4192-b6cb-3b0b6f646cbc',

modules/statics/test/unit/resources/amsTokenConfig.ts

Lines changed: 0 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -618,105 +618,6 @@ export const amsTokenConfig = {
618618
contractAddress: '0xterc1155:bsctoken',
619619
},
620620
],
621-
'tvet:sdt': [
622-
{
623-
id: 'dd710759-1b87-4435-bef5-db377040deaf',
624-
fullName: 'Testnet StarGate Delegator Token',
625-
name: 'tvet:sdt',
626-
prefix: 't',
627-
suffix: 'TVET:SDT',
628-
baseUnit: 'wei',
629-
kind: 'crypto',
630-
family: 'vet',
631-
isToken: true,
632-
features: [
633-
'account-model',
634-
'requires-big-number',
635-
'valueless-transfer',
636-
'transaction-data',
637-
'custody',
638-
'custody-bitgo-trust',
639-
'custody-bitgo-mena-fze',
640-
'custody-bitgo-custody-mena-fze',
641-
'custody-bitgo-singapore',
642-
'custody-bitgo-korea',
643-
'custody-bitgo-europe-aps',
644-
'custody-bitgo-frankfurt',
645-
'custody-bitgo-india',
646-
'tss',
647-
'tss-cold',
648-
'supports-tokens',
649-
'enterprise-pays-fees',
650-
'tss-enterprise-pays-fees',
651-
'fees-paid-with-token',
652-
'mpcv2',
653-
],
654-
decimalPlaces: 0,
655-
asset: 'tvet:sdt',
656-
network: {
657-
type: 'testnet',
658-
name: 'VeChainTestnet',
659-
family: 'vet',
660-
explorerUrl: 'https://explore-testnet.vechain.org/transactions/',
661-
accountExplorerUrl: 'https://explore-testnet.vechain.org/accounts/',
662-
chainId: 100010,
663-
forwarderFactoryAddress: '0x65343e18c376d2fc8c3cf10cd146d63e2e0dc9ef',
664-
forwarderImplementationAddress: '0x62de34c87f847d385af07f6c25dbd97b1fffefc0',
665-
},
666-
primaryKeyCurve: 'secp256k1',
667-
nftCollectionId: '0x1ec1d168574603ec35b9d229843b7c2b44bcb770',
668-
gasTankToken: 'TVET:VTHO',
669-
},
670-
],
671-
'tvet:vtho': [
672-
{
673-
id: '27dd32d2-7311-4552-9beb-c57f76d09205',
674-
fullName: 'Testnet VeThor',
675-
name: 'tvet:vtho',
676-
prefix: '',
677-
suffix: 'TVET:VTHO',
678-
baseUnit: 'wei',
679-
kind: 'crypto',
680-
family: 'vet',
681-
isToken: true,
682-
features: [
683-
'account-model',
684-
'requires-big-number',
685-
'valueless-transfer',
686-
'transaction-data',
687-
'custody',
688-
'custody-bitgo-trust',
689-
'custody-bitgo-mena-fze',
690-
'custody-bitgo-custody-mena-fze',
691-
'custody-bitgo-singapore',
692-
'custody-bitgo-korea',
693-
'custody-bitgo-europe-aps',
694-
'custody-bitgo-frankfurt',
695-
'custody-bitgo-india',
696-
'tss',
697-
'tss-cold',
698-
'enterprise-pays-fees',
699-
'tss-enterprise-pays-fees',
700-
'mpcv2',
701-
'fees-paid-with-token',
702-
],
703-
decimalPlaces: 18,
704-
asset: 'tvet:vtho',
705-
network: {
706-
type: 'testnet',
707-
name: 'VeChainTestnet',
708-
family: 'vet',
709-
explorerUrl: 'https://explore-testnet.vechain.org/transactions/',
710-
accountExplorerUrl: 'https://explore-testnet.vechain.org/accounts/',
711-
chainId: 100010,
712-
forwarderFactoryAddress: '0x65343e18c376d2fc8c3cf10cd146d63e2e0dc9ef',
713-
forwarderImplementationAddress: '0x62de34c87f847d385af07f6c25dbd97b1fffefc0',
714-
},
715-
primaryKeyCurve: 'secp256k1',
716-
contractAddress: '0x0000000000000000000000000000456e65726779',
717-
gasTankToken: 'TVET:VTHO',
718-
},
719-
],
720621
};
721622

722623
export const amsTokenConfigWithCustomToken = {

0 commit comments

Comments
 (0)