Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove old testnet pool config #32

Merged
merged 2 commits into from
Nov 11, 2024
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
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
Loading