@yaswap/evm-contracts 3.3.6 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +93 -93
- package/CHANGELOG.md +0 -317
package/package.json
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
2
|
+
"name": "@yaswap/evm-contracts",
|
|
3
|
+
"version": "3.4.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"author": "yaswap",
|
|
6
|
+
"homepage": "",
|
|
7
|
+
"license": "ISC",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@openzeppelin/contracts": "^4.4.2"
|
|
10
|
+
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@codechecks/client": "^0.1.12",
|
|
13
|
+
"@commitlint/cli": "^16.1.0",
|
|
14
|
+
"@commitlint/config-conventional": "^16.0.0",
|
|
15
|
+
"@ethersproject/abi": "5.7.0",
|
|
16
|
+
"@ethersproject/abstract-signer": "5.7.0",
|
|
17
|
+
"@ethersproject/bignumber": "5.7.0",
|
|
18
|
+
"@ethersproject/bytes": "5.7.0",
|
|
19
|
+
"@ethersproject/providers": "5.7.0",
|
|
20
|
+
"@nomiclabs/hardhat-ethers": "^2.0.4",
|
|
21
|
+
"@nomiclabs/hardhat-etherscan": "^3.0.3",
|
|
22
|
+
"@nomiclabs/hardhat-waffle": "^2.0.2",
|
|
23
|
+
"@typechain/ethers-v5": "^9.0.0",
|
|
24
|
+
"@typechain/hardhat": "^4.0.0",
|
|
25
|
+
"@types/chai": "^4.3.0",
|
|
26
|
+
"@types/fs-extra": "^9.0.13",
|
|
27
|
+
"@types/mocha": "^9.1.0",
|
|
28
|
+
"@types/node": "^17.0.14",
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
|
30
|
+
"@typescript-eslint/parser": "^5.10.2",
|
|
31
|
+
"chai": "^4.3.6",
|
|
32
|
+
"commitizen": "^4.2.4",
|
|
33
|
+
"cross-env": "^7.0.3",
|
|
34
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
35
|
+
"dotenv": "^15.0.0",
|
|
36
|
+
"eslint": "^8.8.0",
|
|
37
|
+
"eslint-config-prettier": "^8.3.0",
|
|
38
|
+
"ethereum-waffle": "^3.4.0",
|
|
39
|
+
"ethers": "5.7.0",
|
|
40
|
+
"fs-extra": "^10.0.0",
|
|
41
|
+
"hardhat": "^2.8.3",
|
|
42
|
+
"hardhat-gas-reporter": "^1.0.7",
|
|
43
|
+
"husky": "^7.0.4",
|
|
44
|
+
"lint-staged": "^12.3.3",
|
|
45
|
+
"lodash": "4.17.21",
|
|
46
|
+
"mocha": "^9.2.0",
|
|
47
|
+
"pinst": "^2.1.6",
|
|
48
|
+
"prettier": "^2.5.1",
|
|
49
|
+
"prettier-plugin-solidity": "^1.0.0-beta.19",
|
|
50
|
+
"shelljs": "^0.8.5",
|
|
51
|
+
"shx": "^0.3.4",
|
|
52
|
+
"solhint": "^3.3.6",
|
|
53
|
+
"solhint-plugin-prettier": "^0.0.5",
|
|
54
|
+
"solidity-coverage": "^0.7.18",
|
|
55
|
+
"ts-generator": "^0.1.1",
|
|
56
|
+
"ts-node": "^10.4.0",
|
|
57
|
+
"typechain": "^7.0.0",
|
|
58
|
+
"typescript": "^4.5.5"
|
|
59
|
+
},
|
|
60
|
+
"files": [
|
|
61
|
+
"/contracts",
|
|
62
|
+
"artifacts/contracts/**/*.json",
|
|
63
|
+
"!artifacts/contracts/**/*.dbg.json"
|
|
64
|
+
],
|
|
65
|
+
"keywords": [
|
|
66
|
+
"blockchain",
|
|
67
|
+
"ethereum",
|
|
68
|
+
"hardhat",
|
|
69
|
+
"smart-contracts",
|
|
70
|
+
"solidity"
|
|
71
|
+
],
|
|
72
|
+
"publishConfig": {
|
|
73
|
+
"access": "public"
|
|
74
|
+
},
|
|
75
|
+
"scripts": {
|
|
76
|
+
"build": "yarn compile",
|
|
77
|
+
"clean": "shx rm -rf ./artifacts ./cache ./coverage ./src/types ./coverage.json",
|
|
78
|
+
"commit": "git-cz",
|
|
79
|
+
"compile": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat compile",
|
|
80
|
+
"coverage": "yarn typechain && hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles \"test/**/*.ts\"",
|
|
81
|
+
"deploy": "hardhat deploy:HTLC",
|
|
82
|
+
"deploy-multicall": "hardhat deploy:Multicall",
|
|
83
|
+
"lint": "yarn lint:sol && yarn lint:ts && yarn prettier:check",
|
|
84
|
+
"lint:sol": "solhint --config ./.solhint.json --max-warnings 0 \"contracts/**/*.sol\"",
|
|
85
|
+
"lint:ts": "eslint --config ./.eslintrc.yaml --ignore-path ./.eslintignore --ext .js,.ts .",
|
|
86
|
+
"postpublish": "pinst --enable",
|
|
87
|
+
"prepublishOnly": "pinst --disable",
|
|
88
|
+
"prettier": "prettier --config ./.prettierrc.yaml --write \"**/*.{js,json,md,sol,ts}\"",
|
|
89
|
+
"prettier:check": "prettier --check --config ./.prettierrc.yaml \"**/*.{js,json,md,sol,ts}\"",
|
|
90
|
+
"test": "hardhat test",
|
|
91
|
+
"verify": "hardhat verify 0x133713376F69C1A67d7f3594583349DFB53d8166",
|
|
92
|
+
"typechain": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat typechain"
|
|
93
|
+
}
|
|
94
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
# @yaswap/evm-contracts
|
|
2
|
-
|
|
3
|
-
## 3.3.6
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Pump to version v3.3.6
|
|
8
|
-
|
|
9
|
-
## 3.3.5
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- Correct the logic to calculate correct transaction size for sweeping case
|
|
14
|
-
|
|
15
|
-
## 3.3.4
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- Correct the logic to calculate correct transaction size for sweeping case
|
|
20
|
-
|
|
21
|
-
## 3.3.3
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- Send transaction with fixed inputss
|
|
26
|
-
|
|
27
|
-
## 3.3.2
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- Modify selectCoins to not use fixedInputs anymore
|
|
32
|
-
|
|
33
|
-
## 3.3.1
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
- Modify to calculate correct transaction fee for fixed inputs
|
|
38
|
-
|
|
39
|
-
## 3.3.0
|
|
40
|
-
|
|
41
|
-
### Minor Changes
|
|
42
|
-
|
|
43
|
-
- Support API for bitcoin utxo consolidation
|
|
44
|
-
|
|
45
|
-
## 3.2.1
|
|
46
|
-
|
|
47
|
-
### Patch Changes
|
|
48
|
-
|
|
49
|
-
- Lower number requests
|
|
50
|
-
|
|
51
|
-
## 3.2.0
|
|
52
|
-
|
|
53
|
-
### Minor Changes
|
|
54
|
-
|
|
55
|
-
- Add DogecoinSingleWallet
|
|
56
|
-
|
|
57
|
-
## 3.1.0
|
|
58
|
-
|
|
59
|
-
### Minor Changes
|
|
60
|
-
|
|
61
|
-
- Integrate new dogecoin explorer
|
|
62
|
-
|
|
63
|
-
## 3.0.1
|
|
64
|
-
|
|
65
|
-
### Patch Changes
|
|
66
|
-
|
|
67
|
-
- Handle AxiosError in case the transaction/block not found
|
|
68
|
-
|
|
69
|
-
## 3.0.0
|
|
70
|
-
|
|
71
|
-
### Major Changes
|
|
72
|
-
|
|
73
|
-
- Support manifest v3
|
|
74
|
-
|
|
75
|
-
## 2.10.7
|
|
76
|
-
|
|
77
|
-
### Patch Changes
|
|
78
|
-
|
|
79
|
-
- Pump to version v2.10.7
|
|
80
|
-
|
|
81
|
-
## 2.10.6
|
|
82
|
-
|
|
83
|
-
### Patch Changes
|
|
84
|
-
|
|
85
|
-
- Pump to version v2.10.6
|
|
86
|
-
|
|
87
|
-
## 2.10.5
|
|
88
|
-
|
|
89
|
-
### Patch Changes
|
|
90
|
-
|
|
91
|
-
- Pump to version v2.10.5
|
|
92
|
-
|
|
93
|
-
## 2.10.4
|
|
94
|
-
|
|
95
|
-
### Patch Changes
|
|
96
|
-
|
|
97
|
-
- Pump to version v2.10.4
|
|
98
|
-
|
|
99
|
-
## 2.10.3
|
|
100
|
-
|
|
101
|
-
### Patch Changes
|
|
102
|
-
|
|
103
|
-
- Pump to version v2.10.3
|
|
104
|
-
|
|
105
|
-
## 2.10.2
|
|
106
|
-
|
|
107
|
-
### Patch Changes
|
|
108
|
-
|
|
109
|
-
- Pump to version v2.10.2
|
|
110
|
-
|
|
111
|
-
## 2.10.1
|
|
112
|
-
|
|
113
|
-
### Patch Changes
|
|
114
|
-
|
|
115
|
-
- Pump to version v2.10.1
|
|
116
|
-
|
|
117
|
-
## 2.10.0
|
|
118
|
-
|
|
119
|
-
### Minor Changes
|
|
120
|
-
|
|
121
|
-
- Use latest axios which support fetch adapter
|
|
122
|
-
|
|
123
|
-
## 2.9.4
|
|
124
|
-
|
|
125
|
-
### Patch Changes
|
|
126
|
-
|
|
127
|
-
- Change bitcoin fee API endpoint
|
|
128
|
-
|
|
129
|
-
## 2.9.3
|
|
130
|
-
|
|
131
|
-
### Patch Changes
|
|
132
|
-
|
|
133
|
-
- Change IPFS endpoint
|
|
134
|
-
|
|
135
|
-
## 2.9.2
|
|
136
|
-
|
|
137
|
-
### Patch Changes
|
|
138
|
-
|
|
139
|
-
- Support HEAD request for @yaswap/client
|
|
140
|
-
|
|
141
|
-
## 2.9.1
|
|
142
|
-
|
|
143
|
-
### Patch Changes
|
|
144
|
-
|
|
145
|
-
- Reset metadata before fetching from ipfs gateway
|
|
146
|
-
|
|
147
|
-
## 2.9.0
|
|
148
|
-
|
|
149
|
-
### Minor Changes
|
|
150
|
-
|
|
151
|
-
- Integrate with self-hosted IPFS node
|
|
152
|
-
|
|
153
|
-
## 2.8.0
|
|
154
|
-
|
|
155
|
-
### Minor Changes
|
|
156
|
-
|
|
157
|
-
- Add new return info to chain.getTokenBalance and nft.fetch
|
|
158
|
-
|
|
159
|
-
## 2.7.7
|
|
160
|
-
|
|
161
|
-
### Patch Changes
|
|
162
|
-
|
|
163
|
-
- Remove debug log
|
|
164
|
-
|
|
165
|
-
## 2.7.6
|
|
166
|
-
|
|
167
|
-
### Patch Changes
|
|
168
|
-
|
|
169
|
-
- Fetch multiple YA-NFT info at one time
|
|
170
|
-
|
|
171
|
-
## 2.7.5
|
|
172
|
-
|
|
173
|
-
### Patch Changes
|
|
174
|
-
|
|
175
|
-
- Throw fee in InsufficientBalanceError for Yacoin
|
|
176
|
-
|
|
177
|
-
## 2.7.4
|
|
178
|
-
|
|
179
|
-
### Patch Changes
|
|
180
|
-
|
|
181
|
-
- Correct formular to calculate yacoin transaction bytes
|
|
182
|
-
|
|
183
|
-
## 2.7.3
|
|
184
|
-
|
|
185
|
-
### Patch Changes
|
|
186
|
-
|
|
187
|
-
- Change ipfs endpoint and timeout for getting token metadata
|
|
188
|
-
|
|
189
|
-
## 2.7.2
|
|
190
|
-
|
|
191
|
-
### Patch Changes
|
|
192
|
-
|
|
193
|
-
- Init YacoinSingleWallet
|
|
194
|
-
|
|
195
|
-
## 2.7.1
|
|
196
|
-
|
|
197
|
-
### Patch Changes
|
|
198
|
-
|
|
199
|
-
- Use bitcoinselect
|
|
200
|
-
|
|
201
|
-
## 2.7.0
|
|
202
|
-
|
|
203
|
-
### Minor Changes
|
|
204
|
-
|
|
205
|
-
- Finalize single wallet version
|
|
206
|
-
|
|
207
|
-
## 2.6.6
|
|
208
|
-
|
|
209
|
-
### Patch Changes
|
|
210
|
-
|
|
211
|
-
- Remove debug log
|
|
212
|
-
|
|
213
|
-
## 2.6.5
|
|
214
|
-
|
|
215
|
-
### Patch Changes
|
|
216
|
-
|
|
217
|
-
- Use electrumClient to get transaction hex
|
|
218
|
-
|
|
219
|
-
## 2.6.4
|
|
220
|
-
|
|
221
|
-
### Patch Changes
|
|
222
|
-
|
|
223
|
-
- Fix issue relating to integrate electrumClient
|
|
224
|
-
|
|
225
|
-
## 2.6.3
|
|
226
|
-
|
|
227
|
-
### Patch Changes
|
|
228
|
-
|
|
229
|
-
- Replace blockCypher with electrumClient
|
|
230
|
-
|
|
231
|
-
## 2.6.2
|
|
232
|
-
|
|
233
|
-
### Patch Changes
|
|
234
|
-
|
|
235
|
-
- Improve error handling
|
|
236
|
-
|
|
237
|
-
## 2.6.1
|
|
238
|
-
|
|
239
|
-
### Patch Changes
|
|
240
|
-
|
|
241
|
-
- Fix issue which failed to get block info
|
|
242
|
-
|
|
243
|
-
## 2.6.0
|
|
244
|
-
|
|
245
|
-
### Minor Changes
|
|
246
|
-
|
|
247
|
-
- Support dogecoin chain
|
|
248
|
-
|
|
249
|
-
## 2.5.3
|
|
250
|
-
|
|
251
|
-
### Patch Changes
|
|
252
|
-
|
|
253
|
-
- Support documents field in token metadata
|
|
254
|
-
|
|
255
|
-
## 2.5.2
|
|
256
|
-
|
|
257
|
-
### Patch Changes
|
|
258
|
-
|
|
259
|
-
- Add missing logic to find claim and refund transaction for EVM chain
|
|
260
|
-
|
|
261
|
-
## 2.5.1
|
|
262
|
-
|
|
263
|
-
### Patch Changes
|
|
264
|
-
|
|
265
|
-
- Fix issue which fails to initiate swap transaction for YAC
|
|
266
|
-
|
|
267
|
-
## 2.5.0
|
|
268
|
-
|
|
269
|
-
### Minor Changes
|
|
270
|
-
|
|
271
|
-
- Support litecoin chain
|
|
272
|
-
|
|
273
|
-
## 2.4.0
|
|
274
|
-
|
|
275
|
-
### Minor Changes
|
|
276
|
-
|
|
277
|
-
- Add API to getBaseURL
|
|
278
|
-
|
|
279
|
-
## 2.3.3
|
|
280
|
-
|
|
281
|
-
### Patch Changes
|
|
282
|
-
|
|
283
|
-
- Change timelock values to production
|
|
284
|
-
|
|
285
|
-
## 2.3.2
|
|
286
|
-
|
|
287
|
-
### Patch Changes
|
|
288
|
-
|
|
289
|
-
- Fix token issues
|
|
290
|
-
|
|
291
|
-
## 2.3.1
|
|
292
|
-
|
|
293
|
-
### Patch Changes
|
|
294
|
-
|
|
295
|
-
- Change timelock fee duration and amount
|
|
296
|
-
|
|
297
|
-
## 2.3.0
|
|
298
|
-
|
|
299
|
-
### Minor Changes
|
|
300
|
-
|
|
301
|
-
- Support create YA-Token/YA-NFT
|
|
302
|
-
|
|
303
|
-
## 2.2.0
|
|
304
|
-
|
|
305
|
-
### Minor Changes
|
|
306
|
-
|
|
307
|
-
- Integrate YA-token/YA-NFT
|
|
308
|
-
|
|
309
|
-
## 2.1.0
|
|
310
|
-
|
|
311
|
-
### Minor Changes
|
|
312
|
-
|
|
313
|
-
- Support batch request for Yacoin
|
|
314
|
-
|
|
315
|
-
## 2.0.0
|
|
316
|
-
|
|
317
|
-
- First version
|