@1stdex/first-sdk 1.0.40 → 1.0.57
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/README.md +26 -1
- package/dist/cjs/calls/batch/index.js +3 -3
- package/dist/cjs/calls/batch/index.js.map +1 -1
- package/dist/cjs/calls/batch/{prepare-order-with-setup.js → prepare-limit-order-with-setup.js} +4 -16
- package/dist/cjs/calls/batch/prepare-limit-order-with-setup.js.map +1 -0
- package/dist/cjs/calls/batch/prepare-market-order-with-setup.js +0 -12
- package/dist/cjs/calls/batch/prepare-market-order-with-setup.js.map +1 -1
- package/dist/cjs/calls/index.js +2 -5
- package/dist/cjs/calls/index.js.map +1 -1
- package/dist/cjs/calls/market/cancel.js +0 -5
- package/dist/cjs/calls/market/cancel.js.map +1 -1
- package/dist/cjs/calls/market/claim.js +1 -6
- package/dist/cjs/calls/market/claim.js.map +1 -1
- package/dist/cjs/calls/market/limit.js +5 -18
- package/dist/cjs/calls/market/limit.js.map +1 -1
- package/dist/cjs/calls/market/make.js +2 -12
- package/dist/cjs/calls/market/make.js.map +1 -1
- package/dist/cjs/calls/market/market.js +1 -3
- package/dist/cjs/calls/market/market.js.map +1 -1
- package/dist/cjs/constants/abis/core/book-manager-abi.js +1100 -273
- package/dist/cjs/constants/abis/core/book-manager-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/book-viewer-abi.js +222 -42
- package/dist/cjs/constants/abis/core/book-viewer-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/claimable-dex-vault-abi.js +2096 -0
- package/dist/cjs/constants/abis/core/claimable-dex-vault-abi.js.map +1 -0
- package/dist/cjs/constants/abis/core/controller-abi.js +731 -134
- package/dist/cjs/constants/abis/core/controller-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/dex-vault-abi.js +1346 -7
- package/dist/cjs/constants/abis/core/dex-vault-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/mirror-token-abi.js +938 -164
- package/dist/cjs/constants/abis/core/mirror-token-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/params-abi.js +0 -1
- package/dist/cjs/constants/abis/core/params-abi.js.map +1 -1
- package/dist/cjs/constants/chain-configs/addresses.js +8 -3
- package/dist/cjs/constants/chain-configs/addresses.js.map +1 -1
- package/dist/cjs/constants/chain-configs/chain.js +2 -0
- package/dist/cjs/constants/chain-configs/chain.js.map +1 -1
- package/dist/cjs/constants/chain-configs/currency.js +9 -1
- package/dist/cjs/constants/chain-configs/currency.js.map +1 -1
- package/dist/cjs/constants/chain-configs/fee.js +2 -0
- package/dist/cjs/constants/chain-configs/fee.js.map +1 -1
- package/dist/cjs/constants/chain-configs/subgraph.js +2 -1
- package/dist/cjs/constants/chain-configs/subgraph.js.map +1 -1
- package/dist/cjs/entities/analytics/apis/index.js +4 -57
- package/dist/cjs/entities/analytics/apis/index.js.map +1 -1
- package/dist/cjs/entities/open-order/apis/index.js +72 -3
- package/dist/cjs/entities/open-order/apis/index.js.map +1 -1
- package/dist/cjs/views/balance.js +4 -4
- package/dist/cjs/views/balance.js.map +1 -1
- package/dist/cjs/views/index.js +3 -2
- package/dist/cjs/views/index.js.map +1 -1
- package/dist/cjs/views/market/order-result.js +116 -84
- package/dist/cjs/views/market/order-result.js.map +1 -1
- package/dist/cjs/views/open-order.js +11 -3
- package/dist/cjs/views/open-order.js.map +1 -1
- package/dist/cjs/views/setup.js +6 -30
- package/dist/cjs/views/setup.js.map +1 -1
- package/dist/esm/calls/approval/market.js +1 -1
- package/dist/esm/calls/approval/open-order.js +1 -1
- package/dist/esm/calls/approval/token.js +1 -1
- package/dist/esm/calls/batch/index.js +1 -1
- package/dist/esm/calls/batch/index.js.map +1 -1
- package/dist/esm/calls/batch/{prepare-order-with-setup.js → prepare-limit-order-with-setup.js} +6 -19
- package/dist/esm/calls/batch/prepare-limit-order-with-setup.js.map +1 -0
- package/dist/esm/calls/batch/prepare-market-order-with-setup.js +3 -16
- package/dist/esm/calls/batch/prepare-market-order-with-setup.js.map +1 -1
- package/dist/esm/calls/index.js +1 -2
- package/dist/esm/calls/index.js.map +1 -1
- package/dist/esm/calls/market/cancel.js +2 -7
- package/dist/esm/calls/market/cancel.js.map +1 -1
- package/dist/esm/calls/market/claim.js +5 -10
- package/dist/esm/calls/market/claim.js.map +1 -1
- package/dist/esm/calls/market/limit.js +7 -20
- package/dist/esm/calls/market/limit.js.map +1 -1
- package/dist/esm/calls/market/make.js +2 -12
- package/dist/esm/calls/market/make.js.map +1 -1
- package/dist/esm/calls/market/market.js +2 -4
- package/dist/esm/calls/market/market.js.map +1 -1
- package/dist/esm/calls/market/open.js +1 -1
- package/dist/esm/calls/vault/deposit-to-vault.js +1 -1
- package/dist/esm/calls/vault/remove-vault.js +1 -1
- package/dist/esm/calls/vault/set-vault.js +1 -1
- package/dist/esm/calls/vault/withdraw-from-vault.js +1 -1
- package/dist/esm/constants/abis/core/book-manager-abi.js +1100 -273
- package/dist/esm/constants/abis/core/book-manager-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/book-viewer-abi.js +222 -42
- package/dist/esm/constants/abis/core/book-viewer-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/claimable-dex-vault-abi.js +2093 -0
- package/dist/esm/constants/abis/core/claimable-dex-vault-abi.js.map +1 -0
- package/dist/esm/constants/abis/core/controller-abi.js +731 -134
- package/dist/esm/constants/abis/core/controller-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/dex-vault-abi.js +1346 -7
- package/dist/esm/constants/abis/core/dex-vault-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/mirror-token-abi.js +938 -164
- package/dist/esm/constants/abis/core/mirror-token-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/params-abi.js +0 -1
- package/dist/esm/constants/abis/core/params-abi.js.map +1 -1
- package/dist/esm/constants/chain-configs/addresses.js +8 -3
- package/dist/esm/constants/chain-configs/addresses.js.map +1 -1
- package/dist/esm/constants/chain-configs/chain.js +3 -1
- package/dist/esm/constants/chain-configs/chain.js.map +1 -1
- package/dist/esm/constants/chain-configs/currency.js +9 -1
- package/dist/esm/constants/chain-configs/currency.js.map +1 -1
- package/dist/esm/constants/chain-configs/fee.js +2 -0
- package/dist/esm/constants/chain-configs/fee.js.map +1 -1
- package/dist/esm/constants/chain-configs/subgraph.js +2 -1
- package/dist/esm/constants/chain-configs/subgraph.js.map +1 -1
- package/dist/esm/entities/analytics/apis/index.js +4 -57
- package/dist/esm/entities/analytics/apis/index.js.map +1 -1
- package/dist/esm/entities/open-order/apis/index.js +69 -2
- package/dist/esm/entities/open-order/apis/index.js.map +1 -1
- package/dist/esm/views/address.js +1 -1
- package/dist/esm/views/balance.js +4 -4
- package/dist/esm/views/balance.js.map +1 -1
- package/dist/esm/views/book.js +1 -1
- package/dist/esm/views/index.js +2 -2
- package/dist/esm/views/index.js.map +1 -1
- package/dist/esm/views/market/chart-log.js +2 -2
- package/dist/esm/views/market/index.js +1 -1
- package/dist/esm/views/market/order-result.js +142 -92
- package/dist/esm/views/market/order-result.js.map +1 -1
- package/dist/esm/views/market/quote.js +2 -2
- package/dist/esm/views/market/token.js +1 -1
- package/dist/esm/views/open-order.js +46 -5
- package/dist/esm/views/open-order.js.map +1 -1
- package/dist/esm/views/order.js +1 -1
- package/dist/esm/views/setup.js +10 -50
- package/dist/esm/views/setup.js.map +1 -1
- package/dist/esm/views/subgraph.js +3 -3
- package/dist/esm/views/vault.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/calls/approval/market.d.ts +1 -1
- package/dist/types/calls/approval/open-order.d.ts +1 -1
- package/dist/types/calls/approval/token.d.ts +1 -1
- package/dist/types/calls/batch/index.d.ts +2 -2
- package/dist/types/calls/batch/index.d.ts.map +1 -1
- package/dist/types/calls/batch/{prepare-order-with-setup.d.ts → prepare-limit-order-with-setup.d.ts} +5 -8
- package/dist/types/calls/batch/prepare-limit-order-with-setup.d.ts.map +1 -0
- package/dist/types/calls/batch/prepare-market-order-with-setup.d.ts +2 -2
- package/dist/types/calls/batch/prepare-market-order-with-setup.d.ts.map +1 -1
- package/dist/types/calls/index.d.ts +1 -2
- package/dist/types/calls/index.d.ts.map +1 -1
- package/dist/types/calls/market/cancel.d.ts +2 -2
- package/dist/types/calls/market/cancel.d.ts.map +1 -1
- package/dist/types/calls/market/claim.d.ts +4 -4
- package/dist/types/calls/market/claim.d.ts.map +1 -1
- package/dist/types/calls/market/limit.d.ts +3 -6
- package/dist/types/calls/market/limit.d.ts.map +1 -1
- package/dist/types/calls/market/make.d.ts +0 -2
- package/dist/types/calls/market/make.d.ts.map +1 -1
- package/dist/types/calls/market/market.d.ts +1 -2
- package/dist/types/calls/market/market.d.ts.map +1 -1
- package/dist/types/calls/market/open.d.ts +1 -1
- package/dist/types/calls/vault/deposit-to-vault.d.ts +1 -1
- package/dist/types/calls/vault/remove-vault.d.ts +1 -1
- package/dist/types/calls/vault/set-vault.d.ts +1 -1
- package/dist/types/calls/vault/withdraw-from-vault.d.ts +1 -1
- package/dist/types/constants/abis/core/book-manager-abi.d.ts +67 -159
- package/dist/types/constants/abis/core/book-manager-abi.d.ts.map +1 -1
- package/dist/types/constants/abis/core/book-viewer-abi.d.ts +0 -8
- package/dist/types/constants/abis/core/book-viewer-abi.d.ts.map +1 -1
- package/dist/types/constants/abis/core/{claimable-dex-vault.d.ts → claimable-dex-vault-abi.d.ts} +74 -117
- package/dist/types/constants/abis/core/{claimable-dex-vault.d.ts.map → claimable-dex-vault-abi.d.ts.map} +1 -1
- package/dist/types/constants/abis/core/controller-abi.d.ts +25 -25
- package/dist/types/constants/abis/core/controller-abi.d.ts.map +1 -1
- package/dist/types/constants/abis/core/dex-vault-abi.d.ts +1008 -4
- package/dist/types/constants/abis/core/dex-vault-abi.d.ts.map +1 -1
- package/dist/types/constants/abis/core/mirror-token-abi.d.ts +10 -0
- package/dist/types/constants/abis/core/mirror-token-abi.d.ts.map +1 -1
- package/dist/types/constants/abis/core/params-abi.d.ts.map +1 -1
- package/dist/types/constants/chain-configs/addresses.d.ts.map +1 -1
- package/dist/types/constants/chain-configs/chain.d.ts +1 -0
- package/dist/types/constants/chain-configs/chain.d.ts.map +1 -1
- package/dist/types/constants/chain-configs/currency.d.ts.map +1 -1
- package/dist/types/constants/chain-configs/fee.d.ts.map +1 -1
- package/dist/types/constants/chain-configs/subgraph.d.ts.map +1 -1
- package/dist/types/entities/analytics/apis/index.d.ts.map +1 -1
- package/dist/types/entities/analytics/types.d.ts +1 -7
- package/dist/types/entities/analytics/types.d.ts.map +1 -1
- package/dist/types/entities/open-order/apis/index.d.ts +3 -1
- package/dist/types/entities/open-order/apis/index.d.ts.map +1 -1
- package/dist/types/views/address.d.ts +1 -1
- package/dist/types/views/balance.d.ts +2 -2
- package/dist/types/views/book.d.ts +1 -1
- package/dist/types/views/index.d.ts +2 -2
- package/dist/types/views/index.d.ts.map +1 -1
- package/dist/types/views/market/chart-log.d.ts +2 -2
- package/dist/types/views/market/index.d.ts +1 -1
- package/dist/types/views/market/order-result.d.ts +6 -6
- package/dist/types/views/market/order-result.d.ts.map +1 -1
- package/dist/types/views/market/quote.d.ts +2 -2
- package/dist/types/views/market/token.d.ts +1 -1
- package/dist/types/views/open-order.d.ts +49 -3
- package/dist/types/views/open-order.d.ts.map +1 -1
- package/dist/types/views/order.d.ts +1 -1
- package/dist/types/views/setup.d.ts +5 -32
- package/dist/types/views/setup.d.ts.map +1 -1
- package/dist/types/views/subgraph.d.ts +3 -3
- package/dist/types/views/vault.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/calls/approval/order.js +0 -44
- package/dist/cjs/calls/approval/order.js.map +0 -1
- package/dist/cjs/calls/batch/prepare-order-with-setup.js.map +0 -1
- package/dist/cjs/constants/abis/core/claimable-dex-vault.js +0 -1166
- package/dist/cjs/constants/abis/core/claimable-dex-vault.js.map +0 -1
- package/dist/cjs/entities/open-order/apis/operator.js +0 -15
- package/dist/cjs/entities/open-order/apis/operator.js.map +0 -1
- package/dist/esm/calls/approval/order.js +0 -80
- package/dist/esm/calls/approval/order.js.map +0 -1
- package/dist/esm/calls/batch/prepare-order-with-setup.js.map +0 -1
- package/dist/esm/constants/abis/core/claimable-dex-vault.js +0 -1163
- package/dist/esm/constants/abis/core/claimable-dex-vault.js.map +0 -1
- package/dist/esm/entities/open-order/apis/operator.js +0 -11
- package/dist/esm/entities/open-order/apis/operator.js.map +0 -1
- package/dist/types/calls/approval/order.d.ts +0 -56
- package/dist/types/calls/approval/order.d.ts.map +0 -1
- package/dist/types/calls/batch/prepare-order-with-setup.d.ts.map +0 -1
- package/dist/types/entities/open-order/apis/operator.d.ts +0 -4
- package/dist/types/entities/open-order/apis/operator.d.ts.map +0 -1
|
@@ -1,100 +1,212 @@
|
|
|
1
1
|
export const BOOK_MANAGER_ABI = [
|
|
2
2
|
{
|
|
3
3
|
inputs: [
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
internalType: 'address',
|
|
6
|
+
name: '_feeRecipient',
|
|
7
|
+
type: 'address',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
internalType: 'address',
|
|
11
|
+
name: '_defaultReferrer',
|
|
12
|
+
type: 'address',
|
|
13
|
+
},
|
|
5
14
|
],
|
|
6
15
|
stateMutability: 'nonpayable',
|
|
7
16
|
type: 'constructor',
|
|
8
17
|
},
|
|
9
|
-
{
|
|
18
|
+
{
|
|
19
|
+
inputs: [],
|
|
20
|
+
name: 'AccessControlBadConfirmation',
|
|
21
|
+
type: 'error',
|
|
22
|
+
},
|
|
10
23
|
{
|
|
11
24
|
inputs: [
|
|
12
|
-
{
|
|
13
|
-
|
|
25
|
+
{
|
|
26
|
+
internalType: 'address',
|
|
27
|
+
name: 'account',
|
|
28
|
+
type: 'address',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
internalType: 'bytes32',
|
|
32
|
+
name: 'neededRole',
|
|
33
|
+
type: 'bytes32',
|
|
34
|
+
},
|
|
14
35
|
],
|
|
15
36
|
name: 'AccessControlUnauthorizedAccount',
|
|
16
37
|
type: 'error',
|
|
17
38
|
},
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
39
|
+
{
|
|
40
|
+
inputs: [],
|
|
41
|
+
name: 'AssetMismatch',
|
|
42
|
+
type: 'error',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
inputs: [],
|
|
46
|
+
name: 'BookClosedError',
|
|
47
|
+
type: 'error',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
inputs: [],
|
|
51
|
+
name: 'BookNotOpened',
|
|
52
|
+
type: 'error',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
inputs: [],
|
|
56
|
+
name: 'BookPausedError',
|
|
57
|
+
type: 'error',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
inputs: [],
|
|
61
|
+
name: 'CallerMustBeLocker',
|
|
62
|
+
type: 'error',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
inputs: [],
|
|
66
|
+
name: 'CurrencyNotSettled',
|
|
67
|
+
type: 'error',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
inputs: [],
|
|
71
|
+
name: 'CurrencyPausedError',
|
|
72
|
+
type: 'error',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
inputs: [],
|
|
76
|
+
name: 'EmptyError',
|
|
77
|
+
type: 'error',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
inputs: [],
|
|
81
|
+
name: 'InvalidFeePolicy',
|
|
82
|
+
type: 'error',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
inputs: [],
|
|
86
|
+
name: 'InvalidFeeRecipient',
|
|
87
|
+
type: 'error',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
inputs: [],
|
|
91
|
+
name: 'InvalidReferrer',
|
|
92
|
+
type: 'error',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
inputs: [],
|
|
96
|
+
name: 'InvalidReferrerFeeRate',
|
|
97
|
+
type: 'error',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
inputs: [],
|
|
101
|
+
name: 'InvalidTick',
|
|
102
|
+
type: 'error',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
inputs: [],
|
|
106
|
+
name: 'InvalidUnitLimits',
|
|
107
|
+
type: 'error',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
inputs: [],
|
|
111
|
+
name: 'InvalidUnitSize',
|
|
30
112
|
type: 'error',
|
|
31
113
|
},
|
|
32
|
-
{ inputs: [], name: 'InvalidReferrerFeeRate', type: 'error' },
|
|
33
|
-
{ inputs: [], name: 'InvalidTick', type: 'error' },
|
|
34
|
-
{ inputs: [], name: 'InvalidUnitLimits', type: 'error' },
|
|
35
|
-
{ inputs: [], name: 'InvalidUnitSize', type: 'error' },
|
|
36
114
|
{
|
|
37
|
-
inputs: [
|
|
115
|
+
inputs: [
|
|
116
|
+
{
|
|
117
|
+
internalType: 'address',
|
|
118
|
+
name: 'locker',
|
|
119
|
+
type: 'address',
|
|
120
|
+
},
|
|
121
|
+
],
|
|
38
122
|
name: 'LockedBy',
|
|
39
123
|
type: 'error',
|
|
40
124
|
},
|
|
41
|
-
{ inputs: [], name: 'LockerNotAuthorized', type: 'error' },
|
|
42
125
|
{
|
|
43
|
-
inputs: [
|
|
44
|
-
name: '
|
|
126
|
+
inputs: [],
|
|
127
|
+
name: 'LockerNotAuthorized',
|
|
45
128
|
type: 'error',
|
|
46
129
|
},
|
|
47
130
|
{
|
|
48
|
-
inputs: [
|
|
49
|
-
|
|
131
|
+
inputs: [
|
|
132
|
+
{
|
|
133
|
+
internalType: 'OrderId',
|
|
134
|
+
name: 'id',
|
|
135
|
+
type: 'uint256',
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
name: 'OrderAlreadyExists',
|
|
50
139
|
type: 'error',
|
|
51
140
|
},
|
|
52
141
|
{
|
|
53
142
|
inputs: [
|
|
54
|
-
{
|
|
55
|
-
|
|
143
|
+
{
|
|
144
|
+
internalType: 'OrderId',
|
|
145
|
+
name: 'id',
|
|
146
|
+
type: 'uint256',
|
|
147
|
+
},
|
|
56
148
|
],
|
|
57
|
-
name: '
|
|
149
|
+
name: 'OrderDoesNotExist',
|
|
150
|
+
type: 'error',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
inputs: [],
|
|
154
|
+
name: 'OrderNotFoundAtIndex',
|
|
58
155
|
type: 'error',
|
|
59
156
|
},
|
|
60
|
-
{ inputs: [], name: 'OrderNotFoundAtIndex', type: 'error' },
|
|
61
157
|
{
|
|
62
|
-
inputs: [
|
|
158
|
+
inputs: [
|
|
159
|
+
{
|
|
160
|
+
internalType: 'address',
|
|
161
|
+
name: 'owner',
|
|
162
|
+
type: 'address',
|
|
163
|
+
},
|
|
164
|
+
],
|
|
63
165
|
name: 'OwnableInvalidOwner',
|
|
64
166
|
type: 'error',
|
|
65
167
|
},
|
|
66
168
|
{
|
|
67
|
-
inputs: [
|
|
169
|
+
inputs: [
|
|
170
|
+
{
|
|
171
|
+
internalType: 'address',
|
|
172
|
+
name: 'account',
|
|
173
|
+
type: 'address',
|
|
174
|
+
},
|
|
175
|
+
],
|
|
68
176
|
name: 'OwnableUnauthorizedAccount',
|
|
69
177
|
type: 'error',
|
|
70
178
|
},
|
|
71
|
-
{ inputs: [], name: 'OwnerCannotBeZero', type: 'error' },
|
|
72
|
-
{ inputs: [], name: 'ProviderAlreadyWhitelisted', type: 'error' },
|
|
73
|
-
{ inputs: [], name: 'ProviderNotWhitelisted', type: 'error' },
|
|
74
179
|
{
|
|
75
|
-
inputs: [
|
|
76
|
-
name: '
|
|
180
|
+
inputs: [],
|
|
181
|
+
name: 'OwnerCannotBeZero',
|
|
77
182
|
type: 'error',
|
|
78
183
|
},
|
|
79
|
-
{ inputs: [], name: 'Unauthorized', type: 'error' },
|
|
80
184
|
{
|
|
81
185
|
inputs: [
|
|
82
|
-
{
|
|
83
|
-
|
|
186
|
+
{
|
|
187
|
+
internalType: 'address',
|
|
188
|
+
name: 'token',
|
|
189
|
+
type: 'address',
|
|
190
|
+
},
|
|
84
191
|
],
|
|
85
|
-
name: '
|
|
192
|
+
name: 'SafeERC20FailedOperation',
|
|
86
193
|
type: 'error',
|
|
87
194
|
},
|
|
88
195
|
{
|
|
89
|
-
inputs: [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
196
|
+
inputs: [],
|
|
197
|
+
name: 'Unauthorized',
|
|
198
|
+
type: 'error',
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
inputs: [],
|
|
202
|
+
name: 'VaultCannotBeZero',
|
|
203
|
+
type: 'error',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
inputs: [],
|
|
207
|
+
name: 'VaultDoesNotExist',
|
|
94
208
|
type: 'error',
|
|
95
209
|
},
|
|
96
|
-
{ inputs: [], name: 'VaultCannotBeZero', type: 'error' },
|
|
97
|
-
{ inputs: [], name: 'VaultDoesNotExist', type: 'error' },
|
|
98
210
|
{
|
|
99
211
|
anonymous: false,
|
|
100
212
|
inputs: [
|
|
@@ -149,7 +261,12 @@ export const BOOK_MANAGER_ABI = [
|
|
|
149
261
|
name: 'orderId',
|
|
150
262
|
type: 'uint256',
|
|
151
263
|
},
|
|
152
|
-
{
|
|
264
|
+
{
|
|
265
|
+
indexed: false,
|
|
266
|
+
internalType: 'uint64',
|
|
267
|
+
name: 'unit',
|
|
268
|
+
type: 'uint64',
|
|
269
|
+
},
|
|
153
270
|
],
|
|
154
271
|
name: 'Cancel',
|
|
155
272
|
type: 'event',
|
|
@@ -163,7 +280,12 @@ export const BOOK_MANAGER_ABI = [
|
|
|
163
280
|
name: 'orderId',
|
|
164
281
|
type: 'uint256',
|
|
165
282
|
},
|
|
166
|
-
{
|
|
283
|
+
{
|
|
284
|
+
indexed: false,
|
|
285
|
+
internalType: 'uint64',
|
|
286
|
+
name: 'unit',
|
|
287
|
+
type: 'uint64',
|
|
288
|
+
},
|
|
167
289
|
],
|
|
168
290
|
name: 'Claim',
|
|
169
291
|
type: 'event',
|
|
@@ -200,11 +322,11 @@ export const BOOK_MANAGER_ABI = [
|
|
|
200
322
|
{
|
|
201
323
|
indexed: true,
|
|
202
324
|
internalType: 'address',
|
|
203
|
-
name: '
|
|
325
|
+
name: 'newFeeRecipient',
|
|
204
326
|
type: 'address',
|
|
205
327
|
},
|
|
206
328
|
],
|
|
207
|
-
name: '
|
|
329
|
+
name: 'FeeRecipientUpdated',
|
|
208
330
|
type: 'event',
|
|
209
331
|
},
|
|
210
332
|
{
|
|
@@ -216,19 +338,34 @@ export const BOOK_MANAGER_ABI = [
|
|
|
216
338
|
name: 'bookId',
|
|
217
339
|
type: 'uint192',
|
|
218
340
|
},
|
|
219
|
-
{
|
|
220
|
-
|
|
341
|
+
{
|
|
342
|
+
indexed: true,
|
|
343
|
+
internalType: 'address',
|
|
344
|
+
name: 'user',
|
|
345
|
+
type: 'address',
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
indexed: false,
|
|
349
|
+
internalType: 'Tick',
|
|
350
|
+
name: 'tick',
|
|
351
|
+
type: 'int24',
|
|
352
|
+
},
|
|
221
353
|
{
|
|
222
354
|
indexed: false,
|
|
223
355
|
internalType: 'uint256',
|
|
224
356
|
name: 'orderIndex',
|
|
225
357
|
type: 'uint256',
|
|
226
358
|
},
|
|
227
|
-
{
|
|
359
|
+
{
|
|
360
|
+
indexed: false,
|
|
361
|
+
internalType: 'uint64',
|
|
362
|
+
name: 'unit',
|
|
363
|
+
type: 'uint64',
|
|
364
|
+
},
|
|
228
365
|
{
|
|
229
366
|
indexed: false,
|
|
230
367
|
internalType: 'address',
|
|
231
|
-
name: '
|
|
368
|
+
name: 'referrer',
|
|
232
369
|
type: 'address',
|
|
233
370
|
},
|
|
234
371
|
],
|
|
@@ -238,7 +375,12 @@ export const BOOK_MANAGER_ABI = [
|
|
|
238
375
|
{
|
|
239
376
|
anonymous: false,
|
|
240
377
|
inputs: [
|
|
241
|
-
{
|
|
378
|
+
{
|
|
379
|
+
indexed: true,
|
|
380
|
+
internalType: 'BookId',
|
|
381
|
+
name: 'id',
|
|
382
|
+
type: 'uint192',
|
|
383
|
+
},
|
|
242
384
|
{
|
|
243
385
|
indexed: true,
|
|
244
386
|
internalType: 'Currency',
|
|
@@ -276,7 +418,12 @@ export const BOOK_MANAGER_ABI = [
|
|
|
276
418
|
{
|
|
277
419
|
anonymous: false,
|
|
278
420
|
inputs: [
|
|
279
|
-
{
|
|
421
|
+
{
|
|
422
|
+
indexed: true,
|
|
423
|
+
internalType: 'OrderId',
|
|
424
|
+
name: 'id',
|
|
425
|
+
type: 'uint256',
|
|
426
|
+
},
|
|
280
427
|
{
|
|
281
428
|
indexed: true,
|
|
282
429
|
internalType: 'address',
|
|
@@ -296,7 +443,12 @@ export const BOOK_MANAGER_ABI = [
|
|
|
296
443
|
{
|
|
297
444
|
anonymous: false,
|
|
298
445
|
inputs: [
|
|
299
|
-
{
|
|
446
|
+
{
|
|
447
|
+
indexed: true,
|
|
448
|
+
internalType: 'OrderId',
|
|
449
|
+
name: 'id',
|
|
450
|
+
type: 'uint256',
|
|
451
|
+
},
|
|
300
452
|
{
|
|
301
453
|
indexed: true,
|
|
302
454
|
internalType: 'address',
|
|
@@ -313,26 +465,6 @@ export const BOOK_MANAGER_ABI = [
|
|
|
313
465
|
name: 'OrderDestroyed',
|
|
314
466
|
type: 'event',
|
|
315
467
|
},
|
|
316
|
-
{
|
|
317
|
-
anonymous: false,
|
|
318
|
-
inputs: [
|
|
319
|
-
{
|
|
320
|
-
indexed: true,
|
|
321
|
-
internalType: 'address',
|
|
322
|
-
name: 'owner',
|
|
323
|
-
type: 'address',
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
indexed: true,
|
|
327
|
-
internalType: 'address',
|
|
328
|
-
name: 'operator',
|
|
329
|
-
type: 'address',
|
|
330
|
-
},
|
|
331
|
-
{ indexed: false, internalType: 'bool', name: 'approved', type: 'bool' },
|
|
332
|
-
],
|
|
333
|
-
name: 'OrderOperatorSet',
|
|
334
|
-
type: 'event',
|
|
335
|
-
},
|
|
336
468
|
{
|
|
337
469
|
anonymous: false,
|
|
338
470
|
inputs: [
|
|
@@ -442,7 +574,12 @@ export const BOOK_MANAGER_ABI = [
|
|
|
442
574
|
{
|
|
443
575
|
anonymous: false,
|
|
444
576
|
inputs: [
|
|
445
|
-
{
|
|
577
|
+
{
|
|
578
|
+
indexed: true,
|
|
579
|
+
internalType: 'bytes32',
|
|
580
|
+
name: 'role',
|
|
581
|
+
type: 'bytes32',
|
|
582
|
+
},
|
|
446
583
|
{
|
|
447
584
|
indexed: true,
|
|
448
585
|
internalType: 'bytes32',
|
|
@@ -462,7 +599,12 @@ export const BOOK_MANAGER_ABI = [
|
|
|
462
599
|
{
|
|
463
600
|
anonymous: false,
|
|
464
601
|
inputs: [
|
|
465
|
-
{
|
|
602
|
+
{
|
|
603
|
+
indexed: true,
|
|
604
|
+
internalType: 'bytes32',
|
|
605
|
+
name: 'role',
|
|
606
|
+
type: 'bytes32',
|
|
607
|
+
},
|
|
466
608
|
{
|
|
467
609
|
indexed: true,
|
|
468
610
|
internalType: 'address',
|
|
@@ -482,7 +624,12 @@ export const BOOK_MANAGER_ABI = [
|
|
|
482
624
|
{
|
|
483
625
|
anonymous: false,
|
|
484
626
|
inputs: [
|
|
485
|
-
{
|
|
627
|
+
{
|
|
628
|
+
indexed: true,
|
|
629
|
+
internalType: 'bytes32',
|
|
630
|
+
name: 'role',
|
|
631
|
+
type: 'bytes32',
|
|
632
|
+
},
|
|
486
633
|
{
|
|
487
634
|
indexed: true,
|
|
488
635
|
internalType: 'address',
|
|
@@ -517,8 +664,14 @@ export const BOOK_MANAGER_ABI = [
|
|
|
517
664
|
inputs: [
|
|
518
665
|
{
|
|
519
666
|
indexed: true,
|
|
520
|
-
internalType: '
|
|
521
|
-
name: '
|
|
667
|
+
internalType: 'BookId',
|
|
668
|
+
name: 'bookId',
|
|
669
|
+
type: 'uint192',
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
indexed: true,
|
|
673
|
+
internalType: 'Currency',
|
|
674
|
+
name: 'currency',
|
|
522
675
|
type: 'address',
|
|
523
676
|
},
|
|
524
677
|
{
|
|
@@ -540,9 +693,30 @@ export const BOOK_MANAGER_ABI = [
|
|
|
540
693
|
name: 'bookId',
|
|
541
694
|
type: 'uint192',
|
|
542
695
|
},
|
|
543
|
-
{
|
|
544
|
-
|
|
545
|
-
|
|
696
|
+
{
|
|
697
|
+
indexed: true,
|
|
698
|
+
internalType: 'address',
|
|
699
|
+
name: 'user',
|
|
700
|
+
type: 'address',
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
indexed: false,
|
|
704
|
+
internalType: 'Tick',
|
|
705
|
+
name: 'tick',
|
|
706
|
+
type: 'int24',
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
indexed: false,
|
|
710
|
+
internalType: 'uint64',
|
|
711
|
+
name: 'unit',
|
|
712
|
+
type: 'uint64',
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
indexed: false,
|
|
716
|
+
internalType: 'address',
|
|
717
|
+
name: 'referrer',
|
|
718
|
+
type: 'address',
|
|
719
|
+
},
|
|
546
720
|
],
|
|
547
721
|
name: 'Take',
|
|
548
722
|
type: 'event',
|
|
@@ -605,36 +779,41 @@ export const BOOK_MANAGER_ABI = [
|
|
|
605
779
|
type: 'event',
|
|
606
780
|
},
|
|
607
781
|
{
|
|
608
|
-
|
|
609
|
-
|
|
782
|
+
inputs: [],
|
|
783
|
+
name: 'ADMIN_ROLE',
|
|
784
|
+
outputs: [
|
|
610
785
|
{
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
type: 'address',
|
|
786
|
+
internalType: 'bytes32',
|
|
787
|
+
name: '',
|
|
788
|
+
type: 'bytes32',
|
|
615
789
|
},
|
|
616
790
|
],
|
|
617
|
-
name: 'Whitelist',
|
|
618
|
-
type: 'event',
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
inputs: [],
|
|
622
|
-
name: 'ADMIN_ROLE',
|
|
623
|
-
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
624
791
|
stateMutability: 'view',
|
|
625
792
|
type: 'function',
|
|
626
793
|
},
|
|
627
794
|
{
|
|
628
795
|
inputs: [],
|
|
629
796
|
name: 'AUTHORIZED_LOCKER_ROLE',
|
|
630
|
-
outputs: [
|
|
797
|
+
outputs: [
|
|
798
|
+
{
|
|
799
|
+
internalType: 'bytes32',
|
|
800
|
+
name: '',
|
|
801
|
+
type: 'bytes32',
|
|
802
|
+
},
|
|
803
|
+
],
|
|
631
804
|
stateMutability: 'view',
|
|
632
805
|
type: 'function',
|
|
633
806
|
},
|
|
634
807
|
{
|
|
635
808
|
inputs: [],
|
|
636
809
|
name: 'DEFAULT_ADMIN_ROLE',
|
|
637
|
-
outputs: [
|
|
810
|
+
outputs: [
|
|
811
|
+
{
|
|
812
|
+
internalType: 'bytes32',
|
|
813
|
+
name: '',
|
|
814
|
+
type: 'bytes32',
|
|
815
|
+
},
|
|
816
|
+
],
|
|
638
817
|
stateMutability: 'view',
|
|
639
818
|
type: 'function',
|
|
640
819
|
},
|
|
@@ -649,8 +828,16 @@ export const BOOK_MANAGER_ABI = [
|
|
|
649
828
|
inputs: [
|
|
650
829
|
{
|
|
651
830
|
components: [
|
|
652
|
-
{
|
|
653
|
-
|
|
831
|
+
{
|
|
832
|
+
internalType: 'OrderId',
|
|
833
|
+
name: 'id',
|
|
834
|
+
type: 'uint256',
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
internalType: 'uint64',
|
|
838
|
+
name: 'toUnit',
|
|
839
|
+
type: 'uint64',
|
|
840
|
+
},
|
|
654
841
|
],
|
|
655
842
|
internalType: 'struct IBookManager.CancelParams',
|
|
656
843
|
name: 'params',
|
|
@@ -659,7 +846,11 @@ export const BOOK_MANAGER_ABI = [
|
|
|
659
846
|
],
|
|
660
847
|
name: 'cancel',
|
|
661
848
|
outputs: [
|
|
662
|
-
{
|
|
849
|
+
{
|
|
850
|
+
internalType: 'uint256',
|
|
851
|
+
name: 'canceledAmount',
|
|
852
|
+
type: 'uint256',
|
|
853
|
+
},
|
|
663
854
|
],
|
|
664
855
|
stateMutability: 'nonpayable',
|
|
665
856
|
type: 'function',
|
|
@@ -667,7 +858,13 @@ export const BOOK_MANAGER_ABI = [
|
|
|
667
858
|
{
|
|
668
859
|
inputs: [
|
|
669
860
|
{
|
|
670
|
-
components: [
|
|
861
|
+
components: [
|
|
862
|
+
{
|
|
863
|
+
internalType: 'OrderId',
|
|
864
|
+
name: 'id',
|
|
865
|
+
type: 'uint256',
|
|
866
|
+
},
|
|
867
|
+
],
|
|
671
868
|
internalType: 'struct IBookManager.ClaimParams',
|
|
672
869
|
name: 'params',
|
|
673
870
|
type: 'tuple',
|
|
@@ -675,7 +872,11 @@ export const BOOK_MANAGER_ABI = [
|
|
|
675
872
|
],
|
|
676
873
|
name: 'claim',
|
|
677
874
|
outputs: [
|
|
678
|
-
{
|
|
875
|
+
{
|
|
876
|
+
internalType: 'uint256',
|
|
877
|
+
name: 'claimedAmount',
|
|
878
|
+
type: 'uint256',
|
|
879
|
+
},
|
|
679
880
|
],
|
|
680
881
|
stateMutability: 'nonpayable',
|
|
681
882
|
type: 'function',
|
|
@@ -683,26 +884,45 @@ export const BOOK_MANAGER_ABI = [
|
|
|
683
884
|
{
|
|
684
885
|
inputs: [],
|
|
685
886
|
name: 'defaultReferrer',
|
|
686
|
-
outputs: [
|
|
887
|
+
outputs: [
|
|
888
|
+
{
|
|
889
|
+
internalType: 'address',
|
|
890
|
+
name: '',
|
|
891
|
+
type: 'address',
|
|
892
|
+
},
|
|
893
|
+
],
|
|
687
894
|
stateMutability: 'view',
|
|
688
895
|
type: 'function',
|
|
689
896
|
},
|
|
690
|
-
{
|
|
691
|
-
inputs: [{ internalType: 'address', name: 'provider', type: 'address' }],
|
|
692
|
-
name: 'delist',
|
|
693
|
-
outputs: [],
|
|
694
|
-
stateMutability: 'nonpayable',
|
|
695
|
-
type: 'function',
|
|
696
|
-
},
|
|
697
897
|
{
|
|
698
898
|
inputs: [
|
|
699
899
|
{
|
|
700
900
|
components: [
|
|
701
|
-
{
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
901
|
+
{
|
|
902
|
+
internalType: 'Currency',
|
|
903
|
+
name: 'base',
|
|
904
|
+
type: 'address',
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
internalType: 'uint64',
|
|
908
|
+
name: 'unitSize',
|
|
909
|
+
type: 'uint64',
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
internalType: 'Currency',
|
|
913
|
+
name: 'quote',
|
|
914
|
+
type: 'address',
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
internalType: 'FeePolicy',
|
|
918
|
+
name: 'makerPolicy',
|
|
919
|
+
type: 'uint24',
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
internalType: 'FeePolicy',
|
|
923
|
+
name: 'takerPolicy',
|
|
924
|
+
type: 'uint24',
|
|
925
|
+
},
|
|
706
926
|
],
|
|
707
927
|
internalType: 'struct IBookManager.BookKey',
|
|
708
928
|
name: 'key',
|
|
@@ -710,21 +930,66 @@ export const BOOK_MANAGER_ABI = [
|
|
|
710
930
|
},
|
|
711
931
|
],
|
|
712
932
|
name: 'encodeBookKey',
|
|
713
|
-
outputs: [
|
|
933
|
+
outputs: [
|
|
934
|
+
{
|
|
935
|
+
internalType: 'BookId',
|
|
936
|
+
name: '',
|
|
937
|
+
type: 'uint192',
|
|
938
|
+
},
|
|
939
|
+
],
|
|
714
940
|
stateMutability: 'pure',
|
|
715
941
|
type: 'function',
|
|
716
942
|
},
|
|
717
943
|
{
|
|
718
|
-
inputs: [
|
|
944
|
+
inputs: [],
|
|
945
|
+
name: 'feeRecipient',
|
|
946
|
+
outputs: [
|
|
947
|
+
{
|
|
948
|
+
internalType: 'address',
|
|
949
|
+
name: '',
|
|
950
|
+
type: 'address',
|
|
951
|
+
},
|
|
952
|
+
],
|
|
953
|
+
stateMutability: 'view',
|
|
954
|
+
type: 'function',
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
inputs: [
|
|
958
|
+
{
|
|
959
|
+
internalType: 'BookId',
|
|
960
|
+
name: 'id',
|
|
961
|
+
type: 'uint192',
|
|
962
|
+
},
|
|
963
|
+
],
|
|
719
964
|
name: 'getBookKey',
|
|
720
965
|
outputs: [
|
|
721
966
|
{
|
|
722
967
|
components: [
|
|
723
|
-
{
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
968
|
+
{
|
|
969
|
+
internalType: 'Currency',
|
|
970
|
+
name: 'base',
|
|
971
|
+
type: 'address',
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
internalType: 'uint64',
|
|
975
|
+
name: 'unitSize',
|
|
976
|
+
type: 'uint64',
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
internalType: 'Currency',
|
|
980
|
+
name: 'quote',
|
|
981
|
+
type: 'address',
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
internalType: 'FeePolicy',
|
|
985
|
+
name: 'makerPolicy',
|
|
986
|
+
type: 'uint24',
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
internalType: 'FeePolicy',
|
|
990
|
+
name: 'takerPolicy',
|
|
991
|
+
type: 'uint24',
|
|
992
|
+
},
|
|
728
993
|
],
|
|
729
994
|
internalType: 'struct IBookManager.BookKey',
|
|
730
995
|
name: '',
|
|
@@ -735,59 +1000,145 @@ export const BOOK_MANAGER_ABI = [
|
|
|
735
1000
|
type: 'function',
|
|
736
1001
|
},
|
|
737
1002
|
{
|
|
738
|
-
inputs: [
|
|
1003
|
+
inputs: [
|
|
1004
|
+
{
|
|
1005
|
+
internalType: 'BookId',
|
|
1006
|
+
name: 'bookId',
|
|
1007
|
+
type: 'uint192',
|
|
1008
|
+
},
|
|
1009
|
+
],
|
|
739
1010
|
name: 'getBookUnitLimits',
|
|
740
1011
|
outputs: [
|
|
741
|
-
{
|
|
742
|
-
|
|
1012
|
+
{
|
|
1013
|
+
internalType: 'uint64',
|
|
1014
|
+
name: 'minUnit',
|
|
1015
|
+
type: 'uint64',
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
internalType: 'uint64',
|
|
1019
|
+
name: 'maxUnit',
|
|
1020
|
+
type: 'uint64',
|
|
1021
|
+
},
|
|
743
1022
|
],
|
|
744
1023
|
stateMutability: 'view',
|
|
745
1024
|
type: 'function',
|
|
746
1025
|
},
|
|
747
1026
|
{
|
|
748
|
-
inputs: [
|
|
1027
|
+
inputs: [
|
|
1028
|
+
{
|
|
1029
|
+
internalType: 'BookId',
|
|
1030
|
+
name: 'bookId',
|
|
1031
|
+
type: 'uint192',
|
|
1032
|
+
},
|
|
1033
|
+
],
|
|
749
1034
|
name: 'getBookUserCount',
|
|
750
|
-
outputs: [
|
|
1035
|
+
outputs: [
|
|
1036
|
+
{
|
|
1037
|
+
internalType: 'uint256',
|
|
1038
|
+
name: 'count',
|
|
1039
|
+
type: 'uint256',
|
|
1040
|
+
},
|
|
1041
|
+
],
|
|
751
1042
|
stateMutability: 'view',
|
|
752
1043
|
type: 'function',
|
|
753
1044
|
},
|
|
754
1045
|
{
|
|
755
1046
|
inputs: [
|
|
756
|
-
{
|
|
757
|
-
|
|
758
|
-
|
|
1047
|
+
{
|
|
1048
|
+
internalType: 'BookId',
|
|
1049
|
+
name: 'bookId',
|
|
1050
|
+
type: 'uint192',
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
internalType: 'uint256',
|
|
1054
|
+
name: 'offset',
|
|
1055
|
+
type: 'uint256',
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
internalType: 'uint256',
|
|
1059
|
+
name: 'limit',
|
|
1060
|
+
type: 'uint256',
|
|
1061
|
+
},
|
|
759
1062
|
],
|
|
760
1063
|
name: 'getBookUsers',
|
|
761
1064
|
outputs: [
|
|
762
|
-
{
|
|
763
|
-
|
|
1065
|
+
{
|
|
1066
|
+
internalType: 'address[]',
|
|
1067
|
+
name: 'users',
|
|
1068
|
+
type: 'address[]',
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
internalType: 'uint256',
|
|
1072
|
+
name: 'nextOffset',
|
|
1073
|
+
type: 'uint256',
|
|
1074
|
+
},
|
|
764
1075
|
],
|
|
765
1076
|
stateMutability: 'view',
|
|
766
1077
|
type: 'function',
|
|
767
1078
|
},
|
|
768
1079
|
{
|
|
769
1080
|
inputs: [
|
|
770
|
-
{
|
|
771
|
-
|
|
1081
|
+
{
|
|
1082
|
+
internalType: 'BookId',
|
|
1083
|
+
name: 'id',
|
|
1084
|
+
type: 'uint192',
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
internalType: 'Tick',
|
|
1088
|
+
name: 'tick',
|
|
1089
|
+
type: 'int24',
|
|
1090
|
+
},
|
|
772
1091
|
],
|
|
773
1092
|
name: 'getDepth',
|
|
774
|
-
outputs: [
|
|
1093
|
+
outputs: [
|
|
1094
|
+
{
|
|
1095
|
+
internalType: 'uint64',
|
|
1096
|
+
name: '',
|
|
1097
|
+
type: 'uint64',
|
|
1098
|
+
},
|
|
1099
|
+
],
|
|
775
1100
|
stateMutability: 'view',
|
|
776
1101
|
type: 'function',
|
|
777
1102
|
},
|
|
778
1103
|
{
|
|
779
|
-
inputs: [
|
|
1104
|
+
inputs: [
|
|
1105
|
+
{
|
|
1106
|
+
internalType: 'BookId',
|
|
1107
|
+
name: 'id',
|
|
1108
|
+
type: 'uint192',
|
|
1109
|
+
},
|
|
1110
|
+
],
|
|
780
1111
|
name: 'getHighest',
|
|
781
|
-
outputs: [
|
|
1112
|
+
outputs: [
|
|
1113
|
+
{
|
|
1114
|
+
internalType: 'Tick',
|
|
1115
|
+
name: '',
|
|
1116
|
+
type: 'int24',
|
|
1117
|
+
},
|
|
1118
|
+
],
|
|
782
1119
|
stateMutability: 'view',
|
|
783
1120
|
type: 'function',
|
|
784
1121
|
},
|
|
785
1122
|
{
|
|
786
|
-
inputs: [
|
|
1123
|
+
inputs: [
|
|
1124
|
+
{
|
|
1125
|
+
internalType: 'uint256',
|
|
1126
|
+
name: 'i',
|
|
1127
|
+
type: 'uint256',
|
|
1128
|
+
},
|
|
1129
|
+
],
|
|
787
1130
|
name: 'getLock',
|
|
788
1131
|
outputs: [
|
|
789
|
-
{
|
|
790
|
-
|
|
1132
|
+
{
|
|
1133
|
+
internalType: 'address',
|
|
1134
|
+
name: '',
|
|
1135
|
+
type: 'address',
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
internalType: 'address',
|
|
1139
|
+
name: '',
|
|
1140
|
+
type: 'address',
|
|
1141
|
+
},
|
|
791
1142
|
],
|
|
792
1143
|
stateMutability: 'view',
|
|
793
1144
|
type: 'function',
|
|
@@ -796,22 +1147,47 @@ export const BOOK_MANAGER_ABI = [
|
|
|
796
1147
|
inputs: [],
|
|
797
1148
|
name: 'getLockData',
|
|
798
1149
|
outputs: [
|
|
799
|
-
{
|
|
800
|
-
|
|
1150
|
+
{
|
|
1151
|
+
internalType: 'uint128',
|
|
1152
|
+
name: '',
|
|
1153
|
+
type: 'uint128',
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
internalType: 'uint128',
|
|
1157
|
+
name: '',
|
|
1158
|
+
type: 'uint128',
|
|
1159
|
+
},
|
|
801
1160
|
],
|
|
802
1161
|
stateMutability: 'view',
|
|
803
1162
|
type: 'function',
|
|
804
1163
|
},
|
|
805
1164
|
{
|
|
806
|
-
inputs: [
|
|
1165
|
+
inputs: [
|
|
1166
|
+
{
|
|
1167
|
+
internalType: 'OrderId',
|
|
1168
|
+
name: 'id',
|
|
1169
|
+
type: 'uint256',
|
|
1170
|
+
},
|
|
1171
|
+
],
|
|
807
1172
|
name: 'getOrder',
|
|
808
1173
|
outputs: [
|
|
809
1174
|
{
|
|
810
1175
|
components: [
|
|
811
|
-
{
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
1176
|
+
{
|
|
1177
|
+
internalType: 'address',
|
|
1178
|
+
name: 'makerReferrer',
|
|
1179
|
+
type: 'address',
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
internalType: 'uint64',
|
|
1183
|
+
name: 'open',
|
|
1184
|
+
type: 'uint64',
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
internalType: 'uint64',
|
|
1188
|
+
name: 'claimable',
|
|
1189
|
+
type: 'uint64',
|
|
1190
|
+
},
|
|
815
1191
|
],
|
|
816
1192
|
internalType: 'struct IBookManager.OrderInfo',
|
|
817
1193
|
name: '',
|
|
@@ -822,69 +1198,194 @@ export const BOOK_MANAGER_ABI = [
|
|
|
822
1198
|
type: 'function',
|
|
823
1199
|
},
|
|
824
1200
|
{
|
|
825
|
-
inputs: [
|
|
1201
|
+
inputs: [
|
|
1202
|
+
{
|
|
1203
|
+
internalType: 'OrderId',
|
|
1204
|
+
name: 'id',
|
|
1205
|
+
type: 'uint256',
|
|
1206
|
+
},
|
|
1207
|
+
],
|
|
826
1208
|
name: 'getOrderOwner',
|
|
827
|
-
outputs: [
|
|
1209
|
+
outputs: [
|
|
1210
|
+
{
|
|
1211
|
+
internalType: 'address',
|
|
1212
|
+
name: '',
|
|
1213
|
+
type: 'address',
|
|
1214
|
+
},
|
|
1215
|
+
],
|
|
828
1216
|
stateMutability: 'view',
|
|
829
1217
|
type: 'function',
|
|
830
1218
|
},
|
|
831
1219
|
{
|
|
832
|
-
inputs: [
|
|
1220
|
+
inputs: [
|
|
1221
|
+
{
|
|
1222
|
+
internalType: 'BookId',
|
|
1223
|
+
name: 'bookId',
|
|
1224
|
+
type: 'uint192',
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
internalType: 'Currency',
|
|
1228
|
+
name: 'currency',
|
|
1229
|
+
type: 'address',
|
|
1230
|
+
},
|
|
1231
|
+
],
|
|
833
1232
|
name: 'getReferrerFeeRate',
|
|
834
|
-
outputs: [
|
|
1233
|
+
outputs: [
|
|
1234
|
+
{
|
|
1235
|
+
internalType: 'uint256',
|
|
1236
|
+
name: '',
|
|
1237
|
+
type: 'uint256',
|
|
1238
|
+
},
|
|
1239
|
+
],
|
|
835
1240
|
stateMutability: 'view',
|
|
836
1241
|
type: 'function',
|
|
837
1242
|
},
|
|
838
1243
|
{
|
|
839
|
-
inputs: [
|
|
1244
|
+
inputs: [
|
|
1245
|
+
{
|
|
1246
|
+
internalType: 'bytes32',
|
|
1247
|
+
name: 'role',
|
|
1248
|
+
type: 'bytes32',
|
|
1249
|
+
},
|
|
1250
|
+
],
|
|
840
1251
|
name: 'getRoleAdmin',
|
|
841
|
-
outputs: [
|
|
1252
|
+
outputs: [
|
|
1253
|
+
{
|
|
1254
|
+
internalType: 'bytes32',
|
|
1255
|
+
name: '',
|
|
1256
|
+
type: 'bytes32',
|
|
1257
|
+
},
|
|
1258
|
+
],
|
|
842
1259
|
stateMutability: 'view',
|
|
843
1260
|
type: 'function',
|
|
844
1261
|
},
|
|
845
1262
|
{
|
|
846
1263
|
inputs: [
|
|
847
|
-
{
|
|
848
|
-
|
|
1264
|
+
{
|
|
1265
|
+
internalType: 'BookId',
|
|
1266
|
+
name: 'bookId',
|
|
1267
|
+
type: 'uint192',
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
internalType: 'address',
|
|
1271
|
+
name: 'user',
|
|
1272
|
+
type: 'address',
|
|
1273
|
+
},
|
|
849
1274
|
],
|
|
850
1275
|
name: 'getUserOrderCount',
|
|
851
|
-
outputs: [
|
|
1276
|
+
outputs: [
|
|
1277
|
+
{
|
|
1278
|
+
internalType: 'uint256',
|
|
1279
|
+
name: 'count',
|
|
1280
|
+
type: 'uint256',
|
|
1281
|
+
},
|
|
1282
|
+
],
|
|
852
1283
|
stateMutability: 'view',
|
|
853
1284
|
type: 'function',
|
|
854
1285
|
},
|
|
855
1286
|
{
|
|
856
1287
|
inputs: [
|
|
857
|
-
{
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
1288
|
+
{
|
|
1289
|
+
internalType: 'BookId',
|
|
1290
|
+
name: 'bookId',
|
|
1291
|
+
type: 'uint192',
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
internalType: 'address',
|
|
1295
|
+
name: 'user',
|
|
1296
|
+
type: 'address',
|
|
1297
|
+
},
|
|
1298
|
+
],
|
|
1299
|
+
name: 'getUserOrderCountInBook',
|
|
1300
|
+
outputs: [
|
|
1301
|
+
{
|
|
1302
|
+
internalType: 'uint256',
|
|
1303
|
+
name: '',
|
|
1304
|
+
type: 'uint256',
|
|
1305
|
+
},
|
|
1306
|
+
],
|
|
1307
|
+
stateMutability: 'view',
|
|
1308
|
+
type: 'function',
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
inputs: [
|
|
1312
|
+
{
|
|
1313
|
+
internalType: 'BookId',
|
|
1314
|
+
name: 'bookId',
|
|
1315
|
+
type: 'uint192',
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
internalType: 'address',
|
|
1319
|
+
name: 'user',
|
|
1320
|
+
type: 'address',
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
internalType: 'uint256',
|
|
1324
|
+
name: 'offset',
|
|
1325
|
+
type: 'uint256',
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
internalType: 'uint256',
|
|
1329
|
+
name: 'limit',
|
|
1330
|
+
type: 'uint256',
|
|
1331
|
+
},
|
|
861
1332
|
],
|
|
862
1333
|
name: 'getUserOrdersInBook',
|
|
863
1334
|
outputs: [
|
|
864
|
-
{
|
|
865
|
-
|
|
1335
|
+
{
|
|
1336
|
+
internalType: 'OrderId[]',
|
|
1337
|
+
name: 'orders',
|
|
1338
|
+
type: 'uint256[]',
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
internalType: 'uint256',
|
|
1342
|
+
name: 'nextOffset',
|
|
1343
|
+
type: 'uint256',
|
|
1344
|
+
},
|
|
866
1345
|
],
|
|
867
1346
|
stateMutability: 'view',
|
|
868
1347
|
type: 'function',
|
|
869
1348
|
},
|
|
870
1349
|
{
|
|
871
|
-
inputs: [
|
|
1350
|
+
inputs: [
|
|
1351
|
+
{
|
|
1352
|
+
internalType: 'Currency',
|
|
1353
|
+
name: 'currency',
|
|
1354
|
+
type: 'address',
|
|
1355
|
+
},
|
|
1356
|
+
],
|
|
872
1357
|
name: 'getVault',
|
|
873
1358
|
outputs: [
|
|
874
|
-
{
|
|
1359
|
+
{
|
|
1360
|
+
internalType: 'contract IDEXVault',
|
|
1361
|
+
name: 'vault',
|
|
1362
|
+
type: 'address',
|
|
1363
|
+
},
|
|
875
1364
|
],
|
|
876
1365
|
stateMutability: 'view',
|
|
877
1366
|
type: 'function',
|
|
878
1367
|
},
|
|
879
1368
|
{
|
|
880
|
-
inputs: [
|
|
1369
|
+
inputs: [
|
|
1370
|
+
{
|
|
1371
|
+
internalType: 'address',
|
|
1372
|
+
name: 'admin',
|
|
1373
|
+
type: 'address',
|
|
1374
|
+
},
|
|
1375
|
+
],
|
|
881
1376
|
name: 'grantAdminRole',
|
|
882
1377
|
outputs: [],
|
|
883
1378
|
stateMutability: 'nonpayable',
|
|
884
1379
|
type: 'function',
|
|
885
1380
|
},
|
|
886
1381
|
{
|
|
887
|
-
inputs: [
|
|
1382
|
+
inputs: [
|
|
1383
|
+
{
|
|
1384
|
+
internalType: 'address',
|
|
1385
|
+
name: 'locker',
|
|
1386
|
+
type: 'address',
|
|
1387
|
+
},
|
|
1388
|
+
],
|
|
888
1389
|
name: 'grantLockerRole',
|
|
889
1390
|
outputs: [],
|
|
890
1391
|
stateMutability: 'nonpayable',
|
|
@@ -892,8 +1393,16 @@ export const BOOK_MANAGER_ABI = [
|
|
|
892
1393
|
},
|
|
893
1394
|
{
|
|
894
1395
|
inputs: [
|
|
895
|
-
{
|
|
896
|
-
|
|
1396
|
+
{
|
|
1397
|
+
internalType: 'bytes32',
|
|
1398
|
+
name: 'role',
|
|
1399
|
+
type: 'bytes32',
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
internalType: 'address',
|
|
1403
|
+
name: 'account',
|
|
1404
|
+
type: 'address',
|
|
1405
|
+
},
|
|
897
1406
|
],
|
|
898
1407
|
name: 'grantRole',
|
|
899
1408
|
outputs: [],
|
|
@@ -902,66 +1411,125 @@ export const BOOK_MANAGER_ABI = [
|
|
|
902
1411
|
},
|
|
903
1412
|
{
|
|
904
1413
|
inputs: [
|
|
905
|
-
{
|
|
906
|
-
|
|
1414
|
+
{
|
|
1415
|
+
internalType: 'bytes32',
|
|
1416
|
+
name: 'role',
|
|
1417
|
+
type: 'bytes32',
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
internalType: 'address',
|
|
1421
|
+
name: 'account',
|
|
1422
|
+
type: 'address',
|
|
1423
|
+
},
|
|
907
1424
|
],
|
|
908
1425
|
name: 'hasRole',
|
|
909
|
-
outputs: [
|
|
1426
|
+
outputs: [
|
|
1427
|
+
{
|
|
1428
|
+
internalType: 'bool',
|
|
1429
|
+
name: '',
|
|
1430
|
+
type: 'bool',
|
|
1431
|
+
},
|
|
1432
|
+
],
|
|
910
1433
|
stateMutability: 'view',
|
|
911
1434
|
type: 'function',
|
|
912
1435
|
},
|
|
913
1436
|
{
|
|
914
|
-
inputs: [
|
|
1437
|
+
inputs: [
|
|
1438
|
+
{
|
|
1439
|
+
internalType: 'BookId',
|
|
1440
|
+
name: 'bookId',
|
|
1441
|
+
type: 'uint192',
|
|
1442
|
+
},
|
|
1443
|
+
],
|
|
915
1444
|
name: 'isBookPaused',
|
|
916
|
-
outputs: [
|
|
1445
|
+
outputs: [
|
|
1446
|
+
{
|
|
1447
|
+
internalType: 'bool',
|
|
1448
|
+
name: '',
|
|
1449
|
+
type: 'bool',
|
|
1450
|
+
},
|
|
1451
|
+
],
|
|
917
1452
|
stateMutability: 'view',
|
|
918
1453
|
type: 'function',
|
|
919
1454
|
},
|
|
920
1455
|
{
|
|
921
|
-
inputs: [
|
|
1456
|
+
inputs: [
|
|
1457
|
+
{
|
|
1458
|
+
internalType: 'Currency',
|
|
1459
|
+
name: 'currency',
|
|
1460
|
+
type: 'address',
|
|
1461
|
+
},
|
|
1462
|
+
],
|
|
922
1463
|
name: 'isCurrencyPaused',
|
|
923
|
-
outputs: [
|
|
1464
|
+
outputs: [
|
|
1465
|
+
{
|
|
1466
|
+
internalType: 'bool',
|
|
1467
|
+
name: '',
|
|
1468
|
+
type: 'bool',
|
|
1469
|
+
},
|
|
1470
|
+
],
|
|
924
1471
|
stateMutability: 'view',
|
|
925
1472
|
type: 'function',
|
|
926
1473
|
},
|
|
927
1474
|
{
|
|
928
|
-
inputs: [
|
|
1475
|
+
inputs: [
|
|
1476
|
+
{
|
|
1477
|
+
internalType: 'BookId',
|
|
1478
|
+
name: 'id',
|
|
1479
|
+
type: 'uint192',
|
|
1480
|
+
},
|
|
1481
|
+
],
|
|
929
1482
|
name: 'isEmpty',
|
|
930
|
-
outputs: [
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
1483
|
+
outputs: [
|
|
1484
|
+
{
|
|
1485
|
+
internalType: 'bool',
|
|
1486
|
+
name: '',
|
|
1487
|
+
type: 'bool',
|
|
1488
|
+
},
|
|
1489
|
+
],
|
|
938
1490
|
stateMutability: 'view',
|
|
939
1491
|
type: 'function',
|
|
940
1492
|
},
|
|
941
1493
|
{
|
|
942
1494
|
inputs: [
|
|
943
|
-
{
|
|
944
|
-
|
|
1495
|
+
{
|
|
1496
|
+
internalType: 'BookId',
|
|
1497
|
+
name: 'id',
|
|
1498
|
+
type: 'uint192',
|
|
1499
|
+
},
|
|
1500
|
+
],
|
|
1501
|
+
name: 'isOpened',
|
|
1502
|
+
outputs: [
|
|
1503
|
+
{
|
|
1504
|
+
internalType: 'bool',
|
|
1505
|
+
name: '',
|
|
1506
|
+
type: 'bool',
|
|
1507
|
+
},
|
|
945
1508
|
],
|
|
946
|
-
name: 'isOrderOperator',
|
|
947
|
-
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
948
|
-
stateMutability: 'view',
|
|
949
|
-
type: 'function',
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
inputs: [{ internalType: 'address', name: 'provider', type: 'address' }],
|
|
953
|
-
name: 'isWhitelisted',
|
|
954
|
-
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
955
1509
|
stateMutability: 'view',
|
|
956
1510
|
type: 'function',
|
|
957
1511
|
},
|
|
958
1512
|
{
|
|
959
1513
|
inputs: [
|
|
960
|
-
{
|
|
961
|
-
|
|
1514
|
+
{
|
|
1515
|
+
internalType: 'address',
|
|
1516
|
+
name: 'locker',
|
|
1517
|
+
type: 'address',
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
internalType: 'bytes',
|
|
1521
|
+
name: 'data',
|
|
1522
|
+
type: 'bytes',
|
|
1523
|
+
},
|
|
1524
|
+
],
|
|
1525
|
+
name: 'lock',
|
|
1526
|
+
outputs: [
|
|
1527
|
+
{
|
|
1528
|
+
internalType: 'bytes',
|
|
1529
|
+
name: 'result',
|
|
1530
|
+
type: 'bytes',
|
|
1531
|
+
},
|
|
962
1532
|
],
|
|
963
|
-
name: 'lock',
|
|
964
|
-
outputs: [{ internalType: 'bytes', name: 'result', type: 'bytes' }],
|
|
965
1533
|
stateMutability: 'nonpayable',
|
|
966
1534
|
type: 'function',
|
|
967
1535
|
},
|
|
@@ -971,9 +1539,21 @@ export const BOOK_MANAGER_ABI = [
|
|
|
971
1539
|
components: [
|
|
972
1540
|
{
|
|
973
1541
|
components: [
|
|
974
|
-
{
|
|
975
|
-
|
|
976
|
-
|
|
1542
|
+
{
|
|
1543
|
+
internalType: 'Currency',
|
|
1544
|
+
name: 'base',
|
|
1545
|
+
type: 'address',
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
internalType: 'uint64',
|
|
1549
|
+
name: 'unitSize',
|
|
1550
|
+
type: 'uint64',
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
internalType: 'Currency',
|
|
1554
|
+
name: 'quote',
|
|
1555
|
+
type: 'address',
|
|
1556
|
+
},
|
|
977
1557
|
{
|
|
978
1558
|
internalType: 'FeePolicy',
|
|
979
1559
|
name: 'makerPolicy',
|
|
@@ -989,11 +1569,26 @@ export const BOOK_MANAGER_ABI = [
|
|
|
989
1569
|
name: 'key',
|
|
990
1570
|
type: 'tuple',
|
|
991
1571
|
},
|
|
992
|
-
{
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1572
|
+
{
|
|
1573
|
+
internalType: 'Tick',
|
|
1574
|
+
name: 'tick',
|
|
1575
|
+
type: 'int24',
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
internalType: 'uint64',
|
|
1579
|
+
name: 'unit',
|
|
1580
|
+
type: 'uint64',
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
internalType: 'address',
|
|
1584
|
+
name: 'owner',
|
|
1585
|
+
type: 'address',
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
internalType: 'address',
|
|
1589
|
+
name: 'referrer',
|
|
1590
|
+
type: 'address',
|
|
1591
|
+
},
|
|
997
1592
|
],
|
|
998
1593
|
internalType: 'struct IBookManager.MakeParams',
|
|
999
1594
|
name: 'params',
|
|
@@ -1002,19 +1597,41 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1002
1597
|
],
|
|
1003
1598
|
name: 'make',
|
|
1004
1599
|
outputs: [
|
|
1005
|
-
{
|
|
1006
|
-
|
|
1600
|
+
{
|
|
1601
|
+
internalType: 'OrderId',
|
|
1602
|
+
name: 'id',
|
|
1603
|
+
type: 'uint256',
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
internalType: 'uint256',
|
|
1607
|
+
name: 'quoteAmount',
|
|
1608
|
+
type: 'uint256',
|
|
1609
|
+
},
|
|
1007
1610
|
],
|
|
1008
1611
|
stateMutability: 'nonpayable',
|
|
1009
1612
|
type: 'function',
|
|
1010
1613
|
},
|
|
1011
1614
|
{
|
|
1012
1615
|
inputs: [
|
|
1013
|
-
{
|
|
1014
|
-
|
|
1616
|
+
{
|
|
1617
|
+
internalType: 'BookId',
|
|
1618
|
+
name: 'id',
|
|
1619
|
+
type: 'uint192',
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
internalType: 'Tick',
|
|
1623
|
+
name: 'tick',
|
|
1624
|
+
type: 'int24',
|
|
1625
|
+
},
|
|
1015
1626
|
],
|
|
1016
1627
|
name: 'maxLessThan',
|
|
1017
|
-
outputs: [
|
|
1628
|
+
outputs: [
|
|
1629
|
+
{
|
|
1630
|
+
internalType: 'Tick',
|
|
1631
|
+
name: '',
|
|
1632
|
+
type: 'int24',
|
|
1633
|
+
},
|
|
1634
|
+
],
|
|
1018
1635
|
stateMutability: 'view',
|
|
1019
1636
|
type: 'function',
|
|
1020
1637
|
},
|
|
@@ -1022,18 +1639,46 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1022
1639
|
inputs: [
|
|
1023
1640
|
{
|
|
1024
1641
|
components: [
|
|
1025
|
-
{
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1642
|
+
{
|
|
1643
|
+
internalType: 'Currency',
|
|
1644
|
+
name: 'base',
|
|
1645
|
+
type: 'address',
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
internalType: 'uint64',
|
|
1649
|
+
name: 'unitSize',
|
|
1650
|
+
type: 'uint64',
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
internalType: 'Currency',
|
|
1654
|
+
name: 'quote',
|
|
1655
|
+
type: 'address',
|
|
1656
|
+
},
|
|
1657
|
+
{
|
|
1658
|
+
internalType: 'FeePolicy',
|
|
1659
|
+
name: 'makerPolicy',
|
|
1660
|
+
type: 'uint24',
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
internalType: 'FeePolicy',
|
|
1664
|
+
name: 'takerPolicy',
|
|
1665
|
+
type: 'uint24',
|
|
1666
|
+
},
|
|
1030
1667
|
],
|
|
1031
1668
|
internalType: 'struct IBookManager.BookKey',
|
|
1032
1669
|
name: 'key',
|
|
1033
1670
|
type: 'tuple',
|
|
1034
1671
|
},
|
|
1035
|
-
{
|
|
1036
|
-
|
|
1672
|
+
{
|
|
1673
|
+
internalType: 'uint64',
|
|
1674
|
+
name: 'minUnit',
|
|
1675
|
+
type: 'uint64',
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
internalType: 'uint64',
|
|
1679
|
+
name: 'maxUnit',
|
|
1680
|
+
type: 'uint64',
|
|
1681
|
+
},
|
|
1037
1682
|
],
|
|
1038
1683
|
name: 'open',
|
|
1039
1684
|
outputs: [],
|
|
@@ -1041,28 +1686,58 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1041
1686
|
type: 'function',
|
|
1042
1687
|
},
|
|
1043
1688
|
{
|
|
1044
|
-
inputs: [
|
|
1689
|
+
inputs: [
|
|
1690
|
+
{
|
|
1691
|
+
internalType: 'OrderId',
|
|
1692
|
+
name: 'id',
|
|
1693
|
+
type: 'uint256',
|
|
1694
|
+
},
|
|
1695
|
+
],
|
|
1045
1696
|
name: 'orderExists',
|
|
1046
|
-
outputs: [
|
|
1697
|
+
outputs: [
|
|
1698
|
+
{
|
|
1699
|
+
internalType: 'bool',
|
|
1700
|
+
name: '',
|
|
1701
|
+
type: 'bool',
|
|
1702
|
+
},
|
|
1703
|
+
],
|
|
1047
1704
|
stateMutability: 'view',
|
|
1048
1705
|
type: 'function',
|
|
1049
1706
|
},
|
|
1050
1707
|
{
|
|
1051
1708
|
inputs: [],
|
|
1052
1709
|
name: 'owner',
|
|
1053
|
-
outputs: [
|
|
1710
|
+
outputs: [
|
|
1711
|
+
{
|
|
1712
|
+
internalType: 'address',
|
|
1713
|
+
name: '',
|
|
1714
|
+
type: 'address',
|
|
1715
|
+
},
|
|
1716
|
+
],
|
|
1054
1717
|
stateMutability: 'view',
|
|
1055
1718
|
type: 'function',
|
|
1056
1719
|
},
|
|
1057
1720
|
{
|
|
1058
|
-
inputs: [
|
|
1721
|
+
inputs: [
|
|
1722
|
+
{
|
|
1723
|
+
internalType: 'BookId',
|
|
1724
|
+
name: 'bookId',
|
|
1725
|
+
type: 'uint192',
|
|
1726
|
+
},
|
|
1727
|
+
],
|
|
1059
1728
|
name: 'pauseBook',
|
|
1060
1729
|
outputs: [],
|
|
1061
1730
|
stateMutability: 'nonpayable',
|
|
1062
1731
|
type: 'function',
|
|
1063
1732
|
},
|
|
1064
1733
|
{
|
|
1065
|
-
inputs: [
|
|
1734
|
+
inputs: [
|
|
1735
|
+
{
|
|
1736
|
+
internalType: 'Currency',
|
|
1737
|
+
name: 'currency',
|
|
1738
|
+
type: 'address',
|
|
1739
|
+
},
|
|
1740
|
+
],
|
|
1066
1741
|
name: 'pauseCurrency',
|
|
1067
1742
|
outputs: [],
|
|
1068
1743
|
stateMutability: 'nonpayable',
|
|
@@ -1071,12 +1746,24 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1071
1746
|
{
|
|
1072
1747
|
inputs: [],
|
|
1073
1748
|
name: 'pendingOwner',
|
|
1074
|
-
outputs: [
|
|
1749
|
+
outputs: [
|
|
1750
|
+
{
|
|
1751
|
+
internalType: 'address',
|
|
1752
|
+
name: '',
|
|
1753
|
+
type: 'address',
|
|
1754
|
+
},
|
|
1755
|
+
],
|
|
1075
1756
|
stateMutability: 'view',
|
|
1076
1757
|
type: 'function',
|
|
1077
1758
|
},
|
|
1078
1759
|
{
|
|
1079
|
-
inputs: [
|
|
1760
|
+
inputs: [
|
|
1761
|
+
{
|
|
1762
|
+
internalType: 'Currency',
|
|
1763
|
+
name: 'currency',
|
|
1764
|
+
type: 'address',
|
|
1765
|
+
},
|
|
1766
|
+
],
|
|
1080
1767
|
name: 'removeVault',
|
|
1081
1768
|
outputs: [],
|
|
1082
1769
|
stateMutability: 'nonpayable',
|
|
@@ -1091,8 +1778,16 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1091
1778
|
},
|
|
1092
1779
|
{
|
|
1093
1780
|
inputs: [
|
|
1094
|
-
{
|
|
1095
|
-
|
|
1781
|
+
{
|
|
1782
|
+
internalType: 'bytes32',
|
|
1783
|
+
name: 'role',
|
|
1784
|
+
type: 'bytes32',
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
internalType: 'address',
|
|
1788
|
+
name: 'callerConfirmation',
|
|
1789
|
+
type: 'address',
|
|
1790
|
+
},
|
|
1096
1791
|
],
|
|
1097
1792
|
name: 'renounceRole',
|
|
1098
1793
|
outputs: [],
|
|
@@ -1100,14 +1795,26 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1100
1795
|
type: 'function',
|
|
1101
1796
|
},
|
|
1102
1797
|
{
|
|
1103
|
-
inputs: [
|
|
1798
|
+
inputs: [
|
|
1799
|
+
{
|
|
1800
|
+
internalType: 'address',
|
|
1801
|
+
name: 'admin',
|
|
1802
|
+
type: 'address',
|
|
1803
|
+
},
|
|
1804
|
+
],
|
|
1104
1805
|
name: 'revokeAdminRole',
|
|
1105
1806
|
outputs: [],
|
|
1106
1807
|
stateMutability: 'nonpayable',
|
|
1107
1808
|
type: 'function',
|
|
1108
1809
|
},
|
|
1109
1810
|
{
|
|
1110
|
-
inputs: [
|
|
1811
|
+
inputs: [
|
|
1812
|
+
{
|
|
1813
|
+
internalType: 'address',
|
|
1814
|
+
name: 'locker',
|
|
1815
|
+
type: 'address',
|
|
1816
|
+
},
|
|
1817
|
+
],
|
|
1111
1818
|
name: 'revokeLockerRole',
|
|
1112
1819
|
outputs: [],
|
|
1113
1820
|
stateMutability: 'nonpayable',
|
|
@@ -1115,8 +1822,16 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1115
1822
|
},
|
|
1116
1823
|
{
|
|
1117
1824
|
inputs: [
|
|
1118
|
-
{
|
|
1119
|
-
|
|
1825
|
+
{
|
|
1826
|
+
internalType: 'bytes32',
|
|
1827
|
+
name: 'role',
|
|
1828
|
+
type: 'bytes32',
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
internalType: 'address',
|
|
1832
|
+
name: 'account',
|
|
1833
|
+
type: 'address',
|
|
1834
|
+
},
|
|
1120
1835
|
],
|
|
1121
1836
|
name: 'revokeRole',
|
|
1122
1837
|
outputs: [],
|
|
@@ -1125,9 +1840,21 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1125
1840
|
},
|
|
1126
1841
|
{
|
|
1127
1842
|
inputs: [
|
|
1128
|
-
{
|
|
1129
|
-
|
|
1130
|
-
|
|
1843
|
+
{
|
|
1844
|
+
internalType: 'BookId',
|
|
1845
|
+
name: 'bookId',
|
|
1846
|
+
type: 'uint192',
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
internalType: 'uint64',
|
|
1850
|
+
name: 'minUnit',
|
|
1851
|
+
type: 'uint64',
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
internalType: 'uint64',
|
|
1855
|
+
name: 'maxUnit',
|
|
1856
|
+
type: 'uint64',
|
|
1857
|
+
},
|
|
1131
1858
|
],
|
|
1132
1859
|
name: 'setBookUnitLimits',
|
|
1133
1860
|
outputs: [],
|
|
@@ -1136,7 +1863,11 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1136
1863
|
},
|
|
1137
1864
|
{
|
|
1138
1865
|
inputs: [
|
|
1139
|
-
{
|
|
1866
|
+
{
|
|
1867
|
+
internalType: 'address',
|
|
1868
|
+
name: 'newDefaultReferrer',
|
|
1869
|
+
type: 'address',
|
|
1870
|
+
},
|
|
1140
1871
|
],
|
|
1141
1872
|
name: 'setDefaultReferrer',
|
|
1142
1873
|
outputs: [],
|
|
@@ -1145,18 +1876,34 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1145
1876
|
},
|
|
1146
1877
|
{
|
|
1147
1878
|
inputs: [
|
|
1148
|
-
{
|
|
1149
|
-
|
|
1879
|
+
{
|
|
1880
|
+
internalType: 'address',
|
|
1881
|
+
name: 'newFeeRecipient',
|
|
1882
|
+
type: 'address',
|
|
1883
|
+
},
|
|
1150
1884
|
],
|
|
1151
|
-
name: '
|
|
1885
|
+
name: 'setFeeRecipient',
|
|
1152
1886
|
outputs: [],
|
|
1153
1887
|
stateMutability: 'nonpayable',
|
|
1154
1888
|
type: 'function',
|
|
1155
1889
|
},
|
|
1156
1890
|
{
|
|
1157
1891
|
inputs: [
|
|
1158
|
-
{
|
|
1159
|
-
|
|
1892
|
+
{
|
|
1893
|
+
internalType: 'BookId',
|
|
1894
|
+
name: 'bookId',
|
|
1895
|
+
type: 'uint192',
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
internalType: 'Currency',
|
|
1899
|
+
name: 'currency',
|
|
1900
|
+
type: 'address',
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
internalType: 'uint256',
|
|
1904
|
+
name: 'referrerFeeRate',
|
|
1905
|
+
type: 'uint256',
|
|
1906
|
+
},
|
|
1160
1907
|
],
|
|
1161
1908
|
name: 'setReferrerFeeRate',
|
|
1162
1909
|
outputs: [],
|
|
@@ -1165,8 +1912,16 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1165
1912
|
},
|
|
1166
1913
|
{
|
|
1167
1914
|
inputs: [
|
|
1168
|
-
{
|
|
1169
|
-
|
|
1915
|
+
{
|
|
1916
|
+
internalType: 'Currency',
|
|
1917
|
+
name: 'currency',
|
|
1918
|
+
type: 'address',
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
internalType: 'contract IDEXVault',
|
|
1922
|
+
name: 'vault',
|
|
1923
|
+
type: 'address',
|
|
1924
|
+
},
|
|
1170
1925
|
],
|
|
1171
1926
|
name: 'setVault',
|
|
1172
1927
|
outputs: [],
|
|
@@ -1174,9 +1929,21 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1174
1929
|
type: 'function',
|
|
1175
1930
|
},
|
|
1176
1931
|
{
|
|
1177
|
-
inputs: [
|
|
1932
|
+
inputs: [
|
|
1933
|
+
{
|
|
1934
|
+
internalType: 'bytes4',
|
|
1935
|
+
name: 'interfaceId',
|
|
1936
|
+
type: 'bytes4',
|
|
1937
|
+
},
|
|
1938
|
+
],
|
|
1178
1939
|
name: 'supportsInterface',
|
|
1179
|
-
outputs: [
|
|
1940
|
+
outputs: [
|
|
1941
|
+
{
|
|
1942
|
+
internalType: 'bool',
|
|
1943
|
+
name: '',
|
|
1944
|
+
type: 'bool',
|
|
1945
|
+
},
|
|
1946
|
+
],
|
|
1180
1947
|
stateMutability: 'view',
|
|
1181
1948
|
type: 'function',
|
|
1182
1949
|
},
|
|
@@ -1186,9 +1953,21 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1186
1953
|
components: [
|
|
1187
1954
|
{
|
|
1188
1955
|
components: [
|
|
1189
|
-
{
|
|
1190
|
-
|
|
1191
|
-
|
|
1956
|
+
{
|
|
1957
|
+
internalType: 'Currency',
|
|
1958
|
+
name: 'base',
|
|
1959
|
+
type: 'address',
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
internalType: 'uint64',
|
|
1963
|
+
name: 'unitSize',
|
|
1964
|
+
type: 'uint64',
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
internalType: 'Currency',
|
|
1968
|
+
name: 'quote',
|
|
1969
|
+
type: 'address',
|
|
1970
|
+
},
|
|
1192
1971
|
{
|
|
1193
1972
|
internalType: 'FeePolicy',
|
|
1194
1973
|
name: 'makerPolicy',
|
|
@@ -1204,11 +1983,26 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1204
1983
|
name: 'key',
|
|
1205
1984
|
type: 'tuple',
|
|
1206
1985
|
},
|
|
1207
|
-
{
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1986
|
+
{
|
|
1987
|
+
internalType: 'Tick',
|
|
1988
|
+
name: 'tick',
|
|
1989
|
+
type: 'int24',
|
|
1990
|
+
},
|
|
1991
|
+
{
|
|
1992
|
+
internalType: 'uint64',
|
|
1993
|
+
name: 'maxUnit',
|
|
1994
|
+
type: 'uint64',
|
|
1995
|
+
},
|
|
1996
|
+
{
|
|
1997
|
+
internalType: 'address',
|
|
1998
|
+
name: 'owner',
|
|
1999
|
+
type: 'address',
|
|
2000
|
+
},
|
|
2001
|
+
{
|
|
2002
|
+
internalType: 'address',
|
|
2003
|
+
name: 'referrer',
|
|
2004
|
+
type: 'address',
|
|
2005
|
+
},
|
|
1212
2006
|
],
|
|
1213
2007
|
internalType: 'struct IBookManager.TakeParams',
|
|
1214
2008
|
name: 'params',
|
|
@@ -1217,28 +2011,54 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1217
2011
|
],
|
|
1218
2012
|
name: 'take',
|
|
1219
2013
|
outputs: [
|
|
1220
|
-
{
|
|
1221
|
-
|
|
2014
|
+
{
|
|
2015
|
+
internalType: 'uint256',
|
|
2016
|
+
name: 'quoteAmount',
|
|
2017
|
+
type: 'uint256',
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
internalType: 'uint256',
|
|
2021
|
+
name: 'baseAmount',
|
|
2022
|
+
type: 'uint256',
|
|
2023
|
+
},
|
|
1222
2024
|
],
|
|
1223
2025
|
stateMutability: 'nonpayable',
|
|
1224
2026
|
type: 'function',
|
|
1225
2027
|
},
|
|
1226
2028
|
{
|
|
1227
|
-
inputs: [
|
|
2029
|
+
inputs: [
|
|
2030
|
+
{
|
|
2031
|
+
internalType: 'address',
|
|
2032
|
+
name: 'newOwner',
|
|
2033
|
+
type: 'address',
|
|
2034
|
+
},
|
|
2035
|
+
],
|
|
1228
2036
|
name: 'transferOwnership',
|
|
1229
2037
|
outputs: [],
|
|
1230
2038
|
stateMutability: 'nonpayable',
|
|
1231
2039
|
type: 'function',
|
|
1232
2040
|
},
|
|
1233
2041
|
{
|
|
1234
|
-
inputs: [
|
|
2042
|
+
inputs: [
|
|
2043
|
+
{
|
|
2044
|
+
internalType: 'BookId',
|
|
2045
|
+
name: 'bookId',
|
|
2046
|
+
type: 'uint192',
|
|
2047
|
+
},
|
|
2048
|
+
],
|
|
1235
2049
|
name: 'unpauseBook',
|
|
1236
2050
|
outputs: [],
|
|
1237
2051
|
stateMutability: 'nonpayable',
|
|
1238
2052
|
type: 'function',
|
|
1239
2053
|
},
|
|
1240
2054
|
{
|
|
1241
|
-
inputs: [
|
|
2055
|
+
inputs: [
|
|
2056
|
+
{
|
|
2057
|
+
internalType: 'Currency',
|
|
2058
|
+
name: 'currency',
|
|
2059
|
+
type: 'address',
|
|
2060
|
+
},
|
|
2061
|
+
],
|
|
1242
2062
|
name: 'unpauseCurrency',
|
|
1243
2063
|
outputs: [],
|
|
1244
2064
|
stateMutability: 'nonpayable',
|
|
@@ -1246,20 +2066,27 @@ export const BOOK_MANAGER_ABI = [
|
|
|
1246
2066
|
},
|
|
1247
2067
|
{
|
|
1248
2068
|
inputs: [
|
|
1249
|
-
{
|
|
1250
|
-
|
|
2069
|
+
{
|
|
2070
|
+
internalType: 'BookId',
|
|
2071
|
+
name: 'bookId',
|
|
2072
|
+
type: 'uint192',
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
internalType: 'address',
|
|
2076
|
+
name: 'user',
|
|
2077
|
+
type: 'address',
|
|
2078
|
+
},
|
|
1251
2079
|
],
|
|
1252
2080
|
name: 'userHasOrdersInBook',
|
|
1253
|
-
outputs: [
|
|
2081
|
+
outputs: [
|
|
2082
|
+
{
|
|
2083
|
+
internalType: 'bool',
|
|
2084
|
+
name: 'hasOrders',
|
|
2085
|
+
type: 'bool',
|
|
2086
|
+
},
|
|
2087
|
+
],
|
|
1254
2088
|
stateMutability: 'view',
|
|
1255
2089
|
type: 'function',
|
|
1256
2090
|
},
|
|
1257
|
-
{
|
|
1258
|
-
inputs: [{ internalType: 'address', name: 'provider', type: 'address' }],
|
|
1259
|
-
name: 'whitelist',
|
|
1260
|
-
outputs: [],
|
|
1261
|
-
stateMutability: 'nonpayable',
|
|
1262
|
-
type: 'function',
|
|
1263
|
-
},
|
|
1264
2091
|
];
|
|
1265
2092
|
//# sourceMappingURL=book-manager-abi.js.map
|