@across-protocol/contracts 0.1.3 → 0.1.4
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/contract-types/ethers/{AVMBridgeDepositBox.ts → AVMBridgeDepositBox.d.ts} +100 -152
- package/contract-types/ethers/AVMCrossDomainEnabled.d.ts +92 -0
- package/contract-types/ethers/{AccessControl.ts → AccessControl.d.ts} +58 -66
- package/contract-types/ethers/{AddressWhitelistInterface.ts → AddressWhitelistInterface.d.ts} +46 -26
- package/contract-types/ethers/{ArbSys.ts → ArbSys.d.ts} +75 -81
- package/contract-types/ethers/{ArbitrumBridgeMock.ts → ArbitrumBridgeMock.d.ts} +46 -26
- package/contract-types/ethers/ArbitrumCrossDomainEnabled.d.ts +95 -0
- package/contract-types/ethers/{ArbitrumInboxMock.ts → ArbitrumInboxMock.d.ts} +45 -26
- package/contract-types/ethers/{ArbitrumMessenger.ts → ArbitrumMessenger.d.ts} +73 -78
- package/contract-types/ethers/ArbitrumOutboxMock.d.ts +101 -0
- package/contract-types/ethers/{ArbitrumParentMessenger.ts → ArbitrumParentMessenger.d.ts} +90 -185
- package/contract-types/ethers/{Bridge.ts → Bridge.d.ts} +125 -185
- package/contract-types/ethers/{BridgeAdmin.ts → BridgeAdmin.d.ts} +103 -180
- package/contract-types/ethers/{BridgeAdminInterface.ts → BridgeAdminInterface.d.ts} +99 -166
- package/contract-types/ethers/{BridgeDepositBox.ts → BridgeDepositBox.d.ts} +94 -130
- package/contract-types/ethers/{BridgeDepositBoxMock.ts → BridgeDepositBoxMock.d.ts} +97 -139
- package/contract-types/ethers/{BridgePool.ts → BridgePool.d.ts} +824 -306
- package/contract-types/ethers/{BridgePoolInterface.ts → BridgePoolInterface.d.ts} +45 -26
- package/contract-types/ethers/{BridgePoolProd.ts → BridgePoolProd.d.ts} +824 -306
- package/contract-types/ethers/CrossDomainEnabled.d.ts +95 -0
- package/contract-types/ethers/ERC165.d.ts +116 -0
- package/contract-types/ethers/{ERC20.ts → ERC20.d.ts} +53 -52
- package/contract-types/ethers/{FinderInterface.ts → FinderInterface.d.ts} +46 -26
- package/contract-types/ethers/{FxBaseChildTunnel.ts → FxBaseChildTunnel.d.ts} +48 -32
- package/contract-types/ethers/{FxBaseRootTunnel.ts → FxBaseRootTunnel.d.ts} +46 -26
- package/contract-types/ethers/{FxChildMock.ts → FxChildMock.d.ts} +49 -39
- package/contract-types/ethers/{FxRootMock.ts → FxRootMock.d.ts} +46 -26
- package/contract-types/ethers/{GenericHandler.ts → GenericHandler.d.ts} +72 -44
- package/contract-types/ethers/{IAccessControl.ts → IAccessControl.d.ts} +46 -26
- package/contract-types/ethers/{IArbitrumInbox.ts → IArbitrumInbox.d.ts} +45 -26
- package/contract-types/ethers/IArbitrumOutbox.d.ts +101 -0
- package/contract-types/ethers/{IBridge.ts → IBridge.d.ts} +45 -26
- package/contract-types/ethers/{ICheckpointManager.ts → ICheckpointManager.d.ts} +45 -25
- package/contract-types/ethers/{ICrossDomainMessenger.ts → ICrossDomainMessenger.d.ts} +58 -66
- package/contract-types/ethers/{IDepositExecute.ts → IDepositExecute.d.ts} +45 -26
- package/contract-types/ethers/IERC165.d.ts +116 -0
- package/contract-types/ethers/{IERC20.ts → IERC20.d.ts} +53 -52
- package/contract-types/ethers/{IERC20Metadata.ts → IERC20Metadata.d.ts} +53 -52
- package/contract-types/ethers/{IERCHandler.ts → IERCHandler.d.ts} +45 -26
- package/contract-types/ethers/{IFxMessageProcessor.ts → IFxMessageProcessor.d.ts} +45 -26
- package/contract-types/ethers/{IFxStateSender.ts → IFxStateSender.d.ts} +46 -26
- package/contract-types/ethers/{IGenericHandler.ts → IGenericHandler.d.ts} +46 -26
- package/contract-types/ethers/{IL2ERC20Bridge.ts → IL2ERC20Bridge.d.ts} +78 -97
- package/contract-types/ethers/{IOVMCrossDomainMessenger.ts → IOVMCrossDomainMessenger.d.ts} +53 -49
- package/contract-types/ethers/{IStateReceiver.ts → IStateReceiver.d.ts} +45 -26
- package/contract-types/ethers/IStateSender.d.ts +119 -0
- package/contract-types/ethers/{IdentifierWhitelistInterface.ts → IdentifierWhitelistInterface.d.ts} +46 -26
- package/contract-types/ethers/Lockable.d.ts +78 -0
- package/contract-types/ethers/{MessengerInterface.ts → MessengerInterface.d.ts} +45 -26
- package/contract-types/ethers/{MessengerMock.ts → MessengerMock.d.ts} +54 -40
- package/contract-types/ethers/MultiCaller.d.ts +111 -0
- package/contract-types/ethers/{OVMBridgeDepositBox.ts → OVMBridgeDepositBox.d.ts} +96 -137
- package/contract-types/ethers/OVMCrossDomainEnabled.d.ts +95 -0
- package/contract-types/ethers/{OVML1CrossDomainMessengerMock.ts → OVML1CrossDomainMessengerMock.d.ts} +59 -67
- package/contract-types/ethers/{OVMOETHBridgeDepositBox.ts → OVMOETHBridgeDepositBox.d.ts} +96 -137
- package/contract-types/ethers/{OptimismMessenger.ts → OptimismMessenger.d.ts} +49 -39
- package/contract-types/ethers/{OptimismWrapper.ts → OptimismWrapper.d.ts} +52 -50
- package/contract-types/ethers/OptimisticOracleConstraints.d.ts +103 -0
- package/contract-types/ethers/{OptimisticOracleInterface.ts → OptimisticOracleInterface.d.ts} +135 -73
- package/contract-types/ethers/{OracleInterfaces.ts → OracleInterfaces.d.ts} +46 -25
- package/contract-types/ethers/{Ownable.ts → Ownable.d.ts} +50 -39
- package/contract-types/ethers/{ParentMessengerBase.ts → ParentMessengerBase.d.ts} +59 -83
- package/contract-types/ethers/{ParentMessengerConsumerInterface.ts → ParentMessengerConsumerInterface.d.ts} +46 -27
- package/contract-types/ethers/{ParentMessengerInterface.ts → ParentMessengerInterface.d.ts} +46 -26
- package/contract-types/ethers/Pausable.d.ts +105 -0
- package/contract-types/ethers/{RateModelStore.ts → RateModelStore.d.ts} +54 -52
- package/contract-types/ethers/SkinnyOptimisticOracleInterface.d.ts +1241 -0
- package/contract-types/ethers/{StandardBridgeLike.ts → StandardBridgeLike.d.ts} +45 -26
- package/contract-types/ethers/{StateSyncMock.ts → StateSyncMock.d.ts} +49 -39
- package/contract-types/ethers/{StoreInterface.ts → StoreInterface.d.ts} +80 -56
- package/contract-types/ethers/{Testable.ts → Testable.d.ts} +45 -26
- package/contract-types/ethers/{Timer.ts → Timer.d.ts} +45 -26
- package/contract-types/ethers/TokenLike.d.ts +108 -0
- package/contract-types/ethers/{WETH9Like.ts → WETH9Like.d.ts} +45 -26
- package/contract-types/ethers/commons.ts +36 -0
- package/contract-types/ethers/factories/AVMBridgeDepositBox__factory.ts +4 -15
- package/contract-types/ethers/factories/ArbitrumBridgeMock__factory.ts +3 -14
- package/contract-types/ethers/factories/ArbitrumInboxMock__factory.ts +3 -14
- package/contract-types/ethers/factories/ArbitrumMessenger__factory.ts +3 -14
- package/contract-types/ethers/factories/ArbitrumOutboxMock__factory.ts +3 -14
- package/contract-types/ethers/factories/ArbitrumParentMessenger__factory.ts +4 -15
- package/contract-types/ethers/factories/BridgeAdmin__factory.ts +5 -16
- package/contract-types/ethers/factories/BridgeDepositBoxMock__factory.ts +4 -15
- package/contract-types/ethers/factories/BridgePoolProd__factory.ts +4 -15
- package/contract-types/ethers/factories/BridgePool__factory.ts +4 -15
- package/contract-types/ethers/factories/Bridge__factory.ts +4 -15
- package/contract-types/ethers/factories/CrossDomainEnabled__factory.ts +3 -14
- package/contract-types/ethers/factories/ERC20__factory.ts +3 -14
- package/contract-types/ethers/factories/FxChildMock__factory.ts +3 -14
- package/contract-types/ethers/factories/FxRootMock__factory.ts +3 -14
- package/contract-types/ethers/factories/GenericHandler__factory.ts +4 -15
- package/contract-types/ethers/factories/ICheckpointManager__factory.ts +3 -14
- package/contract-types/ethers/factories/Lockable__factory.ts +3 -14
- package/contract-types/ethers/factories/MessengerMock__factory.ts +3 -14
- package/contract-types/ethers/factories/MultiCaller__factory.ts +3 -14
- package/contract-types/ethers/factories/OVMBridgeDepositBox__factory.ts +4 -15
- package/contract-types/ethers/factories/OVMCrossDomainEnabled__factory.ts +3 -14
- package/contract-types/ethers/factories/OVML1CrossDomainMessengerMock__factory.ts +3 -14
- package/contract-types/ethers/factories/OVMOETHBridgeDepositBox__factory.ts +4 -15
- package/contract-types/ethers/factories/OptimismMessenger__factory.ts +3 -14
- package/contract-types/ethers/factories/OptimismWrapper__factory.ts +3 -14
- package/contract-types/ethers/factories/OptimisticOracleConstraints__factory.ts +3 -14
- package/contract-types/ethers/factories/OracleInterfaces__factory.ts +3 -14
- package/contract-types/ethers/factories/RateModelStore__factory.ts +3 -14
- package/contract-types/ethers/factories/StateSyncMock__factory.ts +3 -14
- package/contract-types/ethers/factories/Timer__factory.ts +3 -14
- package/contract-types/ethers/hardhat.d.ts +0 -436
- package/contract-types/web3/AVM_BridgeDepositBox.d.ts +269 -0
- package/contract-types/web3/AVM_CrossDomainEnabled.d.ts +62 -0
- package/contract-types/web3/AccessControl.d.ts +127 -0
- package/contract-types/web3/AddressWhitelistInterface.d.ts +43 -0
- package/contract-types/web3/ArbSys.d.ts +112 -0
- package/contract-types/web3/Arbitrum_BridgeMock.d.ts +46 -0
- package/contract-types/web3/Arbitrum_CrossDomainEnabled.d.ts +37 -0
- package/contract-types/web3/Arbitrum_InboxMock.d.ts +48 -0
- package/contract-types/web3/Arbitrum_Messenger.d.ts +106 -0
- package/contract-types/web3/Arbitrum_OutboxMock.d.ts +37 -0
- package/contract-types/web3/Arbitrum_ParentMessenger.d.ts +348 -0
- package/contract-types/web3/Bridge.d.ts +401 -0
- package/contract-types/web3/BridgeAdmin.d.ts +357 -0
- package/contract-types/web3/BridgeAdminInterface.d.ts +265 -0
- package/contract-types/web3/BridgeDepositBox.d.ts +203 -0
- package/contract-types/web3/BridgeDepositBoxMock.d.ts +241 -0
- package/contract-types/web3/BridgePool.d.ts +520 -0
- package/contract-types/web3/BridgePoolInterface.d.ts +47 -0
- package/contract-types/web3/BridgePoolProd.d.ts +520 -0
- package/contract-types/web3/CrossDomainEnabled.d.ts +37 -0
- package/contract-types/web3/ERC165.d.ts +39 -0
- package/contract-types/web3/ERC20.d.ts +105 -0
- package/contract-types/web3/FinderInterface.d.ts +44 -0
- package/contract-types/web3/FxBaseChildTunnel.d.ts +65 -0
- package/contract-types/web3/FxBaseRootTunnel.d.ts +53 -0
- package/contract-types/web3/FxChildMock.d.ts +68 -0
- package/contract-types/web3/FxRootMock.d.ts +46 -0
- package/contract-types/web3/GenericHandler.d.ts +94 -0
- package/contract-types/web3/IAccessControl.d.ts +57 -0
- package/contract-types/web3/IBridge.d.ts +43 -0
- package/contract-types/web3/ICheckpointManager.d.ts +48 -0
- package/contract-types/web3/ICrossDomainMessenger.d.ts +103 -0
- package/contract-types/web3/IDepositExecute.d.ts +48 -0
- package/contract-types/web3/IERC165.d.ts +39 -0
- package/contract-types/web3/IERC20.d.ts +89 -0
- package/contract-types/web3/IERC20Metadata.d.ts +95 -0
- package/contract-types/web3/IERCHandler.d.ts +48 -0
- package/contract-types/web3/IFxMessageProcessor.d.ts +41 -0
- package/contract-types/web3/IFxStateSender.d.ts +40 -0
- package/contract-types/web3/IGenericHandler.d.ts +42 -0
- package/contract-types/web3/IL2ERC20Bridge.d.ts +143 -0
- package/contract-types/web3/IStateReceiver.d.ts +40 -0
- package/contract-types/web3/IStateSender.d.ts +40 -0
- package/contract-types/web3/IdentifierWhitelistInterface.d.ts +47 -0
- package/contract-types/web3/Lockable.d.ts +35 -0
- package/contract-types/web3/MessengerInterface.d.ts +45 -0
- package/contract-types/web3/MessengerMock.d.ts +69 -0
- package/contract-types/web3/MultiCaller.d.ts +37 -0
- package/contract-types/web3/OVM_BridgeDepositBox.d.ts +243 -0
- package/contract-types/web3/OVM_CrossDomainEnabled.d.ts +37 -0
- package/contract-types/web3/OVM_L1CrossDomainMessengerMock.d.ts +103 -0
- package/contract-types/web3/OVM_OETH_BridgeDepositBox.d.ts +247 -0
- package/contract-types/web3/Optimism_Messenger.d.ts +73 -0
- package/contract-types/web3/Optimism_Wrapper.d.ts +86 -0
- package/contract-types/web3/OptimisticOracleConstraints.d.ts +37 -0
- package/contract-types/web3/OptimisticOracleInterface.d.ts +151 -0
- package/contract-types/web3/OracleInterfaces.d.ts +55 -0
- package/contract-types/web3/Ownable.d.ts +61 -0
- package/contract-types/web3/ParentMessengerBase.d.ts +178 -0
- package/contract-types/web3/ParentMessengerConsumerInterface.d.ts +40 -0
- package/contract-types/web3/ParentMessengerInterface.d.ts +41 -0
- package/contract-types/web3/Pausable.d.ts +58 -0
- package/contract-types/web3/RateModelStore.d.ts +89 -0
- package/contract-types/web3/SkinnyOptimisticOracleInterface.d.ts +213 -0
- package/contract-types/web3/StandardBridgeLike.d.ts +42 -0
- package/contract-types/web3/StateSyncMock.d.ts +62 -0
- package/contract-types/web3/StoreInterface.d.ts +55 -0
- package/contract-types/web3/Testable.d.ts +43 -0
- package/contract-types/web3/Timer.d.ts +41 -0
- package/contract-types/web3/TokenLike.d.ts +37 -0
- package/contract-types/web3/WETH9Like.d.ts +44 -0
- package/contract-types/web3/iArbitrum_Inbox.d.ts +48 -0
- package/contract-types/web3/iArbitrum_Outbox.d.ts +37 -0
- package/contract-types/web3/iOVM_CrossDomainMessenger.d.ts +95 -0
- package/contract-types/web3/types.d.ts +71 -0
- package/package.json +5 -5
- package/contract-types/ethers/AVMCrossDomainEnabled.ts +0 -75
- package/contract-types/ethers/ArbitrumCrossDomainEnabled.ts +0 -74
- package/contract-types/ethers/ArbitrumOutboxMock.ts +0 -80
- package/contract-types/ethers/CrossDomainEnabled.ts +0 -74
- package/contract-types/ethers/ERC165.ts +0 -95
- package/contract-types/ethers/IArbitrumOutbox.ts +0 -80
- package/contract-types/ethers/IERC165.ts +0 -95
- package/contract-types/ethers/IStateSender.ts +0 -99
- package/contract-types/ethers/Lockable.ts +0 -50
- package/contract-types/ethers/MultiCaller.ts +0 -91
- package/contract-types/ethers/OVMCrossDomainEnabled.ts +0 -74
- package/contract-types/ethers/OptimisticOracleConstraints.ts +0 -82
- package/contract-types/ethers/Pausable.ts +0 -94
- package/contract-types/ethers/SkinnyOptimisticOracleInterface.ts +0 -727
- package/contract-types/ethers/TokenLike.ts +0 -88
- package/contract-types/ethers/common.ts +0 -44
|
@@ -0,0 +1,520 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import BN from "bn.js";
|
|
6
|
+
import { ContractOptions } from "web3-eth-contract";
|
|
7
|
+
import { EventLog } from "web3-core";
|
|
8
|
+
import { EventEmitter } from "events";
|
|
9
|
+
import {
|
|
10
|
+
Callback,
|
|
11
|
+
PayableTransactionObject,
|
|
12
|
+
NonPayableTransactionObject,
|
|
13
|
+
BlockType,
|
|
14
|
+
ContractEventLog,
|
|
15
|
+
BaseContract,
|
|
16
|
+
} from "./types";
|
|
17
|
+
|
|
18
|
+
interface EventOptions {
|
|
19
|
+
filter?: object;
|
|
20
|
+
fromBlock?: BlockType;
|
|
21
|
+
topics?: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type Approval = ContractEventLog<{
|
|
25
|
+
owner: string;
|
|
26
|
+
spender: string;
|
|
27
|
+
value: string;
|
|
28
|
+
0: string;
|
|
29
|
+
1: string;
|
|
30
|
+
2: string;
|
|
31
|
+
}>;
|
|
32
|
+
export type BridgePoolAdminTransferred = ContractEventLog<{
|
|
33
|
+
oldAdmin: string;
|
|
34
|
+
newAdmin: string;
|
|
35
|
+
0: string;
|
|
36
|
+
1: string;
|
|
37
|
+
}>;
|
|
38
|
+
export type DepositRelayed = ContractEventLog<{
|
|
39
|
+
depositHash: string;
|
|
40
|
+
depositData: [string, string, string, string, string, string, string, string];
|
|
41
|
+
relay: [string, string, string, string, string, string, string];
|
|
42
|
+
relayAncillaryDataHash: string;
|
|
43
|
+
0: string;
|
|
44
|
+
1: [string, string, string, string, string, string, string, string];
|
|
45
|
+
2: [string, string, string, string, string, string, string];
|
|
46
|
+
3: string;
|
|
47
|
+
}>;
|
|
48
|
+
export type LiquidityAdded = ContractEventLog<{
|
|
49
|
+
amount: string;
|
|
50
|
+
lpTokensMinted: string;
|
|
51
|
+
liquidityProvider: string;
|
|
52
|
+
0: string;
|
|
53
|
+
1: string;
|
|
54
|
+
2: string;
|
|
55
|
+
}>;
|
|
56
|
+
export type LiquidityRemoved = ContractEventLog<{
|
|
57
|
+
amount: string;
|
|
58
|
+
lpTokensBurnt: string;
|
|
59
|
+
liquidityProvider: string;
|
|
60
|
+
0: string;
|
|
61
|
+
1: string;
|
|
62
|
+
2: string;
|
|
63
|
+
}>;
|
|
64
|
+
export type LpFeeRateSet = ContractEventLog<{
|
|
65
|
+
newLpFeeRatePerSecond: string;
|
|
66
|
+
0: string;
|
|
67
|
+
}>;
|
|
68
|
+
export type RelayCanceled = ContractEventLog<{
|
|
69
|
+
depositHash: string;
|
|
70
|
+
relayHash: string;
|
|
71
|
+
disputer: string;
|
|
72
|
+
0: string;
|
|
73
|
+
1: string;
|
|
74
|
+
2: string;
|
|
75
|
+
}>;
|
|
76
|
+
export type RelayDisputed = ContractEventLog<{
|
|
77
|
+
depositHash: string;
|
|
78
|
+
relayHash: string;
|
|
79
|
+
disputer: string;
|
|
80
|
+
0: string;
|
|
81
|
+
1: string;
|
|
82
|
+
2: string;
|
|
83
|
+
}>;
|
|
84
|
+
export type RelaySettled = ContractEventLog<{
|
|
85
|
+
depositHash: string;
|
|
86
|
+
caller: string;
|
|
87
|
+
relay: [string, string, string, string, string, string, string];
|
|
88
|
+
0: string;
|
|
89
|
+
1: string;
|
|
90
|
+
2: [string, string, string, string, string, string, string];
|
|
91
|
+
}>;
|
|
92
|
+
export type RelaySpedUp = ContractEventLog<{
|
|
93
|
+
depositHash: string;
|
|
94
|
+
instantRelayer: string;
|
|
95
|
+
relay: [string, string, string, string, string, string, string];
|
|
96
|
+
0: string;
|
|
97
|
+
1: string;
|
|
98
|
+
2: [string, string, string, string, string, string, string];
|
|
99
|
+
}>;
|
|
100
|
+
export type RelaysEnabledSet = ContractEventLog<{
|
|
101
|
+
newRelaysEnabled: boolean;
|
|
102
|
+
0: boolean;
|
|
103
|
+
}>;
|
|
104
|
+
export type Transfer = ContractEventLog<{
|
|
105
|
+
from: string;
|
|
106
|
+
to: string;
|
|
107
|
+
value: string;
|
|
108
|
+
0: string;
|
|
109
|
+
1: string;
|
|
110
|
+
2: string;
|
|
111
|
+
}>;
|
|
112
|
+
|
|
113
|
+
export interface BridgePool extends BaseContract {
|
|
114
|
+
constructor(
|
|
115
|
+
jsonInterface: any[],
|
|
116
|
+
address?: string,
|
|
117
|
+
options?: ContractOptions
|
|
118
|
+
): BridgePool;
|
|
119
|
+
clone(): BridgePool;
|
|
120
|
+
methods: {
|
|
121
|
+
addLiquidity(
|
|
122
|
+
l1TokenAmount: number | string | BN
|
|
123
|
+
): PayableTransactionObject<void>;
|
|
124
|
+
|
|
125
|
+
allowance(
|
|
126
|
+
owner: string,
|
|
127
|
+
spender: string
|
|
128
|
+
): NonPayableTransactionObject<string>;
|
|
129
|
+
|
|
130
|
+
approve(
|
|
131
|
+
spender: string,
|
|
132
|
+
amount: number | string | BN
|
|
133
|
+
): NonPayableTransactionObject<boolean>;
|
|
134
|
+
|
|
135
|
+
balanceOf(account: string): NonPayableTransactionObject<string>;
|
|
136
|
+
|
|
137
|
+
bonds(): NonPayableTransactionObject<string>;
|
|
138
|
+
|
|
139
|
+
bridgeAdmin(): NonPayableTransactionObject<string>;
|
|
140
|
+
|
|
141
|
+
changeAdmin(_newAdmin: string): NonPayableTransactionObject<void>;
|
|
142
|
+
|
|
143
|
+
decimals(): NonPayableTransactionObject<string>;
|
|
144
|
+
|
|
145
|
+
decreaseAllowance(
|
|
146
|
+
spender: string,
|
|
147
|
+
subtractedValue: number | string | BN
|
|
148
|
+
): NonPayableTransactionObject<boolean>;
|
|
149
|
+
|
|
150
|
+
disputeRelay(
|
|
151
|
+
depositData: [
|
|
152
|
+
number | string | BN,
|
|
153
|
+
number | string | BN,
|
|
154
|
+
string,
|
|
155
|
+
string,
|
|
156
|
+
number | string | BN,
|
|
157
|
+
number | string | BN,
|
|
158
|
+
number | string | BN,
|
|
159
|
+
number | string | BN
|
|
160
|
+
],
|
|
161
|
+
relayData: [
|
|
162
|
+
number | string | BN,
|
|
163
|
+
string,
|
|
164
|
+
number | string | BN,
|
|
165
|
+
number | string | BN,
|
|
166
|
+
number | string | BN,
|
|
167
|
+
number | string | BN,
|
|
168
|
+
number | string | BN
|
|
169
|
+
]
|
|
170
|
+
): NonPayableTransactionObject<void>;
|
|
171
|
+
|
|
172
|
+
exchangeRateCurrent(): NonPayableTransactionObject<string>;
|
|
173
|
+
|
|
174
|
+
getAccumulatedFees(): NonPayableTransactionObject<string>;
|
|
175
|
+
|
|
176
|
+
getCurrentTime(): NonPayableTransactionObject<string>;
|
|
177
|
+
|
|
178
|
+
getLiquidityUtilization(
|
|
179
|
+
relayedAmount: number | string | BN
|
|
180
|
+
): NonPayableTransactionObject<{
|
|
181
|
+
utilizationCurrent: string;
|
|
182
|
+
utilizationPostRelay: string;
|
|
183
|
+
0: string;
|
|
184
|
+
1: string;
|
|
185
|
+
}>;
|
|
186
|
+
|
|
187
|
+
getRelayAncillaryData(
|
|
188
|
+
depositData: [
|
|
189
|
+
number | string | BN,
|
|
190
|
+
number | string | BN,
|
|
191
|
+
string,
|
|
192
|
+
string,
|
|
193
|
+
number | string | BN,
|
|
194
|
+
number | string | BN,
|
|
195
|
+
number | string | BN,
|
|
196
|
+
number | string | BN
|
|
197
|
+
],
|
|
198
|
+
relayData: [
|
|
199
|
+
number | string | BN,
|
|
200
|
+
string,
|
|
201
|
+
number | string | BN,
|
|
202
|
+
number | string | BN,
|
|
203
|
+
number | string | BN,
|
|
204
|
+
number | string | BN,
|
|
205
|
+
number | string | BN
|
|
206
|
+
]
|
|
207
|
+
): NonPayableTransactionObject<string>;
|
|
208
|
+
|
|
209
|
+
identifier(): NonPayableTransactionObject<string>;
|
|
210
|
+
|
|
211
|
+
increaseAllowance(
|
|
212
|
+
spender: string,
|
|
213
|
+
addedValue: number | string | BN
|
|
214
|
+
): NonPayableTransactionObject<boolean>;
|
|
215
|
+
|
|
216
|
+
instantRelays(arg0: string | number[]): NonPayableTransactionObject<string>;
|
|
217
|
+
|
|
218
|
+
isWethPool(): NonPayableTransactionObject<boolean>;
|
|
219
|
+
|
|
220
|
+
l1Token(): NonPayableTransactionObject<string>;
|
|
221
|
+
|
|
222
|
+
lastLpFeeUpdate(): NonPayableTransactionObject<string>;
|
|
223
|
+
|
|
224
|
+
liquidReserves(): NonPayableTransactionObject<string>;
|
|
225
|
+
|
|
226
|
+
liquidityUtilizationCurrent(): NonPayableTransactionObject<string>;
|
|
227
|
+
|
|
228
|
+
liquidityUtilizationPostRelay(
|
|
229
|
+
relayedAmount: number | string | BN
|
|
230
|
+
): NonPayableTransactionObject<string>;
|
|
231
|
+
|
|
232
|
+
lpFeeRatePerSecond(): NonPayableTransactionObject<string>;
|
|
233
|
+
|
|
234
|
+
multicall(data: (string | number[])[]): PayableTransactionObject<string[]>;
|
|
235
|
+
|
|
236
|
+
name(): NonPayableTransactionObject<string>;
|
|
237
|
+
|
|
238
|
+
numberOfRelays(): NonPayableTransactionObject<string>;
|
|
239
|
+
|
|
240
|
+
optimisticOracle(): NonPayableTransactionObject<string>;
|
|
241
|
+
|
|
242
|
+
optimisticOracleLiveness(): NonPayableTransactionObject<string>;
|
|
243
|
+
|
|
244
|
+
pendingReserves(): NonPayableTransactionObject<string>;
|
|
245
|
+
|
|
246
|
+
proposerBondPct(): NonPayableTransactionObject<string>;
|
|
247
|
+
|
|
248
|
+
relayAndSpeedUp(
|
|
249
|
+
depositData: [
|
|
250
|
+
number | string | BN,
|
|
251
|
+
number | string | BN,
|
|
252
|
+
string,
|
|
253
|
+
string,
|
|
254
|
+
number | string | BN,
|
|
255
|
+
number | string | BN,
|
|
256
|
+
number | string | BN,
|
|
257
|
+
number | string | BN
|
|
258
|
+
],
|
|
259
|
+
realizedLpFeePct: number | string | BN
|
|
260
|
+
): NonPayableTransactionObject<void>;
|
|
261
|
+
|
|
262
|
+
relayDeposit(
|
|
263
|
+
depositData: [
|
|
264
|
+
number | string | BN,
|
|
265
|
+
number | string | BN,
|
|
266
|
+
string,
|
|
267
|
+
string,
|
|
268
|
+
number | string | BN,
|
|
269
|
+
number | string | BN,
|
|
270
|
+
number | string | BN,
|
|
271
|
+
number | string | BN
|
|
272
|
+
],
|
|
273
|
+
realizedLpFeePct: number | string | BN
|
|
274
|
+
): NonPayableTransactionObject<void>;
|
|
275
|
+
|
|
276
|
+
relays(arg0: string | number[]): NonPayableTransactionObject<string>;
|
|
277
|
+
|
|
278
|
+
relaysEnabled(): NonPayableTransactionObject<boolean>;
|
|
279
|
+
|
|
280
|
+
removeLiquidity(
|
|
281
|
+
lpTokenAmount: number | string | BN,
|
|
282
|
+
sendEth: boolean
|
|
283
|
+
): NonPayableTransactionObject<void>;
|
|
284
|
+
|
|
285
|
+
setCurrentTime(
|
|
286
|
+
time: number | string | BN
|
|
287
|
+
): NonPayableTransactionObject<void>;
|
|
288
|
+
|
|
289
|
+
setLpFeeRatePerSecond(
|
|
290
|
+
_newLpFeeRatePerSecond: number | string | BN
|
|
291
|
+
): NonPayableTransactionObject<void>;
|
|
292
|
+
|
|
293
|
+
setRelaysEnabled(
|
|
294
|
+
_relaysEnabled: boolean
|
|
295
|
+
): NonPayableTransactionObject<void>;
|
|
296
|
+
|
|
297
|
+
settleRelay(
|
|
298
|
+
depositData: [
|
|
299
|
+
number | string | BN,
|
|
300
|
+
number | string | BN,
|
|
301
|
+
string,
|
|
302
|
+
string,
|
|
303
|
+
number | string | BN,
|
|
304
|
+
number | string | BN,
|
|
305
|
+
number | string | BN,
|
|
306
|
+
number | string | BN
|
|
307
|
+
],
|
|
308
|
+
relayData: [
|
|
309
|
+
number | string | BN,
|
|
310
|
+
string,
|
|
311
|
+
number | string | BN,
|
|
312
|
+
number | string | BN,
|
|
313
|
+
number | string | BN,
|
|
314
|
+
number | string | BN,
|
|
315
|
+
number | string | BN
|
|
316
|
+
]
|
|
317
|
+
): NonPayableTransactionObject<void>;
|
|
318
|
+
|
|
319
|
+
speedUpRelay(
|
|
320
|
+
depositData: [
|
|
321
|
+
number | string | BN,
|
|
322
|
+
number | string | BN,
|
|
323
|
+
string,
|
|
324
|
+
string,
|
|
325
|
+
number | string | BN,
|
|
326
|
+
number | string | BN,
|
|
327
|
+
number | string | BN,
|
|
328
|
+
number | string | BN
|
|
329
|
+
],
|
|
330
|
+
relayData: [
|
|
331
|
+
number | string | BN,
|
|
332
|
+
string,
|
|
333
|
+
number | string | BN,
|
|
334
|
+
number | string | BN,
|
|
335
|
+
number | string | BN,
|
|
336
|
+
number | string | BN,
|
|
337
|
+
number | string | BN
|
|
338
|
+
]
|
|
339
|
+
): NonPayableTransactionObject<void>;
|
|
340
|
+
|
|
341
|
+
store(): NonPayableTransactionObject<string>;
|
|
342
|
+
|
|
343
|
+
symbol(): NonPayableTransactionObject<string>;
|
|
344
|
+
|
|
345
|
+
sync(): NonPayableTransactionObject<void>;
|
|
346
|
+
|
|
347
|
+
syncUmaEcosystemParams(): NonPayableTransactionObject<void>;
|
|
348
|
+
|
|
349
|
+
syncWithBridgeAdminParams(): NonPayableTransactionObject<void>;
|
|
350
|
+
|
|
351
|
+
timerAddress(): NonPayableTransactionObject<string>;
|
|
352
|
+
|
|
353
|
+
totalSupply(): NonPayableTransactionObject<string>;
|
|
354
|
+
|
|
355
|
+
transfer(
|
|
356
|
+
recipient: string,
|
|
357
|
+
amount: number | string | BN
|
|
358
|
+
): NonPayableTransactionObject<boolean>;
|
|
359
|
+
|
|
360
|
+
transferFrom(
|
|
361
|
+
sender: string,
|
|
362
|
+
recipient: string,
|
|
363
|
+
amount: number | string | BN
|
|
364
|
+
): NonPayableTransactionObject<boolean>;
|
|
365
|
+
|
|
366
|
+
undistributedLpFees(): NonPayableTransactionObject<string>;
|
|
367
|
+
|
|
368
|
+
utilizedReserves(): NonPayableTransactionObject<string>;
|
|
369
|
+
};
|
|
370
|
+
events: {
|
|
371
|
+
Approval(cb?: Callback<Approval>): EventEmitter;
|
|
372
|
+
Approval(options?: EventOptions, cb?: Callback<Approval>): EventEmitter;
|
|
373
|
+
|
|
374
|
+
BridgePoolAdminTransferred(
|
|
375
|
+
cb?: Callback<BridgePoolAdminTransferred>
|
|
376
|
+
): EventEmitter;
|
|
377
|
+
BridgePoolAdminTransferred(
|
|
378
|
+
options?: EventOptions,
|
|
379
|
+
cb?: Callback<BridgePoolAdminTransferred>
|
|
380
|
+
): EventEmitter;
|
|
381
|
+
|
|
382
|
+
DepositRelayed(cb?: Callback<DepositRelayed>): EventEmitter;
|
|
383
|
+
DepositRelayed(
|
|
384
|
+
options?: EventOptions,
|
|
385
|
+
cb?: Callback<DepositRelayed>
|
|
386
|
+
): EventEmitter;
|
|
387
|
+
|
|
388
|
+
LiquidityAdded(cb?: Callback<LiquidityAdded>): EventEmitter;
|
|
389
|
+
LiquidityAdded(
|
|
390
|
+
options?: EventOptions,
|
|
391
|
+
cb?: Callback<LiquidityAdded>
|
|
392
|
+
): EventEmitter;
|
|
393
|
+
|
|
394
|
+
LiquidityRemoved(cb?: Callback<LiquidityRemoved>): EventEmitter;
|
|
395
|
+
LiquidityRemoved(
|
|
396
|
+
options?: EventOptions,
|
|
397
|
+
cb?: Callback<LiquidityRemoved>
|
|
398
|
+
): EventEmitter;
|
|
399
|
+
|
|
400
|
+
LpFeeRateSet(cb?: Callback<LpFeeRateSet>): EventEmitter;
|
|
401
|
+
LpFeeRateSet(
|
|
402
|
+
options?: EventOptions,
|
|
403
|
+
cb?: Callback<LpFeeRateSet>
|
|
404
|
+
): EventEmitter;
|
|
405
|
+
|
|
406
|
+
RelayCanceled(cb?: Callback<RelayCanceled>): EventEmitter;
|
|
407
|
+
RelayCanceled(
|
|
408
|
+
options?: EventOptions,
|
|
409
|
+
cb?: Callback<RelayCanceled>
|
|
410
|
+
): EventEmitter;
|
|
411
|
+
|
|
412
|
+
RelayDisputed(cb?: Callback<RelayDisputed>): EventEmitter;
|
|
413
|
+
RelayDisputed(
|
|
414
|
+
options?: EventOptions,
|
|
415
|
+
cb?: Callback<RelayDisputed>
|
|
416
|
+
): EventEmitter;
|
|
417
|
+
|
|
418
|
+
RelaySettled(cb?: Callback<RelaySettled>): EventEmitter;
|
|
419
|
+
RelaySettled(
|
|
420
|
+
options?: EventOptions,
|
|
421
|
+
cb?: Callback<RelaySettled>
|
|
422
|
+
): EventEmitter;
|
|
423
|
+
|
|
424
|
+
RelaySpedUp(cb?: Callback<RelaySpedUp>): EventEmitter;
|
|
425
|
+
RelaySpedUp(
|
|
426
|
+
options?: EventOptions,
|
|
427
|
+
cb?: Callback<RelaySpedUp>
|
|
428
|
+
): EventEmitter;
|
|
429
|
+
|
|
430
|
+
RelaysEnabledSet(cb?: Callback<RelaysEnabledSet>): EventEmitter;
|
|
431
|
+
RelaysEnabledSet(
|
|
432
|
+
options?: EventOptions,
|
|
433
|
+
cb?: Callback<RelaysEnabledSet>
|
|
434
|
+
): EventEmitter;
|
|
435
|
+
|
|
436
|
+
Transfer(cb?: Callback<Transfer>): EventEmitter;
|
|
437
|
+
Transfer(options?: EventOptions, cb?: Callback<Transfer>): EventEmitter;
|
|
438
|
+
|
|
439
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
once(event: "Approval", cb: Callback<Approval>): void;
|
|
443
|
+
once(event: "Approval", options: EventOptions, cb: Callback<Approval>): void;
|
|
444
|
+
|
|
445
|
+
once(
|
|
446
|
+
event: "BridgePoolAdminTransferred",
|
|
447
|
+
cb: Callback<BridgePoolAdminTransferred>
|
|
448
|
+
): void;
|
|
449
|
+
once(
|
|
450
|
+
event: "BridgePoolAdminTransferred",
|
|
451
|
+
options: EventOptions,
|
|
452
|
+
cb: Callback<BridgePoolAdminTransferred>
|
|
453
|
+
): void;
|
|
454
|
+
|
|
455
|
+
once(event: "DepositRelayed", cb: Callback<DepositRelayed>): void;
|
|
456
|
+
once(
|
|
457
|
+
event: "DepositRelayed",
|
|
458
|
+
options: EventOptions,
|
|
459
|
+
cb: Callback<DepositRelayed>
|
|
460
|
+
): void;
|
|
461
|
+
|
|
462
|
+
once(event: "LiquidityAdded", cb: Callback<LiquidityAdded>): void;
|
|
463
|
+
once(
|
|
464
|
+
event: "LiquidityAdded",
|
|
465
|
+
options: EventOptions,
|
|
466
|
+
cb: Callback<LiquidityAdded>
|
|
467
|
+
): void;
|
|
468
|
+
|
|
469
|
+
once(event: "LiquidityRemoved", cb: Callback<LiquidityRemoved>): void;
|
|
470
|
+
once(
|
|
471
|
+
event: "LiquidityRemoved",
|
|
472
|
+
options: EventOptions,
|
|
473
|
+
cb: Callback<LiquidityRemoved>
|
|
474
|
+
): void;
|
|
475
|
+
|
|
476
|
+
once(event: "LpFeeRateSet", cb: Callback<LpFeeRateSet>): void;
|
|
477
|
+
once(
|
|
478
|
+
event: "LpFeeRateSet",
|
|
479
|
+
options: EventOptions,
|
|
480
|
+
cb: Callback<LpFeeRateSet>
|
|
481
|
+
): void;
|
|
482
|
+
|
|
483
|
+
once(event: "RelayCanceled", cb: Callback<RelayCanceled>): void;
|
|
484
|
+
once(
|
|
485
|
+
event: "RelayCanceled",
|
|
486
|
+
options: EventOptions,
|
|
487
|
+
cb: Callback<RelayCanceled>
|
|
488
|
+
): void;
|
|
489
|
+
|
|
490
|
+
once(event: "RelayDisputed", cb: Callback<RelayDisputed>): void;
|
|
491
|
+
once(
|
|
492
|
+
event: "RelayDisputed",
|
|
493
|
+
options: EventOptions,
|
|
494
|
+
cb: Callback<RelayDisputed>
|
|
495
|
+
): void;
|
|
496
|
+
|
|
497
|
+
once(event: "RelaySettled", cb: Callback<RelaySettled>): void;
|
|
498
|
+
once(
|
|
499
|
+
event: "RelaySettled",
|
|
500
|
+
options: EventOptions,
|
|
501
|
+
cb: Callback<RelaySettled>
|
|
502
|
+
): void;
|
|
503
|
+
|
|
504
|
+
once(event: "RelaySpedUp", cb: Callback<RelaySpedUp>): void;
|
|
505
|
+
once(
|
|
506
|
+
event: "RelaySpedUp",
|
|
507
|
+
options: EventOptions,
|
|
508
|
+
cb: Callback<RelaySpedUp>
|
|
509
|
+
): void;
|
|
510
|
+
|
|
511
|
+
once(event: "RelaysEnabledSet", cb: Callback<RelaysEnabledSet>): void;
|
|
512
|
+
once(
|
|
513
|
+
event: "RelaysEnabledSet",
|
|
514
|
+
options: EventOptions,
|
|
515
|
+
cb: Callback<RelaysEnabledSet>
|
|
516
|
+
): void;
|
|
517
|
+
|
|
518
|
+
once(event: "Transfer", cb: Callback<Transfer>): void;
|
|
519
|
+
once(event: "Transfer", options: EventOptions, cb: Callback<Transfer>): void;
|
|
520
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import BN from "bn.js";
|
|
6
|
+
import { ContractOptions } from "web3-eth-contract";
|
|
7
|
+
import { EventLog } from "web3-core";
|
|
8
|
+
import { EventEmitter } from "events";
|
|
9
|
+
import {
|
|
10
|
+
Callback,
|
|
11
|
+
PayableTransactionObject,
|
|
12
|
+
NonPayableTransactionObject,
|
|
13
|
+
BlockType,
|
|
14
|
+
ContractEventLog,
|
|
15
|
+
BaseContract,
|
|
16
|
+
} from "./types";
|
|
17
|
+
|
|
18
|
+
interface EventOptions {
|
|
19
|
+
filter?: object;
|
|
20
|
+
fromBlock?: BlockType;
|
|
21
|
+
topics?: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface BridgePoolInterface extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): BridgePoolInterface;
|
|
30
|
+
clone(): BridgePoolInterface;
|
|
31
|
+
methods: {
|
|
32
|
+
changeAdmin(newAdmin: string): NonPayableTransactionObject<void>;
|
|
33
|
+
|
|
34
|
+
l1Token(): NonPayableTransactionObject<string>;
|
|
35
|
+
|
|
36
|
+
setLpFeeRatePerSecond(
|
|
37
|
+
_newLpFeeRatePerSecond: number | string | BN
|
|
38
|
+
): NonPayableTransactionObject<void>;
|
|
39
|
+
|
|
40
|
+
setRelaysEnabled(
|
|
41
|
+
_relaysEnabled: boolean
|
|
42
|
+
): NonPayableTransactionObject<void>;
|
|
43
|
+
};
|
|
44
|
+
events: {
|
|
45
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
46
|
+
};
|
|
47
|
+
}
|