@yaswap/evm-contracts 3.4.0 → 3.4.1

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