@yaswap/evm-contracts 3.4.0 → 3.4.2

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +341 -0
  2. package/package.json +93 -93
package/CHANGELOG.md ADDED
@@ -0,0 +1,341 @@
1
+ # @yaswap/evm-contracts
2
+
3
+ ## 3.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Support HD wallet logic
8
+
9
+ ## 3.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Support HD wallet logic
14
+
15
+ ## 3.4.0
16
+
17
+ ### Minor Changes
18
+
19
+ - Support HD wallet logic
20
+
21
+ ## 3.3.7
22
+
23
+ ### Patch Changes
24
+
25
+ - Add boolean param to convert token/nft name
26
+
27
+ ## 3.3.6
28
+
29
+ ### Patch Changes
30
+
31
+ - Pump to version v3.3.6
32
+
33
+ ## 3.3.5
34
+
35
+ ### Patch Changes
36
+
37
+ - Correct the logic to calculate correct transaction size for sweeping case
38
+
39
+ ## 3.3.4
40
+
41
+ ### Patch Changes
42
+
43
+ - Correct the logic to calculate correct transaction size for sweeping case
44
+
45
+ ## 3.3.3
46
+
47
+ ### Patch Changes
48
+
49
+ - Send transaction with fixed inputss
50
+
51
+ ## 3.3.2
52
+
53
+ ### Patch Changes
54
+
55
+ - Modify selectCoins to not use fixedInputs anymore
56
+
57
+ ## 3.3.1
58
+
59
+ ### Patch Changes
60
+
61
+ - Modify to calculate correct transaction fee for fixed inputs
62
+
63
+ ## 3.3.0
64
+
65
+ ### Minor Changes
66
+
67
+ - Support API for bitcoin utxo consolidation
68
+
69
+ ## 3.2.1
70
+
71
+ ### Patch Changes
72
+
73
+ - Lower number requests
74
+
75
+ ## 3.2.0
76
+
77
+ ### Minor Changes
78
+
79
+ - Add DogecoinSingleWallet
80
+
81
+ ## 3.1.0
82
+
83
+ ### Minor Changes
84
+
85
+ - Integrate new dogecoin explorer
86
+
87
+ ## 3.0.1
88
+
89
+ ### Patch Changes
90
+
91
+ - Handle AxiosError in case the transaction/block not found
92
+
93
+ ## 3.0.0
94
+
95
+ ### Major Changes
96
+
97
+ - Support manifest v3
98
+
99
+ ## 2.10.7
100
+
101
+ ### Patch Changes
102
+
103
+ - Pump to version v2.10.7
104
+
105
+ ## 2.10.6
106
+
107
+ ### Patch Changes
108
+
109
+ - Pump to version v2.10.6
110
+
111
+ ## 2.10.5
112
+
113
+ ### Patch Changes
114
+
115
+ - Pump to version v2.10.5
116
+
117
+ ## 2.10.4
118
+
119
+ ### Patch Changes
120
+
121
+ - Pump to version v2.10.4
122
+
123
+ ## 2.10.3
124
+
125
+ ### Patch Changes
126
+
127
+ - Pump to version v2.10.3
128
+
129
+ ## 2.10.2
130
+
131
+ ### Patch Changes
132
+
133
+ - Pump to version v2.10.2
134
+
135
+ ## 2.10.1
136
+
137
+ ### Patch Changes
138
+
139
+ - Pump to version v2.10.1
140
+
141
+ ## 2.10.0
142
+
143
+ ### Minor Changes
144
+
145
+ - Use latest axios which support fetch adapter
146
+
147
+ ## 2.9.4
148
+
149
+ ### Patch Changes
150
+
151
+ - Change bitcoin fee API endpoint
152
+
153
+ ## 2.9.3
154
+
155
+ ### Patch Changes
156
+
157
+ - Change IPFS endpoint
158
+
159
+ ## 2.9.2
160
+
161
+ ### Patch Changes
162
+
163
+ - Support HEAD request for @yaswap/client
164
+
165
+ ## 2.9.1
166
+
167
+ ### Patch Changes
168
+
169
+ - Reset metadata before fetching from ipfs gateway
170
+
171
+ ## 2.9.0
172
+
173
+ ### Minor Changes
174
+
175
+ - Integrate with self-hosted IPFS node
176
+
177
+ ## 2.8.0
178
+
179
+ ### Minor Changes
180
+
181
+ - Add new return info to chain.getTokenBalance and nft.fetch
182
+
183
+ ## 2.7.7
184
+
185
+ ### Patch Changes
186
+
187
+ - Remove debug log
188
+
189
+ ## 2.7.6
190
+
191
+ ### Patch Changes
192
+
193
+ - Fetch multiple YA-NFT info at one time
194
+
195
+ ## 2.7.5
196
+
197
+ ### Patch Changes
198
+
199
+ - Throw fee in InsufficientBalanceError for Yacoin
200
+
201
+ ## 2.7.4
202
+
203
+ ### Patch Changes
204
+
205
+ - Correct formular to calculate yacoin transaction bytes
206
+
207
+ ## 2.7.3
208
+
209
+ ### Patch Changes
210
+
211
+ - Change ipfs endpoint and timeout for getting token metadata
212
+
213
+ ## 2.7.2
214
+
215
+ ### Patch Changes
216
+
217
+ - Init YacoinSingleWallet
218
+
219
+ ## 2.7.1
220
+
221
+ ### Patch Changes
222
+
223
+ - Use bitcoinselect
224
+
225
+ ## 2.7.0
226
+
227
+ ### Minor Changes
228
+
229
+ - Finalize single wallet version
230
+
231
+ ## 2.6.6
232
+
233
+ ### Patch Changes
234
+
235
+ - Remove debug log
236
+
237
+ ## 2.6.5
238
+
239
+ ### Patch Changes
240
+
241
+ - Use electrumClient to get transaction hex
242
+
243
+ ## 2.6.4
244
+
245
+ ### Patch Changes
246
+
247
+ - Fix issue relating to integrate electrumClient
248
+
249
+ ## 2.6.3
250
+
251
+ ### Patch Changes
252
+
253
+ - Replace blockCypher with electrumClient
254
+
255
+ ## 2.6.2
256
+
257
+ ### Patch Changes
258
+
259
+ - Improve error handling
260
+
261
+ ## 2.6.1
262
+
263
+ ### Patch Changes
264
+
265
+ - Fix issue which failed to get block info
266
+
267
+ ## 2.6.0
268
+
269
+ ### Minor Changes
270
+
271
+ - Support dogecoin chain
272
+
273
+ ## 2.5.3
274
+
275
+ ### Patch Changes
276
+
277
+ - Support documents field in token metadata
278
+
279
+ ## 2.5.2
280
+
281
+ ### Patch Changes
282
+
283
+ - Add missing logic to find claim and refund transaction for EVM chain
284
+
285
+ ## 2.5.1
286
+
287
+ ### Patch Changes
288
+
289
+ - Fix issue which fails to initiate swap transaction for YAC
290
+
291
+ ## 2.5.0
292
+
293
+ ### Minor Changes
294
+
295
+ - Support litecoin chain
296
+
297
+ ## 2.4.0
298
+
299
+ ### Minor Changes
300
+
301
+ - Add API to getBaseURL
302
+
303
+ ## 2.3.3
304
+
305
+ ### Patch Changes
306
+
307
+ - Change timelock values to production
308
+
309
+ ## 2.3.2
310
+
311
+ ### Patch Changes
312
+
313
+ - Fix token issues
314
+
315
+ ## 2.3.1
316
+
317
+ ### Patch Changes
318
+
319
+ - Change timelock fee duration and amount
320
+
321
+ ## 2.3.0
322
+
323
+ ### Minor Changes
324
+
325
+ - Support create YA-Token/YA-NFT
326
+
327
+ ## 2.2.0
328
+
329
+ ### Minor Changes
330
+
331
+ - Integrate YA-token/YA-NFT
332
+
333
+ ## 2.1.0
334
+
335
+ ### Minor Changes
336
+
337
+ - Support batch request for Yacoin
338
+
339
+ ## 2.0.0
340
+
341
+ - First version
package/package.json CHANGED
@@ -1,94 +1,94 @@
1
1
  {
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
- }
2
+ "name": "@yaswap/evm-contracts",
3
+ "version": "3.4.2",
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
+ }