Skip to content

Commit

Permalink
test: fix integration tests after adding government deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Sep 29, 2023
1 parent a52a621 commit 6670000
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 98 deletions.
2 changes: 1 addition & 1 deletion subgraphs/isolated-pools/config/local.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"network": "hardhat",
"poolRegistryAddress": "0x5bf5b11053e734690269c6b9d438f8c9d48f528a",
"poolRegistryAddress": "0xffa7CA1AEEEbBc30C874d32C7e22F052BbEa0429",
"poolLensAddress": "0x3aade2dcd2df6a8cac689ee797591b2913658659",
"startBlock": 0
}
99 changes: 50 additions & 49 deletions subgraphs/isolated-pools/tests/integration/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ export const SYNC_DELAY = 2000;

export const defaultMarkets = [
{
id: '0x2a810409872afc346f9b5b26571fd6ec42ea4849',
id: '0x8a93d247134d91e0de6f96547cb0204e5be8e5d8',
pool: {
id: '0xe3011a37a904ab90c8881a99bd1f6e21401f1522',
id: '0x457ccf29090fe5a24c19c1bc95f492168c0eafdb',
__typename: 'Pool',
},
badDebtMantissa: '0',
borrowRateMantissa: '0',
cashMantissa: '10000000000000000000',
collateralFactorMantissa: '700000000000000000',
exchangeRateMantissa: '10000000000000000000000000000',
interestRateModelAddress: '0x5fc748f1feb28d7b76fa1c6b07d8ba2d5535177c',
interestRateModelAddress: '0x2a810409872afc346f9b5b26571fd6ec42ea4849',
name: 'Venus ANKR',
reservesMantissa: '0',
supplyRateMantissa: '0',
symbol: 'vANKR',
underlyingAddress: '0x36c02da8a0983159322a80ffe9f24b1acff8b570',
underlyingAddress: '0x1291be112d480055dafd8a610b7d1e203891c274',
underlyingName: 'MockANKR',
underlyingSymbol: 'MockANKR',
borrowCapMantissa: '3000000000000000000000000',
Expand All @@ -39,22 +39,22 @@ export const defaultMarkets = [
__typename: 'Market',
},
{
id: '0x38a024c0b412b9d1db8bc398140d00f5af3093d4',
id: '0xb82008565fdc7e44609fa118a4a681e92581e680',
pool: {
id: '0xab16a69a5a8c12c732e0deff4be56a70bb64c926',
id: '0x1f10f3ba7acb61b2f50b9d6ddcf91a6f787c0e82',
__typename: 'Pool',
},
badDebtMantissa: '0',
borrowRateMantissa: '951293759',
borrowRateMantissa: '0',
cashMantissa: '10000000000000000000',
collateralFactorMantissa: '600000000000000000',
exchangeRateMantissa: '10000000000000000000000000000',
interestRateModelAddress: '0x525c7063e7c20997baae9bda922159152d0e8417',
interestRateModelAddress: '0x5fc748f1feb28d7b76fa1c6b07d8ba2d5535177c',
name: 'Venus BNX',
reservesMantissa: '0',
supplyRateMantissa: '0',
symbol: 'vBNX',
underlyingAddress: '0x1613beb3b2c4f22ee086b2b38c1476a3ce7f78e8',
underlyingAddress: '0x95401dc811bb5740090279ba06cfa8fcf6113778',
underlyingName: 'MockBNX',
underlyingSymbol: 'MockBNX',
borrowCapMantissa: '478980000000000000000000',
Expand All @@ -72,22 +72,22 @@ export const defaultMarkets = [
__typename: 'Market',
},
{
id: '0x40918ba7f132e0acba2ce4de4c4baf9bd2d7d849',
id: '0xd6e1afe5ca8d00a2efc01b89997abe2de47fdfaf',
pool: {
id: '0xe3011a37a904ab90c8881a99bd1f6e21401f1522',
id: '0x457ccf29090fe5a24c19c1bc95f492168c0eafdb',
__typename: 'Pool',
},
badDebtMantissa: '0',
borrowRateMantissa: '951293759',
borrowRateMantissa: '0',
cashMantissa: '10000000000000000000',
collateralFactorMantissa: '600000000000000000',
exchangeRateMantissa: '10000000000000000000000000000',
interestRateModelAddress: '0x525c7063e7c20997baae9bda922159152d0e8417',
interestRateModelAddress: '0x5fc748f1feb28d7b76fa1c6b07d8ba2d5535177c',
name: 'Venus NFT',
reservesMantissa: '0',
supplyRateMantissa: '0',
symbol: 'vNFT',
underlyingAddress: '0x7969c5ed335650692bc04293b07f5bf2e7a673c0',
underlyingAddress: '0xfd471836031dc5108809d173a067e8486b9047a3',
underlyingName: 'MockNFT',
underlyingSymbol: 'MockNFT',
borrowCapMantissa: '24654278679000000000000000000',
Expand All @@ -105,22 +105,22 @@ export const defaultMarkets = [
__typename: 'Market',
},
{
id: '0x8a93d247134d91e0de6f96547cb0204e5be8e5d8',
id: '0xf32d39ff9f6aa7a7a64d7a4f00a54826ef791a55',
pool: {
id: '0xe3011a37a904ab90c8881a99bd1f6e21401f1522',
id: '0x457ccf29090fe5a24c19c1bc95f492168c0eafdb',
__typename: 'Pool',
},
badDebtMantissa: '0',
borrowRateMantissa: '0',
cashMantissa: '10000000000000000000',
collateralFactorMantissa: '700000000000000000',
exchangeRateMantissa: '10000000000000000000000000000',
interestRateModelAddress: '0x5fc748f1feb28d7b76fa1c6b07d8ba2d5535177c',
interestRateModelAddress: '0x2a810409872afc346f9b5b26571fd6ec42ea4849',
name: 'Venus MBOX',
reservesMantissa: '0',
supplyRateMantissa: '0',
symbol: 'vMBOX',
underlyingAddress: '0xcd8a1c3ba11cf5ecfa6267617243239504a98d90',
underlyingAddress: '0x7969c5ed335650692bc04293b07f5bf2e7a673c0',
underlyingName: 'MockMBOX',
underlyingSymbol: 'MockMBOX',
borrowCapMantissa: '3184294000000000000000000',
Expand All @@ -138,22 +138,22 @@ export const defaultMarkets = [
__typename: 'Market',
},
{
id: '0x99dbe4aea58e518c50a1c04ae9b48c9f6354612f',
id: '0xca8c8688914e0f7096c920146cd0ad85cd7ae8b9',
pool: {
id: '0xe3011a37a904ab90c8881a99bd1f6e21401f1522',
id: '0x457ccf29090fe5a24c19c1bc95f492168c0eafdb',
__typename: 'Pool',
},
badDebtMantissa: '0',
borrowRateMantissa: '0',
cashMantissa: '10000000000000000000',
collateralFactorMantissa: '700000000000000000',
exchangeRateMantissa: '10000000000000000000000000000',
interestRateModelAddress: '0x5fc748f1feb28d7b76fa1c6b07d8ba2d5535177c',
interestRateModelAddress: '0x2a810409872afc346f9b5b26571fd6ec42ea4849',
name: 'Venus USDD',
reservesMantissa: '0',
supplyRateMantissa: '0',
symbol: 'vUSDD',
underlyingAddress: '0x5081a39b8a5f0e35a8d959395a630b68b74dd30f',
underlyingAddress: '0x04c89607413713ec9775e14b954286519d836fef',
underlyingName: 'MockUSDD',
underlyingSymbol: 'MockUSDD',
borrowCapMantissa: '1698253000000000000000000',
Expand All @@ -171,22 +171,22 @@ export const defaultMarkets = [
__typename: 'Market',
},
{
id: '0xb82008565fdc7e44609fa118a4a681e92581e680',
id: '0xb9beecd1a582768711de1ee7b0a1d582d9d72a6c',
pool: {
id: '0xab16a69a5a8c12c732e0deff4be56a70bb64c926',
id: '0x1f10f3ba7acb61b2f50b9d6ddcf91a6f787c0e82',
__typename: 'Pool',
},
badDebtMantissa: '0',
borrowRateMantissa: '0',
cashMantissa: '10000000000000000000',
collateralFactorMantissa: '700000000000000000',
exchangeRateMantissa: '10000000000000000000000000000',
interestRateModelAddress: '0x5fc748f1feb28d7b76fa1c6b07d8ba2d5535177c',
interestRateModelAddress: '0x2a810409872afc346f9b5b26571fd6ec42ea4849',
name: 'Venus BTCB',
reservesMantissa: '0',
supplyRateMantissa: '0',
symbol: 'vBTCB',
underlyingAddress: '0x95401dc811bb5740090279ba06cfa8fcf6113778',
underlyingAddress: '0x4826533b4897376654bb4d4ad88b7fafd0c98528',
underlyingName: 'MockBTCB',
underlyingSymbol: 'MockBTCB',
borrowCapMantissa: '1000000000000000000000',
Expand All @@ -204,22 +204,22 @@ export const defaultMarkets = [
__typename: 'Market',
},
{
id: '0xb9beecd1a582768711de1ee7b0a1d582d9d72a6c',
id: '0x40918ba7f132e0acba2ce4de4c4baf9bd2d7d849',
pool: {
id: '0xe3011a37a904ab90c8881a99bd1f6e21401f1522',
id: '0x457ccf29090fe5a24c19c1bc95f492168c0eafdb',
__typename: 'Pool',
},
badDebtMantissa: '0',
borrowRateMantissa: '951293759',
cashMantissa: '10000000000000000000',
collateralFactorMantissa: '600000000000000000',
exchangeRateMantissa: '10000000000000000000000000000',
interestRateModelAddress: '0x525c7063e7c20997baae9bda922159152d0e8417',
interestRateModelAddress: '0x5fc748f1feb28d7b76fa1c6b07d8ba2d5535177c',
name: 'Venus ankrBNB',
reservesMantissa: '0',
supplyRateMantissa: '0',
symbol: 'vankrBNB',
underlyingAddress: '0x1291be112d480055dafd8a610b7d1e203891c274',
underlyingAddress: '0xcd8a1c3ba11cf5ecfa6267617243239504a98d90',
underlyingName: 'MockankrBNB',
underlyingSymbol: 'MockankrBNB',
borrowCapMantissa: '100000000000000000000',
Expand All @@ -237,22 +237,22 @@ export const defaultMarkets = [
__typename: 'Market',
},
{
id: '0xd6e1afe5ca8d00a2efc01b89997abe2de47fdfaf',
id: '0x6f6f570f45833e249e27022648a26f4076f48f78',
pool: {
id: '0xe3011a37a904ab90c8881a99bd1f6e21401f1522',
id: '0x457ccf29090fe5a24c19c1bc95f492168c0eafdb',
__typename: 'Pool',
},
badDebtMantissa: '0',
borrowRateMantissa: '951293759',
borrowRateMantissa: '0',
cashMantissa: '10000000000000000000',
collateralFactorMantissa: '600000000000000000',
exchangeRateMantissa: '10000000000000000000000000000',
interestRateModelAddress: '0x525c7063e7c20997baae9bda922159152d0e8417',
interestRateModelAddress: '0x5fc748f1feb28d7b76fa1c6b07d8ba2d5535177c',
name: 'Venus stkBNB',
reservesMantissa: '0',
supplyRateMantissa: '0',
symbol: 'vstkBNB',
underlyingAddress: '0xb0d4afd8879ed9f52b28595d31b441d079b2ca07',
underlyingAddress: '0x5081a39b8a5f0e35a8d959395a630b68b74dd30f',
underlyingName: 'MockstkBNB',
underlyingSymbol: 'MockstkBNB',
borrowCapMantissa: '324000000000000000000',
Expand All @@ -270,22 +270,22 @@ export const defaultMarkets = [
__typename: 'Market',
},
{
id: '0xf32d39ff9f6aa7a7a64d7a4f00a54826ef791a55',
id: '0x99dbe4aea58e518c50a1c04ae9b48c9f6354612f',
pool: {
id: '0xe3011a37a904ab90c8881a99bd1f6e21401f1522',
id: '0x457ccf29090fe5a24c19c1bc95f492168c0eafdb',
__typename: 'Pool',
},
badDebtMantissa: '0',
borrowRateMantissa: '951293759',
borrowRateMantissa: '0',
cashMantissa: '10000000000000000000',
collateralFactorMantissa: '600000000000000000',
exchangeRateMantissa: '10000000000000000000000000000',
interestRateModelAddress: '0x525c7063e7c20997baae9bda922159152d0e8417',
interestRateModelAddress: '0x5fc748f1feb28d7b76fa1c6b07d8ba2d5535177c',
name: 'Venus RACA',
reservesMantissa: '0',
supplyRateMantissa: '0',
symbol: 'vRACA',
underlyingAddress: '0xfd471836031dc5108809d173a067e8486b9047a3',
underlyingAddress: '0xb0d4afd8879ed9f52b28595d31b441d079b2ca07',
underlyingName: 'MockRACA',
underlyingSymbol: 'MockRACA',
borrowCapMantissa: '3805812642000000000000000000',
Expand All @@ -303,34 +303,35 @@ export const defaultMarkets = [
__typename: 'Market',
},
];

export const defaultPools = [
{
id: '0xab16a69a5a8c12c732e0deff4be56a70bb64c926',
id: '0x1f10f3ba7acb61b2f50b9d6ddcf91a6f787c0e82',
name: 'Pool 1',
creator: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
blockPosted: '235',
blockPosted: '238',
timestampPosted: '1694787800',
category: '',
logoUrl: '',
description: '',
priceOracleAddress: '0x68b1d87f95878fe05b998f19b66f4baba5de1aed',
priceOracleAddress: '0x59b670e9fa9d0a427751af201d676719a970857b',
closeFactorMantissa: '500000000000000000',
liquidationIncentiveMantissa: '3000000000000000000',
minLiquidatableCollateralMantissa: '200000000000000000000',
liquidationIncentiveMantissa: '1000000000000000000',
minLiquidatableCollateralMantissa: '100000000000000000000',
markets: [Array],
__typename: 'Pool',
},
{
id: '0xe3011a37a904ab90c8881a99bd1f6e21401f1522',
id: '0x457ccf29090fe5a24c19c1bc95f492168c0eafdb',
name: 'Pool 2',
creator: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
blockPosted: '237',
blockPosted: '240',
timestampPosted: '1694787802',
category: '',
logoUrl: '',
description: '',
priceOracleAddress: '0x68b1d87f95878fe05b998f19b66f4baba5de1aed',
closeFactorMantissa: '50000000000000000',
priceOracleAddress: '0x59b670e9fa9d0a427751af201d676719a970857b',
closeFactorMantissa: '500000000000000000',
liquidationIncentiveMantissa: '1000000000000000000',
minLiquidatableCollateralMantissa: '100000000000000000000',
markets: [Array],
Expand Down
Loading

0 comments on commit 6670000

Please sign in to comment.