@bitgo/sdk-coin-eos 3.3.13 → 3.3.14
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 +4 -0
- package/package.json +6 -6
- package/LICENSE +0 -191
- package/dist/src/eos.d.ts +0 -283
- package/dist/src/eos.d.ts.map +0 -1
- package/dist/src/eos.js +0 -897
- package/dist/src/eosToken.d.ts +0 -36
- package/dist/src/eosToken.d.ts.map +0 -1
- package/dist/src/eosToken.js +0 -74
- package/dist/src/eosutil/eosabiprovider.d.ts +0 -8
- package/dist/src/eosutil/eosabiprovider.d.ts.map +0 -1
- package/dist/src/eosutil/eosabiprovider.js +0 -33
- 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/address.d.ts +0 -5
- package/dist/src/lib/address.d.ts.map +0 -1
- package/dist/src/lib/address.js +0 -7
- package/dist/src/lib/enum.d.ts +0 -5
- package/dist/src/lib/enum.d.ts.map +0 -1
- package/dist/src/lib/enum.js +0 -10
- package/dist/src/lib/iface.d.ts +0 -1
- package/dist/src/lib/iface.d.ts.map +0 -1
- package/dist/src/lib/iface.js +0 -1
- package/dist/src/lib/index.d.ts +0 -6
- package/dist/src/lib/index.d.ts.map +0 -1
- package/dist/src/lib/index.js +0 -17
- package/dist/src/lib/keyPair.d.ts +0 -16
- package/dist/src/lib/keyPair.d.ts.map +0 -1
- package/dist/src/lib/keyPair.js +0 -38
- package/dist/src/lib/transaction.d.ts +0 -7
- package/dist/src/lib/transaction.d.ts.map +0 -1
- package/dist/src/lib/transaction.js +0 -17
- package/dist/src/lib/transactionBuilder.d.ts +0 -15
- package/dist/src/lib/transactionBuilder.d.ts.map +0 -1
- package/dist/src/lib/transactionBuilder.js +0 -38
- package/dist/src/lib/transactionBuilderFactory.d.ts +0 -7
- package/dist/src/lib/transactionBuilderFactory.d.ts.map +0 -1
- package/dist/src/lib/transactionBuilderFactory.js +0 -17
- package/dist/src/lib/utils.d.ts +0 -8
- package/dist/src/lib/utils.d.ts.map +0 -1
- package/dist/src/lib/utils.js +0 -24
- 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/teos.d.ts +0 -10
- package/dist/src/teos.d.ts.map +0 -1
- package/dist/src/teos.js +0 -24
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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
|
+
## [3.3.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eos@3.3.13...@bitgo/sdk-coin-eos@3.3.14) (2025-08-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-eos
|
|
9
|
+
|
|
6
10
|
## [3.3.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eos@3.3.12...@bitgo/sdk-coin-eos@3.3.13) (2025-08-19)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @bitgo/sdk-coin-eos
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo/sdk-coin-eos",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.14",
|
|
4
4
|
"description": "BitGo SDK coin library for Eos",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@bitgo/sdk-core": "^36.
|
|
43
|
+
"@bitgo/sdk-core": "^36.4.0",
|
|
44
44
|
"@bitgo/secp256k1": "^1.4.0",
|
|
45
|
-
"@bitgo/statics": "^57.
|
|
45
|
+
"@bitgo/statics": "^57.4.0",
|
|
46
46
|
"bignumber.js": "^9.0.2",
|
|
47
47
|
"eosjs": "^21.0.2",
|
|
48
48
|
"eosjs-ecc": "^4.0.4",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"superagent": "^9.0.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@bitgo/sdk-api": "^1.66.
|
|
54
|
-
"@bitgo/sdk-test": "^9.0.
|
|
53
|
+
"@bitgo/sdk-api": "^1.66.3",
|
|
54
|
+
"@bitgo/sdk-test": "^9.0.4",
|
|
55
55
|
"@types/lodash": "^4.14.121"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "7647f437fdb9b12d9b749274615285e5a69cf899"
|
|
58
58
|
}
|
package/LICENSE
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Apache License
|
|
3
|
-
Version 2.0, January 2004
|
|
4
|
-
http://www.apache.org/licenses/
|
|
5
|
-
|
|
6
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
-
|
|
8
|
-
1. Definitions.
|
|
9
|
-
|
|
10
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
-
|
|
13
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
-
the copyright owner that is granting the License.
|
|
15
|
-
|
|
16
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
-
other entities that control, are controlled by, or are under common
|
|
18
|
-
control with that entity. For the purposes of this definition,
|
|
19
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
-
direction or management of such entity, whether by contract or
|
|
21
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
-
|
|
24
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
-
exercising permissions granted by this License.
|
|
26
|
-
|
|
27
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
-
including but not limited to software source code, documentation
|
|
29
|
-
source, and configuration files.
|
|
30
|
-
|
|
31
|
-
"Object" form shall mean any form resulting from mechanical
|
|
32
|
-
transformation or translation of a Source form, including but
|
|
33
|
-
not limited to compiled object code, generated documentation,
|
|
34
|
-
and conversions to other media types.
|
|
35
|
-
|
|
36
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
-
Object form, made available under the License, as indicated by a
|
|
38
|
-
copyright notice that is included in or attached to the work
|
|
39
|
-
(an example is provided in the Appendix below).
|
|
40
|
-
|
|
41
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
-
form, that is based on (or derived from) the Work and for which the
|
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
-
of this License, Derivative Works shall not include works that remain
|
|
46
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
-
the Work and Derivative Works thereof.
|
|
48
|
-
|
|
49
|
-
"Contribution" shall mean any work of authorship, including
|
|
50
|
-
the original version of the Work and any modifications or additions
|
|
51
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
-
means any form of electronic, verbal, or written communication sent
|
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
-
excluding communication that is conspicuously marked or otherwise
|
|
61
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
-
|
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
-
subsequently incorporated within the Work.
|
|
66
|
-
|
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
|
73
|
-
|
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
Copyright 2022 BitGo
|
|
180
|
-
|
|
181
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
-
you may not use this file except in compliance with the License.
|
|
183
|
-
You may obtain a copy of the License at
|
|
184
|
-
|
|
185
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
-
|
|
187
|
-
Unless required by applicable law or agreed to in writing, software
|
|
188
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
-
See the License for the specific language governing permissions and
|
|
191
|
-
limitations under the License.
|
package/dist/src/eos.d.ts
DELETED
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import { BIP32Interface } from '@bitgo/secp256k1';
|
|
2
|
-
import * as request from 'superagent';
|
|
3
|
-
import { AuditDecryptedKeyParams, BaseCoin, BitGoBase, HalfSignedAccountTransaction as BaseHalfSignedTransaction, KeyPair, MultisigType, ParsedTransaction, ParseTransactionOptions, RequestTracer, SignTransactionOptions as BaseSignTransactionOptions, TransactionExplanation, VerificationOptions, VerifyAddressOptions as BaseVerifyAddressOptions, VerifyTransactionOptions as BaseVerifyTransactionOptions, Wallet } from '@bitgo/sdk-core';
|
|
4
|
-
interface AddressDetails {
|
|
5
|
-
address: string;
|
|
6
|
-
memoId?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface EosTx {
|
|
9
|
-
signatures: string[];
|
|
10
|
-
packed_trx: string;
|
|
11
|
-
compression: string;
|
|
12
|
-
}
|
|
13
|
-
export interface Recipient {
|
|
14
|
-
address: string;
|
|
15
|
-
amount: string;
|
|
16
|
-
}
|
|
17
|
-
interface EosTransactionHeaders {
|
|
18
|
-
ref_block_prefix: number;
|
|
19
|
-
ref_block_num: number;
|
|
20
|
-
expiration?: string;
|
|
21
|
-
}
|
|
22
|
-
interface EosTransactionAction {
|
|
23
|
-
account: string;
|
|
24
|
-
name: string;
|
|
25
|
-
authorization: [{
|
|
26
|
-
actor: string;
|
|
27
|
-
permission: string;
|
|
28
|
-
}];
|
|
29
|
-
data: TransferActionData | StakeActionData | VoteActionData;
|
|
30
|
-
}
|
|
31
|
-
interface EosTransactionPrebuild {
|
|
32
|
-
recipients: Recipient[];
|
|
33
|
-
headers: EosTransactionHeaders;
|
|
34
|
-
txHex: string;
|
|
35
|
-
transaction: EosTx;
|
|
36
|
-
txid: string;
|
|
37
|
-
coin: string;
|
|
38
|
-
token?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface EosSignTransactionParams extends BaseSignTransactionOptions {
|
|
41
|
-
prv: string;
|
|
42
|
-
txPrebuild: EosTransactionPrebuild;
|
|
43
|
-
recipients: Recipient[];
|
|
44
|
-
}
|
|
45
|
-
export interface EosVerifyTransactionOptions extends BaseVerifyTransactionOptions {
|
|
46
|
-
txPrebuild: EosTransactionPrebuild;
|
|
47
|
-
txParams: EosSignTransactionParams;
|
|
48
|
-
wallet: Wallet;
|
|
49
|
-
verification?: VerificationOptions;
|
|
50
|
-
reqId?: RequestTracer;
|
|
51
|
-
}
|
|
52
|
-
export interface EosHalfSigned {
|
|
53
|
-
recipients: Recipient[];
|
|
54
|
-
headers: EosTransactionHeaders;
|
|
55
|
-
txHex: string;
|
|
56
|
-
transaction: EosTx;
|
|
57
|
-
txid: string;
|
|
58
|
-
}
|
|
59
|
-
export interface EosSignedTransaction extends BaseHalfSignedTransaction {
|
|
60
|
-
halfSigned: EosHalfSigned;
|
|
61
|
-
}
|
|
62
|
-
interface TransferActionData {
|
|
63
|
-
from: string;
|
|
64
|
-
to: string;
|
|
65
|
-
quantity: string;
|
|
66
|
-
memo?: string;
|
|
67
|
-
}
|
|
68
|
-
interface StakeActionData {
|
|
69
|
-
address: string;
|
|
70
|
-
amount: string;
|
|
71
|
-
from: string;
|
|
72
|
-
receiver: string;
|
|
73
|
-
transfer: number;
|
|
74
|
-
stake_cpu_quantity: string;
|
|
75
|
-
}
|
|
76
|
-
interface VoteActionData {
|
|
77
|
-
address: string;
|
|
78
|
-
proxy: string;
|
|
79
|
-
producers: string[];
|
|
80
|
-
voter: string;
|
|
81
|
-
}
|
|
82
|
-
interface ExplainTransactionOptions {
|
|
83
|
-
transaction: {
|
|
84
|
-
packed_trx: string;
|
|
85
|
-
};
|
|
86
|
-
headers: EosTransactionHeaders;
|
|
87
|
-
}
|
|
88
|
-
interface RecoveryTransaction {
|
|
89
|
-
transaction: EosTx;
|
|
90
|
-
txid: string;
|
|
91
|
-
recoveryAmount: number;
|
|
92
|
-
}
|
|
93
|
-
interface RecoveryOptions {
|
|
94
|
-
userKey: string;
|
|
95
|
-
backupKey: string;
|
|
96
|
-
bitgoKey?: string;
|
|
97
|
-
recoveryDestination: string;
|
|
98
|
-
krsProvider?: string;
|
|
99
|
-
walletPassphrase?: string;
|
|
100
|
-
rootAddress?: string;
|
|
101
|
-
}
|
|
102
|
-
interface VerifyAddressOptions extends BaseVerifyAddressOptions {
|
|
103
|
-
rootAddress: string;
|
|
104
|
-
}
|
|
105
|
-
export declare class Eos extends BaseCoin {
|
|
106
|
-
static VALID_ADDRESS_CHARS: string[];
|
|
107
|
-
static ADDRESS_LENGTH: number;
|
|
108
|
-
static createInstance(bitgo: BitGoBase): BaseCoin;
|
|
109
|
-
getChainId(): string;
|
|
110
|
-
getChain(): string;
|
|
111
|
-
getFamily(): string;
|
|
112
|
-
getFullName(): string;
|
|
113
|
-
getBaseFactor(): number;
|
|
114
|
-
get decimalPlaces(): number;
|
|
115
|
-
/** inherited doc */
|
|
116
|
-
getDefaultMultisigType(): MultisigType;
|
|
117
|
-
/**
|
|
118
|
-
* Flag for sending value of 0
|
|
119
|
-
* @returns {boolean} True if okay to send 0 value, false otherwise
|
|
120
|
-
*/
|
|
121
|
-
valuelessTransferAllowed(): boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Get URLs of some active public nodes
|
|
124
|
-
*/
|
|
125
|
-
getPublicNodeUrls(): string[];
|
|
126
|
-
/**
|
|
127
|
-
* Generate secp256k1 key pair
|
|
128
|
-
*
|
|
129
|
-
* @param seed - Seed from which the new keypair should be generated, otherwise a random seed is used
|
|
130
|
-
*/
|
|
131
|
-
generateKeyPair(seed?: Buffer): KeyPair;
|
|
132
|
-
/**
|
|
133
|
-
* Return boolean indicating whether input is valid public key for the coin.
|
|
134
|
-
*
|
|
135
|
-
* @param pub - the pub to be checked
|
|
136
|
-
*/
|
|
137
|
-
isValidPub(pub: string): boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Return boolean indicating whether input is valid seed for the coin
|
|
140
|
-
*
|
|
141
|
-
* @param prv - the prv to be checked
|
|
142
|
-
*/
|
|
143
|
-
isValidPrv(prv: string): boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Evaluates whether a memo is valid
|
|
146
|
-
*
|
|
147
|
-
* @param value - the memo to be checked
|
|
148
|
-
*/
|
|
149
|
-
isValidMemo({ value }: {
|
|
150
|
-
value: string;
|
|
151
|
-
}): boolean;
|
|
152
|
-
/**
|
|
153
|
-
* Return boolean indicating whether a memo id is valid
|
|
154
|
-
*
|
|
155
|
-
* @param memoId - the memo id to be checked
|
|
156
|
-
*/
|
|
157
|
-
isValidMemoId(memoId: string): boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Process address into address and memo id
|
|
160
|
-
* @param address - the address
|
|
161
|
-
*/
|
|
162
|
-
getAddressDetails(address: string): AddressDetails;
|
|
163
|
-
/**
|
|
164
|
-
* Convert a currency amount represented in base units (satoshi, wei, atoms, drops, stroops)
|
|
165
|
-
* to big units (btc, eth, xrp, xlm)
|
|
166
|
-
*/
|
|
167
|
-
baseUnitsToBigUnits(baseUnits: string | number): string;
|
|
168
|
-
/**
|
|
169
|
-
* Validate and return address with appended memo id
|
|
170
|
-
*
|
|
171
|
-
* @param address
|
|
172
|
-
* @param memoId
|
|
173
|
-
*/
|
|
174
|
-
normalizeAddress({ address, memoId }: AddressDetails): string;
|
|
175
|
-
/**
|
|
176
|
-
* Return boolean indicating whether input is valid public key for the coin
|
|
177
|
-
*
|
|
178
|
-
* @param address - the address to be checked
|
|
179
|
-
*/
|
|
180
|
-
isValidAddress(address: string): boolean;
|
|
181
|
-
/**
|
|
182
|
-
* @param address - the address to verify
|
|
183
|
-
* @param rootAddress - the wallet's root address
|
|
184
|
-
* @return true iff address is a wallet address (based on rootAddress)
|
|
185
|
-
*/
|
|
186
|
-
isWalletAddress({ address, rootAddress }: VerifyAddressOptions): Promise<boolean>;
|
|
187
|
-
/**
|
|
188
|
-
* Assemble keychain and half-sign prebuilt transaction
|
|
189
|
-
*
|
|
190
|
-
* @param params
|
|
191
|
-
* @param params.txPrebuild {Object} prebuild object returned by platform
|
|
192
|
-
* @param params.prv {String} user prv
|
|
193
|
-
* @returns {Promise<EosSignedTransaction>}
|
|
194
|
-
*/
|
|
195
|
-
signTransaction(params: EosSignTransactionParams): Promise<EosSignedTransaction>;
|
|
196
|
-
private validateStakeActionData;
|
|
197
|
-
private validateUnstakeActionData;
|
|
198
|
-
private static validateVoteActionData;
|
|
199
|
-
private static createTransactionIdHex;
|
|
200
|
-
/**
|
|
201
|
-
* Deserialize a transaction
|
|
202
|
-
* @param transaction
|
|
203
|
-
* @param headers
|
|
204
|
-
*/
|
|
205
|
-
private deserializeTransaction;
|
|
206
|
-
/**
|
|
207
|
-
* Explain/parse transaction
|
|
208
|
-
* @param params - ExplainTransactionOptions
|
|
209
|
-
*/
|
|
210
|
-
explainTransaction(params: ExplainTransactionOptions): Promise<TransactionExplanation>;
|
|
211
|
-
/**
|
|
212
|
-
* @deprecated
|
|
213
|
-
*/
|
|
214
|
-
initiateRecovery(params: RecoveryOptions): never;
|
|
215
|
-
/**
|
|
216
|
-
* Make a request to one of the public EOS nodes available
|
|
217
|
-
* @param params.endpoint
|
|
218
|
-
* @param params.payload
|
|
219
|
-
*/
|
|
220
|
-
protected getDataFromNode(params: {
|
|
221
|
-
endpoint: string;
|
|
222
|
-
payload?: Record<string, unknown>;
|
|
223
|
-
}): Promise<request.Response>;
|
|
224
|
-
/**
|
|
225
|
-
* Get EOS chain info from a public node
|
|
226
|
-
*/
|
|
227
|
-
protected getChainInfoFromNode(): Promise<any>;
|
|
228
|
-
/**
|
|
229
|
-
* Get data specific to an account from a public node
|
|
230
|
-
* @param address
|
|
231
|
-
*/
|
|
232
|
-
protected getAccountFromNode({ address }: {
|
|
233
|
-
address: string;
|
|
234
|
-
}): Promise<any>;
|
|
235
|
-
/**
|
|
236
|
-
* Get block data from a public node using its block number or block id
|
|
237
|
-
* @param blockNumOrId
|
|
238
|
-
*/
|
|
239
|
-
protected getBlockFromNode({ blockNumOrId }: {
|
|
240
|
-
blockNumOrId: string;
|
|
241
|
-
}): Promise<any>;
|
|
242
|
-
/**
|
|
243
|
-
* Get headers for an EOS tx from a public node
|
|
244
|
-
*/
|
|
245
|
-
protected getTransactionHeadersFromNode(): Promise<any>;
|
|
246
|
-
protected getTransferAction({ recipient, sender, amount, memo }: any): EosTransactionAction;
|
|
247
|
-
/**
|
|
248
|
-
* Sign a transaction with a key
|
|
249
|
-
* @param signableTx
|
|
250
|
-
* @param signingKey
|
|
251
|
-
*/
|
|
252
|
-
signTx(signableTx: string, signingKey: BIP32Interface): string;
|
|
253
|
-
/**
|
|
254
|
-
* Builds a funds recovery transaction without BitGo
|
|
255
|
-
* @param params
|
|
256
|
-
*/
|
|
257
|
-
recover(params: RecoveryOptions): Promise<RecoveryTransaction>;
|
|
258
|
-
parseTransaction(params: ParseTransactionOptions): Promise<ParsedTransaction>;
|
|
259
|
-
/**
|
|
260
|
-
* Verify that a transaction prebuild complies with the original intention
|
|
261
|
-
*
|
|
262
|
-
* @param params
|
|
263
|
-
* @param params.txParams params used to build the transaction
|
|
264
|
-
* @param params.txPrebuild the prebuilt transaction
|
|
265
|
-
*/
|
|
266
|
-
verifyTransaction(params: EosVerifyTransactionOptions): Promise<any>;
|
|
267
|
-
/**
|
|
268
|
-
* Generate a random EOS address.
|
|
269
|
-
*
|
|
270
|
-
* This is just a random string which abides by the EOS adddress constraints,
|
|
271
|
-
* and is not actually checked for availability on the EOS blockchain.
|
|
272
|
-
*
|
|
273
|
-
* Current EOS address constraints are:
|
|
274
|
-
* * Address must be exactly 12 characters
|
|
275
|
-
* * Address must only contain lowercase letters and numbers 1-5
|
|
276
|
-
* @returns a validly formatted EOS address, which may or may not actually be available on chain.
|
|
277
|
-
*/
|
|
278
|
-
generateRandomAddress(params: Record<string, never>): string;
|
|
279
|
-
/** @inheritDoc */
|
|
280
|
-
auditDecryptedKey(params: AuditDecryptedKeyParams): void;
|
|
281
|
-
}
|
|
282
|
-
export {};
|
|
283
|
-
//# sourceMappingURL=eos.d.ts.map
|
package/dist/src/eos.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eos.d.ts","sourceRoot":"","sources":["../../src/eos.ts"],"names":[],"mappings":"AAIA,OAAO,EAAS,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOzD,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAKtC,OAAO,EACL,uBAAuB,EACvB,QAAQ,EACR,SAAS,EAMT,4BAA4B,IAAI,yBAAyB,EAEzD,OAAO,EAEP,YAAY,EAEZ,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,EACb,sBAAsB,IAAI,0BAA0B,EACpD,sBAAsB,EAEtB,mBAAmB,EACnB,oBAAoB,IAAI,wBAAwB,EAChD,wBAAwB,IAAI,4BAA4B,EACxD,MAAM,EACP,MAAM,iBAAiB,CAAC;AAEzB,UAAU,cAAc;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC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