@across-protocol/contracts 0.1.0 → 0.1.1
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/build/artfacts.json +342 -0
- package/contract-types/ethers/AVMBridgeDepositBox.ts +780 -0
- package/contract-types/ethers/AVMCrossDomainEnabled.ts +75 -0
- package/contract-types/ethers/AccessControl.ts +353 -0
- package/contract-types/ethers/AddressWhitelistInterface.ts +184 -0
- package/contract-types/ethers/ArbSys.ts +354 -0
- package/contract-types/ethers/ArbitrumBridgeMock.ts +159 -0
- package/contract-types/ethers/ArbitrumCrossDomainEnabled.ts +74 -0
- package/contract-types/ethers/ArbitrumInboxMock.ts +155 -0
- package/contract-types/ethers/ArbitrumMessenger.ts +297 -0
- package/contract-types/ethers/ArbitrumOutboxMock.ts +80 -0
- package/contract-types/ethers/ArbitrumParentMessenger.ts +1028 -0
- package/contract-types/ethers/Bridge.ts +1537 -0
- package/contract-types/ethers/BridgeAdmin.ts +1011 -0
- package/contract-types/ethers/BridgeAdminInterface.ts +409 -0
- package/contract-types/ethers/BridgeDepositBox.ts +557 -0
- package/contract-types/ethers/BridgeDepositBoxMock.ts +739 -0
- package/contract-types/ethers/BridgePool.ts +1741 -0
- package/contract-types/ethers/BridgePoolInterface.ts +173 -0
- package/contract-types/ethers/BridgePoolProd.ts +1741 -0
- package/contract-types/ethers/CrossDomainEnabled.ts +74 -0
- package/contract-types/ethers/ERC165.ts +95 -0
- package/contract-types/ethers/ERC20.ts +410 -0
- package/contract-types/ethers/FinderInterface.ts +136 -0
- package/contract-types/ethers/FxBaseChildTunnel.ts +185 -0
- package/contract-types/ethers/FxBaseRootTunnel.ts +234 -0
- package/contract-types/ethers/FxChildMock.ts +182 -0
- package/contract-types/ethers/FxRootMock.ts +159 -0
- package/contract-types/ethers/GenericHandler.ts +502 -0
- package/contract-types/ethers/IAccessControl.ts +235 -0
- package/contract-types/ethers/IArbitrumInbox.ts +155 -0
- package/contract-types/ethers/IArbitrumOutbox.ts +80 -0
- package/contract-types/ethers/IBridge.ts +126 -0
- package/contract-types/ethers/ICheckpointManager.ts +120 -0
- package/contract-types/ethers/ICrossDomainMessenger.ts +189 -0
- package/contract-types/ethers/IDepositExecute.ts +154 -0
- package/contract-types/ethers/IERC165.ts +95 -0
- package/contract-types/ethers/IERC20.ts +293 -0
- package/contract-types/ethers/IERC20Metadata.ts +332 -0
- package/contract-types/ethers/IERCHandler.ts +175 -0
- package/contract-types/ethers/IFxMessageProcessor.ts +108 -0
- package/contract-types/ethers/IFxStateSender.ts +102 -0
- package/contract-types/ethers/IGenericHandler.ts +112 -0
- package/contract-types/ethers/IL2ERC20Bridge.ts +350 -0
- package/contract-types/ethers/IOVMCrossDomainMessenger.ts +164 -0
- package/contract-types/ethers/IStateReceiver.ts +103 -0
- package/contract-types/ethers/IStateSender.ts +99 -0
- package/contract-types/ethers/IdentifierWhitelistInterface.ts +165 -0
- package/contract-types/ethers/Lockable.ts +50 -0
- package/contract-types/ethers/MessengerInterface.ts +136 -0
- package/contract-types/ethers/MessengerMock.ts +160 -0
- package/contract-types/ethers/MultiCaller.ts +91 -0
- package/contract-types/ethers/OVMBridgeDepositBox.ts +751 -0
- package/contract-types/ethers/OVMCrossDomainEnabled.ts +74 -0
- package/contract-types/ethers/OVML1CrossDomainMessengerMock.ts +190 -0
- package/contract-types/ethers/OVMOETHBridgeDepositBox.ts +783 -0
- package/contract-types/ethers/OptimismMessenger.ts +245 -0
- package/contract-types/ethers/OptimismWrapper.ts +264 -0
- package/contract-types/ethers/OptimisticOracleConstraints.ts +82 -0
- package/contract-types/ethers/OptimisticOracleInterface.ts +804 -0
- package/contract-types/ethers/OracleInterfaces.ts +235 -0
- package/contract-types/ethers/Ownable.ts +158 -0
- package/contract-types/ethers/ParentMessengerBase.ts +554 -0
- package/contract-types/ethers/ParentMessengerConsumerInterface.ts +104 -0
- package/contract-types/ethers/ParentMessengerInterface.ts +116 -0
- package/contract-types/ethers/Pausable.ts +94 -0
- package/contract-types/ethers/SkinnyOptimisticOracleInterface.ts +727 -0
- package/contract-types/ethers/StandardBridgeLike.ts +113 -0
- package/contract-types/ethers/StateSyncMock.ts +122 -0
- package/contract-types/ethers/StoreInterface.ts +228 -0
- package/contract-types/ethers/Testable.ts +136 -0
- package/contract-types/ethers/Timer.ts +117 -0
- package/contract-types/ethers/TokenLike.ts +88 -0
- package/contract-types/ethers/WETH9Like.ts +138 -0
- package/contract-types/ethers/common.ts +44 -0
- package/contract-types/ethers/factories/AVMBridgeDepositBox__factory.ts +649 -0
- package/contract-types/ethers/factories/AVMCrossDomainEnabled__factory.ts +61 -0
- package/contract-types/ethers/factories/AccessControl__factory.ts +227 -0
- package/contract-types/ethers/factories/AddressWhitelistInterface__factory.ts +88 -0
- package/contract-types/ethers/factories/ArbSys__factory.ts +244 -0
- package/contract-types/ethers/factories/ArbitrumBridgeMock__factory.ts +118 -0
- package/contract-types/ethers/factories/ArbitrumCrossDomainEnabled__factory.ts +43 -0
- package/contract-types/ethers/factories/ArbitrumInboxMock__factory.ts +128 -0
- package/contract-types/ethers/factories/ArbitrumMessenger__factory.ts +243 -0
- package/contract-types/ethers/factories/ArbitrumOutboxMock__factory.ts +74 -0
- package/contract-types/ethers/factories/ArbitrumParentMessenger__factory.ts +680 -0
- package/contract-types/ethers/factories/BridgeAdminInterface__factory.ts +338 -0
- package/contract-types/ethers/factories/BridgeAdmin__factory.ts +737 -0
- package/contract-types/ethers/factories/BridgeDepositBoxMock__factory.ts +591 -0
- package/contract-types/ethers/factories/BridgeDepositBox__factory.ts +406 -0
- package/contract-types/ethers/factories/BridgePoolInterface__factory.ts +78 -0
- package/contract-types/ethers/factories/BridgePoolProd__factory.ts +1798 -0
- package/contract-types/ethers/factories/BridgePool__factory.ts +1795 -0
- package/contract-types/ethers/factories/Bridge__factory.ts +1094 -0
- package/contract-types/ethers/factories/CrossDomainEnabled__factory.ts +90 -0
- package/contract-types/ethers/factories/ERC165__factory.ts +39 -0
- package/contract-types/ethers/factories/ERC20__factory.ts +345 -0
- package/contract-types/ethers/factories/FinderInterface__factory.ts +63 -0
- package/contract-types/ethers/factories/FxBaseChildTunnel__factory.ts +101 -0
- package/contract-types/ethers/factories/FxBaseRootTunnel__factory.ts +123 -0
- package/contract-types/ethers/factories/FxChildMock__factory.ts +153 -0
- package/contract-types/ethers/factories/FxRootMock__factory.ts +128 -0
- package/contract-types/ethers/factories/GenericHandler__factory.ts +395 -0
- package/contract-types/ethers/factories/IAccessControl__factory.ts +123 -0
- package/contract-types/ethers/factories/IArbitrumInbox__factory.ts +93 -0
- package/contract-types/ethers/factories/IArbitrumOutbox__factory.ts +39 -0
- package/contract-types/ethers/factories/IBridge__factory.ts +59 -0
- package/contract-types/ethers/factories/ICheckpointManager__factory.ts +100 -0
- package/contract-types/ethers/factories/ICrossDomainMessenger__factory.ts +129 -0
- package/contract-types/ethers/factories/IDepositExecute__factory.ts +77 -0
- package/contract-types/ethers/factories/IERC165__factory.ts +42 -0
- package/contract-types/ethers/factories/IERC20Metadata__factory.ts +248 -0
- package/contract-types/ethers/factories/IERC20__factory.ts +203 -0
- package/contract-types/ethers/factories/IERCHandler__factory.ts +77 -0
- package/contract-types/ethers/factories/IFxMessageProcessor__factory.ts +49 -0
- package/contract-types/ethers/factories/IFxStateSender__factory.ts +44 -0
- package/contract-types/ethers/factories/IGenericHandler__factory.ts +54 -0
- package/contract-types/ethers/factories/IL2ERC20Bridge__factory.ts +267 -0
- package/contract-types/ethers/factories/IOVMCrossDomainMessenger__factory.ts +105 -0
- package/contract-types/ethers/factories/IStateReceiver__factory.ts +44 -0
- package/contract-types/ethers/factories/IStateSender__factory.ts +41 -0
- package/contract-types/ethers/factories/IdentifierWhitelistInterface__factory.ts +75 -0
- package/contract-types/ethers/factories/Lockable__factory.ts +63 -0
- package/contract-types/ethers/factories/MessengerInterface__factory.ts +69 -0
- package/contract-types/ethers/factories/MessengerMock__factory.ts +132 -0
- package/contract-types/ethers/factories/MultiCaller__factory.ts +77 -0
- package/contract-types/ethers/factories/OVMBridgeDepositBox__factory.ts +609 -0
- package/contract-types/ethers/factories/OVMCrossDomainEnabled__factory.ts +94 -0
- package/contract-types/ethers/factories/OVML1CrossDomainMessengerMock__factory.ts +166 -0
- package/contract-types/ethers/factories/OVMOETHBridgeDepositBox__factory.ts +665 -0
- package/contract-types/ethers/factories/OptimismMessenger__factory.ts +185 -0
- package/contract-types/ethers/factories/OptimismWrapper__factory.ts +200 -0
- package/contract-types/ethers/factories/OptimisticOracleConstraints__factory.ts +80 -0
- package/contract-types/ethers/factories/OptimisticOracleInterface__factory.ts +574 -0
- package/contract-types/ethers/factories/OracleInterfaces__factory.ts +191 -0
- package/contract-types/ethers/factories/Ownable__factory.ts +75 -0
- package/contract-types/ethers/factories/ParentMessengerBase__factory.ts +312 -0
- package/contract-types/ethers/factories/ParentMessengerConsumerInterface__factory.ts +50 -0
- package/contract-types/ethers/factories/ParentMessengerInterface__factory.ts +56 -0
- package/contract-types/ethers/factories/Pausable__factory.ts +62 -0
- package/contract-types/ethers/factories/SkinnyOptimisticOracleInterface__factory.ts +874 -0
- package/contract-types/ethers/factories/StandardBridgeLike__factory.ts +60 -0
- package/contract-types/ethers/factories/StateSyncMock__factory.ts +101 -0
- package/contract-types/ethers/factories/StoreInterface__factory.ts +139 -0
- package/contract-types/ethers/factories/Testable__factory.ts +62 -0
- package/contract-types/ethers/factories/Timer__factory.ts +86 -0
- package/contract-types/ethers/factories/TokenLike__factory.ts +42 -0
- package/contract-types/ethers/factories/WETH9Like__factory.ts +67 -0
- package/contract-types/ethers/hardhat.d.ts +798 -0
- package/contract-types/ethers/index.ts +150 -0
- package/contract-types/web3/AVM_BridgeDepositBox.ts +269 -0
- package/contract-types/web3/AVM_CrossDomainEnabled.ts +62 -0
- package/contract-types/web3/AccessControl.ts +127 -0
- package/contract-types/web3/AddressWhitelistInterface.ts +43 -0
- package/contract-types/web3/ArbSys.ts +112 -0
- package/contract-types/web3/Arbitrum_BridgeMock.ts +46 -0
- package/contract-types/web3/Arbitrum_CrossDomainEnabled.ts +37 -0
- package/contract-types/web3/Arbitrum_InboxMock.ts +48 -0
- package/contract-types/web3/Arbitrum_Messenger.ts +106 -0
- package/contract-types/web3/Arbitrum_OutboxMock.ts +37 -0
- package/contract-types/web3/Arbitrum_ParentMessenger.ts +348 -0
- package/contract-types/web3/Bridge.ts +401 -0
- package/contract-types/web3/BridgeAdmin.ts +357 -0
- package/contract-types/web3/BridgeAdminInterface.ts +265 -0
- package/contract-types/web3/BridgeDepositBox.ts +203 -0
- package/contract-types/web3/BridgeDepositBoxMock.ts +241 -0
- package/contract-types/web3/BridgePool.ts +520 -0
- package/contract-types/web3/BridgePoolInterface.ts +47 -0
- package/contract-types/web3/BridgePoolProd.ts +520 -0
- package/contract-types/web3/CrossDomainEnabled.ts +37 -0
- package/contract-types/web3/ERC165.ts +39 -0
- package/contract-types/web3/ERC20.ts +105 -0
- package/contract-types/web3/FinderInterface.ts +44 -0
- package/contract-types/web3/FxBaseChildTunnel.ts +65 -0
- package/contract-types/web3/FxBaseRootTunnel.ts +53 -0
- package/contract-types/web3/FxChildMock.ts +68 -0
- package/contract-types/web3/FxRootMock.ts +46 -0
- package/contract-types/web3/GenericHandler.ts +94 -0
- package/contract-types/web3/IAccessControl.ts +57 -0
- package/contract-types/web3/IBridge.ts +43 -0
- package/contract-types/web3/ICheckpointManager.ts +48 -0
- package/contract-types/web3/ICrossDomainMessenger.ts +103 -0
- package/contract-types/web3/IDepositExecute.ts +48 -0
- package/contract-types/web3/IERC165.ts +39 -0
- package/contract-types/web3/IERC20.ts +89 -0
- package/contract-types/web3/IERC20Metadata.ts +95 -0
- package/contract-types/web3/IERCHandler.ts +48 -0
- package/contract-types/web3/IFxMessageProcessor.ts +41 -0
- package/contract-types/web3/IFxStateSender.ts +40 -0
- package/contract-types/web3/IGenericHandler.ts +42 -0
- package/contract-types/web3/IL2ERC20Bridge.ts +143 -0
- package/contract-types/web3/IStateReceiver.ts +40 -0
- package/contract-types/web3/IStateSender.ts +40 -0
- package/contract-types/web3/IdentifierWhitelistInterface.ts +47 -0
- package/contract-types/web3/Lockable.ts +35 -0
- package/contract-types/web3/MessengerInterface.ts +45 -0
- package/contract-types/web3/MessengerMock.ts +69 -0
- package/contract-types/web3/MultiCaller.ts +37 -0
- package/contract-types/web3/OVM_BridgeDepositBox.ts +243 -0
- package/contract-types/web3/OVM_CrossDomainEnabled.ts +37 -0
- package/contract-types/web3/OVM_L1CrossDomainMessengerMock.ts +103 -0
- package/contract-types/web3/OVM_OETH_BridgeDepositBox.ts +247 -0
- package/contract-types/web3/Optimism_Messenger.ts +73 -0
- package/contract-types/web3/Optimism_Wrapper.ts +86 -0
- package/contract-types/web3/OptimisticOracleConstraints.ts +37 -0
- package/contract-types/web3/OptimisticOracleInterface.ts +151 -0
- package/contract-types/web3/OracleInterfaces.ts +55 -0
- package/contract-types/web3/Ownable.ts +61 -0
- package/contract-types/web3/ParentMessengerBase.ts +178 -0
- package/contract-types/web3/ParentMessengerConsumerInterface.ts +40 -0
- package/contract-types/web3/ParentMessengerInterface.ts +41 -0
- package/contract-types/web3/Pausable.ts +58 -0
- package/contract-types/web3/SkinnyOptimisticOracleInterface.ts +213 -0
- package/contract-types/web3/StandardBridgeLike.ts +42 -0
- package/contract-types/web3/StateSyncMock.ts +62 -0
- package/contract-types/web3/StoreInterface.ts +55 -0
- package/contract-types/web3/Testable.ts +43 -0
- package/contract-types/web3/Timer.ts +41 -0
- package/contract-types/web3/TokenLike.ts +37 -0
- package/contract-types/web3/WETH9Like.ts +44 -0
- package/contract-types/web3/iArbitrum_Inbox.ts +48 -0
- package/contract-types/web3/iArbitrum_Outbox.ts +37 -0
- package/contract-types/web3/iOVM_CrossDomainMessenger.ts +95 -0
- package/contract-types/web3/types.ts +73 -0
- package/networks/1.json +33 -0
- package/networks/10.json +6 -0
- package/networks/42161.json +6 -0
- package/package.json +12 -5
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
export interface EventOptions {
|
|
19
|
+
filter?: object;
|
|
20
|
+
fromBlock?: BlockType;
|
|
21
|
+
topics?: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface Testable extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): Testable;
|
|
30
|
+
clone(): Testable;
|
|
31
|
+
methods: {
|
|
32
|
+
getCurrentTime(): NonPayableTransactionObject<string>;
|
|
33
|
+
|
|
34
|
+
setCurrentTime(
|
|
35
|
+
time: number | string | BN
|
|
36
|
+
): NonPayableTransactionObject<void>;
|
|
37
|
+
|
|
38
|
+
timerAddress(): NonPayableTransactionObject<string>;
|
|
39
|
+
};
|
|
40
|
+
events: {
|
|
41
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
export interface EventOptions {
|
|
19
|
+
filter?: object;
|
|
20
|
+
fromBlock?: BlockType;
|
|
21
|
+
topics?: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface Timer extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): Timer;
|
|
30
|
+
clone(): Timer;
|
|
31
|
+
methods: {
|
|
32
|
+
getCurrentTime(): NonPayableTransactionObject<string>;
|
|
33
|
+
|
|
34
|
+
setCurrentTime(
|
|
35
|
+
time: number | string | BN
|
|
36
|
+
): NonPayableTransactionObject<void>;
|
|
37
|
+
};
|
|
38
|
+
events: {
|
|
39
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
export interface EventOptions {
|
|
19
|
+
filter?: object;
|
|
20
|
+
fromBlock?: BlockType;
|
|
21
|
+
topics?: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface TokenLike extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): TokenLike;
|
|
30
|
+
clone(): TokenLike;
|
|
31
|
+
methods: {
|
|
32
|
+
balanceOf(guy: string): NonPayableTransactionObject<string>;
|
|
33
|
+
};
|
|
34
|
+
events: {
|
|
35
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
export interface EventOptions {
|
|
19
|
+
filter?: object;
|
|
20
|
+
fromBlock?: BlockType;
|
|
21
|
+
topics?: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface WETH9Like extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): WETH9Like;
|
|
30
|
+
clone(): WETH9Like;
|
|
31
|
+
methods: {
|
|
32
|
+
balanceOf(guy: string): NonPayableTransactionObject<string>;
|
|
33
|
+
|
|
34
|
+
deposit(): PayableTransactionObject<void>;
|
|
35
|
+
|
|
36
|
+
transfer(
|
|
37
|
+
guy: string,
|
|
38
|
+
wad: number | string | BN
|
|
39
|
+
): NonPayableTransactionObject<void>;
|
|
40
|
+
};
|
|
41
|
+
events: {
|
|
42
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
export interface EventOptions {
|
|
19
|
+
filter?: object;
|
|
20
|
+
fromBlock?: BlockType;
|
|
21
|
+
topics?: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IArbitrumInbox extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): IArbitrumInbox;
|
|
30
|
+
clone(): IArbitrumInbox;
|
|
31
|
+
methods: {
|
|
32
|
+
bridge(): NonPayableTransactionObject<string>;
|
|
33
|
+
|
|
34
|
+
createRetryableTicketNoRefundAliasRewrite(
|
|
35
|
+
destAddr: string,
|
|
36
|
+
l2CallValue: number | string | BN,
|
|
37
|
+
maxSubmissionCost: number | string | BN,
|
|
38
|
+
excessFeeRefundAddress: string,
|
|
39
|
+
callValueRefundAddress: string,
|
|
40
|
+
maxGas: number | string | BN,
|
|
41
|
+
gasPriceBid: number | string | BN,
|
|
42
|
+
data: string | number[]
|
|
43
|
+
): PayableTransactionObject<string>;
|
|
44
|
+
};
|
|
45
|
+
events: {
|
|
46
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
export interface EventOptions {
|
|
19
|
+
filter?: object;
|
|
20
|
+
fromBlock?: BlockType;
|
|
21
|
+
topics?: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IArbitrumOutbox extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): IArbitrumOutbox;
|
|
30
|
+
clone(): IArbitrumOutbox;
|
|
31
|
+
methods: {
|
|
32
|
+
l2ToL1Sender(): NonPayableTransactionObject<string>;
|
|
33
|
+
};
|
|
34
|
+
events: {
|
|
35
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
export interface EventOptions {
|
|
19
|
+
filter?: object;
|
|
20
|
+
fromBlock?: BlockType;
|
|
21
|
+
topics?: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type FailedRelayedMessage = ContractEventLog<{
|
|
25
|
+
msgHash: string;
|
|
26
|
+
0: string;
|
|
27
|
+
}>;
|
|
28
|
+
export type RelayedMessage = ContractEventLog<{
|
|
29
|
+
msgHash: string;
|
|
30
|
+
0: string;
|
|
31
|
+
}>;
|
|
32
|
+
export type SentMessage = ContractEventLog<{
|
|
33
|
+
message: string;
|
|
34
|
+
0: string;
|
|
35
|
+
}>;
|
|
36
|
+
|
|
37
|
+
export interface IOVMCrossDomainMessenger extends BaseContract {
|
|
38
|
+
constructor(
|
|
39
|
+
jsonInterface: any[],
|
|
40
|
+
address?: string,
|
|
41
|
+
options?: ContractOptions
|
|
42
|
+
): IOVMCrossDomainMessenger;
|
|
43
|
+
clone(): IOVMCrossDomainMessenger;
|
|
44
|
+
methods: {
|
|
45
|
+
sendMessage(
|
|
46
|
+
_target: string,
|
|
47
|
+
_message: string | number[],
|
|
48
|
+
_gasLimit: number | string | BN
|
|
49
|
+
): NonPayableTransactionObject<void>;
|
|
50
|
+
|
|
51
|
+
xDomainMessageSender(): NonPayableTransactionObject<string>;
|
|
52
|
+
};
|
|
53
|
+
events: {
|
|
54
|
+
FailedRelayedMessage(cb?: Callback<FailedRelayedMessage>): EventEmitter;
|
|
55
|
+
FailedRelayedMessage(
|
|
56
|
+
options?: EventOptions,
|
|
57
|
+
cb?: Callback<FailedRelayedMessage>
|
|
58
|
+
): EventEmitter;
|
|
59
|
+
|
|
60
|
+
RelayedMessage(cb?: Callback<RelayedMessage>): EventEmitter;
|
|
61
|
+
RelayedMessage(
|
|
62
|
+
options?: EventOptions,
|
|
63
|
+
cb?: Callback<RelayedMessage>
|
|
64
|
+
): EventEmitter;
|
|
65
|
+
|
|
66
|
+
SentMessage(cb?: Callback<SentMessage>): EventEmitter;
|
|
67
|
+
SentMessage(
|
|
68
|
+
options?: EventOptions,
|
|
69
|
+
cb?: Callback<SentMessage>
|
|
70
|
+
): EventEmitter;
|
|
71
|
+
|
|
72
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
once(event: "FailedRelayedMessage", cb: Callback<FailedRelayedMessage>): void;
|
|
76
|
+
once(
|
|
77
|
+
event: "FailedRelayedMessage",
|
|
78
|
+
options: EventOptions,
|
|
79
|
+
cb: Callback<FailedRelayedMessage>
|
|
80
|
+
): void;
|
|
81
|
+
|
|
82
|
+
once(event: "RelayedMessage", cb: Callback<RelayedMessage>): void;
|
|
83
|
+
once(
|
|
84
|
+
event: "RelayedMessage",
|
|
85
|
+
options: EventOptions,
|
|
86
|
+
cb: Callback<RelayedMessage>
|
|
87
|
+
): void;
|
|
88
|
+
|
|
89
|
+
once(event: "SentMessage", cb: Callback<SentMessage>): void;
|
|
90
|
+
once(
|
|
91
|
+
event: "SentMessage",
|
|
92
|
+
options: EventOptions,
|
|
93
|
+
cb: Callback<SentMessage>
|
|
94
|
+
): void;
|
|
95
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import BN from "bn.js";
|
|
5
|
+
import { EventEmitter } from "events";
|
|
6
|
+
import { EventLog, PromiEvent, TransactionReceipt } from "web3-core/types";
|
|
7
|
+
import { Contract } from "web3-eth-contract";
|
|
8
|
+
|
|
9
|
+
export interface EstimateGasOptions {
|
|
10
|
+
from?: string;
|
|
11
|
+
gas?: number;
|
|
12
|
+
value?: number | string | BN;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface EventOptions {
|
|
16
|
+
filter?: object;
|
|
17
|
+
fromBlock?: BlockType;
|
|
18
|
+
topics?: string[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type Callback<T> = (error: Error, result: T) => void;
|
|
22
|
+
export interface ContractEventLog<T> extends EventLog {
|
|
23
|
+
returnValues: T;
|
|
24
|
+
}
|
|
25
|
+
export interface ContractEventEmitter<T> extends EventEmitter {
|
|
26
|
+
on(event: "connected", listener: (subscriptionId: string) => void): this;
|
|
27
|
+
on(
|
|
28
|
+
event: "data" | "changed",
|
|
29
|
+
listener: (event: ContractEventLog<T>) => void
|
|
30
|
+
): this;
|
|
31
|
+
on(event: "error", listener: (error: Error) => void): this;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface NonPayableTx {
|
|
35
|
+
nonce?: string | number | BN;
|
|
36
|
+
chainId?: string | number | BN;
|
|
37
|
+
from?: string;
|
|
38
|
+
to?: string;
|
|
39
|
+
data?: string;
|
|
40
|
+
gas?: string | number | BN;
|
|
41
|
+
maxPriorityFeePerGas?: string | number | BN;
|
|
42
|
+
maxFeePerGas?: string | number | BN;
|
|
43
|
+
gasPrice?: string | number | BN;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface PayableTx extends NonPayableTx {
|
|
47
|
+
value?: string | number | BN;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface NonPayableTransactionObject<T> {
|
|
51
|
+
arguments: any[];
|
|
52
|
+
call(tx?: NonPayableTx, block?: BlockType): Promise<T>;
|
|
53
|
+
send(tx?: NonPayableTx): PromiEvent<TransactionReceipt>;
|
|
54
|
+
estimateGas(tx?: NonPayableTx): Promise<number>;
|
|
55
|
+
encodeABI(): string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface PayableTransactionObject<T> {
|
|
59
|
+
arguments: any[];
|
|
60
|
+
call(tx?: PayableTx, block?: BlockType): Promise<T>;
|
|
61
|
+
send(tx?: PayableTx): PromiEvent<TransactionReceipt>;
|
|
62
|
+
estimateGas(tx?: PayableTx): Promise<number>;
|
|
63
|
+
encodeABI(): string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type BlockType =
|
|
67
|
+
| "latest"
|
|
68
|
+
| "pending"
|
|
69
|
+
| "genesis"
|
|
70
|
+
| "earliest"
|
|
71
|
+
| number
|
|
72
|
+
| BN;
|
|
73
|
+
export type BaseContract = Omit<Contract, "clone" | "once">;
|
package/networks/1.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"contractName": "BridgeAdmin",
|
|
4
|
+
"address": "0x30B44C676A05F1264d1dE9cC31dB5F2A945186b6"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"contractName": "BridgePool",
|
|
8
|
+
"deploymentName": "WETHBridgePool",
|
|
9
|
+
"address": "0x7355Efc63Ae731f584380a9838292c7046c1e433"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"contractName": "BridgePool",
|
|
13
|
+
"deploymentName": "USDCBridgePool",
|
|
14
|
+
"address": "0x256C8919CE1AB0e33974CF6AA9c71561Ef3017b6"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"contractName": "BridgePool",
|
|
18
|
+
"deploymentName": "UMABridgePool",
|
|
19
|
+
"address": "0xdfe0ec39291e3b60ACa122908f86809c9eE64E90"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"contractName": "Arbitrum_Messenger",
|
|
23
|
+
"address": "0x0D8563d3B8b3Fec542aaE50a530C606DAc4D1c4F"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"contractName": "Optimism_Messenger",
|
|
27
|
+
"address": "0xE59283f44c29c43C0c23E71C906077e49DF714b5"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"contractName": "Optimism_Wrapper",
|
|
31
|
+
"address": "0xcFfB47DC5Bd4f6Dc475E98fF92647a583389Ee08"
|
|
32
|
+
}
|
|
33
|
+
]
|
package/networks/10.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@across-protocol/contracts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Across smart contracts and tests",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@eth-optimism/contracts": "^0.5.5",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"@nomiclabs/hardhat-etherscan": "^2.1.6",
|
|
21
21
|
"@nomiclabs/hardhat-truffle5": "^2.0.0",
|
|
22
22
|
"@nomiclabs/hardhat-web3": "^2.0.0",
|
|
23
|
+
"@typechain/ethers-v5": "^8.0.5",
|
|
24
|
+
"@typechain/hardhat": "^3.1.0",
|
|
25
|
+
"@typechain/web3-v1": "^4.0.0",
|
|
23
26
|
"@uma/common": "^2.14.0",
|
|
24
27
|
"@uma/contracts-node": "^0.1.15",
|
|
25
28
|
"@uniswap/v3-core": "^1.0.0-rc.2",
|
|
@@ -27,7 +30,9 @@
|
|
|
27
30
|
"decimal.js": "^10.3.1",
|
|
28
31
|
"ethers": "^5.5.2",
|
|
29
32
|
"glob": "^7.2.0",
|
|
30
|
-
"hardhat": "^2.6.8"
|
|
33
|
+
"hardhat": "^2.6.8",
|
|
34
|
+
"lodash.uniqby": "^4.7.0",
|
|
35
|
+
"typechain": "^6.0.0"
|
|
31
36
|
},
|
|
32
37
|
"homepage": "https://across.to",
|
|
33
38
|
"license": "AGPL-3.0-or-later",
|
|
@@ -44,13 +49,15 @@
|
|
|
44
49
|
"files": [
|
|
45
50
|
"/contracts/**/*.sol",
|
|
46
51
|
"/artifacts/**/*",
|
|
47
|
-
"/
|
|
48
|
-
"/types/**/*"
|
|
52
|
+
"/build/**/*",
|
|
53
|
+
"/contract-types/**/*",
|
|
54
|
+
"/networks/**/*"
|
|
49
55
|
],
|
|
50
56
|
"sideEffects": false,
|
|
51
57
|
"scripts": {
|
|
52
58
|
"test": "mocha 'test/**/*.js'",
|
|
53
|
-
"build": "hardhat compile && yarn load-addresses",
|
|
59
|
+
"build": "hardhat compile && yarn typechain && yarn load-addresses && ./scripts/build.js",
|
|
60
|
+
"typechain": "TYPECHAIN=web3 yarn hardhat typechain && TYPECHAIN=ethers yarn hardhat typechain",
|
|
54
61
|
"load-addresses": "yarn hardhat load-addresses",
|
|
55
62
|
"prepublish": "yarn build"
|
|
56
63
|
},
|