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