@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,39 @@
|
|
|
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 IERC165 extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): IERC165;
|
|
30
|
+
clone(): IERC165;
|
|
31
|
+
methods: {
|
|
32
|
+
supportsInterface(
|
|
33
|
+
interfaceId: string | number[]
|
|
34
|
+
): NonPayableTransactionObject<boolean>;
|
|
35
|
+
};
|
|
36
|
+
events: {
|
|
37
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 Approval = ContractEventLog<{
|
|
25
|
+
owner: string;
|
|
26
|
+
spender: string;
|
|
27
|
+
value: string;
|
|
28
|
+
0: string;
|
|
29
|
+
1: string;
|
|
30
|
+
2: string;
|
|
31
|
+
}>;
|
|
32
|
+
export type Transfer = ContractEventLog<{
|
|
33
|
+
from: string;
|
|
34
|
+
to: string;
|
|
35
|
+
value: string;
|
|
36
|
+
0: string;
|
|
37
|
+
1: string;
|
|
38
|
+
2: string;
|
|
39
|
+
}>;
|
|
40
|
+
|
|
41
|
+
export interface IERC20 extends BaseContract {
|
|
42
|
+
constructor(
|
|
43
|
+
jsonInterface: any[],
|
|
44
|
+
address?: string,
|
|
45
|
+
options?: ContractOptions
|
|
46
|
+
): IERC20;
|
|
47
|
+
clone(): IERC20;
|
|
48
|
+
methods: {
|
|
49
|
+
allowance(
|
|
50
|
+
owner: string,
|
|
51
|
+
spender: string
|
|
52
|
+
): NonPayableTransactionObject<string>;
|
|
53
|
+
|
|
54
|
+
approve(
|
|
55
|
+
spender: string,
|
|
56
|
+
amount: number | string | BN
|
|
57
|
+
): NonPayableTransactionObject<boolean>;
|
|
58
|
+
|
|
59
|
+
balanceOf(account: string): NonPayableTransactionObject<string>;
|
|
60
|
+
|
|
61
|
+
totalSupply(): NonPayableTransactionObject<string>;
|
|
62
|
+
|
|
63
|
+
transfer(
|
|
64
|
+
recipient: string,
|
|
65
|
+
amount: number | string | BN
|
|
66
|
+
): NonPayableTransactionObject<boolean>;
|
|
67
|
+
|
|
68
|
+
transferFrom(
|
|
69
|
+
sender: string,
|
|
70
|
+
recipient: string,
|
|
71
|
+
amount: number | string | BN
|
|
72
|
+
): NonPayableTransactionObject<boolean>;
|
|
73
|
+
};
|
|
74
|
+
events: {
|
|
75
|
+
Approval(cb?: Callback<Approval>): EventEmitter;
|
|
76
|
+
Approval(options?: EventOptions, cb?: Callback<Approval>): EventEmitter;
|
|
77
|
+
|
|
78
|
+
Transfer(cb?: Callback<Transfer>): EventEmitter;
|
|
79
|
+
Transfer(options?: EventOptions, cb?: Callback<Transfer>): EventEmitter;
|
|
80
|
+
|
|
81
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
once(event: "Approval", cb: Callback<Approval>): void;
|
|
85
|
+
once(event: "Approval", options: EventOptions, cb: Callback<Approval>): void;
|
|
86
|
+
|
|
87
|
+
once(event: "Transfer", cb: Callback<Transfer>): void;
|
|
88
|
+
once(event: "Transfer", options: EventOptions, cb: Callback<Transfer>): void;
|
|
89
|
+
}
|
|
@@ -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 Approval = ContractEventLog<{
|
|
25
|
+
owner: string;
|
|
26
|
+
spender: string;
|
|
27
|
+
value: string;
|
|
28
|
+
0: string;
|
|
29
|
+
1: string;
|
|
30
|
+
2: string;
|
|
31
|
+
}>;
|
|
32
|
+
export type Transfer = ContractEventLog<{
|
|
33
|
+
from: string;
|
|
34
|
+
to: string;
|
|
35
|
+
value: string;
|
|
36
|
+
0: string;
|
|
37
|
+
1: string;
|
|
38
|
+
2: string;
|
|
39
|
+
}>;
|
|
40
|
+
|
|
41
|
+
export interface IERC20Metadata extends BaseContract {
|
|
42
|
+
constructor(
|
|
43
|
+
jsonInterface: any[],
|
|
44
|
+
address?: string,
|
|
45
|
+
options?: ContractOptions
|
|
46
|
+
): IERC20Metadata;
|
|
47
|
+
clone(): IERC20Metadata;
|
|
48
|
+
methods: {
|
|
49
|
+
allowance(
|
|
50
|
+
owner: string,
|
|
51
|
+
spender: string
|
|
52
|
+
): NonPayableTransactionObject<string>;
|
|
53
|
+
|
|
54
|
+
approve(
|
|
55
|
+
spender: string,
|
|
56
|
+
amount: number | string | BN
|
|
57
|
+
): NonPayableTransactionObject<boolean>;
|
|
58
|
+
|
|
59
|
+
balanceOf(account: string): NonPayableTransactionObject<string>;
|
|
60
|
+
|
|
61
|
+
decimals(): NonPayableTransactionObject<string>;
|
|
62
|
+
|
|
63
|
+
name(): NonPayableTransactionObject<string>;
|
|
64
|
+
|
|
65
|
+
symbol(): NonPayableTransactionObject<string>;
|
|
66
|
+
|
|
67
|
+
totalSupply(): NonPayableTransactionObject<string>;
|
|
68
|
+
|
|
69
|
+
transfer(
|
|
70
|
+
recipient: string,
|
|
71
|
+
amount: number | string | BN
|
|
72
|
+
): NonPayableTransactionObject<boolean>;
|
|
73
|
+
|
|
74
|
+
transferFrom(
|
|
75
|
+
sender: string,
|
|
76
|
+
recipient: string,
|
|
77
|
+
amount: number | string | BN
|
|
78
|
+
): NonPayableTransactionObject<boolean>;
|
|
79
|
+
};
|
|
80
|
+
events: {
|
|
81
|
+
Approval(cb?: Callback<Approval>): EventEmitter;
|
|
82
|
+
Approval(options?: EventOptions, cb?: Callback<Approval>): EventEmitter;
|
|
83
|
+
|
|
84
|
+
Transfer(cb?: Callback<Transfer>): EventEmitter;
|
|
85
|
+
Transfer(options?: EventOptions, cb?: Callback<Transfer>): EventEmitter;
|
|
86
|
+
|
|
87
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
once(event: "Approval", cb: Callback<Approval>): void;
|
|
91
|
+
once(event: "Approval", options: EventOptions, cb: Callback<Approval>): void;
|
|
92
|
+
|
|
93
|
+
once(event: "Transfer", cb: Callback<Transfer>): void;
|
|
94
|
+
once(event: "Transfer", options: EventOptions, cb: Callback<Transfer>): void;
|
|
95
|
+
}
|
|
@@ -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 IERCHandler extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): IERCHandler;
|
|
30
|
+
clone(): IERCHandler;
|
|
31
|
+
methods: {
|
|
32
|
+
setBurnable(contractAddress: string): NonPayableTransactionObject<void>;
|
|
33
|
+
|
|
34
|
+
setResource(
|
|
35
|
+
resourceID: string | number[],
|
|
36
|
+
contractAddress: string
|
|
37
|
+
): NonPayableTransactionObject<void>;
|
|
38
|
+
|
|
39
|
+
withdraw(
|
|
40
|
+
tokenAddress: string,
|
|
41
|
+
recipient: string,
|
|
42
|
+
amountOrTokenID: number | string | BN
|
|
43
|
+
): NonPayableTransactionObject<void>;
|
|
44
|
+
};
|
|
45
|
+
events: {
|
|
46
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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 IFxMessageProcessor extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): IFxMessageProcessor;
|
|
30
|
+
clone(): IFxMessageProcessor;
|
|
31
|
+
methods: {
|
|
32
|
+
processMessageFromRoot(
|
|
33
|
+
stateId: number | string | BN,
|
|
34
|
+
rootMessageSender: string,
|
|
35
|
+
data: string | number[]
|
|
36
|
+
): NonPayableTransactionObject<void>;
|
|
37
|
+
};
|
|
38
|
+
events: {
|
|
39
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 IFxStateSender extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): IFxStateSender;
|
|
30
|
+
clone(): IFxStateSender;
|
|
31
|
+
methods: {
|
|
32
|
+
sendMessageToChild(
|
|
33
|
+
_receiver: string,
|
|
34
|
+
_data: string | number[]
|
|
35
|
+
): NonPayableTransactionObject<void>;
|
|
36
|
+
};
|
|
37
|
+
events: {
|
|
38
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 IGenericHandler extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): IGenericHandler;
|
|
30
|
+
clone(): IGenericHandler;
|
|
31
|
+
methods: {
|
|
32
|
+
setResource(
|
|
33
|
+
resourceID: string | number[],
|
|
34
|
+
contractAddress: string,
|
|
35
|
+
depositFunctionSig: string | number[],
|
|
36
|
+
executeFunctionSig: string | number[]
|
|
37
|
+
): NonPayableTransactionObject<void>;
|
|
38
|
+
};
|
|
39
|
+
events: {
|
|
40
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
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 DepositFailed = ContractEventLog<{
|
|
25
|
+
_l1Token: string;
|
|
26
|
+
_l2Token: string;
|
|
27
|
+
_from: string;
|
|
28
|
+
_to: string;
|
|
29
|
+
_amount: string;
|
|
30
|
+
_data: string;
|
|
31
|
+
0: string;
|
|
32
|
+
1: string;
|
|
33
|
+
2: string;
|
|
34
|
+
3: string;
|
|
35
|
+
4: string;
|
|
36
|
+
5: string;
|
|
37
|
+
}>;
|
|
38
|
+
export type DepositFinalized = ContractEventLog<{
|
|
39
|
+
_l1Token: string;
|
|
40
|
+
_l2Token: string;
|
|
41
|
+
_from: string;
|
|
42
|
+
_to: string;
|
|
43
|
+
_amount: string;
|
|
44
|
+
_data: string;
|
|
45
|
+
0: string;
|
|
46
|
+
1: string;
|
|
47
|
+
2: string;
|
|
48
|
+
3: string;
|
|
49
|
+
4: string;
|
|
50
|
+
5: string;
|
|
51
|
+
}>;
|
|
52
|
+
export type WithdrawalInitiated = ContractEventLog<{
|
|
53
|
+
_l1Token: string;
|
|
54
|
+
_l2Token: string;
|
|
55
|
+
_from: string;
|
|
56
|
+
_to: string;
|
|
57
|
+
_amount: string;
|
|
58
|
+
_data: string;
|
|
59
|
+
0: string;
|
|
60
|
+
1: string;
|
|
61
|
+
2: string;
|
|
62
|
+
3: string;
|
|
63
|
+
4: string;
|
|
64
|
+
5: string;
|
|
65
|
+
}>;
|
|
66
|
+
|
|
67
|
+
export interface IL2ERC20Bridge extends BaseContract {
|
|
68
|
+
constructor(
|
|
69
|
+
jsonInterface: any[],
|
|
70
|
+
address?: string,
|
|
71
|
+
options?: ContractOptions
|
|
72
|
+
): IL2ERC20Bridge;
|
|
73
|
+
clone(): IL2ERC20Bridge;
|
|
74
|
+
methods: {
|
|
75
|
+
finalizeDeposit(
|
|
76
|
+
_l1Token: string,
|
|
77
|
+
_l2Token: string,
|
|
78
|
+
_from: string,
|
|
79
|
+
_to: string,
|
|
80
|
+
_amount: number | string | BN,
|
|
81
|
+
_data: string | number[]
|
|
82
|
+
): NonPayableTransactionObject<void>;
|
|
83
|
+
|
|
84
|
+
l1TokenBridge(): NonPayableTransactionObject<string>;
|
|
85
|
+
|
|
86
|
+
withdraw(
|
|
87
|
+
_l2Token: string,
|
|
88
|
+
_amount: number | string | BN,
|
|
89
|
+
_l1Gas: number | string | BN,
|
|
90
|
+
_data: string | number[]
|
|
91
|
+
): NonPayableTransactionObject<void>;
|
|
92
|
+
|
|
93
|
+
withdrawTo(
|
|
94
|
+
_l2Token: string,
|
|
95
|
+
_to: string,
|
|
96
|
+
_amount: number | string | BN,
|
|
97
|
+
_l1Gas: number | string | BN,
|
|
98
|
+
_data: string | number[]
|
|
99
|
+
): NonPayableTransactionObject<void>;
|
|
100
|
+
};
|
|
101
|
+
events: {
|
|
102
|
+
DepositFailed(cb?: Callback<DepositFailed>): EventEmitter;
|
|
103
|
+
DepositFailed(
|
|
104
|
+
options?: EventOptions,
|
|
105
|
+
cb?: Callback<DepositFailed>
|
|
106
|
+
): EventEmitter;
|
|
107
|
+
|
|
108
|
+
DepositFinalized(cb?: Callback<DepositFinalized>): EventEmitter;
|
|
109
|
+
DepositFinalized(
|
|
110
|
+
options?: EventOptions,
|
|
111
|
+
cb?: Callback<DepositFinalized>
|
|
112
|
+
): EventEmitter;
|
|
113
|
+
|
|
114
|
+
WithdrawalInitiated(cb?: Callback<WithdrawalInitiated>): EventEmitter;
|
|
115
|
+
WithdrawalInitiated(
|
|
116
|
+
options?: EventOptions,
|
|
117
|
+
cb?: Callback<WithdrawalInitiated>
|
|
118
|
+
): EventEmitter;
|
|
119
|
+
|
|
120
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
once(event: "DepositFailed", cb: Callback<DepositFailed>): void;
|
|
124
|
+
once(
|
|
125
|
+
event: "DepositFailed",
|
|
126
|
+
options: EventOptions,
|
|
127
|
+
cb: Callback<DepositFailed>
|
|
128
|
+
): void;
|
|
129
|
+
|
|
130
|
+
once(event: "DepositFinalized", cb: Callback<DepositFinalized>): void;
|
|
131
|
+
once(
|
|
132
|
+
event: "DepositFinalized",
|
|
133
|
+
options: EventOptions,
|
|
134
|
+
cb: Callback<DepositFinalized>
|
|
135
|
+
): void;
|
|
136
|
+
|
|
137
|
+
once(event: "WithdrawalInitiated", cb: Callback<WithdrawalInitiated>): void;
|
|
138
|
+
once(
|
|
139
|
+
event: "WithdrawalInitiated",
|
|
140
|
+
options: EventOptions,
|
|
141
|
+
cb: Callback<WithdrawalInitiated>
|
|
142
|
+
): void;
|
|
143
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 IStateReceiver extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): IStateReceiver;
|
|
30
|
+
clone(): IStateReceiver;
|
|
31
|
+
methods: {
|
|
32
|
+
onStateReceive(
|
|
33
|
+
stateId: number | string | BN,
|
|
34
|
+
data: string | number[]
|
|
35
|
+
): NonPayableTransactionObject<void>;
|
|
36
|
+
};
|
|
37
|
+
events: {
|
|
38
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 IStateSender extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): IStateSender;
|
|
30
|
+
clone(): IStateSender;
|
|
31
|
+
methods: {
|
|
32
|
+
syncState(
|
|
33
|
+
receiver: string,
|
|
34
|
+
data: string | number[]
|
|
35
|
+
): NonPayableTransactionObject<void>;
|
|
36
|
+
};
|
|
37
|
+
events: {
|
|
38
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -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
|
+
export interface EventOptions {
|
|
19
|
+
filter?: object;
|
|
20
|
+
fromBlock?: BlockType;
|
|
21
|
+
topics?: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IdentifierWhitelistInterface extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): IdentifierWhitelistInterface;
|
|
30
|
+
clone(): IdentifierWhitelistInterface;
|
|
31
|
+
methods: {
|
|
32
|
+
addSupportedIdentifier(
|
|
33
|
+
identifier: string | number[]
|
|
34
|
+
): NonPayableTransactionObject<void>;
|
|
35
|
+
|
|
36
|
+
isIdentifierSupported(
|
|
37
|
+
identifier: string | number[]
|
|
38
|
+
): NonPayableTransactionObject<boolean>;
|
|
39
|
+
|
|
40
|
+
removeSupportedIdentifier(
|
|
41
|
+
identifier: string | number[]
|
|
42
|
+
): NonPayableTransactionObject<void>;
|
|
43
|
+
};
|
|
44
|
+
events: {
|
|
45
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 Lockable extends BaseContract {
|
|
25
|
+
constructor(
|
|
26
|
+
jsonInterface: any[],
|
|
27
|
+
address?: string,
|
|
28
|
+
options?: ContractOptions
|
|
29
|
+
): Lockable;
|
|
30
|
+
clone(): Lockable;
|
|
31
|
+
methods: {};
|
|
32
|
+
events: {
|
|
33
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
34
|
+
};
|
|
35
|
+
}
|