@across-protocol/sdk 4.3.165-beta.1 → 4.3.165
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/cjs/src/utils/abi/typechain/TronMulticallHandler.d.ts +153 -0
- package/dist/cjs/src/utils/abi/typechain/TronMulticallHandler.js +3 -0
- package/dist/cjs/src/utils/abi/typechain/TronMulticallHandler.js.map +1 -0
- package/dist/cjs/src/utils/abi/typechain/factories/TronMulticallHandler__factory.d.ts +231 -0
- package/dist/cjs/src/utils/abi/typechain/factories/TronMulticallHandler__factory.js +306 -0
- package/dist/cjs/src/utils/abi/typechain/factories/TronMulticallHandler__factory.js.map +1 -0
- package/dist/cjs/src/utils/abi/typechain/factories/index.d.ts +1 -0
- package/dist/cjs/src/utils/abi/typechain/factories/index.js +4 -2
- package/dist/cjs/src/utils/abi/typechain/factories/index.js.map +1 -1
- package/dist/cjs/src/utils/abi/typechain/index.d.ts +2 -0
- package/dist/cjs/src/utils/abi/typechain/index.js +4 -2
- package/dist/cjs/src/utils/abi/typechain/index.js.map +1 -1
- package/dist/esm/src/utils/abi/typechain/TronMulticallHandler.d.ts +153 -0
- package/dist/esm/src/utils/abi/typechain/TronMulticallHandler.js +2 -0
- package/dist/esm/src/utils/abi/typechain/TronMulticallHandler.js.map +1 -0
- package/dist/esm/src/utils/abi/typechain/factories/TronMulticallHandler__factory.d.ts +231 -0
- package/dist/esm/src/utils/abi/typechain/factories/TronMulticallHandler__factory.js +305 -0
- package/dist/esm/src/utils/abi/typechain/factories/TronMulticallHandler__factory.js.map +1 -0
- package/dist/esm/src/utils/abi/typechain/factories/index.d.ts +1 -0
- package/dist/esm/src/utils/abi/typechain/factories/index.js +1 -0
- package/dist/esm/src/utils/abi/typechain/factories/index.js.map +1 -1
- package/dist/esm/src/utils/abi/typechain/index.d.ts +2 -0
- package/dist/esm/src/utils/abi/typechain/index.js +1 -0
- package/dist/esm/src/utils/abi/typechain/index.js.map +1 -1
- package/dist/types/src/utils/abi/typechain/TronMulticallHandler.d.ts +154 -0
- package/dist/types/src/utils/abi/typechain/TronMulticallHandler.d.ts.map +1 -0
- package/dist/types/src/utils/abi/typechain/factories/TronMulticallHandler__factory.d.ts +232 -0
- package/dist/types/src/utils/abi/typechain/factories/TronMulticallHandler__factory.d.ts.map +1 -0
- package/dist/types/src/utils/abi/typechain/factories/index.d.ts +1 -0
- package/dist/types/src/utils/abi/typechain/factories/index.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/index.d.ts +2 -0
- package/dist/types/src/utils/abi/typechain/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/utils/abi/contracts/TronMulticallHandler.json +291 -0
- package/src/utils/abi/typechain/TronMulticallHandler.ts +327 -0
- package/src/utils/abi/typechain/factories/TronMulticallHandler__factory.ts +319 -0
- package/src/utils/abi/typechain/factories/index.ts +1 -0
- package/src/utils/abi/typechain/index.ts +2 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
|
|
5
|
+
export declare namespace MulticallHandler {
|
|
6
|
+
type CallStruct = {
|
|
7
|
+
target: string;
|
|
8
|
+
callData: BytesLike;
|
|
9
|
+
value: BigNumberish;
|
|
10
|
+
};
|
|
11
|
+
type CallStructOutput = [string, string, BigNumber] & {
|
|
12
|
+
target: string;
|
|
13
|
+
callData: string;
|
|
14
|
+
value: BigNumber;
|
|
15
|
+
};
|
|
16
|
+
type ReplacementStruct = {
|
|
17
|
+
token: string;
|
|
18
|
+
offset: BigNumberish;
|
|
19
|
+
};
|
|
20
|
+
type ReplacementStructOutput = [string, BigNumber] & {
|
|
21
|
+
token: string;
|
|
22
|
+
offset: BigNumber;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface TronMulticallHandlerInterface extends utils.Interface {
|
|
26
|
+
functions: {
|
|
27
|
+
"attemptCalls((address,bytes,uint256)[])": FunctionFragment;
|
|
28
|
+
"drainLeftoverTokens(address,address)": FunctionFragment;
|
|
29
|
+
"handleV3AcrossMessage(address,uint256,address,bytes)": FunctionFragment;
|
|
30
|
+
"makeCallWithBalance(address,bytes,uint256,(address,uint256)[])": FunctionFragment;
|
|
31
|
+
};
|
|
32
|
+
getFunction(nameOrSignatureOrTopic: "attemptCalls" | "drainLeftoverTokens" | "handleV3AcrossMessage" | "makeCallWithBalance"): FunctionFragment;
|
|
33
|
+
encodeFunctionData(functionFragment: "attemptCalls", values: [MulticallHandler.CallStruct[]]): string;
|
|
34
|
+
encodeFunctionData(functionFragment: "drainLeftoverTokens", values: [string, string]): string;
|
|
35
|
+
encodeFunctionData(functionFragment: "handleV3AcrossMessage", values: [string, BigNumberish, string, BytesLike]): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "makeCallWithBalance", values: [
|
|
37
|
+
string,
|
|
38
|
+
BytesLike,
|
|
39
|
+
BigNumberish,
|
|
40
|
+
MulticallHandler.ReplacementStruct[]
|
|
41
|
+
]): string;
|
|
42
|
+
decodeFunctionResult(functionFragment: "attemptCalls", data: BytesLike): Result;
|
|
43
|
+
decodeFunctionResult(functionFragment: "drainLeftoverTokens", data: BytesLike): Result;
|
|
44
|
+
decodeFunctionResult(functionFragment: "handleV3AcrossMessage", data: BytesLike): Result;
|
|
45
|
+
decodeFunctionResult(functionFragment: "makeCallWithBalance", data: BytesLike): Result;
|
|
46
|
+
events: {
|
|
47
|
+
"CallsFailed((address,bytes,uint256)[],address)": EventFragment;
|
|
48
|
+
"DrainedTokens(address,address,uint256)": EventFragment;
|
|
49
|
+
};
|
|
50
|
+
getEvent(nameOrSignatureOrTopic: "CallsFailed"): EventFragment;
|
|
51
|
+
getEvent(nameOrSignatureOrTopic: "DrainedTokens"): EventFragment;
|
|
52
|
+
}
|
|
53
|
+
export interface CallsFailedEventObject {
|
|
54
|
+
calls: MulticallHandler.CallStructOutput[];
|
|
55
|
+
fallbackRecipient: string;
|
|
56
|
+
}
|
|
57
|
+
export type CallsFailedEvent = TypedEvent<[
|
|
58
|
+
MulticallHandler.CallStructOutput[],
|
|
59
|
+
string
|
|
60
|
+
], CallsFailedEventObject>;
|
|
61
|
+
export type CallsFailedEventFilter = TypedEventFilter<CallsFailedEvent>;
|
|
62
|
+
export interface DrainedTokensEventObject {
|
|
63
|
+
recipient: string;
|
|
64
|
+
token: string;
|
|
65
|
+
amount: BigNumber;
|
|
66
|
+
}
|
|
67
|
+
export type DrainedTokensEvent = TypedEvent<[
|
|
68
|
+
string,
|
|
69
|
+
string,
|
|
70
|
+
BigNumber
|
|
71
|
+
], DrainedTokensEventObject>;
|
|
72
|
+
export type DrainedTokensEventFilter = TypedEventFilter<DrainedTokensEvent>;
|
|
73
|
+
export interface TronMulticallHandler extends BaseContract {
|
|
74
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
75
|
+
attach(addressOrName: string): this;
|
|
76
|
+
deployed(): Promise<this>;
|
|
77
|
+
interface: TronMulticallHandlerInterface;
|
|
78
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
79
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
80
|
+
listeners(eventName?: string): Array<Listener>;
|
|
81
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
82
|
+
removeAllListeners(eventName?: string): this;
|
|
83
|
+
off: OnEvent<this>;
|
|
84
|
+
on: OnEvent<this>;
|
|
85
|
+
once: OnEvent<this>;
|
|
86
|
+
removeListener: OnEvent<this>;
|
|
87
|
+
functions: {
|
|
88
|
+
attemptCalls(calls: MulticallHandler.CallStruct[], overrides?: Overrides & {
|
|
89
|
+
from?: string;
|
|
90
|
+
}): Promise<ContractTransaction>;
|
|
91
|
+
drainLeftoverTokens(token: string, destination: string, overrides?: Overrides & {
|
|
92
|
+
from?: string;
|
|
93
|
+
}): Promise<ContractTransaction>;
|
|
94
|
+
handleV3AcrossMessage(token: string, arg1: BigNumberish, arg2: string, message: BytesLike, overrides?: Overrides & {
|
|
95
|
+
from?: string;
|
|
96
|
+
}): Promise<ContractTransaction>;
|
|
97
|
+
makeCallWithBalance(target: string, callData: BytesLike, value: BigNumberish, replacement: MulticallHandler.ReplacementStruct[], overrides?: Overrides & {
|
|
98
|
+
from?: string;
|
|
99
|
+
}): Promise<ContractTransaction>;
|
|
100
|
+
};
|
|
101
|
+
attemptCalls(calls: MulticallHandler.CallStruct[], overrides?: Overrides & {
|
|
102
|
+
from?: string;
|
|
103
|
+
}): Promise<ContractTransaction>;
|
|
104
|
+
drainLeftoverTokens(token: string, destination: string, overrides?: Overrides & {
|
|
105
|
+
from?: string;
|
|
106
|
+
}): Promise<ContractTransaction>;
|
|
107
|
+
handleV3AcrossMessage(token: string, arg1: BigNumberish, arg2: string, message: BytesLike, overrides?: Overrides & {
|
|
108
|
+
from?: string;
|
|
109
|
+
}): Promise<ContractTransaction>;
|
|
110
|
+
makeCallWithBalance(target: string, callData: BytesLike, value: BigNumberish, replacement: MulticallHandler.ReplacementStruct[], overrides?: Overrides & {
|
|
111
|
+
from?: string;
|
|
112
|
+
}): Promise<ContractTransaction>;
|
|
113
|
+
callStatic: {
|
|
114
|
+
attemptCalls(calls: MulticallHandler.CallStruct[], overrides?: CallOverrides): Promise<void>;
|
|
115
|
+
drainLeftoverTokens(token: string, destination: string, overrides?: CallOverrides): Promise<void>;
|
|
116
|
+
handleV3AcrossMessage(token: string, arg1: BigNumberish, arg2: string, message: BytesLike, overrides?: CallOverrides): Promise<void>;
|
|
117
|
+
makeCallWithBalance(target: string, callData: BytesLike, value: BigNumberish, replacement: MulticallHandler.ReplacementStruct[], overrides?: CallOverrides): Promise<void>;
|
|
118
|
+
};
|
|
119
|
+
filters: {
|
|
120
|
+
"CallsFailed((address,bytes,uint256)[],address)"(calls?: null, fallbackRecipient?: string | null): CallsFailedEventFilter;
|
|
121
|
+
CallsFailed(calls?: null, fallbackRecipient?: string | null): CallsFailedEventFilter;
|
|
122
|
+
"DrainedTokens(address,address,uint256)"(recipient?: string | null, token?: string | null, amount?: BigNumberish | null): DrainedTokensEventFilter;
|
|
123
|
+
DrainedTokens(recipient?: string | null, token?: string | null, amount?: BigNumberish | null): DrainedTokensEventFilter;
|
|
124
|
+
};
|
|
125
|
+
estimateGas: {
|
|
126
|
+
attemptCalls(calls: MulticallHandler.CallStruct[], overrides?: Overrides & {
|
|
127
|
+
from?: string;
|
|
128
|
+
}): Promise<BigNumber>;
|
|
129
|
+
drainLeftoverTokens(token: string, destination: string, overrides?: Overrides & {
|
|
130
|
+
from?: string;
|
|
131
|
+
}): Promise<BigNumber>;
|
|
132
|
+
handleV3AcrossMessage(token: string, arg1: BigNumberish, arg2: string, message: BytesLike, overrides?: Overrides & {
|
|
133
|
+
from?: string;
|
|
134
|
+
}): Promise<BigNumber>;
|
|
135
|
+
makeCallWithBalance(target: string, callData: BytesLike, value: BigNumberish, replacement: MulticallHandler.ReplacementStruct[], overrides?: Overrides & {
|
|
136
|
+
from?: string;
|
|
137
|
+
}): Promise<BigNumber>;
|
|
138
|
+
};
|
|
139
|
+
populateTransaction: {
|
|
140
|
+
attemptCalls(calls: MulticallHandler.CallStruct[], overrides?: Overrides & {
|
|
141
|
+
from?: string;
|
|
142
|
+
}): Promise<PopulatedTransaction>;
|
|
143
|
+
drainLeftoverTokens(token: string, destination: string, overrides?: Overrides & {
|
|
144
|
+
from?: string;
|
|
145
|
+
}): Promise<PopulatedTransaction>;
|
|
146
|
+
handleV3AcrossMessage(token: string, arg1: BigNumberish, arg2: string, message: BytesLike, overrides?: Overrides & {
|
|
147
|
+
from?: string;
|
|
148
|
+
}): Promise<PopulatedTransaction>;
|
|
149
|
+
makeCallWithBalance(target: string, callData: BytesLike, value: BigNumberish, replacement: MulticallHandler.ReplacementStruct[], overrides?: Overrides & {
|
|
150
|
+
from?: string;
|
|
151
|
+
}): Promise<PopulatedTransaction>;
|
|
152
|
+
};
|
|
153
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TronMulticallHandler.js","sourceRoot":"","sources":["../../../../../../src/utils/abi/typechain/TronMulticallHandler.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { TronMulticallHandler, TronMulticallHandlerInterface } from "../TronMulticallHandler";
|
|
4
|
+
export declare class TronMulticallHandler__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly type: "receive";
|
|
7
|
+
readonly stateMutability: "payable";
|
|
8
|
+
}, {
|
|
9
|
+
readonly type: "function";
|
|
10
|
+
readonly name: "attemptCalls";
|
|
11
|
+
readonly inputs: readonly [{
|
|
12
|
+
readonly name: "calls";
|
|
13
|
+
readonly type: "tuple[]";
|
|
14
|
+
readonly internalType: "struct MulticallHandler.Call[]";
|
|
15
|
+
readonly components: readonly [{
|
|
16
|
+
readonly name: "target";
|
|
17
|
+
readonly type: "address";
|
|
18
|
+
readonly internalType: "address";
|
|
19
|
+
}, {
|
|
20
|
+
readonly name: "callData";
|
|
21
|
+
readonly type: "bytes";
|
|
22
|
+
readonly internalType: "bytes";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "value";
|
|
25
|
+
readonly type: "uint256";
|
|
26
|
+
readonly internalType: "uint256";
|
|
27
|
+
}];
|
|
28
|
+
}];
|
|
29
|
+
readonly outputs: readonly [];
|
|
30
|
+
readonly stateMutability: "nonpayable";
|
|
31
|
+
}, {
|
|
32
|
+
readonly type: "function";
|
|
33
|
+
readonly name: "drainLeftoverTokens";
|
|
34
|
+
readonly inputs: readonly [{
|
|
35
|
+
readonly name: "token";
|
|
36
|
+
readonly type: "address";
|
|
37
|
+
readonly internalType: "address";
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "destination";
|
|
40
|
+
readonly type: "address";
|
|
41
|
+
readonly internalType: "address payable";
|
|
42
|
+
}];
|
|
43
|
+
readonly outputs: readonly [];
|
|
44
|
+
readonly stateMutability: "nonpayable";
|
|
45
|
+
}, {
|
|
46
|
+
readonly type: "function";
|
|
47
|
+
readonly name: "handleV3AcrossMessage";
|
|
48
|
+
readonly inputs: readonly [{
|
|
49
|
+
readonly name: "token";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
readonly internalType: "address";
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "";
|
|
54
|
+
readonly type: "uint256";
|
|
55
|
+
readonly internalType: "uint256";
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
readonly internalType: "address";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "message";
|
|
62
|
+
readonly type: "bytes";
|
|
63
|
+
readonly internalType: "bytes";
|
|
64
|
+
}];
|
|
65
|
+
readonly outputs: readonly [];
|
|
66
|
+
readonly stateMutability: "nonpayable";
|
|
67
|
+
}, {
|
|
68
|
+
readonly type: "function";
|
|
69
|
+
readonly name: "makeCallWithBalance";
|
|
70
|
+
readonly inputs: readonly [{
|
|
71
|
+
readonly name: "target";
|
|
72
|
+
readonly type: "address";
|
|
73
|
+
readonly internalType: "address";
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "callData";
|
|
76
|
+
readonly type: "bytes";
|
|
77
|
+
readonly internalType: "bytes";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "value";
|
|
80
|
+
readonly type: "uint256";
|
|
81
|
+
readonly internalType: "uint256";
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "replacement";
|
|
84
|
+
readonly type: "tuple[]";
|
|
85
|
+
readonly internalType: "struct MulticallHandler.Replacement[]";
|
|
86
|
+
readonly components: readonly [{
|
|
87
|
+
readonly name: "token";
|
|
88
|
+
readonly type: "address";
|
|
89
|
+
readonly internalType: "address";
|
|
90
|
+
}, {
|
|
91
|
+
readonly name: "offset";
|
|
92
|
+
readonly type: "uint256";
|
|
93
|
+
readonly internalType: "uint256";
|
|
94
|
+
}];
|
|
95
|
+
}];
|
|
96
|
+
readonly outputs: readonly [];
|
|
97
|
+
readonly stateMutability: "nonpayable";
|
|
98
|
+
}, {
|
|
99
|
+
readonly type: "event";
|
|
100
|
+
readonly name: "CallsFailed";
|
|
101
|
+
readonly inputs: readonly [{
|
|
102
|
+
readonly name: "calls";
|
|
103
|
+
readonly type: "tuple[]";
|
|
104
|
+
readonly indexed: false;
|
|
105
|
+
readonly internalType: "struct MulticallHandler.Call[]";
|
|
106
|
+
readonly components: readonly [{
|
|
107
|
+
readonly name: "target";
|
|
108
|
+
readonly type: "address";
|
|
109
|
+
readonly internalType: "address";
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "callData";
|
|
112
|
+
readonly type: "bytes";
|
|
113
|
+
readonly internalType: "bytes";
|
|
114
|
+
}, {
|
|
115
|
+
readonly name: "value";
|
|
116
|
+
readonly type: "uint256";
|
|
117
|
+
readonly internalType: "uint256";
|
|
118
|
+
}];
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "fallbackRecipient";
|
|
121
|
+
readonly type: "address";
|
|
122
|
+
readonly indexed: true;
|
|
123
|
+
readonly internalType: "address";
|
|
124
|
+
}];
|
|
125
|
+
readonly anonymous: false;
|
|
126
|
+
}, {
|
|
127
|
+
readonly type: "event";
|
|
128
|
+
readonly name: "DrainedTokens";
|
|
129
|
+
readonly inputs: readonly [{
|
|
130
|
+
readonly name: "recipient";
|
|
131
|
+
readonly type: "address";
|
|
132
|
+
readonly indexed: true;
|
|
133
|
+
readonly internalType: "address";
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "token";
|
|
136
|
+
readonly type: "address";
|
|
137
|
+
readonly indexed: true;
|
|
138
|
+
readonly internalType: "address";
|
|
139
|
+
}, {
|
|
140
|
+
readonly name: "amount";
|
|
141
|
+
readonly type: "uint256";
|
|
142
|
+
readonly indexed: true;
|
|
143
|
+
readonly internalType: "uint256";
|
|
144
|
+
}];
|
|
145
|
+
readonly anonymous: false;
|
|
146
|
+
}, {
|
|
147
|
+
readonly type: "error";
|
|
148
|
+
readonly name: "CallReverted";
|
|
149
|
+
readonly inputs: readonly [{
|
|
150
|
+
readonly name: "index";
|
|
151
|
+
readonly type: "uint256";
|
|
152
|
+
readonly internalType: "uint256";
|
|
153
|
+
}, {
|
|
154
|
+
readonly name: "calls";
|
|
155
|
+
readonly type: "tuple[]";
|
|
156
|
+
readonly internalType: "struct MulticallHandler.Call[]";
|
|
157
|
+
readonly components: readonly [{
|
|
158
|
+
readonly name: "target";
|
|
159
|
+
readonly type: "address";
|
|
160
|
+
readonly internalType: "address";
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "callData";
|
|
163
|
+
readonly type: "bytes";
|
|
164
|
+
readonly internalType: "bytes";
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "value";
|
|
167
|
+
readonly type: "uint256";
|
|
168
|
+
readonly internalType: "uint256";
|
|
169
|
+
}];
|
|
170
|
+
}];
|
|
171
|
+
}, {
|
|
172
|
+
readonly type: "error";
|
|
173
|
+
readonly name: "CalldataTooShort";
|
|
174
|
+
readonly inputs: readonly [{
|
|
175
|
+
readonly name: "callDataLength";
|
|
176
|
+
readonly type: "uint256";
|
|
177
|
+
readonly internalType: "uint256";
|
|
178
|
+
}, {
|
|
179
|
+
readonly name: "offset";
|
|
180
|
+
readonly type: "uint256";
|
|
181
|
+
readonly internalType: "uint256";
|
|
182
|
+
}];
|
|
183
|
+
}, {
|
|
184
|
+
readonly type: "error";
|
|
185
|
+
readonly name: "InvalidCall";
|
|
186
|
+
readonly inputs: readonly [{
|
|
187
|
+
readonly name: "index";
|
|
188
|
+
readonly type: "uint256";
|
|
189
|
+
readonly internalType: "uint256";
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "calls";
|
|
192
|
+
readonly type: "tuple[]";
|
|
193
|
+
readonly internalType: "struct MulticallHandler.Call[]";
|
|
194
|
+
readonly components: readonly [{
|
|
195
|
+
readonly name: "target";
|
|
196
|
+
readonly type: "address";
|
|
197
|
+
readonly internalType: "address";
|
|
198
|
+
}, {
|
|
199
|
+
readonly name: "callData";
|
|
200
|
+
readonly type: "bytes";
|
|
201
|
+
readonly internalType: "bytes";
|
|
202
|
+
}, {
|
|
203
|
+
readonly name: "value";
|
|
204
|
+
readonly type: "uint256";
|
|
205
|
+
readonly internalType: "uint256";
|
|
206
|
+
}];
|
|
207
|
+
}];
|
|
208
|
+
}, {
|
|
209
|
+
readonly type: "error";
|
|
210
|
+
readonly name: "NotSelf";
|
|
211
|
+
readonly inputs: readonly [];
|
|
212
|
+
}, {
|
|
213
|
+
readonly type: "error";
|
|
214
|
+
readonly name: "ReplacementCallFailed";
|
|
215
|
+
readonly inputs: readonly [{
|
|
216
|
+
readonly name: "callData";
|
|
217
|
+
readonly type: "bytes";
|
|
218
|
+
readonly internalType: "bytes";
|
|
219
|
+
}];
|
|
220
|
+
}, {
|
|
221
|
+
readonly type: "error";
|
|
222
|
+
readonly name: "TronTransferBalanceMismatch";
|
|
223
|
+
readonly inputs: readonly [];
|
|
224
|
+
}, {
|
|
225
|
+
readonly type: "error";
|
|
226
|
+
readonly name: "TronTransferCallReverted";
|
|
227
|
+
readonly inputs: readonly [];
|
|
228
|
+
}];
|
|
229
|
+
static createInterface(): TronMulticallHandlerInterface;
|
|
230
|
+
static connect(address: string, signerOrProvider: Signer | Provider): TronMulticallHandler;
|
|
231
|
+
}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TronMulticallHandler__factory = void 0;
|
|
4
|
+
const ethers_1 = require("ethers");
|
|
5
|
+
const _abi = [
|
|
6
|
+
{
|
|
7
|
+
type: "receive",
|
|
8
|
+
stateMutability: "payable",
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
type: "function",
|
|
12
|
+
name: "attemptCalls",
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
name: "calls",
|
|
16
|
+
type: "tuple[]",
|
|
17
|
+
internalType: "struct MulticallHandler.Call[]",
|
|
18
|
+
components: [
|
|
19
|
+
{
|
|
20
|
+
name: "target",
|
|
21
|
+
type: "address",
|
|
22
|
+
internalType: "address",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "callData",
|
|
26
|
+
type: "bytes",
|
|
27
|
+
internalType: "bytes",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "value",
|
|
31
|
+
type: "uint256",
|
|
32
|
+
internalType: "uint256",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
outputs: [],
|
|
38
|
+
stateMutability: "nonpayable",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: "function",
|
|
42
|
+
name: "drainLeftoverTokens",
|
|
43
|
+
inputs: [
|
|
44
|
+
{
|
|
45
|
+
name: "token",
|
|
46
|
+
type: "address",
|
|
47
|
+
internalType: "address",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "destination",
|
|
51
|
+
type: "address",
|
|
52
|
+
internalType: "address payable",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
outputs: [],
|
|
56
|
+
stateMutability: "nonpayable",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: "function",
|
|
60
|
+
name: "handleV3AcrossMessage",
|
|
61
|
+
inputs: [
|
|
62
|
+
{
|
|
63
|
+
name: "token",
|
|
64
|
+
type: "address",
|
|
65
|
+
internalType: "address",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "",
|
|
69
|
+
type: "uint256",
|
|
70
|
+
internalType: "uint256",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "",
|
|
74
|
+
type: "address",
|
|
75
|
+
internalType: "address",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "message",
|
|
79
|
+
type: "bytes",
|
|
80
|
+
internalType: "bytes",
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
outputs: [],
|
|
84
|
+
stateMutability: "nonpayable",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: "function",
|
|
88
|
+
name: "makeCallWithBalance",
|
|
89
|
+
inputs: [
|
|
90
|
+
{
|
|
91
|
+
name: "target",
|
|
92
|
+
type: "address",
|
|
93
|
+
internalType: "address",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "callData",
|
|
97
|
+
type: "bytes",
|
|
98
|
+
internalType: "bytes",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "value",
|
|
102
|
+
type: "uint256",
|
|
103
|
+
internalType: "uint256",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "replacement",
|
|
107
|
+
type: "tuple[]",
|
|
108
|
+
internalType: "struct MulticallHandler.Replacement[]",
|
|
109
|
+
components: [
|
|
110
|
+
{
|
|
111
|
+
name: "token",
|
|
112
|
+
type: "address",
|
|
113
|
+
internalType: "address",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "offset",
|
|
117
|
+
type: "uint256",
|
|
118
|
+
internalType: "uint256",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
outputs: [],
|
|
124
|
+
stateMutability: "nonpayable",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: "event",
|
|
128
|
+
name: "CallsFailed",
|
|
129
|
+
inputs: [
|
|
130
|
+
{
|
|
131
|
+
name: "calls",
|
|
132
|
+
type: "tuple[]",
|
|
133
|
+
indexed: false,
|
|
134
|
+
internalType: "struct MulticallHandler.Call[]",
|
|
135
|
+
components: [
|
|
136
|
+
{
|
|
137
|
+
name: "target",
|
|
138
|
+
type: "address",
|
|
139
|
+
internalType: "address",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: "callData",
|
|
143
|
+
type: "bytes",
|
|
144
|
+
internalType: "bytes",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: "value",
|
|
148
|
+
type: "uint256",
|
|
149
|
+
internalType: "uint256",
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: "fallbackRecipient",
|
|
155
|
+
type: "address",
|
|
156
|
+
indexed: true,
|
|
157
|
+
internalType: "address",
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
anonymous: false,
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
type: "event",
|
|
164
|
+
name: "DrainedTokens",
|
|
165
|
+
inputs: [
|
|
166
|
+
{
|
|
167
|
+
name: "recipient",
|
|
168
|
+
type: "address",
|
|
169
|
+
indexed: true,
|
|
170
|
+
internalType: "address",
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: "token",
|
|
174
|
+
type: "address",
|
|
175
|
+
indexed: true,
|
|
176
|
+
internalType: "address",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: "amount",
|
|
180
|
+
type: "uint256",
|
|
181
|
+
indexed: true,
|
|
182
|
+
internalType: "uint256",
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
anonymous: false,
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
type: "error",
|
|
189
|
+
name: "CallReverted",
|
|
190
|
+
inputs: [
|
|
191
|
+
{
|
|
192
|
+
name: "index",
|
|
193
|
+
type: "uint256",
|
|
194
|
+
internalType: "uint256",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "calls",
|
|
198
|
+
type: "tuple[]",
|
|
199
|
+
internalType: "struct MulticallHandler.Call[]",
|
|
200
|
+
components: [
|
|
201
|
+
{
|
|
202
|
+
name: "target",
|
|
203
|
+
type: "address",
|
|
204
|
+
internalType: "address",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: "callData",
|
|
208
|
+
type: "bytes",
|
|
209
|
+
internalType: "bytes",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: "value",
|
|
213
|
+
type: "uint256",
|
|
214
|
+
internalType: "uint256",
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
type: "error",
|
|
222
|
+
name: "CalldataTooShort",
|
|
223
|
+
inputs: [
|
|
224
|
+
{
|
|
225
|
+
name: "callDataLength",
|
|
226
|
+
type: "uint256",
|
|
227
|
+
internalType: "uint256",
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: "offset",
|
|
231
|
+
type: "uint256",
|
|
232
|
+
internalType: "uint256",
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
type: "error",
|
|
238
|
+
name: "InvalidCall",
|
|
239
|
+
inputs: [
|
|
240
|
+
{
|
|
241
|
+
name: "index",
|
|
242
|
+
type: "uint256",
|
|
243
|
+
internalType: "uint256",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: "calls",
|
|
247
|
+
type: "tuple[]",
|
|
248
|
+
internalType: "struct MulticallHandler.Call[]",
|
|
249
|
+
components: [
|
|
250
|
+
{
|
|
251
|
+
name: "target",
|
|
252
|
+
type: "address",
|
|
253
|
+
internalType: "address",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: "callData",
|
|
257
|
+
type: "bytes",
|
|
258
|
+
internalType: "bytes",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: "value",
|
|
262
|
+
type: "uint256",
|
|
263
|
+
internalType: "uint256",
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
type: "error",
|
|
271
|
+
name: "NotSelf",
|
|
272
|
+
inputs: [],
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
type: "error",
|
|
276
|
+
name: "ReplacementCallFailed",
|
|
277
|
+
inputs: [
|
|
278
|
+
{
|
|
279
|
+
name: "callData",
|
|
280
|
+
type: "bytes",
|
|
281
|
+
internalType: "bytes",
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
type: "error",
|
|
287
|
+
name: "TronTransferBalanceMismatch",
|
|
288
|
+
inputs: [],
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
type: "error",
|
|
292
|
+
name: "TronTransferCallReverted",
|
|
293
|
+
inputs: [],
|
|
294
|
+
},
|
|
295
|
+
];
|
|
296
|
+
class TronMulticallHandler__factory {
|
|
297
|
+
static abi = _abi;
|
|
298
|
+
static createInterface() {
|
|
299
|
+
return new ethers_1.utils.Interface(_abi);
|
|
300
|
+
}
|
|
301
|
+
static connect(address, signerOrProvider) {
|
|
302
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
exports.TronMulticallHandler__factory = TronMulticallHandler__factory;
|
|
306
|
+
//# sourceMappingURL=TronMulticallHandler__factory.js.map
|