@bitgo-beta/sdk-coin-polygon 1.3.3-alpha.45 → 1.3.3-alpha.451

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 (57) hide show
  1. package/dist/src/index.js +6 -2
  2. package/dist/src/lib/index.d.ts +2 -1
  3. package/dist/src/lib/index.d.ts.map +1 -1
  4. package/dist/src/lib/index.js +30 -12
  5. package/dist/src/lib/resources.d.ts.map +1 -1
  6. package/dist/src/lib/resources.js +8 -4
  7. package/dist/src/lib/transactionBuilder.d.ts +11 -8
  8. package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
  9. package/dist/src/lib/transactionBuilder.js +21 -21
  10. package/dist/src/lib/transferBuilder.d.ts +1 -1
  11. package/dist/src/lib/transferBuilder.js +3 -3
  12. package/dist/src/lib/utils.d.ts +1 -1
  13. package/dist/src/lib/utils.js +6 -6
  14. package/dist/src/polygon.d.ts +23 -63
  15. package/dist/src/polygon.d.ts.map +1 -1
  16. package/dist/src/polygon.js +26 -392
  17. package/dist/src/polygonToken.d.ts +15 -24
  18. package/dist/src/polygonToken.d.ts.map +1 -1
  19. package/dist/src/polygonToken.js +31 -59
  20. package/dist/src/tpolygon.d.ts +0 -1
  21. package/dist/src/tpolygon.d.ts.map +1 -1
  22. package/dist/src/tpolygon.js +1 -4
  23. package/dist/test/fixtures/polygon.d.ts +151 -0
  24. package/dist/test/fixtures/polygon.d.ts.map +1 -0
  25. package/dist/test/fixtures/polygon.js +233 -0
  26. package/dist/test/getBuilder.d.ts +3 -0
  27. package/dist/test/getBuilder.d.ts.map +1 -0
  28. package/dist/test/getBuilder.js +9 -0
  29. package/dist/test/resources.d.ts +27 -0
  30. package/dist/test/resources.d.ts.map +1 -0
  31. package/dist/test/resources.js +41 -0
  32. package/dist/test/unit/polygon.d.ts +2 -0
  33. package/dist/test/unit/polygon.d.ts.map +1 -0
  34. package/dist/test/unit/polygon.js +1202 -0
  35. package/dist/test/unit/polygonToken.d.ts +2 -0
  36. package/dist/test/unit/polygonToken.d.ts.map +1 -0
  37. package/dist/test/unit/polygonToken.js +62 -0
  38. package/dist/test/unit/transaction.d.ts +2 -0
  39. package/dist/test/unit/transaction.d.ts.map +1 -0
  40. package/dist/test/unit/transaction.js +92 -0
  41. package/dist/test/unit/transactionBuilder/addressInitialization.d.ts +2 -0
  42. package/dist/test/unit/transactionBuilder/addressInitialization.d.ts.map +1 -0
  43. package/dist/test/unit/transactionBuilder/addressInitialization.js +104 -0
  44. package/dist/test/unit/transactionBuilder/flushTokens.d.ts +2 -0
  45. package/dist/test/unit/transactionBuilder/flushTokens.d.ts.map +1 -0
  46. package/dist/test/unit/transactionBuilder/flushTokens.js +9 -0
  47. package/dist/test/unit/transactionBuilder/send.d.ts +2 -0
  48. package/dist/test/unit/transactionBuilder/send.d.ts.map +1 -0
  49. package/dist/test/unit/transactionBuilder/send.js +114 -0
  50. package/dist/test/unit/transactionBuilder/walletInitialization.d.ts +2 -0
  51. package/dist/test/unit/transactionBuilder/walletInitialization.d.ts.map +1 -0
  52. package/dist/test/unit/transactionBuilder/walletInitialization.js +169 -0
  53. package/dist/tsconfig.tsbuildinfo +1 -0
  54. package/package.json +20 -19
  55. package/.eslintignore +0 -5
  56. package/.mocharc.yml +0 -8
  57. package/CHANGELOG.md +0 -102
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@bitgo-beta/sdk-coin-polygon",
3
- "version": "1.3.3-alpha.45",
3
+ "version": "1.3.3-alpha.451",
4
4
  "description": "BitGo SDK coin library for Polygon",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "yarn tsc --build --incremental --verbose .",
9
9
  "fmt": "prettier --write .",
10
- "check-fmt": "prettier --check .",
10
+ "check-fmt": "prettier --check '**/*.{ts,js,json}'",
11
11
  "clean": "rm -r ./dist",
12
12
  "lint": "eslint --quiet .",
13
13
  "prepare": "npm run build",
@@ -18,7 +18,7 @@
18
18
  "author": "BitGo SDK Team <sdkteam@bitgo.com>",
19
19
  "license": "MIT",
20
20
  "engines": {
21
- "node": ">=14 <17"
21
+ "node": ">=20 <23"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
@@ -40,23 +40,24 @@
40
40
  ]
41
41
  },
42
42
  "dependencies": {
43
- "@bitgo-beta/abstract-eth": "1.2.3-alpha.46",
44
- "@bitgo-beta/sdk-coin-eth": "2.4.1-alpha.46",
45
- "@bitgo-beta/sdk-core": "2.4.1-alpha.46",
46
- "@bitgo-beta/sjcl": "^1.0.1",
47
- "@bitgo-beta/statics": "10.0.1-alpha.46",
48
- "@bitgo-beta/utxo-lib": "4.0.1-alpha.46",
49
- "@ethereumjs/common": "^2.4.0",
50
- "@ethereumjs/tx": "^3.3.0",
51
- "bignumber.js": "^9.0.0",
43
+ "@bitgo-beta/abstract-eth": "1.2.3-alpha.455",
44
+ "@bitgo-beta/sdk-core": "2.4.1-alpha.456",
45
+ "@bitgo-beta/secp256k1": "1.0.1-alpha.414",
46
+ "@bitgo-beta/sjcl": "1.0.1-alpha.406",
47
+ "@bitgo-beta/statics": "10.0.1-alpha.456",
48
+ "@ethereumjs/common": "^2.6.5",
49
+ "bignumber.js": "^9.1.2",
52
50
  "ethereumjs-abi": "^0.6.5",
53
- "lodash": "^4.17.14",
54
- "superagent": "^3.8.3"
51
+ "ethereumjs-util": "7.1.5",
52
+ "ethers": "^5.1.3"
55
53
  },
56
54
  "devDependencies": {
57
- "@bitgo-beta/sdk-api": "1.6.1-alpha.46",
58
- "@bitgo-beta/sdk-test": "^1.2.15",
59
- "secp256k1": "^4.0.2"
60
- },
61
- "gitHead": "823815b0deff0f0ee0ed8a46f9b4fed7f4be6d05"
55
+ "@bitgo-beta/sdk-api": "1.6.1-alpha.455",
56
+ "@bitgo-beta/sdk-test": "^9.1.20",
57
+ "secp256k1": "5.0.1"
58
+ },
59
+ "gitHead": "1c9ccda2d9ef38c7cd826c658475a97e5c6e7dcc",
60
+ "files": [
61
+ "dist"
62
+ ]
62
63
  }
package/.eslintignore DELETED
@@ -1,5 +0,0 @@
1
- node_modules
2
- .idea
3
- public
4
- dist
5
-
package/.mocharc.yml DELETED
@@ -1,8 +0,0 @@
1
- require: 'ts-node/register'
2
- timeout: '90000'
3
- reporter: 'min'
4
- reporter-option:
5
- - 'cdn=true'
6
- - 'json=false'
7
- exit: true
8
- spec: ['test/unit/**/*.ts']
package/CHANGELOG.md DELETED
@@ -1,102 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [1.4.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.7...@bitgo/sdk-coin-polygon@1.4.8) (2023-02-17)
7
-
8
- **Note:** Version bump only for package @bitgo/sdk-coin-polygon
9
-
10
- ## [1.4.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.4...@bitgo/sdk-coin-polygon@1.4.7) (2023-02-16)
11
-
12
- **Note:** Version bump only for package @bitgo/sdk-coin-polygon
13
-
14
- ## [1.4.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.4...@bitgo/sdk-coin-polygon@1.4.6) (2023-02-08)
15
-
16
- **Note:** Version bump only for package @bitgo/sdk-coin-polygon
17
-
18
- ## [1.4.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.4...@bitgo/sdk-coin-polygon@1.4.5) (2023-01-30)
19
-
20
- **Note:** Version bump only for package @bitgo/sdk-coin-polygon
21
-
22
- ## [1.4.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.3...@bitgo/sdk-coin-polygon@1.4.4) (2023-01-25)
23
-
24
- **Note:** Version bump only for package @bitgo/sdk-coin-polygon
25
-
26
- ## [1.4.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.2...@bitgo/sdk-coin-polygon@1.4.3) (2022-12-23)
27
-
28
- **Note:** Version bump only for package @bitgo/sdk-coin-polygon
29
-
30
- ## [1.4.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.1...@bitgo/sdk-coin-polygon@1.4.2) (2022-12-20)
31
-
32
- **Note:** Version bump only for package @bitgo/sdk-coin-polygon
33
-
34
- ## [1.4.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.4.0...@bitgo/sdk-coin-polygon@1.4.1) (2022-12-09)
35
-
36
- **Note:** Version bump only for package @bitgo/sdk-coin-polygon
37
-
38
- # [1.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.3.6...@bitgo/sdk-coin-polygon@1.4.0) (2022-12-06)
39
-
40
- ### Features
41
-
42
- - **sdk-coin-polygon:** crossChainRecovery support ([9b42813](https://github.com/BitGo/BitGoJS/commit/9b4281333a8d3835219e566e31cba28ab448c85f))
43
-
44
- ## [1.3.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.3.5...@bitgo/sdk-coin-polygon@1.3.6) (2022-12-01)
45
-
46
- **Note:** Version bump only for package @bitgo/sdk-coin-polygon
47
-
48
- ## [1.3.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.3.0...@bitgo/sdk-coin-polygon@1.3.5) (2022-11-29)
49
-
50
- ### Bug Fixes
51
-
52
- - **sdk-coin-polygon:** remove unused data in recovery ([6ee161c](https://github.com/BitGo/BitGoJS/commit/6ee161c28e2e627456541b479d8f362fbf96979d))
53
-
54
- ## [1.3.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.3.0...@bitgo/sdk-coin-polygon@1.3.4) (2022-11-04)
55
-
56
- ### Bug Fixes
57
-
58
- - **sdk-coin-polygon:** remove unused data in recovery ([6ee161c](https://github.com/BitGo/BitGoJS/commit/6ee161c28e2e627456541b479d8f362fbf96979d))
59
-
60
- ## [1.3.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.3.0...@bitgo/sdk-coin-polygon@1.3.2) (2022-10-27)
61
-
62
- **Note:** Version bump only for package @bitgo/sdk-coin-polygon
63
-
64
- ## [1.3.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.3.0...@bitgo/sdk-coin-polygon@1.3.1) (2022-10-25)
65
-
66
- **Note:** Version bump only for package @bitgo/sdk-coin-polygon
67
-
68
- # [1.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.0.1-rc.0...@bitgo/sdk-coin-polygon@1.3.0) (2022-10-18)
69
-
70
- ### Bug Fixes
71
-
72
- - **core:** fix bip32/ecpair, API vs Interface ([bec9c1e](https://github.com/BitGo/BitGoJS/commit/bec9c1e6ff0c23108dc27e171abdd3e4d2cfdfb1))
73
- - **sdk-coin-eth:** fix v1 address init code ([9a3bb82](https://github.com/BitGo/BitGoJS/commit/9a3bb8216da92cf3cf3ce009d6595bf2a1a66885))
74
- - **sdk-coin-polygon:** fix sign for test polygon ([aff93c4](https://github.com/BitGo/BitGoJS/commit/aff93c4f97d6685b12a702df5a1d804537049d2a))
75
- - **sdk-coin-polygon:** update polygon token names ([8bb61cf](https://github.com/BitGo/BitGoJS/commit/8bb61cf2112a668255746366a32f8e5c8105a481))
76
-
77
- ### Features
78
-
79
- - add message signing support for polygon ([ab2bac1](https://github.com/BitGo/BitGoJS/commit/ab2bac13dad55ce8571d014796298aa52a24a5f2))
80
- - **sdk-coin-eth:** add v1 wallet init code ([b1c983d](https://github.com/BitGo/BitGoJS/commit/b1c983d2f0723aa6647fca3d01a4c814639624b4))
81
- - **sdk-coin-polygon:** add second signing ([c053924](https://github.com/BitGo/BitGoJS/commit/c05392483224194fc9aa97f02592534d25ef9ade))
82
- - **sdk-coin-polygon:** add signTx method ([3458ed0](https://github.com/BitGo/BitGoJS/commit/3458ed0f10d46489be5f1765679a8de3e786b020))
83
- - **sdk-coin-polygon:** support recovery ([15d6021](https://github.com/BitGo/BitGoJS/commit/15d602164d3a2b504d7995e65aa0fbcb38f98e89))
84
- - **sdk-coin-polygon:** support tokens ([8870307](https://github.com/BitGo/BitGoJS/commit/8870307b63f460031019aecf30c60df4f2c0a112))
85
- - **sdk-coin-polygon:** support tss in polygon controller ([5a5514c](https://github.com/BitGo/BitGoJS/commit/5a5514c98ca58cfcd794473cc5547342e8276dbc))
86
- - **statics:** support NAME NFT on tpolygon BG-58416 ([dba1b90](https://github.com/BitGo/BitGoJS/commit/dba1b9087b59336292c51215785ff366bbd262be))
87
-
88
- ### BREAKING CHANGES
89
-
90
- - **sdk-coin-eth:** Changes the return for exported method
91
- decodeWalletCreationData() in sdk-coin-eth
92
- BG-53733
93
-
94
- ## [1.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-polygon@1.0.1-rc.0...@bitgo/sdk-coin-polygon@1.0.1) (2022-07-19)
95
-
96
- **Note:** Version bump only for package @bitgo/sdk-coin-polygon
97
-
98
- ## 1.0.1-rc.0 (2022-07-19)
99
-
100
- ### Bug Fixes
101
-
102
- - update bad dependency match ([5cc3255](https://github.com/BitGo/BitGoJS/commit/5cc3255aecba1ffb112da3ba10d8d36d2074b3e3))