@bitgo-beta/sdk-coin-avaxc 2.2.3-alpha.1 → 2.2.3-alpha.100
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/CHANGELOG.md +428 -0
- package/dist/src/avaxc.d.ts +36 -9
- package/dist/src/avaxc.d.ts.map +1 -1
- package/dist/src/avaxc.js +207 -104
- package/dist/src/iface.d.ts +9 -4
- package/dist/src/iface.d.ts.map +1 -1
- package/dist/src/iface.js +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -1
- package/dist/src/lib/utils.d.ts +2 -1
- package/dist/src/lib/utils.d.ts.map +1 -1
- package/dist/src/lib/utils.js +24 -2
- package/dist/src/register.d.ts +3 -0
- package/dist/src/register.d.ts.map +1 -0
- package/dist/src/register.js +15 -0
- package/package.json +15 -14
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,434 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.25.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.25.0) (2024-01-26)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
11
|
+
- **sdk-coin-avaxc:** fix avaxc queryAddressTokenBalance method ([26fe69e](https://github.com/BitGo/BitGoJS/commit/26fe69eae4017fd2a17dc7af56c3f8300cc436de))
|
|
12
|
+
- **sdk-coin-avaxc:** fix native avaxc recovery ([2c208c4](https://github.com/BitGo/BitGoJS/commit/2c208c42819725844623c4ac576eeb39ee6b2232))
|
|
13
|
+
- **sdk-coin-avaxc:** fix unsigned recovery txn format for tokens ([da2557c](https://github.com/BitGo/BitGoJS/commit/da2557cef446ef24cc2fa696583ae44cbabffde8))
|
|
14
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
19
|
+
- **statics:** add SOL tokens for FTX ([5c5139a](https://github.com/BitGo/BitGoJS/commit/5c5139a112867701dcda6b3ae5226548be934733))
|
|
20
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
21
|
+
|
|
22
|
+
# [2.24.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.24.0) (2024-01-26)
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
27
|
+
- **sdk-coin-avaxc:** fix avaxc queryAddressTokenBalance method ([26fe69e](https://github.com/BitGo/BitGoJS/commit/26fe69eae4017fd2a17dc7af56c3f8300cc436de))
|
|
28
|
+
- **sdk-coin-avaxc:** fix native avaxc recovery ([2c208c4](https://github.com/BitGo/BitGoJS/commit/2c208c42819725844623c4ac576eeb39ee6b2232))
|
|
29
|
+
- **sdk-coin-avaxc:** fix unsigned recovery txn format for tokens ([da2557c](https://github.com/BitGo/BitGoJS/commit/da2557cef446ef24cc2fa696583ae44cbabffde8))
|
|
30
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
35
|
+
- **statics:** add SOL tokens for FTX ([5c5139a](https://github.com/BitGo/BitGoJS/commit/5c5139a112867701dcda6b3ae5226548be934733))
|
|
36
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
37
|
+
|
|
38
|
+
# [2.23.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.23.0) (2024-01-25)
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
43
|
+
- **sdk-coin-avaxc:** fix avaxc queryAddressTokenBalance method ([26fe69e](https://github.com/BitGo/BitGoJS/commit/26fe69eae4017fd2a17dc7af56c3f8300cc436de))
|
|
44
|
+
- **sdk-coin-avaxc:** fix unsigned recovery txn format for tokens ([da2557c](https://github.com/BitGo/BitGoJS/commit/da2557cef446ef24cc2fa696583ae44cbabffde8))
|
|
45
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
46
|
+
|
|
47
|
+
### Features
|
|
48
|
+
|
|
49
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
50
|
+
- **statics:** add SOL tokens for FTX ([5c5139a](https://github.com/BitGo/BitGoJS/commit/5c5139a112867701dcda6b3ae5226548be934733))
|
|
51
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
52
|
+
|
|
53
|
+
# [2.22.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.22.0) (2024-01-22)
|
|
54
|
+
|
|
55
|
+
### Bug Fixes
|
|
56
|
+
|
|
57
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
58
|
+
- **sdk-coin-avaxc:** fix avaxc queryAddressTokenBalance method ([26fe69e](https://github.com/BitGo/BitGoJS/commit/26fe69eae4017fd2a17dc7af56c3f8300cc436de))
|
|
59
|
+
- **sdk-coin-avaxc:** fix unsigned recovery txn format for tokens ([da2557c](https://github.com/BitGo/BitGoJS/commit/da2557cef446ef24cc2fa696583ae44cbabffde8))
|
|
60
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
61
|
+
|
|
62
|
+
### Features
|
|
63
|
+
|
|
64
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
65
|
+
- **statics:** add SOL tokens for FTX ([5c5139a](https://github.com/BitGo/BitGoJS/commit/5c5139a112867701dcda6b3ae5226548be934733))
|
|
66
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
67
|
+
|
|
68
|
+
# [2.21.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.21.0) (2024-01-09)
|
|
69
|
+
|
|
70
|
+
### Bug Fixes
|
|
71
|
+
|
|
72
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
73
|
+
- **sdk-coin-avaxc:** fix avaxc queryAddressTokenBalance method ([26fe69e](https://github.com/BitGo/BitGoJS/commit/26fe69eae4017fd2a17dc7af56c3f8300cc436de))
|
|
74
|
+
- **sdk-coin-avaxc:** fix unsigned recovery txn format for tokens ([da2557c](https://github.com/BitGo/BitGoJS/commit/da2557cef446ef24cc2fa696583ae44cbabffde8))
|
|
75
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
76
|
+
|
|
77
|
+
### Features
|
|
78
|
+
|
|
79
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
80
|
+
- **statics:** add SOL tokens for FTX ([5c5139a](https://github.com/BitGo/BitGoJS/commit/5c5139a112867701dcda6b3ae5226548be934733))
|
|
81
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
82
|
+
|
|
83
|
+
# [2.20.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.20.0) (2024-01-03)
|
|
84
|
+
|
|
85
|
+
### Bug Fixes
|
|
86
|
+
|
|
87
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
88
|
+
- **sdk-coin-avaxc:** fix avaxc queryAddressTokenBalance method ([26fe69e](https://github.com/BitGo/BitGoJS/commit/26fe69eae4017fd2a17dc7af56c3f8300cc436de))
|
|
89
|
+
- **sdk-coin-avaxc:** fix unsigned recovery txn format for tokens ([da2557c](https://github.com/BitGo/BitGoJS/commit/da2557cef446ef24cc2fa696583ae44cbabffde8))
|
|
90
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
91
|
+
|
|
92
|
+
### Features
|
|
93
|
+
|
|
94
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
95
|
+
- **statics:** add SOL tokens for FTX ([5c5139a](https://github.com/BitGo/BitGoJS/commit/5c5139a112867701dcda6b3ae5226548be934733))
|
|
96
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
97
|
+
|
|
98
|
+
# [2.19.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.19.0) (2023-12-18)
|
|
99
|
+
|
|
100
|
+
### Bug Fixes
|
|
101
|
+
|
|
102
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
103
|
+
- **sdk-coin-avaxc:** fix avaxc queryAddressTokenBalance method ([26fe69e](https://github.com/BitGo/BitGoJS/commit/26fe69eae4017fd2a17dc7af56c3f8300cc436de))
|
|
104
|
+
- **sdk-coin-avaxc:** fix unsigned recovery txn format for tokens ([da2557c](https://github.com/BitGo/BitGoJS/commit/da2557cef446ef24cc2fa696583ae44cbabffde8))
|
|
105
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
106
|
+
|
|
107
|
+
### Features
|
|
108
|
+
|
|
109
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
110
|
+
- **statics:** add SOL tokens for FTX ([5c5139a](https://github.com/BitGo/BitGoJS/commit/5c5139a112867701dcda6b3ae5226548be934733))
|
|
111
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
112
|
+
|
|
113
|
+
# [2.18.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.18.0) (2023-12-12)
|
|
114
|
+
|
|
115
|
+
### Bug Fixes
|
|
116
|
+
|
|
117
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
118
|
+
- **sdk-coin-avaxc:** fix avaxc queryAddressTokenBalance method ([26fe69e](https://github.com/BitGo/BitGoJS/commit/26fe69eae4017fd2a17dc7af56c3f8300cc436de))
|
|
119
|
+
- **sdk-coin-avaxc:** fix unsigned recovery txn format for tokens ([da2557c](https://github.com/BitGo/BitGoJS/commit/da2557cef446ef24cc2fa696583ae44cbabffde8))
|
|
120
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
121
|
+
|
|
122
|
+
### Features
|
|
123
|
+
|
|
124
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
125
|
+
- **statics:** add SOL tokens for FTX ([5c5139a](https://github.com/BitGo/BitGoJS/commit/5c5139a112867701dcda6b3ae5226548be934733))
|
|
126
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
127
|
+
|
|
128
|
+
# [2.17.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.17.0) (2023-12-09)
|
|
129
|
+
|
|
130
|
+
### Bug Fixes
|
|
131
|
+
|
|
132
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
133
|
+
- **sdk-coin-avaxc:** fix avaxc queryAddressTokenBalance method ([26fe69e](https://github.com/BitGo/BitGoJS/commit/26fe69eae4017fd2a17dc7af56c3f8300cc436de))
|
|
134
|
+
- **sdk-coin-avaxc:** fix unsigned recovery txn format for tokens ([da2557c](https://github.com/BitGo/BitGoJS/commit/da2557cef446ef24cc2fa696583ae44cbabffde8))
|
|
135
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
136
|
+
|
|
137
|
+
### Features
|
|
138
|
+
|
|
139
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
140
|
+
- **statics:** add SOL tokens for FTX ([5c5139a](https://github.com/BitGo/BitGoJS/commit/5c5139a112867701dcda6b3ae5226548be934733))
|
|
141
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
142
|
+
|
|
143
|
+
# [2.16.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.16.0) (2023-12-05)
|
|
144
|
+
|
|
145
|
+
### Bug Fixes
|
|
146
|
+
|
|
147
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
148
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
149
|
+
|
|
150
|
+
### Features
|
|
151
|
+
|
|
152
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
153
|
+
- **statics:** add SOL tokens for FTX ([5c5139a](https://github.com/BitGo/BitGoJS/commit/5c5139a112867701dcda6b3ae5226548be934733))
|
|
154
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
155
|
+
|
|
156
|
+
# [2.15.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.15.0) (2023-11-28)
|
|
157
|
+
|
|
158
|
+
### Bug Fixes
|
|
159
|
+
|
|
160
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
161
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
162
|
+
|
|
163
|
+
### Features
|
|
164
|
+
|
|
165
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
166
|
+
- **statics:** add SOL tokens for FTX ([5c5139a](https://github.com/BitGo/BitGoJS/commit/5c5139a112867701dcda6b3ae5226548be934733))
|
|
167
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
168
|
+
|
|
169
|
+
# [2.14.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.14.0) (2023-11-24)
|
|
170
|
+
|
|
171
|
+
### Bug Fixes
|
|
172
|
+
|
|
173
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
174
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
175
|
+
|
|
176
|
+
### Features
|
|
177
|
+
|
|
178
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
179
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
180
|
+
|
|
181
|
+
# [2.13.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.13.0) (2023-11-17)
|
|
182
|
+
|
|
183
|
+
### Bug Fixes
|
|
184
|
+
|
|
185
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
186
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
187
|
+
|
|
188
|
+
### Features
|
|
189
|
+
|
|
190
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
191
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
192
|
+
|
|
193
|
+
# [2.12.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.12.0) (2023-11-13)
|
|
194
|
+
|
|
195
|
+
### Bug Fixes
|
|
196
|
+
|
|
197
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
198
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
199
|
+
|
|
200
|
+
### Features
|
|
201
|
+
|
|
202
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
203
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
204
|
+
|
|
205
|
+
# [2.11.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.11.0) (2023-11-13)
|
|
206
|
+
|
|
207
|
+
### Bug Fixes
|
|
208
|
+
|
|
209
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
210
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
211
|
+
|
|
212
|
+
### Features
|
|
213
|
+
|
|
214
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
215
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
216
|
+
|
|
217
|
+
# [2.10.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.10.0) (2023-11-13)
|
|
218
|
+
|
|
219
|
+
### Bug Fixes
|
|
220
|
+
|
|
221
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
222
|
+
- **sdk-core:** fix issue related to bignumber version ([519fe47](https://github.com/BitGo/BitGoJS/commit/519fe479ef51a72ddc1e94f87c10e031c0fd2c3f))
|
|
223
|
+
|
|
224
|
+
### Features
|
|
225
|
+
|
|
226
|
+
- **sdk-coin-avaxc:** add avax token support in recovery method ([2ace2a1](https://github.com/BitGo/BitGoJS/commit/2ace2a1d34688b7496f1c085ae666e00387f639c))
|
|
227
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
228
|
+
|
|
229
|
+
# [2.9.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.9.0) (2023-10-20)
|
|
230
|
+
|
|
231
|
+
### Bug Fixes
|
|
232
|
+
|
|
233
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
234
|
+
|
|
235
|
+
### Features
|
|
236
|
+
|
|
237
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
238
|
+
|
|
239
|
+
# [2.8.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.8.0) (2023-10-18)
|
|
240
|
+
|
|
241
|
+
### Bug Fixes
|
|
242
|
+
|
|
243
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
244
|
+
|
|
245
|
+
### Features
|
|
246
|
+
|
|
247
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
248
|
+
|
|
249
|
+
# [2.7.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.7.0) (2023-09-25)
|
|
250
|
+
|
|
251
|
+
### Bug Fixes
|
|
252
|
+
|
|
253
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
254
|
+
|
|
255
|
+
### Features
|
|
256
|
+
|
|
257
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
258
|
+
|
|
259
|
+
## [2.6.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.6.10) (2023-09-09)
|
|
260
|
+
|
|
261
|
+
### Bug Fixes
|
|
262
|
+
|
|
263
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
264
|
+
|
|
265
|
+
## [2.6.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.6.9) (2023-09-09)
|
|
266
|
+
|
|
267
|
+
### Bug Fixes
|
|
268
|
+
|
|
269
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
270
|
+
|
|
271
|
+
## [2.6.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.6.8) (2023-09-07)
|
|
272
|
+
|
|
273
|
+
### Bug Fixes
|
|
274
|
+
|
|
275
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
276
|
+
|
|
277
|
+
## [2.6.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.6.7) (2023-09-05)
|
|
278
|
+
|
|
279
|
+
### Bug Fixes
|
|
280
|
+
|
|
281
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
282
|
+
|
|
283
|
+
## [2.6.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.6.6) (2023-09-01)
|
|
284
|
+
|
|
285
|
+
### Bug Fixes
|
|
286
|
+
|
|
287
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
288
|
+
|
|
289
|
+
## [2.6.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.6.5) (2023-08-29)
|
|
290
|
+
|
|
291
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
292
|
+
|
|
293
|
+
## [2.6.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.6.4) (2023-08-25)
|
|
294
|
+
|
|
295
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
296
|
+
|
|
297
|
+
## [2.6.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.6.3) (2023-08-24)
|
|
298
|
+
|
|
299
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
300
|
+
|
|
301
|
+
## [2.6.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.6.2) (2023-08-16)
|
|
302
|
+
|
|
303
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
304
|
+
|
|
305
|
+
## [2.6.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.6.0...@bitgo/sdk-coin-avaxc@2.6.1) (2023-08-16)
|
|
306
|
+
|
|
307
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
308
|
+
|
|
309
|
+
# [2.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.19...@bitgo/sdk-coin-avaxc@2.6.0) (2023-08-04)
|
|
310
|
+
|
|
311
|
+
### Features
|
|
312
|
+
|
|
313
|
+
- **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
|
|
314
|
+
- **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
|
|
315
|
+
|
|
316
|
+
# [2.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.19...@bitgo/sdk-coin-avaxc@2.5.0) (2023-07-28)
|
|
317
|
+
|
|
318
|
+
### Features
|
|
319
|
+
|
|
320
|
+
- **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
|
|
321
|
+
- **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
|
|
322
|
+
|
|
323
|
+
## [2.4.19](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.18...@bitgo/sdk-coin-avaxc@2.4.19) (2023-07-18)
|
|
324
|
+
|
|
325
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
326
|
+
|
|
327
|
+
## [2.4.18](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.17...@bitgo/sdk-coin-avaxc@2.4.18) (2023-06-21)
|
|
328
|
+
|
|
329
|
+
### Bug Fixes
|
|
330
|
+
|
|
331
|
+
- **sdk-coin-avaxc:** fix recovery to multisig address ([c1e4504](https://github.com/BitGo/BitGoJS/commit/c1e4504675d3652599b9b208abf19a54de923916))
|
|
332
|
+
|
|
333
|
+
## [2.4.17](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.16...@bitgo/sdk-coin-avaxc@2.4.17) (2023-06-14)
|
|
334
|
+
|
|
335
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
336
|
+
|
|
337
|
+
## [2.4.16](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.15...@bitgo/sdk-coin-avaxc@2.4.16) (2023-06-13)
|
|
338
|
+
|
|
339
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
340
|
+
|
|
341
|
+
## [2.4.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.14...@bitgo/sdk-coin-avaxc@2.4.15) (2023-06-07)
|
|
342
|
+
|
|
343
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
344
|
+
|
|
345
|
+
## [2.4.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.13...@bitgo/sdk-coin-avaxc@2.4.14) (2023-06-05)
|
|
346
|
+
|
|
347
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
348
|
+
|
|
349
|
+
## [2.4.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.12...@bitgo/sdk-coin-avaxc@2.4.13) (2023-05-25)
|
|
350
|
+
|
|
351
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
352
|
+
|
|
353
|
+
## [2.4.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.11...@bitgo/sdk-coin-avaxc@2.4.12) (2023-05-17)
|
|
354
|
+
|
|
355
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
356
|
+
|
|
357
|
+
## [2.4.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.10...@bitgo/sdk-coin-avaxc@2.4.11) (2023-05-10)
|
|
358
|
+
|
|
359
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
360
|
+
|
|
361
|
+
## [2.4.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.9...@bitgo/sdk-coin-avaxc@2.4.10) (2023-05-03)
|
|
362
|
+
|
|
363
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
364
|
+
|
|
365
|
+
## [2.4.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.8...@bitgo/sdk-coin-avaxc@2.4.9) (2023-04-25)
|
|
366
|
+
|
|
367
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
368
|
+
|
|
369
|
+
## [2.4.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.7...@bitgo/sdk-coin-avaxc@2.4.8) (2023-04-20)
|
|
370
|
+
|
|
371
|
+
### Bug Fixes
|
|
372
|
+
|
|
373
|
+
- **root:** update tests using safe primes ([5a275ff](https://github.com/BitGo/BitGoJS/commit/5a275ffbf3eecf351dfbb0b4538d62dd0a2f2a43))
|
|
374
|
+
|
|
375
|
+
## [2.4.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.6...@bitgo/sdk-coin-avaxc@2.4.7) (2023-04-13)
|
|
376
|
+
|
|
377
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
378
|
+
|
|
379
|
+
## [2.4.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.5...@bitgo/sdk-coin-avaxc@2.4.6) (2023-02-17)
|
|
380
|
+
|
|
381
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
382
|
+
|
|
383
|
+
## [2.4.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.2...@bitgo/sdk-coin-avaxc@2.4.5) (2023-02-16)
|
|
384
|
+
|
|
385
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
386
|
+
|
|
387
|
+
## [2.4.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.2...@bitgo/sdk-coin-avaxc@2.4.4) (2023-02-08)
|
|
388
|
+
|
|
389
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
390
|
+
|
|
391
|
+
## [2.4.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.2...@bitgo/sdk-coin-avaxc@2.4.3) (2023-01-30)
|
|
392
|
+
|
|
393
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
394
|
+
|
|
395
|
+
## [2.4.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.1...@bitgo/sdk-coin-avaxc@2.4.2) (2023-01-25)
|
|
396
|
+
|
|
397
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
398
|
+
|
|
399
|
+
## [2.4.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.4.0...@bitgo/sdk-coin-avaxc@2.4.1) (2022-12-23)
|
|
400
|
+
|
|
401
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
402
|
+
|
|
403
|
+
# [2.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.3.3...@bitgo/sdk-coin-avaxc@2.4.0) (2022-12-20)
|
|
404
|
+
|
|
405
|
+
### Features
|
|
406
|
+
|
|
407
|
+
- **sdk-coin-avaxc:** add validation for cross-chain addresses ([99ec345](https://github.com/BitGo/BitGoJS/commit/99ec3456f61802859fff873cd53de63624e5a170))
|
|
408
|
+
- **sdk-coin-avaxc:** verify signature for hop export tx ([dbae7af](https://github.com/BitGo/BitGoJS/commit/dbae7aff63298d6c0fac360a81845d0e71704e08))
|
|
409
|
+
|
|
410
|
+
## [2.3.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.3.2...@bitgo/sdk-coin-avaxc@2.3.3) (2022-12-09)
|
|
411
|
+
|
|
412
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
413
|
+
|
|
414
|
+
## [2.3.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.3.1...@bitgo/sdk-coin-avaxc@2.3.2) (2022-12-06)
|
|
415
|
+
|
|
416
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
417
|
+
|
|
418
|
+
## [2.3.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.3.0...@bitgo/sdk-coin-avaxc@2.3.1) (2022-12-01)
|
|
419
|
+
|
|
420
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
|
421
|
+
|
|
422
|
+
# [2.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.2.0...@bitgo/sdk-coin-avaxc@2.3.0) (2022-11-29)
|
|
423
|
+
|
|
424
|
+
### Bug Fixes
|
|
425
|
+
|
|
426
|
+
- **sdk-coin-avaxc:** add tx type to fee estimation and build params ([83a12be](https://github.com/BitGo/BitGoJS/commit/83a12be8d41a8796160737ccb48a9a3e98495042))
|
|
427
|
+
|
|
428
|
+
### Features
|
|
429
|
+
|
|
430
|
+
- **sdk-coin-avaxc:** hop export tx verify signature uses keccak256 for tx ([cd940b5](https://github.com/BitGo/BitGoJS/commit/cd940b5244a18f06882921da2448a4fbb2cdbdf4))
|
|
431
|
+
- **sdk-coin-avaxc:** remove use of suer req sig for hot tx ([fa231e8](https://github.com/BitGo/BitGoJS/commit/fa231e8ae08bcbb5ab48bd7cf19a624f46c92ea7))
|
|
432
|
+
- **sdk-coin-avaxc:** verify c to p hop export tx ([e34e2e9](https://github.com/BitGo/BitGoJS/commit/e34e2e95b4fb3fb6d7eb078408bab5403e64145c))
|
|
433
|
+
|
|
6
434
|
## [2.2.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-avaxc@2.2.0...@bitgo/sdk-coin-avaxc@2.2.4) (2022-11-04)
|
|
7
435
|
|
|
8
436
|
**Note:** Version bump only for package @bitgo/sdk-coin-avaxc
|
package/dist/src/avaxc.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
|
|
2
|
+
/// <reference types="bn.js" />
|
|
3
|
+
import { BaseCoin as StaticsBaseCoin, CoinFamily, BaseNetwork } from '@bitgo-beta/statics';
|
|
3
4
|
import { BaseCoin, BitGoBase, FeeEstimateOptions, FullySignedTransaction, IWallet, KeyPair, ParsedTransaction, ParseTransactionOptions, Recipient, TransactionExplanation, VerifyAddressOptions } from '@bitgo-beta/sdk-core';
|
|
4
5
|
import { GetSendMethodArgsOptions, RecoverOptions, RecoveryInfo, SendMethodArgs, TransactionBuilder as EthTransactionBuilder, TransactionPrebuild } from '@bitgo-beta/sdk-coin-eth';
|
|
6
|
+
import { BN } from 'ethereumjs-util';
|
|
7
|
+
import { Buffer } from 'buffer';
|
|
5
8
|
import { AvaxSignTransactionOptions, BuildOptions, ExplainTransactionOptions, FeeEstimate, HopParams, HopPrebuild, HopTransactionBuildOptions, OfflineVaultTxInfo, PrecreateBitGoOptions, PresignTransactionOptions, SignedTransaction, SignFinalOptions, VerifyAvaxcTransactionOptions } from './iface';
|
|
6
9
|
import { AvaxpLib } from '@bitgo-beta/sdk-coin-avaxp';
|
|
7
10
|
export declare class AvaxC extends BaseCoin {
|
|
@@ -11,6 +14,11 @@ export declare class AvaxC extends BaseCoin {
|
|
|
11
14
|
static createInstance(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>): BaseCoin;
|
|
12
15
|
getBaseFactor(): number;
|
|
13
16
|
getChain(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Method to return the coin's network object
|
|
19
|
+
* @returns {BaseNetwork}
|
|
20
|
+
*/
|
|
21
|
+
getNetwork(): BaseNetwork;
|
|
14
22
|
/**
|
|
15
23
|
* Get the base chain that the coin exists on.
|
|
16
24
|
*/
|
|
@@ -51,11 +59,11 @@ export declare class AvaxC extends BaseCoin {
|
|
|
51
59
|
*/
|
|
52
60
|
setGasPrice(userGasPrice?: number): number;
|
|
53
61
|
/**
|
|
54
|
-
* Make a query to
|
|
62
|
+
* Make a query to avax.network for information such as balance, token balance, solidity calls
|
|
55
63
|
* @param {Object} query — key-value pairs of parameters to append after /api
|
|
56
|
-
* @returns {Promise<Object>} response from
|
|
64
|
+
* @returns {Promise<Object>} response from avax.network
|
|
57
65
|
*/
|
|
58
|
-
recoveryBlockchainExplorerQuery(query: Record<string,
|
|
66
|
+
recoveryBlockchainExplorerQuery(query: Record<string, any>): Promise<any>;
|
|
59
67
|
/**
|
|
60
68
|
* Queries public block explorer to get the next nonce that should be used for
|
|
61
69
|
* the given AVAXC address
|
|
@@ -64,13 +72,19 @@ export declare class AvaxC extends BaseCoin {
|
|
|
64
72
|
*/
|
|
65
73
|
getAddressNonce(address: string): Promise<number>;
|
|
66
74
|
/**
|
|
67
|
-
* Queries
|
|
75
|
+
* Queries avax.network for the balance of an address
|
|
76
|
+
* @param {string} address - the AVAXC address
|
|
77
|
+
* @returns {Promise<BigNumber>} address balance
|
|
78
|
+
*/
|
|
79
|
+
queryAddressBalance(address: string): Promise<BN>;
|
|
80
|
+
/**
|
|
81
|
+
* Queries avax.network for the token balance of an address
|
|
68
82
|
* @param {string} address - the AVAXC address
|
|
69
83
|
* @returns {Promise<BigNumber>} address balance
|
|
70
84
|
*/
|
|
71
|
-
|
|
85
|
+
queryAddressTokenBalance(address: string, contractAddress: string): Promise<BN>;
|
|
72
86
|
/**
|
|
73
|
-
* Queries the contract (via
|
|
87
|
+
* Queries the contract (via avax.network) for the next sequence ID
|
|
74
88
|
* @param {string} address - address of the contract
|
|
75
89
|
* @returns {Promise<number>} sequence ID
|
|
76
90
|
*/
|
|
@@ -134,6 +148,13 @@ export declare class AvaxC extends BaseCoin {
|
|
|
134
148
|
* @private
|
|
135
149
|
*/
|
|
136
150
|
private explainAtomicTransaction;
|
|
151
|
+
/**
|
|
152
|
+
* Verify signature for an atomic transaction using atomic builder.
|
|
153
|
+
* @param txHex
|
|
154
|
+
* @return true if signature is from the input address
|
|
155
|
+
* @private
|
|
156
|
+
*/
|
|
157
|
+
private verifySignatureForAtomicTransaction;
|
|
137
158
|
/**
|
|
138
159
|
* Explains an EVM transaction using regular eth txn builder
|
|
139
160
|
* @param tx
|
|
@@ -190,10 +211,10 @@ export declare class AvaxC extends BaseCoin {
|
|
|
190
211
|
getExtraPrebuildParams(buildParams: BuildOptions): Promise<BuildOptions>;
|
|
191
212
|
/**
|
|
192
213
|
* Creates the extra parameters needed to build a hop transaction
|
|
193
|
-
* @param
|
|
214
|
+
* @param {HopTransactionBuildOptions} The original build parameters
|
|
194
215
|
* @returns extra parameters object to merge with the original build parameters object and send to the platform
|
|
195
216
|
*/
|
|
196
|
-
createHopTransactionParams(
|
|
217
|
+
createHopTransactionParams({ recipients, type }: HopTransactionBuildOptions): Promise<HopParams>;
|
|
197
218
|
/**
|
|
198
219
|
* Fetch fee estimate information from the server
|
|
199
220
|
* @param {Object} params The params passed into the function
|
|
@@ -208,6 +229,12 @@ export declare class AvaxC extends BaseCoin {
|
|
|
208
229
|
* @param paramsArr The parameters to hash together for the digest
|
|
209
230
|
*/
|
|
210
231
|
static getHopDigest(paramsArr: string[]): Buffer;
|
|
232
|
+
/**
|
|
233
|
+
* Calculate tx hash like evm from tx hex.
|
|
234
|
+
* @param {string} tx
|
|
235
|
+
* @returns {Buffer} tx hash
|
|
236
|
+
*/
|
|
237
|
+
static getTxHash(tx: string): Buffer;
|
|
211
238
|
isWalletAddress(params: VerifyAddressOptions): Promise<boolean>;
|
|
212
239
|
/**
|
|
213
240
|
* Ensure either enterprise or newFeeAddress is passed, to know whether to create new key or use enterprise key
|
package/dist/src/avaxc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avaxc.d.ts","sourceRoot":"","sources":["../../src/avaxc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"avaxc.d.ts","sourceRoot":"","sources":["../../src/avaxc.ts"],"names":[],"mappings":";;AAQA,OAAO,EAEL,QAAQ,IAAI,eAAe,EAC3B,UAAU,EAGV,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,QAAQ,EAER,SAAS,EAET,kBAAkB,EAClB,sBAAsB,EAGtB,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,uBAAuB,EACvB,SAAS,EACT,sBAAsB,EAEtB,oBAAoB,EACrB,MAAM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