@bitgo-beta/sdk-coin-hbar 2.0.73-alpha.11 → 2.0.73-alpha.110
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/.mocharc.yml +1 -1
- package/CHANGELOG.md +139 -0
- package/package.json +9 -9
- package/dist/src/hbar.d.ts +0 -168
- package/dist/src/hbar.d.ts.map +0 -1
- package/dist/src/hbar.js +0 -483
- package/dist/src/hbarToken.d.ts +0 -21
- package/dist/src/hbarToken.d.ts.map +0 -1
- package/dist/src/hbarToken.js +0 -58
- package/dist/src/index.d.ts +0 -6
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -22
- package/dist/src/lib/coinTransferBuilder.d.ts +0 -47
- package/dist/src/lib/coinTransferBuilder.d.ts.map +0 -1
- package/dist/src/lib/coinTransferBuilder.js +0 -159
- package/dist/src/lib/constants.d.ts +0 -8
- package/dist/src/lib/constants.d.ts.map +0 -1
- package/dist/src/lib/constants.js +0 -12
- package/dist/src/lib/iface.d.ts +0 -50
- package/dist/src/lib/iface.d.ts.map +0 -1
- package/dist/src/lib/iface.js +0 -3
- package/dist/src/lib/index.d.ts +0 -10
- package/dist/src/lib/index.d.ts.map +0 -1
- package/dist/src/lib/index.js +0 -53
- package/dist/src/lib/keyPair.d.ts +0 -24
- package/dist/src/lib/keyPair.d.ts.map +0 -1
- package/dist/src/lib/keyPair.js +0 -70
- package/dist/src/lib/tokenAssociateBuilder.d.ts +0 -38
- package/dist/src/lib/tokenAssociateBuilder.d.ts.map +0 -1
- package/dist/src/lib/tokenAssociateBuilder.js +0 -107
- package/dist/src/lib/tokenTransferBuilder.d.ts +0 -25
- package/dist/src/lib/tokenTransferBuilder.d.ts.map +0 -1
- package/dist/src/lib/tokenTransferBuilder.js +0 -130
- package/dist/src/lib/transaction.d.ts +0 -106
- package/dist/src/lib/transaction.d.ts.map +0 -1
- package/dist/src/lib/transaction.js +0 -330
- package/dist/src/lib/transactionBuilder.d.ts +0 -111
- package/dist/src/lib/transactionBuilder.d.ts.map +0 -1
- package/dist/src/lib/transactionBuilder.js +0 -284
- package/dist/src/lib/transactionBuilderFactory.d.ts +0 -47
- package/dist/src/lib/transactionBuilderFactory.d.ts.map +0 -1
- package/dist/src/lib/transactionBuilderFactory.js +0 -88
- package/dist/src/lib/transferBuilder.d.ts +0 -24
- package/dist/src/lib/transferBuilder.d.ts.map +0 -1
- package/dist/src/lib/transferBuilder.js +0 -55
- package/dist/src/lib/utils.d.ts +0 -210
- package/dist/src/lib/utils.d.ts.map +0 -1
- package/dist/src/lib/utils.js +0 -481
- package/dist/src/lib/walletInitializationBuilder.d.ts +0 -28
- package/dist/src/lib/walletInitializationBuilder.d.ts.map +0 -1
- package/dist/src/lib/walletInitializationBuilder.js +0 -124
- package/dist/src/register.d.ts +0 -3
- package/dist/src/register.d.ts.map +0 -1
- package/dist/src/register.js +0 -15
- package/dist/src/seedValidator.d.ts +0 -31
- package/dist/src/seedValidator.d.ts.map +0 -1
- package/dist/src/seedValidator.js +0 -103
- package/dist/src/thbar.d.ts +0 -14
- package/dist/src/thbar.d.ts.map +0 -1
- package/dist/src/thbar.js +0 -17
package/.mocharc.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,145 @@
|
|
|
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.4.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.4.0...@bitgo/sdk-coin-hbar@2.4.1) (2025-09-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
9
|
+
|
|
10
|
+
# [2.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.3.4...@bitgo/sdk-coin-hbar@2.4.0) (2025-09-25)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **account-lib:** gRPC Memory Allocation Vulnerability ([3b9aee3](https://github.com/BitGo/BitGoJS/commit/3b9aee3bc4dcfe7a403f958362f177f4d881f490))
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
- configure learn to skip git operations ([ee3a622](https://github.com/BitGo/BitGoJS/commit/ee3a6220496476aa7f4545b5f4a9a3bf97d9bdb9))
|
|
19
|
+
|
|
20
|
+
## [2.3.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.3.3...@bitgo/sdk-coin-hbar@2.3.4) (2025-09-03)
|
|
21
|
+
|
|
22
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
23
|
+
|
|
24
|
+
## [2.3.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.3.2...@bitgo/sdk-coin-hbar@2.3.3) (2025-08-30)
|
|
25
|
+
|
|
26
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
27
|
+
|
|
28
|
+
## [2.3.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.3.1...@bitgo/sdk-coin-hbar@2.3.2) (2025-08-29)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
31
|
+
|
|
32
|
+
## [2.3.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.3.0...@bitgo/sdk-coin-hbar@2.3.1) (2025-08-27)
|
|
33
|
+
|
|
34
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
35
|
+
|
|
36
|
+
# [2.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.15...@bitgo/sdk-coin-hbar@2.3.0) (2025-08-22)
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
- **root:** migrate ts-node -> tsx ([ea180b4](https://github.com/BitGo/BitGoJS/commit/ea180b43001d8e956196bc07b32798e3a7031eeb))
|
|
41
|
+
|
|
42
|
+
## [2.2.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.14...@bitgo/sdk-coin-hbar@2.2.15) (2025-08-22)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
45
|
+
|
|
46
|
+
## [2.2.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.13...@bitgo/sdk-coin-hbar@2.2.14) (2025-08-19)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
49
|
+
|
|
50
|
+
## [2.2.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.12...@bitgo/sdk-coin-hbar@2.2.13) (2025-08-14)
|
|
51
|
+
|
|
52
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
53
|
+
|
|
54
|
+
## [2.2.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.11...@bitgo/sdk-coin-hbar@2.2.12) (2025-08-07)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
57
|
+
|
|
58
|
+
## [2.2.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.10...@bitgo/sdk-coin-hbar@2.2.11) (2025-07-31)
|
|
59
|
+
|
|
60
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
61
|
+
|
|
62
|
+
## [2.2.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.9...@bitgo/sdk-coin-hbar@2.2.10) (2025-07-30)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
65
|
+
|
|
66
|
+
## [2.2.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.7...@bitgo/sdk-coin-hbar@2.2.9) (2025-07-25)
|
|
67
|
+
|
|
68
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
69
|
+
|
|
70
|
+
## [2.2.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.7...@bitgo/sdk-coin-hbar@2.2.8) (2025-07-23)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
73
|
+
|
|
74
|
+
## [2.2.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.6...@bitgo/sdk-coin-hbar@2.2.7) (2025-07-15)
|
|
75
|
+
|
|
76
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
77
|
+
|
|
78
|
+
## [2.2.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.5...@bitgo/sdk-coin-hbar@2.2.6) (2025-07-10)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
81
|
+
|
|
82
|
+
## [2.2.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.4...@bitgo/sdk-coin-hbar@2.2.5) (2025-07-03)
|
|
83
|
+
|
|
84
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
85
|
+
|
|
86
|
+
## [2.2.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.3...@bitgo/sdk-coin-hbar@2.2.4) (2025-06-25)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
89
|
+
|
|
90
|
+
## [2.2.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.2...@bitgo/sdk-coin-hbar@2.2.3) (2025-06-24)
|
|
91
|
+
|
|
92
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
93
|
+
|
|
94
|
+
## [2.2.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.1...@bitgo/sdk-coin-hbar@2.2.2) (2025-06-18)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
97
|
+
|
|
98
|
+
## [2.2.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.2.0...@bitgo/sdk-coin-hbar@2.2.1) (2025-06-10)
|
|
99
|
+
|
|
100
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
101
|
+
|
|
102
|
+
# [2.2.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.1.0...@bitgo/sdk-coin-hbar@2.2.0) (2025-06-05)
|
|
103
|
+
|
|
104
|
+
### Features
|
|
105
|
+
|
|
106
|
+
- **root:** support node 22 ([c4ad6af](https://github.com/BitGo/BitGoJS/commit/c4ad6af2e8896221417c303f0f6b84652b493216))
|
|
107
|
+
|
|
108
|
+
# [2.1.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.0.82...@bitgo/sdk-coin-hbar@2.1.0) (2025-06-02)
|
|
109
|
+
|
|
110
|
+
### Bug Fixes
|
|
111
|
+
|
|
112
|
+
- **sdk-coin-hbar:** fix thbar usdc token id ([3234f57](https://github.com/BitGo/BitGoJS/commit/3234f57768ed8fe563f58955b4d23c6b4cdd4cb9))
|
|
113
|
+
|
|
114
|
+
### Features
|
|
115
|
+
|
|
116
|
+
- rename audit function naming and signature ([1a885ab](https://github.com/BitGo/BitGoJS/commit/1a885ab60d30ca8595e284a728f2ab9d3c09994e))
|
|
117
|
+
- **root:** add new audit key baseCoin method ([57c1778](https://github.com/BitGo/BitGoJS/commit/57c17784a72ea364f18e3af9dbd83da877827e69))
|
|
118
|
+
|
|
119
|
+
## [2.0.82](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.0.81...@bitgo/sdk-coin-hbar@2.0.82) (2025-05-28)
|
|
120
|
+
|
|
121
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
122
|
+
|
|
123
|
+
## [2.0.81](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.0.80...@bitgo/sdk-coin-hbar@2.0.81) (2025-05-22)
|
|
124
|
+
|
|
125
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
126
|
+
|
|
127
|
+
## [2.0.80](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.0.79...@bitgo/sdk-coin-hbar@2.0.80) (2025-05-20)
|
|
128
|
+
|
|
129
|
+
### Bug Fixes
|
|
130
|
+
|
|
131
|
+
- support memoid along with address for send transaction ([6b6d25a](https://github.com/BitGo/BitGoJS/commit/6b6d25a5003c49208a75b2c6fa21b54a0afae5ad))
|
|
132
|
+
|
|
133
|
+
## [2.0.79](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.0.78...@bitgo/sdk-coin-hbar@2.0.79) (2025-05-07)
|
|
134
|
+
|
|
135
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
136
|
+
|
|
137
|
+
## [2.0.78](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.0.77...@bitgo/sdk-coin-hbar@2.0.78) (2025-04-29)
|
|
138
|
+
|
|
139
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
140
|
+
|
|
141
|
+
## [2.0.77](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.0.76...@bitgo/sdk-coin-hbar@2.0.77) (2025-04-25)
|
|
142
|
+
|
|
143
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
|
144
|
+
|
|
6
145
|
## [2.0.76](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-hbar@2.0.75...@bitgo/sdk-coin-hbar@2.0.76) (2025-04-15)
|
|
7
146
|
|
|
8
147
|
**Note:** Version bump only for package @bitgo/sdk-coin-hbar
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo-beta/sdk-coin-hbar",
|
|
3
|
-
"version": "2.0.73-alpha.
|
|
3
|
+
"version": "2.0.73-alpha.110",
|
|
4
4
|
"description": "BitGo SDK coin library for Hbar",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=
|
|
21
|
+
"node": ">=20 <23"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@bitgo-beta/sdk-coin-algo": "1.3.3-alpha.
|
|
44
|
-
"@bitgo-beta/sdk-core": "2.4.1-alpha.
|
|
45
|
-
"@bitgo-beta/statics": "10.0.1-alpha.
|
|
43
|
+
"@bitgo-beta/sdk-coin-algo": "1.3.3-alpha.405",
|
|
44
|
+
"@bitgo-beta/sdk-core": "2.4.1-alpha.405",
|
|
45
|
+
"@bitgo-beta/statics": "10.0.1-alpha.405",
|
|
46
46
|
"@hashgraph/proto": "2.12.0",
|
|
47
|
-
"@hashgraph/sdk": "2.
|
|
47
|
+
"@hashgraph/sdk": "2.72.0",
|
|
48
48
|
"@stablelib/sha384": "^1.0.0",
|
|
49
49
|
"bignumber.js": "^9.0.0",
|
|
50
50
|
"lodash": "^4.17.15",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"tweetnacl": "^1.0.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@bitgo-beta/sdk-api": "1.6.1-alpha.
|
|
58
|
-
"@bitgo-beta/sdk-test": "^
|
|
57
|
+
"@bitgo-beta/sdk-api": "1.6.1-alpha.405",
|
|
58
|
+
"@bitgo-beta/sdk-test": "^9.1.1"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "b9c7b506feb91d5f7e77c5c95521ca8fcf9cd106"
|
|
61
61
|
}
|
package/dist/src/hbar.d.ts
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @prettier
|
|
3
|
-
*/
|
|
4
|
-
import { CoinFamily, BaseCoin as StaticsBaseCoin } from '@bitgo-beta/statics';
|
|
5
|
-
import { BaseCoin, BitGoBase, KeyPair, ParsedTransaction, ParseTransactionOptions, SignedTransaction, SignTransactionOptions, VerifyAddressOptions as BaseVerifyAddressOptions, VerifyTransactionOptions, TransactionFee, TransactionRecipient as Recipient, TransactionPrebuild as BaseTransactionPrebuild, TransactionExplanation, Memo, TokenEnablementConfig, BaseBroadcastTransactionOptions, BaseBroadcastTransactionResult, MultisigType } from '@bitgo-beta/sdk-core';
|
|
6
|
-
import { Client, Transaction as HbarTransaction, AccountBalanceJson } from '@hashgraph/sdk';
|
|
7
|
-
export interface HbarSignTransactionOptions extends SignTransactionOptions {
|
|
8
|
-
txPrebuild: TransactionPrebuild;
|
|
9
|
-
prv: string;
|
|
10
|
-
}
|
|
11
|
-
export interface TxInfo {
|
|
12
|
-
recipients: Recipient[];
|
|
13
|
-
from: string;
|
|
14
|
-
txid: string;
|
|
15
|
-
}
|
|
16
|
-
export interface TransactionPrebuild extends BaseTransactionPrebuild {
|
|
17
|
-
txHex: string;
|
|
18
|
-
txInfo: TxInfo;
|
|
19
|
-
feeInfo: TransactionFee;
|
|
20
|
-
source: string;
|
|
21
|
-
}
|
|
22
|
-
export interface ExplainTransactionOptions {
|
|
23
|
-
txHex?: string;
|
|
24
|
-
halfSigned?: {
|
|
25
|
-
txHex: string;
|
|
26
|
-
};
|
|
27
|
-
feeInfo?: TransactionFee;
|
|
28
|
-
memo?: {
|
|
29
|
-
type: string;
|
|
30
|
-
value: string;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export interface HbarVerifyTransactionOptions extends VerifyTransactionOptions {
|
|
34
|
-
txPrebuild: TransactionPrebuild;
|
|
35
|
-
memo?: Memo;
|
|
36
|
-
}
|
|
37
|
-
interface VerifyAddressOptions extends BaseVerifyAddressOptions {
|
|
38
|
-
baseAddress: string;
|
|
39
|
-
}
|
|
40
|
-
export interface RecoveryOptions {
|
|
41
|
-
backupKey: string;
|
|
42
|
-
userKey: string;
|
|
43
|
-
rootAddress: string;
|
|
44
|
-
recoveryDestination: string;
|
|
45
|
-
bitgoKey?: string;
|
|
46
|
-
walletPassphrase?: string;
|
|
47
|
-
maxFee?: string;
|
|
48
|
-
nodeId?: string;
|
|
49
|
-
startTime?: string;
|
|
50
|
-
tokenId?: string;
|
|
51
|
-
}
|
|
52
|
-
export interface RecoveryInfo {
|
|
53
|
-
id: string;
|
|
54
|
-
tx: string;
|
|
55
|
-
coin: string;
|
|
56
|
-
startTime: string;
|
|
57
|
-
nodeId: string;
|
|
58
|
-
}
|
|
59
|
-
export interface OfflineVaultTxInfo {
|
|
60
|
-
txHex: string;
|
|
61
|
-
userKey: string;
|
|
62
|
-
backupKey: string;
|
|
63
|
-
bitgoKey?: string;
|
|
64
|
-
address: string;
|
|
65
|
-
coin: string;
|
|
66
|
-
maxFee: string;
|
|
67
|
-
recipients: Recipient[];
|
|
68
|
-
amount: string;
|
|
69
|
-
startTime: string;
|
|
70
|
-
validDuration: string;
|
|
71
|
-
nodeId: string;
|
|
72
|
-
memo: string;
|
|
73
|
-
json?: any;
|
|
74
|
-
}
|
|
75
|
-
export interface BroadcastTransactionOptions extends BaseBroadcastTransactionOptions {
|
|
76
|
-
startTime?: string;
|
|
77
|
-
}
|
|
78
|
-
export interface BroadcastTransactionResult extends BaseBroadcastTransactionResult {
|
|
79
|
-
status?: string;
|
|
80
|
-
}
|
|
81
|
-
export declare class Hbar extends BaseCoin {
|
|
82
|
-
protected readonly _staticsCoin: Readonly<StaticsBaseCoin>;
|
|
83
|
-
constructor(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>);
|
|
84
|
-
getChain(): string;
|
|
85
|
-
getFamily(): CoinFamily;
|
|
86
|
-
getFullName(): string;
|
|
87
|
-
getBaseFactor(): number;
|
|
88
|
-
static createInstance(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>): BaseCoin;
|
|
89
|
-
/**
|
|
90
|
-
* Flag for sending value of 0
|
|
91
|
-
* @returns {boolean} True if okay to send 0 value, false otherwise
|
|
92
|
-
*/
|
|
93
|
-
valuelessTransferAllowed(): boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Checks if this is a valid base58 or hex address
|
|
96
|
-
* @param address
|
|
97
|
-
*/
|
|
98
|
-
isValidAddress(address: string): boolean;
|
|
99
|
-
/** inheritdoc */
|
|
100
|
-
deriveKeyWithSeed(): {
|
|
101
|
-
derivationPath: string;
|
|
102
|
-
key: string;
|
|
103
|
-
};
|
|
104
|
-
/** inheritdoc */
|
|
105
|
-
generateKeyPair(seed?: Buffer): KeyPair;
|
|
106
|
-
/** inheritdoc */
|
|
107
|
-
generateRootKeyPair(seed?: Buffer): KeyPair;
|
|
108
|
-
parseTransaction(params: ParseTransactionOptions): Promise<ParsedTransaction>;
|
|
109
|
-
/**
|
|
110
|
-
* Check if address is valid, then make sure it matches the base address.
|
|
111
|
-
*
|
|
112
|
-
* @param {VerifyAddressOptions} params
|
|
113
|
-
* @param {String} params.address - the address to verify
|
|
114
|
-
* @param {String} params.baseAddress - the base address from the wallet
|
|
115
|
-
*/
|
|
116
|
-
isWalletAddress(params: VerifyAddressOptions): Promise<boolean>;
|
|
117
|
-
verifyTransaction(params: HbarVerifyTransactionOptions): Promise<boolean>;
|
|
118
|
-
/**
|
|
119
|
-
* Assemble keychain and half-sign prebuilt transaction
|
|
120
|
-
*
|
|
121
|
-
* @param params
|
|
122
|
-
* @param params.txPrebuild {Object} prebuild object returned by platform
|
|
123
|
-
* @param params.prv {String} user prv
|
|
124
|
-
* @returns Promise<SignedTransaction>
|
|
125
|
-
*/
|
|
126
|
-
signTransaction(params: HbarSignTransactionOptions): Promise<SignedTransaction>;
|
|
127
|
-
/**
|
|
128
|
-
* Sign message with private key
|
|
129
|
-
*
|
|
130
|
-
* @param key
|
|
131
|
-
* @param message
|
|
132
|
-
* @return {Buffer} A signature over the given message using the given key
|
|
133
|
-
*/
|
|
134
|
-
signMessage(key: KeyPair, message: string | Buffer): Promise<Buffer>;
|
|
135
|
-
/**
|
|
136
|
-
* Builds a funds recovery transaction without BitGo.
|
|
137
|
-
* We need to do three queries during this:
|
|
138
|
-
* 1) Node query - how much money is in the account
|
|
139
|
-
* 2) Build transaction - build our transaction for the amount
|
|
140
|
-
* 3) Send signed build - send our signed build to a public node
|
|
141
|
-
* @param params
|
|
142
|
-
*/
|
|
143
|
-
recover(params: RecoveryOptions): Promise<RecoveryInfo | OfflineVaultTxInfo>;
|
|
144
|
-
/**
|
|
145
|
-
* Explain a Hedera transaction from txHex
|
|
146
|
-
* @param params
|
|
147
|
-
*/
|
|
148
|
-
explainTransaction(params: ExplainTransactionOptions): Promise<TransactionExplanation>;
|
|
149
|
-
isStellarSeed(seed: string): boolean;
|
|
150
|
-
convertFromStellarSeed(seed: string): string | null;
|
|
151
|
-
isValidPub(pub: string): boolean;
|
|
152
|
-
supportsDeriveKeyWithSeed(): boolean;
|
|
153
|
-
/** {@inheritDoc } **/
|
|
154
|
-
supportsMultisig(): boolean;
|
|
155
|
-
/** inherited doc */
|
|
156
|
-
getDefaultMultisigType(): MultisigType;
|
|
157
|
-
getTokenEnablementConfig(): TokenEnablementConfig;
|
|
158
|
-
private getBuilderFactory;
|
|
159
|
-
private getHbarClient;
|
|
160
|
-
getAccountBalance(accountId: string, client: Client): Promise<AccountBalanceJson>;
|
|
161
|
-
broadcastTransaction({ serializedSignedTransaction, startTime, }: BroadcastTransactionOptions): Promise<BroadcastTransactionResult>;
|
|
162
|
-
clientBroadcastTransaction(hbarTx: HbarTransaction): Promise<{
|
|
163
|
-
txId: string;
|
|
164
|
-
status: string;
|
|
165
|
-
}>;
|
|
166
|
-
}
|
|
167
|
-
export {};
|
|
168
|
-
//# sourceMappingURL=hbar.d.ts.map
|
package/dist/src/hbar.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hbar.d.ts","sourceRoot":"","sources":["../../src/hbar.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,QAAQ,IAAI,eAAe,EAAS,MAAM,qBAAqB,CAAC;AACrF,OAAO,EACL,QAAQ,EACR,SAAS,EACT,OAAO,EACP,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,IAAI,wBAAwB,EAChD,wBAAwB,EACxB,cAAc,EACd,oBAAoB,IAAI,SAAS,EACjC,mBAAmB,IAAI,uBAAuB,EAC9C,sBAAsB,EACtB,IAAI,EACJ,qBAAqB,EACrB,+BAA+B,EAC/B,8BAA8B,EAE9B,YAAY,EAEb,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EACL,MAAM,EACN,WAAW,IAAI,eAAe,EAE9B,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACxE,UAAU,EAAE,mBAAmB,CAAC;IAChC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,MAAM;IACrB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACx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