Skip to content

Commit

Permalink
remove old testnet pool config (#32)
Browse files Browse the repository at this point in the history
* remove old testnet pool config

* fix test errors

---------

Co-authored-by: shan <[email protected]>
  • Loading branch information
shan-57blocks and shan57blocks authored Nov 11, 2024
1 parent f7d8462 commit d3d4f71
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 32 deletions.
24 changes: 0 additions & 24 deletions packages/sdk/src/utils/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,30 +97,6 @@ export const NetworkMetadatas: NetworkMetadata[] = [
networkPassphrase: StellarNetworkPassphrase.testnet,
rpcUrl: StellarPublicRpcUrl.testnet,
pools: [
{
poolName: POOL_NAME.Arf,
poolType: POOL_TYPE.Creditline,
contracts: {
humaConfig:
'CBPPUTDLFGA73HFDLT45EXS2MBUK3ISNRM3CRJ5AGPQS2MY3JIWCNZ5R',
poolStorage:
'CAV6Q25V3HFVCU5NGCHMVRHXD6IOU5HZNB453VH3CJIQ4E55RM7QU7I4',
pool: 'CCKEISAFFQIB44Y4OMOSDRXNSFBS5CBJHLPE2YU6INHU2IMWQDXOYW3H',
poolManager:
'CDHPUBZZZHCLZ7DC42EMRUJTEXRW7R3IX2VBYM7NUNFCT3BMLWWWZJG3',
poolCredit:
'CAEGLPFETWBCFSKIKFPN7VY6SRAQHLW42N6FFJ6IRO6IBEECVVJQKHQ7',
creditManager:
'CAF346JT7XMFUZWHX2QKDIHDBQMMZOUPVA7Q4C2PRP7HOO6SMOGPKC7F',
creditStorage:
'CDXG5THQJWEKY6XO6VH673J5KYUAU5Q2FPGLWO4YM2TXYMXEOEQOE4DZ',
juniorTranche:
'CCDCJ5PYATGWFBNSVISW5B4GMSOTJSMK2T7TOB6XLIUA66OCSGPKB3RV',
underlyingToken:
'CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA',
},
borrowers: ['GBK62KZMUVEKLGGB3UYCRUP2BVDUE6UEZWUHPUNJ54BKFDTW4CNSF6O7'],
},
{
poolName: POOL_NAME.Roam,
poolType: POOL_TYPE.Creditline,
Expand Down
14 changes: 7 additions & 7 deletions packages/sdk/tests/helpers/CreditContractHelper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('getAvailableBalanceForPool', () => {

const result = await getAvailableBalanceForPool(
POOL_NAME.Arf,
StellarNetwork.testnet,
StellarNetwork.mainnet,
wallet,
)
expect(result).toBe(100n)
Expand All @@ -59,7 +59,7 @@ describe('getCreditRecordForPool', () => {
})

const mockPoolName = POOL_NAME.Arf
const mockNetwork = StellarNetwork.testnet
const mockNetwork = StellarNetwork.mainnet
const mockWallet = new StellarWallet(
'SB2EYCOYEITOLL5NTD5ADVHFLZWPMQCMAZ33R4FP5GS3KLG3TA63WKPO',
)
Expand Down Expand Up @@ -122,7 +122,7 @@ describe('getAvailableCreditForPool', () => {
})

const mockPoolName = POOL_NAME.Arf
const mockNetwork = StellarNetwork.testnet
const mockNetwork = StellarNetwork.mainnet
const mockWallet = new StellarWallet(
'SB2EYCOYEITOLL5NTD5ADVHFLZWPMQCMAZ33R4FP5GS3KLG3TA63WKPO',
)
Expand Down Expand Up @@ -192,7 +192,7 @@ describe('getTotalDue', () => {
})

const mockPoolName = POOL_NAME.Arf
const mockNetwork = StellarNetwork.testnet
const mockNetwork = StellarNetwork.mainnet
const mockWallet = new StellarWallet(
'SB2EYCOYEITOLL5NTD5ADVHFLZWPMQCMAZ33R4FP5GS3KLG3TA63WKPO',
)
Expand Down Expand Up @@ -235,7 +235,7 @@ describe('approveAllowanceForSentinel', () => {
})

const mockPoolName = POOL_NAME.Arf
const mockNetwork = StellarNetwork.testnet
const mockNetwork = StellarNetwork.mainnet
const mockWallet = new StellarWallet(
'SB2EYCOYEITOLL5NTD5ADVHFLZWPMQCMAZ33R4FP5GS3KLG3TA63WKPO',
)
Expand Down Expand Up @@ -286,7 +286,7 @@ describe('drawdown', () => {
})

const mockPoolName = POOL_NAME.Arf
const mockNetwork = StellarNetwork.testnet
const mockNetwork = StellarNetwork.mainnet
const mockWallet = new StellarWallet(
'SB2EYCOYEITOLL5NTD5ADVHFLZWPMQCMAZ33R4FP5GS3KLG3TA63WKPO',
)
Expand Down Expand Up @@ -331,7 +331,7 @@ describe('makePayment', () => {
})

const mockPoolName = POOL_NAME.Arf
const mockNetwork = StellarNetwork.testnet
const mockNetwork = StellarNetwork.mainnet
const mockWallet = new StellarWallet(
'SB2EYCOYEITOLL5NTD5ADVHFLZWPMQCMAZ33R4FP5GS3KLG3TA63WKPO',
)
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/tests/helpers/Sep41ContractHelper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jest.mock('../../src/utils/common', () => ({

describe('approveSep41AllowanceIfInsufficient', () => {
const mockPoolName = POOL_NAME.Arf
const mockNetwork = StellarNetwork.testnet
const mockNetwork = StellarNetwork.mainnet
const mockWallet = new StellarWallet(
'SB2EYCOYEITOLL5NTD5ADVHFLZWPMQCMAZ33R4FP5GS3KLG3TA63WKPO',
)
Expand Down

0 comments on commit d3d4f71

Please sign in to comment.