@cowprotocol/cow-sdk 5.8.0 → 5.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/consts.d.ts +11 -1
- package/dist/common/generated/EthFlow.d.ts +117 -0
- package/dist/common/generated/GPv2Settlement.d.ts +107 -0
- package/dist/common/generated/factories/EthFlow__factory.d.ts +124 -0
- package/dist/common/generated/factories/GPv2Settlement__factory.d.ts +81 -0
- package/dist/common/generated/factories/index.d.ts +2 -0
- package/dist/common/generated/index.d.ts +4 -0
- package/dist/index-d7269169.js +29 -0
- package/dist/index-d7269169.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.module.js +4 -4
- package/dist/index.module.js.map +1 -1
- package/dist/order-signing/orderSigningUtils.d.ts +18 -8
- package/dist/order-signing/utils.d.ts +11 -1
- package/dist/package.json +8 -5
- package/dist/schemas/trading/LimitOrderAdvancedSettings.ts +228 -0
- package/dist/schemas/trading/LimitTradeParameters.ts +105 -0
- package/dist/schemas/trading/QuoteResultsSerialized.ts +848 -0
- package/dist/schemas/trading/QuoterParameters.ts +31 -0
- package/dist/schemas/trading/SwapAdvancedSettings.ts +334 -0
- package/dist/schemas/trading/TradeParameters.ts +93 -0
- package/dist/trading/appDataUtils.d.ts +4 -0
- package/dist/trading/calculateUniqueOrderId.d.ts +6 -0
- package/dist/trading/consts.d.ts +8 -0
- package/dist/trading/getEthFlowTransaction.d.ts +7 -0
- package/dist/trading/getOrderToSign.d.ts +8 -0
- package/dist/trading/getOrderTypedData.d.ts +4 -0
- package/dist/trading/getPreSignTransaction.d.ts +4 -0
- package/dist/trading/getQuote.d.ts +14 -0
- package/dist/trading/index.d.ts +19 -0
- package/dist/trading/postCoWProtocolTrade.d.ts +4 -0
- package/dist/trading/postLimitOrder.d.ts +3 -0
- package/dist/trading/postSellNativeCurrencyOrder.d.ts +8 -0
- package/dist/trading/postSwapOrder.d.ts +4 -0
- package/dist/trading/tradingSdk.d.ts +16 -0
- package/dist/trading/types.d.ts +138 -0
- package/dist/trading/utils.d.ts +15 -0
- package/dist/utils-7f502e5c.js +2 -0
- package/dist/utils-7f502e5c.js.map +1 -0
- package/dist/utils-83038876.js +2 -0
- package/dist/utils-83038876.js.map +1 -0
- package/dist/utils-be09ebbf.js +2 -0
- package/dist/utils-be09ebbf.js.map +1 -0
- package/package.json +8 -5
- package/dist/index-c004f2c4.js +0 -29
- package/dist/index-c004f2c4.js.map +0 -1
- package/dist/utils-2718e59e.js +0 -2
- package/dist/utils-2718e59e.js.map +0 -1
- package/dist/utils-353bb58e.js +0 -2
- package/dist/utils-353bb58e.js.map +0 -1
- package/dist/utils-61509987.js +0 -2
- package/dist/utils-61509987.js.map +0 -1
package/dist/common/consts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SupportedChainId } from './chains';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ETH_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
3
3
|
export declare const EXTENSIBLE_FALLBACK_HANDLER = "0x2f55e8b20D0B9FEFA187AA7d00B6Cbe563605bF5";
|
|
4
4
|
export declare const COMPOSABLE_COW = "0xfdaFc9d1902f4e0b84f65F49f244b32b31013b74";
|
|
5
5
|
export declare const COW_SHED_FACTORY = "0x00E989b87700514118Fa55326CD1cCE82faebEF6";
|
|
@@ -27,3 +27,13 @@ export declare const EXTENSIBLE_FALLBACK_HANDLER_CONTRACT_ADDRESS: Record<Suppor
|
|
|
27
27
|
* An object containing the addresses of the `ComposableCow` contracts for each supported chain.
|
|
28
28
|
*/
|
|
29
29
|
export declare const COMPOSABLE_COW_CONTRACT_ADDRESS: Record<SupportedChainId, string>;
|
|
30
|
+
/**
|
|
31
|
+
* An object containing the addresses of wrapped native currencies for each supported chain.
|
|
32
|
+
*/
|
|
33
|
+
export declare const WRAPPED_NATIVE_CURRENCIES: Record<SupportedChainId, string>;
|
|
34
|
+
/**
|
|
35
|
+
* An object containing the addresses of ETH flow contracts for each supported chain.
|
|
36
|
+
*/
|
|
37
|
+
export declare const ETH_FLOW_ADDRESSES: Record<SupportedChainId, string>;
|
|
38
|
+
export declare const BARN_ETH_FLOW_ADDRESSES: Record<SupportedChainId, string>;
|
|
39
|
+
export declare const MAX_VALID_TO_EPOCH = 4294967295;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
|
|
5
|
+
export declare namespace EthFlowOrder {
|
|
6
|
+
type DataStruct = {
|
|
7
|
+
buyToken: string;
|
|
8
|
+
receiver: string;
|
|
9
|
+
sellAmount: BigNumberish;
|
|
10
|
+
buyAmount: BigNumberish;
|
|
11
|
+
appData: BytesLike;
|
|
12
|
+
feeAmount: BigNumberish;
|
|
13
|
+
validTo: BigNumberish;
|
|
14
|
+
partiallyFillable: boolean;
|
|
15
|
+
quoteId: BigNumberish;
|
|
16
|
+
};
|
|
17
|
+
type DataStructOutput = [
|
|
18
|
+
string,
|
|
19
|
+
string,
|
|
20
|
+
BigNumber,
|
|
21
|
+
BigNumber,
|
|
22
|
+
string,
|
|
23
|
+
BigNumber,
|
|
24
|
+
number,
|
|
25
|
+
boolean,
|
|
26
|
+
BigNumber
|
|
27
|
+
] & {
|
|
28
|
+
buyToken: string;
|
|
29
|
+
receiver: string;
|
|
30
|
+
sellAmount: BigNumber;
|
|
31
|
+
buyAmount: BigNumber;
|
|
32
|
+
appData: string;
|
|
33
|
+
feeAmount: BigNumber;
|
|
34
|
+
validTo: number;
|
|
35
|
+
partiallyFillable: boolean;
|
|
36
|
+
quoteId: BigNumber;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export interface EthFlowInterface extends utils.Interface {
|
|
40
|
+
functions: {
|
|
41
|
+
"createOrder((address,address,uint256,uint256,bytes32,uint256,uint32,bool,int64))": FunctionFragment;
|
|
42
|
+
"invalidateOrder((address,address,uint256,uint256,bytes32,uint256,uint32,bool,int64))": FunctionFragment;
|
|
43
|
+
"orders(bytes32)": FunctionFragment;
|
|
44
|
+
};
|
|
45
|
+
getFunction(nameOrSignatureOrTopic: "createOrder" | "invalidateOrder" | "orders"): FunctionFragment;
|
|
46
|
+
encodeFunctionData(functionFragment: "createOrder", values: [EthFlowOrder.DataStruct]): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "invalidateOrder", values: [EthFlowOrder.DataStruct]): string;
|
|
48
|
+
encodeFunctionData(functionFragment: "orders", values: [BytesLike]): string;
|
|
49
|
+
decodeFunctionResult(functionFragment: "createOrder", data: BytesLike): Result;
|
|
50
|
+
decodeFunctionResult(functionFragment: "invalidateOrder", data: BytesLike): Result;
|
|
51
|
+
decodeFunctionResult(functionFragment: "orders", data: BytesLike): Result;
|
|
52
|
+
events: {};
|
|
53
|
+
}
|
|
54
|
+
export interface EthFlow extends BaseContract {
|
|
55
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
56
|
+
attach(addressOrName: string): this;
|
|
57
|
+
deployed(): Promise<this>;
|
|
58
|
+
interface: EthFlowInterface;
|
|
59
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
60
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
61
|
+
listeners(eventName?: string): Array<Listener>;
|
|
62
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
63
|
+
removeAllListeners(eventName?: string): this;
|
|
64
|
+
off: OnEvent<this>;
|
|
65
|
+
on: OnEvent<this>;
|
|
66
|
+
once: OnEvent<this>;
|
|
67
|
+
removeListener: OnEvent<this>;
|
|
68
|
+
functions: {
|
|
69
|
+
createOrder(order: EthFlowOrder.DataStruct, overrides?: PayableOverrides & {
|
|
70
|
+
from?: string;
|
|
71
|
+
}): Promise<ContractTransaction>;
|
|
72
|
+
invalidateOrder(order: EthFlowOrder.DataStruct, overrides?: Overrides & {
|
|
73
|
+
from?: string;
|
|
74
|
+
}): Promise<ContractTransaction>;
|
|
75
|
+
orders(arg0: BytesLike, overrides?: CallOverrides): Promise<[string, number] & {
|
|
76
|
+
owner: string;
|
|
77
|
+
validTo: number;
|
|
78
|
+
}>;
|
|
79
|
+
};
|
|
80
|
+
createOrder(order: EthFlowOrder.DataStruct, overrides?: PayableOverrides & {
|
|
81
|
+
from?: string;
|
|
82
|
+
}): Promise<ContractTransaction>;
|
|
83
|
+
invalidateOrder(order: EthFlowOrder.DataStruct, overrides?: Overrides & {
|
|
84
|
+
from?: string;
|
|
85
|
+
}): Promise<ContractTransaction>;
|
|
86
|
+
orders(arg0: BytesLike, overrides?: CallOverrides): Promise<[string, number] & {
|
|
87
|
+
owner: string;
|
|
88
|
+
validTo: number;
|
|
89
|
+
}>;
|
|
90
|
+
callStatic: {
|
|
91
|
+
createOrder(order: EthFlowOrder.DataStruct, overrides?: CallOverrides): Promise<string>;
|
|
92
|
+
invalidateOrder(order: EthFlowOrder.DataStruct, overrides?: CallOverrides): Promise<void>;
|
|
93
|
+
orders(arg0: BytesLike, overrides?: CallOverrides): Promise<[string, number] & {
|
|
94
|
+
owner: string;
|
|
95
|
+
validTo: number;
|
|
96
|
+
}>;
|
|
97
|
+
};
|
|
98
|
+
filters: {};
|
|
99
|
+
estimateGas: {
|
|
100
|
+
createOrder(order: EthFlowOrder.DataStruct, overrides?: PayableOverrides & {
|
|
101
|
+
from?: string;
|
|
102
|
+
}): Promise<BigNumber>;
|
|
103
|
+
invalidateOrder(order: EthFlowOrder.DataStruct, overrides?: Overrides & {
|
|
104
|
+
from?: string;
|
|
105
|
+
}): Promise<BigNumber>;
|
|
106
|
+
orders(arg0: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;
|
|
107
|
+
};
|
|
108
|
+
populateTransaction: {
|
|
109
|
+
createOrder(order: EthFlowOrder.DataStruct, overrides?: PayableOverrides & {
|
|
110
|
+
from?: string;
|
|
111
|
+
}): Promise<PopulatedTransaction>;
|
|
112
|
+
invalidateOrder(order: EthFlowOrder.DataStruct, overrides?: Overrides & {
|
|
113
|
+
from?: string;
|
|
114
|
+
}): Promise<PopulatedTransaction>;
|
|
115
|
+
orders(arg0: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
116
|
+
};
|
|
117
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
|
|
5
|
+
export interface GPv2SettlementInterface extends utils.Interface {
|
|
6
|
+
functions: {
|
|
7
|
+
"setPreSignature(bytes,bool)": FunctionFragment;
|
|
8
|
+
"invalidateOrder(bytes)": FunctionFragment;
|
|
9
|
+
"domainSeparator()": FunctionFragment;
|
|
10
|
+
};
|
|
11
|
+
getFunction(nameOrSignatureOrTopic: "setPreSignature" | "invalidateOrder" | "domainSeparator"): FunctionFragment;
|
|
12
|
+
encodeFunctionData(functionFragment: "setPreSignature", values: [BytesLike, boolean]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "invalidateOrder", values: [BytesLike]): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "domainSeparator", values?: undefined): string;
|
|
15
|
+
decodeFunctionResult(functionFragment: "setPreSignature", data: BytesLike): Result;
|
|
16
|
+
decodeFunctionResult(functionFragment: "invalidateOrder", data: BytesLike): Result;
|
|
17
|
+
decodeFunctionResult(functionFragment: "domainSeparator", data: BytesLike): Result;
|
|
18
|
+
events: {
|
|
19
|
+
"Trade(address,address,address,uint256,uint256,uint256,bytes)": EventFragment;
|
|
20
|
+
};
|
|
21
|
+
getEvent(nameOrSignatureOrTopic: "Trade"): EventFragment;
|
|
22
|
+
}
|
|
23
|
+
export interface TradeEventObject {
|
|
24
|
+
owner: string;
|
|
25
|
+
sellToken: string;
|
|
26
|
+
buyToken: string;
|
|
27
|
+
sellAmount: BigNumber;
|
|
28
|
+
buyAmount: BigNumber;
|
|
29
|
+
feeAmount: BigNumber;
|
|
30
|
+
orderUid: string;
|
|
31
|
+
}
|
|
32
|
+
export type TradeEvent = TypedEvent<[
|
|
33
|
+
string,
|
|
34
|
+
string,
|
|
35
|
+
string,
|
|
36
|
+
BigNumber,
|
|
37
|
+
BigNumber,
|
|
38
|
+
BigNumber,
|
|
39
|
+
string
|
|
40
|
+
], TradeEventObject>;
|
|
41
|
+
export type TradeEventFilter = TypedEventFilter<TradeEvent>;
|
|
42
|
+
export interface GPv2Settlement extends BaseContract {
|
|
43
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
44
|
+
attach(addressOrName: string): this;
|
|
45
|
+
deployed(): Promise<this>;
|
|
46
|
+
interface: GPv2SettlementInterface;
|
|
47
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
48
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
49
|
+
listeners(eventName?: string): Array<Listener>;
|
|
50
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
51
|
+
removeAllListeners(eventName?: string): this;
|
|
52
|
+
off: OnEvent<this>;
|
|
53
|
+
on: OnEvent<this>;
|
|
54
|
+
once: OnEvent<this>;
|
|
55
|
+
removeListener: OnEvent<this>;
|
|
56
|
+
functions: {
|
|
57
|
+
setPreSignature(orderUid: BytesLike, signed: boolean, overrides?: Overrides & {
|
|
58
|
+
from?: string;
|
|
59
|
+
}): Promise<ContractTransaction>;
|
|
60
|
+
invalidateOrder(orderUid: BytesLike, overrides?: Overrides & {
|
|
61
|
+
from?: string;
|
|
62
|
+
}): Promise<ContractTransaction>;
|
|
63
|
+
domainSeparator(overrides?: Overrides & {
|
|
64
|
+
from?: string;
|
|
65
|
+
}): Promise<ContractTransaction>;
|
|
66
|
+
};
|
|
67
|
+
setPreSignature(orderUid: BytesLike, signed: boolean, overrides?: Overrides & {
|
|
68
|
+
from?: string;
|
|
69
|
+
}): Promise<ContractTransaction>;
|
|
70
|
+
invalidateOrder(orderUid: BytesLike, overrides?: Overrides & {
|
|
71
|
+
from?: string;
|
|
72
|
+
}): Promise<ContractTransaction>;
|
|
73
|
+
domainSeparator(overrides?: Overrides & {
|
|
74
|
+
from?: string;
|
|
75
|
+
}): Promise<ContractTransaction>;
|
|
76
|
+
callStatic: {
|
|
77
|
+
setPreSignature(orderUid: BytesLike, signed: boolean, overrides?: CallOverrides): Promise<void>;
|
|
78
|
+
invalidateOrder(orderUid: BytesLike, overrides?: CallOverrides): Promise<void>;
|
|
79
|
+
domainSeparator(overrides?: CallOverrides): Promise<string>;
|
|
80
|
+
};
|
|
81
|
+
filters: {
|
|
82
|
+
"Trade(address,address,address,uint256,uint256,uint256,bytes)"(owner?: string | null, sellToken?: null, buyToken?: null, sellAmount?: null, buyAmount?: null, feeAmount?: null, orderUid?: null): TradeEventFilter;
|
|
83
|
+
Trade(owner?: string | null, sellToken?: null, buyToken?: null, sellAmount?: null, buyAmount?: null, feeAmount?: null, orderUid?: null): TradeEventFilter;
|
|
84
|
+
};
|
|
85
|
+
estimateGas: {
|
|
86
|
+
setPreSignature(orderUid: BytesLike, signed: boolean, overrides?: Overrides & {
|
|
87
|
+
from?: string;
|
|
88
|
+
}): Promise<BigNumber>;
|
|
89
|
+
invalidateOrder(orderUid: BytesLike, overrides?: Overrides & {
|
|
90
|
+
from?: string;
|
|
91
|
+
}): Promise<BigNumber>;
|
|
92
|
+
domainSeparator(overrides?: Overrides & {
|
|
93
|
+
from?: string;
|
|
94
|
+
}): Promise<BigNumber>;
|
|
95
|
+
};
|
|
96
|
+
populateTransaction: {
|
|
97
|
+
setPreSignature(orderUid: BytesLike, signed: boolean, overrides?: Overrides & {
|
|
98
|
+
from?: string;
|
|
99
|
+
}): Promise<PopulatedTransaction>;
|
|
100
|
+
invalidateOrder(orderUid: BytesLike, overrides?: Overrides & {
|
|
101
|
+
from?: string;
|
|
102
|
+
}): Promise<PopulatedTransaction>;
|
|
103
|
+
domainSeparator(overrides?: Overrides & {
|
|
104
|
+
from?: string;
|
|
105
|
+
}): Promise<PopulatedTransaction>;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { EthFlow, EthFlowInterface } from "../EthFlow";
|
|
4
|
+
export declare class EthFlow__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly components: readonly [{
|
|
8
|
+
readonly internalType: "contract IERC20";
|
|
9
|
+
readonly name: "buyToken";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}, {
|
|
12
|
+
readonly internalType: "address";
|
|
13
|
+
readonly name: "receiver";
|
|
14
|
+
readonly type: "address";
|
|
15
|
+
}, {
|
|
16
|
+
readonly internalType: "uint256";
|
|
17
|
+
readonly name: "sellAmount";
|
|
18
|
+
readonly type: "uint256";
|
|
19
|
+
}, {
|
|
20
|
+
readonly internalType: "uint256";
|
|
21
|
+
readonly name: "buyAmount";
|
|
22
|
+
readonly type: "uint256";
|
|
23
|
+
}, {
|
|
24
|
+
readonly internalType: "bytes32";
|
|
25
|
+
readonly name: "appData";
|
|
26
|
+
readonly type: "bytes32";
|
|
27
|
+
}, {
|
|
28
|
+
readonly internalType: "uint256";
|
|
29
|
+
readonly name: "feeAmount";
|
|
30
|
+
readonly type: "uint256";
|
|
31
|
+
}, {
|
|
32
|
+
readonly internalType: "uint32";
|
|
33
|
+
readonly name: "validTo";
|
|
34
|
+
readonly type: "uint32";
|
|
35
|
+
}, {
|
|
36
|
+
readonly internalType: "bool";
|
|
37
|
+
readonly name: "partiallyFillable";
|
|
38
|
+
readonly type: "bool";
|
|
39
|
+
}, {
|
|
40
|
+
readonly internalType: "int64";
|
|
41
|
+
readonly name: "quoteId";
|
|
42
|
+
readonly type: "int64";
|
|
43
|
+
}];
|
|
44
|
+
readonly internalType: "struct EthFlowOrder.Data";
|
|
45
|
+
readonly name: "order";
|
|
46
|
+
readonly type: "tuple";
|
|
47
|
+
}];
|
|
48
|
+
readonly name: "createOrder";
|
|
49
|
+
readonly outputs: readonly [{
|
|
50
|
+
readonly internalType: "bytes32";
|
|
51
|
+
readonly name: "orderHash";
|
|
52
|
+
readonly type: "bytes32";
|
|
53
|
+
}];
|
|
54
|
+
readonly stateMutability: "payable";
|
|
55
|
+
readonly type: "function";
|
|
56
|
+
}, {
|
|
57
|
+
readonly inputs: readonly [{
|
|
58
|
+
readonly components: readonly [{
|
|
59
|
+
readonly internalType: "contract IERC20";
|
|
60
|
+
readonly name: "buyToken";
|
|
61
|
+
readonly type: "address";
|
|
62
|
+
}, {
|
|
63
|
+
readonly internalType: "address";
|
|
64
|
+
readonly name: "receiver";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
}, {
|
|
67
|
+
readonly internalType: "uint256";
|
|
68
|
+
readonly name: "sellAmount";
|
|
69
|
+
readonly type: "uint256";
|
|
70
|
+
}, {
|
|
71
|
+
readonly internalType: "uint256";
|
|
72
|
+
readonly name: "buyAmount";
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
}, {
|
|
75
|
+
readonly internalType: "bytes32";
|
|
76
|
+
readonly name: "appData";
|
|
77
|
+
readonly type: "bytes32";
|
|
78
|
+
}, {
|
|
79
|
+
readonly internalType: "uint256";
|
|
80
|
+
readonly name: "feeAmount";
|
|
81
|
+
readonly type: "uint256";
|
|
82
|
+
}, {
|
|
83
|
+
readonly internalType: "uint32";
|
|
84
|
+
readonly name: "validTo";
|
|
85
|
+
readonly type: "uint32";
|
|
86
|
+
}, {
|
|
87
|
+
readonly internalType: "bool";
|
|
88
|
+
readonly name: "partiallyFillable";
|
|
89
|
+
readonly type: "bool";
|
|
90
|
+
}, {
|
|
91
|
+
readonly internalType: "int64";
|
|
92
|
+
readonly name: "quoteId";
|
|
93
|
+
readonly type: "int64";
|
|
94
|
+
}];
|
|
95
|
+
readonly internalType: "struct EthFlowOrder.Data";
|
|
96
|
+
readonly name: "order";
|
|
97
|
+
readonly type: "tuple";
|
|
98
|
+
}];
|
|
99
|
+
readonly name: "invalidateOrder";
|
|
100
|
+
readonly outputs: readonly [];
|
|
101
|
+
readonly stateMutability: "nonpayable";
|
|
102
|
+
readonly type: "function";
|
|
103
|
+
}, {
|
|
104
|
+
readonly inputs: readonly [{
|
|
105
|
+
readonly internalType: "bytes32";
|
|
106
|
+
readonly name: "";
|
|
107
|
+
readonly type: "bytes32";
|
|
108
|
+
}];
|
|
109
|
+
readonly name: "orders";
|
|
110
|
+
readonly outputs: readonly [{
|
|
111
|
+
readonly internalType: "address";
|
|
112
|
+
readonly name: "owner";
|
|
113
|
+
readonly type: "address";
|
|
114
|
+
}, {
|
|
115
|
+
readonly internalType: "uint32";
|
|
116
|
+
readonly name: "validTo";
|
|
117
|
+
readonly type: "uint32";
|
|
118
|
+
}];
|
|
119
|
+
readonly stateMutability: "view";
|
|
120
|
+
readonly type: "function";
|
|
121
|
+
}];
|
|
122
|
+
static createInterface(): EthFlowInterface;
|
|
123
|
+
static connect(address: string, signerOrProvider: Signer | Provider): EthFlow;
|
|
124
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { GPv2Settlement, GPv2SettlementInterface } from "../GPv2Settlement";
|
|
4
|
+
export declare class GPv2Settlement__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly anonymous: false;
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly indexed: true;
|
|
9
|
+
readonly internalType: "address";
|
|
10
|
+
readonly name: "owner";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
}, {
|
|
13
|
+
readonly indexed: false;
|
|
14
|
+
readonly internalType: "contract IERC20";
|
|
15
|
+
readonly name: "sellToken";
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
}, {
|
|
18
|
+
readonly indexed: false;
|
|
19
|
+
readonly internalType: "contract IERC20";
|
|
20
|
+
readonly name: "buyToken";
|
|
21
|
+
readonly type: "address";
|
|
22
|
+
}, {
|
|
23
|
+
readonly indexed: false;
|
|
24
|
+
readonly internalType: "uint256";
|
|
25
|
+
readonly name: "sellAmount";
|
|
26
|
+
readonly type: "uint256";
|
|
27
|
+
}, {
|
|
28
|
+
readonly indexed: false;
|
|
29
|
+
readonly internalType: "uint256";
|
|
30
|
+
readonly name: "buyAmount";
|
|
31
|
+
readonly type: "uint256";
|
|
32
|
+
}, {
|
|
33
|
+
readonly indexed: false;
|
|
34
|
+
readonly internalType: "uint256";
|
|
35
|
+
readonly name: "feeAmount";
|
|
36
|
+
readonly type: "uint256";
|
|
37
|
+
}, {
|
|
38
|
+
readonly indexed: false;
|
|
39
|
+
readonly internalType: "bytes";
|
|
40
|
+
readonly name: "orderUid";
|
|
41
|
+
readonly type: "bytes";
|
|
42
|
+
}];
|
|
43
|
+
readonly name: "Trade";
|
|
44
|
+
readonly type: "event";
|
|
45
|
+
}, {
|
|
46
|
+
readonly inputs: readonly [{
|
|
47
|
+
readonly internalType: "bytes";
|
|
48
|
+
readonly name: "orderUid";
|
|
49
|
+
readonly type: "bytes";
|
|
50
|
+
}, {
|
|
51
|
+
readonly internalType: "bool";
|
|
52
|
+
readonly name: "signed";
|
|
53
|
+
readonly type: "bool";
|
|
54
|
+
}];
|
|
55
|
+
readonly name: "setPreSignature";
|
|
56
|
+
readonly outputs: readonly [];
|
|
57
|
+
readonly stateMutability: "nonpayable";
|
|
58
|
+
readonly type: "function";
|
|
59
|
+
}, {
|
|
60
|
+
readonly inputs: readonly [{
|
|
61
|
+
readonly internalType: "bytes";
|
|
62
|
+
readonly name: "orderUid";
|
|
63
|
+
readonly type: "bytes";
|
|
64
|
+
}];
|
|
65
|
+
readonly name: "invalidateOrder";
|
|
66
|
+
readonly outputs: readonly [];
|
|
67
|
+
readonly stateMutability: "nonpayable";
|
|
68
|
+
readonly type: "function";
|
|
69
|
+
}, {
|
|
70
|
+
readonly inputs: readonly [];
|
|
71
|
+
readonly name: "domainSeparator";
|
|
72
|
+
readonly outputs: readonly [{
|
|
73
|
+
readonly name: "";
|
|
74
|
+
readonly type: "bytes32";
|
|
75
|
+
}];
|
|
76
|
+
readonly stateMutability: "nonpayable";
|
|
77
|
+
readonly type: "function";
|
|
78
|
+
}];
|
|
79
|
+
static createInterface(): GPv2SettlementInterface;
|
|
80
|
+
static connect(address: string, signerOrProvider: Signer | Provider): GPv2Settlement;
|
|
81
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { CoWShed__factory } from "./CoWShed__factory";
|
|
2
2
|
export { CoWShedFactory__factory } from "./CoWShedFactory__factory";
|
|
3
3
|
export { ComposableCoW__factory } from "./ComposableCoW__factory";
|
|
4
|
+
export { EthFlow__factory } from "./EthFlow__factory";
|
|
4
5
|
export { ExtensibleFallbackHandler__factory } from "./ExtensibleFallbackHandler__factory";
|
|
6
|
+
export { GPv2Settlement__factory } from "./GPv2Settlement__factory";
|
|
5
7
|
export { TWAP__factory } from "./TWAP__factory";
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
export type { CoWShed } from "./CoWShed";
|
|
2
2
|
export type { CoWShedFactory } from "./CoWShedFactory";
|
|
3
3
|
export type { ComposableCoW } from "./ComposableCoW";
|
|
4
|
+
export type { EthFlow } from "./EthFlow";
|
|
4
5
|
export type { ExtensibleFallbackHandler } from "./ExtensibleFallbackHandler";
|
|
6
|
+
export type { GPv2Settlement } from "./GPv2Settlement";
|
|
5
7
|
export type { TWAP } from "./TWAP";
|
|
6
8
|
export * as factories from "./factories";
|
|
7
9
|
export { ComposableCoW__factory } from "./factories/ComposableCoW__factory";
|
|
8
10
|
export { CoWShed__factory } from "./factories/CoWShed__factory";
|
|
9
11
|
export { CoWShedFactory__factory } from "./factories/CoWShedFactory__factory";
|
|
12
|
+
export { EthFlow__factory } from "./factories/EthFlow__factory";
|
|
10
13
|
export { ExtensibleFallbackHandler__factory } from "./factories/ExtensibleFallbackHandler__factory";
|
|
14
|
+
export { GPv2Settlement__factory } from "./factories/GPv2Settlement__factory";
|
|
11
15
|
export { TWAP__factory } from "./factories/TWAP__factory";
|