Skip to content

Commit 3a9322c

Browse files
authored
Merge pull request #7125 from BitGo/SC-2604-unonboard-unsteth
fix(statics): un-onboard unstETH NFT
2 parents 5040d7e + 3a76000 commit 3a9322c

File tree

4 files changed

+0
-86
lines changed

4 files changed

+0
-86
lines changed

modules/bitgo/test/v2/resources/amsTokenConfig.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,4 @@ export const reducedAmsTokenConfig = {
2121
contractAddress: '0x89a959b9184b4f8c8633646d5dfd049d2ebc983a',
2222
},
2323
],
24-
'terc721:unsteth': [
25-
{
26-
id: '49ff49ea-3355-4717-bbb0-5e8f5cae2201',
27-
fullName: 'Test Lido: stETH Withdrawal NFT',
28-
name: 'terc721:unsteth',
29-
prefix: '',
30-
suffix: '',
31-
baseUnit: 'wei',
32-
kind: 'crypto',
33-
family: 'eth',
34-
isToken: true,
35-
additionalFeatures: [],
36-
excludedFeatures: [],
37-
decimalPlaces: 0,
38-
asset: 'terc721:unsteth',
39-
network: {
40-
name: 'Hoodi',
41-
},
42-
contractAddress: '0xfe56573178f1bcdf53f01a6e9977670dcbbd9186',
43-
},
44-
],
4524
};

modules/bitgo/test/v2/unit/ams/ams.ts

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -46,53 +46,6 @@ describe('Asset metadata service', () => {
4646
coin.tokenContractAddress.should.equal('0x89a959b9184b4f8c8633646d5dfd049d2ebc983a');
4747
});
4848

49-
describe('ERC721 NFTs', () => {
50-
it('should create a custom coin factory from ams response', async () => {
51-
bitgo.initCoinFactory(reducedAmsTokenConfig);
52-
const coin = bitgo.coin('erc721:unsteth');
53-
should.exist(coin);
54-
coin.type.should.equal('erc721:unsteth');
55-
coin.name.should.equal('Lido: stETH Withdrawal NFT');
56-
coin.decimalPlaces.should.equal(0);
57-
coin.tokenContractAddress.should.equal('0x889edc2edab5f40e902b864ad4d7ade8e412f9b1');
58-
});
59-
60-
it('should be able to register an nft in the coin factory', () => {
61-
const nftName = 'terc721:unsteth';
62-
bitgo.registerToken(nftName);
63-
const coin = bitgo.coin(nftName);
64-
should.exist(coin);
65-
coin.type.should.equal(nftName);
66-
coin.name.should.equal('Test Lido: stETH Withdrawal NFT');
67-
coin.decimalPlaces.should.equal(0);
68-
coin.tokenContractAddress.should.equal('0xfe56573178f1bcdf53f01a6e9977670dcbbd9186');
69-
});
70-
71-
it('should fetch all assets from AMS and initialize the coin factory', async () => {
72-
const bitgo = TestBitGo.decorate(BitGo, { env: 'mock', microservicesUri, useAms: true } as BitGoOptions);
73-
bitgo.initializeTestVars();
74-
75-
// Setup nocks
76-
nock(microservicesUri).get('/api/v1/assets/list/testnet').reply(200, reducedAmsTokenConfig);
77-
78-
await bitgo.registerAllTokens();
79-
const coin = bitgo.coin('terc721:unsteth');
80-
should.exist(coin);
81-
});
82-
83-
it('should fetch nft from default coin factory when useAms is false', () => {
84-
const bitgoNoAms = TestBitGo.decorate(BitGo, { env: 'mock', microservicesUri, useAms: false } as BitGoOptions);
85-
bitgoNoAms.initializeTestVars();
86-
bitgoNoAms.initCoinFactory(reducedAmsTokenConfig);
87-
const coin: any = bitgoNoAms.coin('erc721:unsteth');
88-
should.exist(coin);
89-
coin.type.should.equal('erc721:unsteth');
90-
coin.name.should.equal('Lido: stETH Withdrawal NFT');
91-
coin.decimalPlaces.should.equal(0);
92-
coin.tokenContractAddress.should.equal('0x889edc2edab5f40e902b864ad4d7ade8e412f9b1');
93-
});
94-
});
95-
9649
it('should fetch all assets from AMS and initialize the coin factory', async () => {
9750
const bitgo = TestBitGo.decorate(BitGo, { env: 'mock', microservicesUri, useAms: true } as BitGoOptions);
9851
bitgo.initializeTestVars();

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3032,20 +3032,6 @@ export const allCoinsAndTokens = [
30323032
'',
30333033
Networks.test.hoodi
30343034
),
3035-
erc721(
3036-
'30d034ae-41fd-4da2-bbb2-05fe1e301108',
3037-
'erc721:unsteth',
3038-
'Lido: stETH Withdrawal NFT',
3039-
'0x889edc2edab5f40e902b864ad4d7ade8e412f9b1',
3040-
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.RESTRICTED]
3041-
),
3042-
terc721(
3043-
'05ce9121-45e0-4e9c-941b-1aa95bedfcc5',
3044-
'terc721:unsteth',
3045-
'Test Lido: stETH Withdrawal NFT',
3046-
'0xfe56573178f1bcdf53f01a6e9977670dcbbd9186',
3047-
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.RESTRICTED]
3048-
),
30493035
terc721(
30503036
'e795fc78-b8a7-47a1-8294-5ecbe8a74c3a',
30513037
'terc721:bitgoerc721',

modules/statics/src/base.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2849,10 +2849,6 @@ export enum UnderlyingAsset {
28492849
'tsoneium:test721' = 'tsoneium:test721',
28502850
'tsoneium:test1155' = 'tsoneium:test1155',
28512851

2852-
// Lido ETH NFTs
2853-
'erc721:unsteth' = 'erc721:unsteth',
2854-
'terc721:unsteth' = 'terc721:unsteth',
2855-
28562852
// coredao mainnet tokens
28572853
'coredao:stcore' = 'coredao:stcore',
28582854

0 commit comments

Comments
 (0)