@instadapp/interop-x 0.0.0-dev.8965b57 → 0.0.0-dev.8d83ec0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +12 -11
- package/dist/src/abi/interopXContract.json +73 -10
- package/dist/src/constants/addresses.js +7 -7
- package/dist/src/constants/tokens.js +44 -51
- package/dist/src/db/models/transaction.js +1 -1
- package/dist/src/gnosis/actions/withdraw/index.js +66 -6
- package/dist/src/gnosis/index.js +3 -3
- package/dist/src/index.js +1 -1
- package/dist/src/tasks/InteropXContract/ProcessBridgeRequestEvents.js +8 -1
- package/dist/src/tasks/InteropXContract/SyncBridgeCommittedEvents.js +93 -0
- package/dist/src/tasks/InteropXContract/SyncBridgeRequestEvents.js +3 -2
- package/dist/src/tasks/InteropXContract/SyncBridgeRequestSentEvents.js +5 -4
- package/dist/src/tasks/index.js +3 -0
- package/dist/src/typechain/factories/InteropXContract__factory.js +124 -15
- package/dist/src/utils/index.js +31 -6
- package/package.json +12 -11
- package/src/abi/interopXContract.json +73 -10
- package/src/constants/addresses.ts +8 -8
- package/src/constants/tokens.ts +44 -51
- package/src/db/models/transaction.ts +13 -3
- package/src/gnosis/actions/withdraw/index.ts +91 -12
- package/src/gnosis/index.ts +3 -3
- package/src/tasks/InteropXContract/ProcessBridgeRequestEvents.ts +13 -2
- package/src/tasks/InteropXContract/SyncBridgeCommittedEvents.ts +125 -0
- package/src/tasks/InteropXContract/SyncBridgeRequestEvents.ts +3 -2
- package/src/tasks/InteropXContract/SyncBridgeRequestSentEvents.ts +5 -4
- package/src/tasks/index.ts +4 -0
- package/src/typechain/InteropXContract.ts +199 -43
- package/src/typechain/factories/InteropXContract__factory.ts +124 -15
- package/src/utils/index.ts +68 -33
@@ -17,7 +17,7 @@ export class Transaction extends Model<InferAttributes<Transaction>, InferCreati
|
|
17
17
|
|
18
18
|
declare transactionHash: string;
|
19
19
|
|
20
|
-
declare
|
20
|
+
declare actionId: string;
|
21
21
|
declare bridger: string;
|
22
22
|
declare requestTransactionHash: string;
|
23
23
|
|
@@ -42,6 +42,7 @@ export class Transaction extends Model<InferAttributes<Transaction>, InferCreati
|
|
42
42
|
declare targetDelayUntil: CreationOptional<Date>;
|
43
43
|
|
44
44
|
declare requestEvent: {
|
45
|
+
actionId: string;
|
45
46
|
bridger: string;
|
46
47
|
metadata: string;
|
47
48
|
position: IPosition;
|
@@ -49,6 +50,16 @@ export class Transaction extends Model<InferAttributes<Transaction>, InferCreati
|
|
49
50
|
targetChainId: number;
|
50
51
|
};
|
51
52
|
declare requestSentEvent: CreationOptional<{
|
53
|
+
actionId: string;
|
54
|
+
bridger: string;
|
55
|
+
metadata: string;
|
56
|
+
position: IPosition;
|
57
|
+
sourceChainId: number;
|
58
|
+
targetChainId: number;
|
59
|
+
requestTransactionHash: string;
|
60
|
+
}>;
|
61
|
+
declare committedEvent: CreationOptional<{
|
62
|
+
actionId: string;
|
52
63
|
bridger: string;
|
53
64
|
metadata: string;
|
54
65
|
position: IPosition;
|
@@ -56,7 +67,6 @@ export class Transaction extends Model<InferAttributes<Transaction>, InferCreati
|
|
56
67
|
targetChainId: number;
|
57
68
|
requestTransactionHash: string;
|
58
69
|
}>;
|
59
|
-
declare committedEvent: CreationOptional<any>;
|
60
70
|
declare completedEvent: CreationOptional<any>;
|
61
71
|
|
62
72
|
declare status: CreationOptional<string>;
|
@@ -76,7 +86,7 @@ Transaction.init({
|
|
76
86
|
requestBlockNumber: DataTypes.NUMBER,
|
77
87
|
|
78
88
|
transactionHash: DataTypes.STRING,
|
79
|
-
|
89
|
+
actionId: DataTypes.STRING,
|
80
90
|
bridger: DataTypes.STRING,
|
81
91
|
|
82
92
|
sourceChainId: DataTypes.NUMBER,
|
@@ -2,18 +2,34 @@ import abi from "@/abi";
|
|
2
2
|
import config from "@/config";
|
3
3
|
import { addresses, tokens } from "@/constants";
|
4
4
|
import { Transaction } from "@/db";
|
5
|
-
import { InteropXContract } from "@/typechain";
|
5
|
+
import { Erc20, InteropXContract } from "@/typechain";
|
6
6
|
import { ChainId } from "@/types";
|
7
|
-
import { getContract, getRpcProviderUrl } from "@/utils";
|
8
|
-
import { ethers } from "ethers";
|
7
|
+
import { getContract, getRpcProviderUrl, LiquidityError } from "@/utils";
|
8
|
+
import { BigNumber, ethers } from "ethers";
|
9
9
|
import { MetaTransaction, OperationType } from "ethers-multisend";
|
10
10
|
|
11
|
+
|
12
|
+
const getBridgeAmounts = async (user: string, tokens: string[], chainId: ChainId) => {
|
13
|
+
const sourceChainProvider = new ethers.providers.JsonRpcProvider(getRpcProviderUrl(chainId));
|
14
|
+
const sourceWallet = new ethers.Wallet(config.privateKey, sourceChainProvider);
|
15
|
+
const contractAddress = addresses[chainId].interopXContract;
|
16
|
+
const contract = getContract<InteropXContract>(contractAddress, abi.interopXContract, sourceWallet);
|
17
|
+
const data = await contract.getBridgeAmounts(user, tokens);
|
18
|
+
|
19
|
+
|
20
|
+
return data.map((item, index) => ({
|
21
|
+
token: tokens[index],
|
22
|
+
deposit: item.deposit,
|
23
|
+
withdraw: item.withdraw,
|
24
|
+
}))
|
25
|
+
}
|
26
|
+
|
11
27
|
export default async function (transaction: Transaction, type: 'source' | 'target') {
|
12
28
|
const transactions: MetaTransaction[] = [];
|
13
29
|
const logs: any[] = [];
|
14
30
|
|
15
|
-
if (transaction.
|
16
|
-
throw new Error(`Invalid action: ${transaction.
|
31
|
+
if (transaction.actionId !== 'withdraw') {
|
32
|
+
throw new Error(`Invalid action: ${transaction.actionId}`)
|
17
33
|
}
|
18
34
|
|
19
35
|
if (type !== 'source') {
|
@@ -32,30 +48,93 @@ export default async function (transaction: Transaction, type: 'source' | 'targe
|
|
32
48
|
throw Error('Something went wrong, source transaction has no request event')
|
33
49
|
}
|
34
50
|
|
35
|
-
const { bridger, position, sourceChainId, targetChainId, metadata
|
51
|
+
const { actionId, bridger, position, sourceChainId, targetChainId, metadata } = transaction.requestEvent;
|
36
52
|
|
37
|
-
const sourceChainProvider = new ethers.providers.JsonRpcProvider(getRpcProviderUrl(
|
53
|
+
const sourceChainProvider = new ethers.providers.JsonRpcProvider(getRpcProviderUrl(sourceChainId as ChainId));
|
38
54
|
const sourceWallet = new ethers.Wallet(config.privateKey, sourceChainProvider);
|
39
55
|
const contractAddress = addresses[sourceChainId].interopXContract;
|
40
56
|
const contract = getContract<InteropXContract>(contractAddress, abi.interopXContract, sourceWallet);
|
41
57
|
|
42
|
-
const sourceToken = tokens[sourceChainId].find(
|
58
|
+
const sourceToken = tokens[sourceChainId].find(t => t.address.toLowerCase() === position.withdraw[0].sourceToken.toLowerCase());
|
43
59
|
|
44
|
-
if(!sourceToken) {
|
60
|
+
if (!sourceToken) {
|
45
61
|
throw Error('Source token not found')
|
46
62
|
}
|
47
63
|
|
48
|
-
const targetToken = tokens[targetChainId].find(
|
64
|
+
const targetToken = tokens[targetChainId].find(t => t.address.toLowerCase() === position.withdraw[0].targetToken.toLowerCase());
|
49
65
|
|
50
|
-
if(!targetToken) {
|
66
|
+
if (!targetToken) {
|
51
67
|
throw Error('Target token not found')
|
52
68
|
}
|
53
69
|
|
54
|
-
if(sourceToken.aliases.some(alias => targetToken.aliases.includes(alias))) {
|
70
|
+
if (!sourceToken.aliases.some(alias => targetToken.aliases.includes(alias))) {
|
55
71
|
throw Error('Source and target token must be the same')
|
56
72
|
}
|
57
73
|
|
74
|
+
const networks: ChainId[] = [137, 43114];
|
75
|
+
const networkUserData = {}
|
76
|
+
for (const network of networks) {
|
77
|
+
networkUserData[network] = await getBridgeAmounts(bridger, tokens[network].map(t => t.address), network)
|
78
|
+
}
|
79
|
+
|
80
|
+
for (const tokenSymbol of ["dai", "usdc", "usdt", "eth", "wbtc"]) {
|
81
|
+
let totalDeposit = BigNumber.from(0)
|
82
|
+
let totalWithdraw = BigNumber.from(0)
|
83
|
+
|
84
|
+
for (const network of networks) {
|
85
|
+
// on avax might we have 2 usdc/usdt tokens
|
86
|
+
const matchedTokens = tokens[network].filter(t => t.aliases.includes(tokenSymbol));
|
87
|
+
|
88
|
+
for (const matchedToken of matchedTokens) {
|
89
|
+
const data = networkUserData[network].find(t => t.token.toLowerCase() === matchedToken.address.toLowerCase());
|
90
|
+
|
91
|
+
if (data) {
|
92
|
+
totalDeposit = totalDeposit.add(data.deposit)
|
93
|
+
totalWithdraw = totalWithdraw.add(data.withdraw)
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
// on Mainent add weth too
|
98
|
+
if (tokenSymbol === "eth" && network === 1) {
|
99
|
+
const weth = tokens[1].find(t => t.symbol === 'WETH');
|
100
|
+
|
101
|
+
if (weth) {
|
102
|
+
const data = networkUserData[1].find(t => t.token.toLowerCase() === weth.address.toLowerCase());
|
103
|
+
|
104
|
+
if (data) {
|
105
|
+
totalDeposit = totalDeposit.add(data.deposit)
|
106
|
+
totalWithdraw = totalWithdraw.add(data.withdraw)
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
if (totalWithdraw.gt(totalDeposit)) {
|
112
|
+
throw Error(`if withdraw > deposit, user has debt and we can't process the withdraw and reject it`)
|
113
|
+
}
|
114
|
+
|
115
|
+
if (totalWithdraw.lt(totalDeposit)) {
|
116
|
+
throw Error('Something went wrong')
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
let balance = BigNumber.from(0);
|
122
|
+
|
123
|
+
if (position.withdraw[0].sourceToken.toLowerCase() === '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'.toLowerCase()) {
|
124
|
+
balance = await sourceChainProvider.getBalance(bridger);
|
125
|
+
|
126
|
+
} else {
|
127
|
+
const erc20 = getContract<Erc20>(position.withdraw[0].sourceToken, abi.erc20, sourceChainProvider);
|
128
|
+
balance = await erc20.balanceOf(addresses[sourceChainId].gnosisSafe);
|
129
|
+
}
|
130
|
+
|
131
|
+
if (balance.lt(position.withdraw[0].amount)) {
|
132
|
+
throw new LiquidityError()
|
133
|
+
}
|
134
|
+
|
135
|
+
|
58
136
|
const { data } = await contract.populateTransaction.withdrawRequested(
|
137
|
+
actionId,
|
59
138
|
bridger,
|
60
139
|
position.withdraw[0].sourceToken,
|
61
140
|
position.withdraw[0].targetToken,
|
package/src/gnosis/index.ts
CHANGED
@@ -5,9 +5,9 @@ import actions from "./actions";
|
|
5
5
|
export const buildGnosisAction = async (transaction: Transaction, type: 'source' | 'target') => {
|
6
6
|
// type = type || (transaction.sourceStatus === 'success' ? 'target' : 'source')
|
7
7
|
|
8
|
-
if (actions.hasOwnProperty(transaction.
|
8
|
+
if (actions.hasOwnProperty(transaction.actionId)) {
|
9
9
|
|
10
|
-
const { transactions, logs } = await actions[transaction.
|
10
|
+
const { transactions, logs } = await actions[transaction.actionId](transaction, type);
|
11
11
|
|
12
12
|
return {
|
13
13
|
data: encodeMulti(transactions).data,
|
@@ -15,5 +15,5 @@ export const buildGnosisAction = async (transaction: Transaction, type: 'source'
|
|
15
15
|
};
|
16
16
|
}
|
17
17
|
|
18
|
-
throw new Error(`Unknown action: ${transaction.
|
18
|
+
throw new Error(`Unknown action: ${transaction.actionId}`);
|
19
19
|
}
|
@@ -3,7 +3,7 @@ import Logger from '@/logger';
|
|
3
3
|
import { ethers, Wallet } from "ethers";
|
4
4
|
import abi from "@/abi";
|
5
5
|
import { Transaction } from "@/db";
|
6
|
-
import { buildSignatureBytes, generateGnosisTransaction, generateInteropTransactionHash, getContract, getRpcProviderUrl, Signature } from "@/utils";
|
6
|
+
import { buildSignatureBytes, generateGnosisTransaction, generateInteropTransactionHash, getContract, getRpcProviderUrl, LiquidityError, Signature } from "@/utils";
|
7
7
|
import { addresses } from "@/constants";
|
8
8
|
import { Op } from "sequelize";
|
9
9
|
import { ChainId } from "@/types";
|
@@ -74,7 +74,18 @@ class ProccessBridgeRequestEvents extends BaseTask {
|
|
74
74
|
({ data, logs } = await buildGnosisAction(transaction, 'source'));
|
75
75
|
|
76
76
|
} catch (error) {
|
77
|
-
|
77
|
+
|
78
|
+
if(error instanceof LiquidityError){
|
79
|
+
await transaction.save();
|
80
|
+
transaction.sourceDelayUntil = new Date(Date.now() + 60 * 5 * 1000);
|
81
|
+
transaction.sourceStatus = 'uninitialised'
|
82
|
+
|
83
|
+
await transaction.save();
|
84
|
+
|
85
|
+
throw error
|
86
|
+
return;
|
87
|
+
}
|
88
|
+
|
78
89
|
transaction.sourceStatus = 'failed';
|
79
90
|
transaction.sourceErrors = [error.message];
|
80
91
|
transaction.targetStatus = 'failed';
|
@@ -0,0 +1,125 @@
|
|
1
|
+
import { BaseTask } from "../BaseTask";
|
2
|
+
import Logger from '@/logger';
|
3
|
+
import { ethers } from "ethers";
|
4
|
+
import abi from "@/abi";
|
5
|
+
import { Transaction } from "@/db";
|
6
|
+
import { generateInteropTransactionHash, getContract, getRpcProviderUrl } from "@/utils";
|
7
|
+
import { addresses } from "@/constants";
|
8
|
+
import { ChainId } from "@/types";
|
9
|
+
import config from "@/config";
|
10
|
+
import { InteropXContract } from "@/typechain";
|
11
|
+
import { Op } from "sequelize";
|
12
|
+
|
13
|
+
class SyncBridgeCommittedEvents extends BaseTask {
|
14
|
+
contractAddress: string;
|
15
|
+
provider: ethers.providers.JsonRpcProvider;
|
16
|
+
contract: InteropXContract;
|
17
|
+
chainId: ChainId;
|
18
|
+
|
19
|
+
constructor({ chainId }: { chainId: ChainId }) {
|
20
|
+
super({
|
21
|
+
logger: new Logger("InteropXContract::SyncBridgeCommittedEvents"),
|
22
|
+
})
|
23
|
+
this.chainId = chainId;
|
24
|
+
}
|
25
|
+
|
26
|
+
async pollHandler() {
|
27
|
+
const currentBlock = await this.provider.getBlockNumber();
|
28
|
+
|
29
|
+
const events = await this.contract.queryFilter(
|
30
|
+
this.contract.filters.LogBridgeCommitted(),
|
31
|
+
currentBlock - 2000,
|
32
|
+
currentBlock,
|
33
|
+
);
|
34
|
+
|
35
|
+
let processedEvents = 0;
|
36
|
+
|
37
|
+
for (const event of events) {
|
38
|
+
|
39
|
+
try {
|
40
|
+
if (!event.args) {
|
41
|
+
continue;
|
42
|
+
}
|
43
|
+
|
44
|
+
const { actionId, bridger, position, sourceChainId, targetChainId, requestTransactionHash, metadata } = event.args;
|
45
|
+
|
46
|
+
const uniqueIdentifier = {
|
47
|
+
actionId,
|
48
|
+
bridger,
|
49
|
+
requestTransactionHash,
|
50
|
+
sourceChainId: sourceChainId,
|
51
|
+
targetChainId: targetChainId,
|
52
|
+
}
|
53
|
+
|
54
|
+
let transactionHash = generateInteropTransactionHash(uniqueIdentifier);
|
55
|
+
|
56
|
+
const transaction = await Transaction.findOne({
|
57
|
+
where: {
|
58
|
+
transactionHash,
|
59
|
+
sourceStatus: 'success',
|
60
|
+
committedEvent: {
|
61
|
+
[Op.eq]: null,
|
62
|
+
}
|
63
|
+
}
|
64
|
+
});
|
65
|
+
|
66
|
+
if (!transaction) {
|
67
|
+
continue;
|
68
|
+
}
|
69
|
+
transaction.targetStatus = 'success'
|
70
|
+
transaction.targetBlockNumber = event.blockNumber;
|
71
|
+
transaction.targetTransactionHash = event.transactionHash
|
72
|
+
transaction.committedEvent = {
|
73
|
+
actionId,
|
74
|
+
bridger,
|
75
|
+
position: {
|
76
|
+
withdraw: position.withdraw.map((v) => ({
|
77
|
+
sourceToken: v.sourceToken,
|
78
|
+
targetToken: v.targetToken,
|
79
|
+
amount: v.amount.toString()
|
80
|
+
})),
|
81
|
+
supply: position.supply.map((v) => ({
|
82
|
+
sourceToken: v.sourceToken,
|
83
|
+
targetToken: v.targetToken,
|
84
|
+
amount: v.amount.toString()
|
85
|
+
})),
|
86
|
+
},
|
87
|
+
sourceChainId: sourceChainId,
|
88
|
+
targetChainId: targetChainId,
|
89
|
+
metadata,
|
90
|
+
requestTransactionHash,
|
91
|
+
}
|
92
|
+
|
93
|
+
transaction.status = 'success';
|
94
|
+
await transaction.save()
|
95
|
+
|
96
|
+
this.logger.info(
|
97
|
+
`New bridge committed received: ${transactionHash} `
|
98
|
+
);
|
99
|
+
} catch (error) {
|
100
|
+
this.logger.error(error);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
if (processedEvents > 0)
|
105
|
+
this.logger.info(`${processedEvents} events processed`);
|
106
|
+
}
|
107
|
+
|
108
|
+
async start(): Promise<void> {
|
109
|
+
this.contractAddress = addresses[this.chainId].interopXContract;
|
110
|
+
|
111
|
+
this.provider = new ethers.providers.JsonRpcProvider(
|
112
|
+
getRpcProviderUrl(this.chainId)
|
113
|
+
);
|
114
|
+
|
115
|
+
this.contract = getContract<InteropXContract>(
|
116
|
+
this.contractAddress,
|
117
|
+
abi.interopXContract,
|
118
|
+
new ethers.Wallet(config.privateKey!, this.provider)
|
119
|
+
);
|
120
|
+
|
121
|
+
await super.start()
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
export default SyncBridgeCommittedEvents;
|
@@ -40,10 +40,10 @@ class SyncBridgeRequestEvents extends BaseTask {
|
|
40
40
|
continue;
|
41
41
|
}
|
42
42
|
|
43
|
-
const { bridger, position, sourceChainId, targetChainId, metadata } = event.args;
|
43
|
+
const { actionId, bridger, position, sourceChainId, targetChainId, metadata } = event.args;
|
44
44
|
|
45
45
|
const uniqueIdentifier = {
|
46
|
-
|
46
|
+
actionId,
|
47
47
|
bridger,
|
48
48
|
requestTransactionHash: event.transactionHash,
|
49
49
|
sourceChainId: sourceChainId.toNumber(),
|
@@ -63,6 +63,7 @@ class SyncBridgeRequestEvents extends BaseTask {
|
|
63
63
|
...uniqueIdentifier,
|
64
64
|
requestBlockNumber: event.blockNumber,
|
65
65
|
requestEvent: {
|
66
|
+
actionId,
|
66
67
|
bridger,
|
67
68
|
position: {
|
68
69
|
withdraw: position.withdraw.map((v) => ({
|
@@ -41,10 +41,10 @@ class SyncBridgeRequestSentEvents extends BaseTask {
|
|
41
41
|
continue;
|
42
42
|
}
|
43
43
|
|
44
|
-
const { bridger, position, sourceChainId, targetChainId, requestTransactionHash, metadata } = event.args;
|
44
|
+
const { actionId, bridger, position, sourceChainId, targetChainId, requestTransactionHash, metadata } = event.args;
|
45
45
|
|
46
46
|
const uniqueIdentifier = {
|
47
|
-
|
47
|
+
actionId,
|
48
48
|
bridger,
|
49
49
|
requestTransactionHash,
|
50
50
|
sourceChainId: sourceChainId,
|
@@ -55,8 +55,8 @@ class SyncBridgeRequestSentEvents extends BaseTask {
|
|
55
55
|
|
56
56
|
const transaction = await Transaction.findOne({
|
57
57
|
where: {
|
58
|
-
transactionHash,
|
59
|
-
[Op.
|
58
|
+
transactionHash, requestSentEvent: {
|
59
|
+
[Op.eq]: null,
|
60
60
|
}
|
61
61
|
}
|
62
62
|
});
|
@@ -68,6 +68,7 @@ class SyncBridgeRequestSentEvents extends BaseTask {
|
|
68
68
|
transaction.sourceBlockNumber = event.blockNumber;
|
69
69
|
transaction.sourceTransactionHash = event.transactionHash
|
70
70
|
transaction.requestSentEvent = {
|
71
|
+
actionId,
|
71
72
|
bridger,
|
72
73
|
position: {
|
73
74
|
withdraw: position.withdraw.map((v) => ({
|
package/src/tasks/index.ts
CHANGED
@@ -8,6 +8,7 @@ import AutoUpdateTask from "./AutoUpdateTask";
|
|
8
8
|
import SyncBridgeRequestEvents from "./InteropXContract/SyncBridgeRequestEvents";
|
9
9
|
import ProccessBridgeRequestEvents from "./InteropXContract/ProcessBridgeRequestEvents";
|
10
10
|
import SyncBridgeRequestSentEvents from "./InteropXContract/SyncBridgeRequestSentEvents";
|
11
|
+
import SyncBridgeCommittedEvents from "./InteropXContract/SyncBridgeCommittedEvents";
|
11
12
|
|
12
13
|
export class Tasks {
|
13
14
|
|
@@ -23,6 +24,9 @@ export class Tasks {
|
|
23
24
|
new SyncBridgeRequestSentEvents({ chainId: 137 }),
|
24
25
|
new SyncBridgeRequestSentEvents({ chainId: 43114 }),
|
25
26
|
|
27
|
+
new SyncBridgeCommittedEvents({ chainId: 137 }),
|
28
|
+
new SyncBridgeCommittedEvents({ chainId: 43114 }),
|
29
|
+
|
26
30
|
new ProccessBridgeRequestEvents({ chainId: 137 }),
|
27
31
|
new ProccessBridgeRequestEvents({ chainId: 43114 }),
|
28
32
|
];
|