@orbis1/rgb-lib-darwin-x64 0.3.0-beta.11 → 0.3.0-beta.13
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/package.json
CHANGED
|
@@ -40,7 +40,7 @@ CResultString rgblib_backup_info(const COpaqueStruct *wallet);
|
|
|
40
40
|
CResultString rgblib_blind_receive(const COpaqueStruct *wallet,
|
|
41
41
|
const char *asset_id_opt,
|
|
42
42
|
const char *assignment,
|
|
43
|
-
const char *
|
|
43
|
+
const char *expiration_timestamp_opt,
|
|
44
44
|
const char *transport_endpoints,
|
|
45
45
|
const char *min_confirmations);
|
|
46
46
|
|
|
@@ -52,6 +52,29 @@ CResultString rgblib_create_utxos(const COpaqueStruct *wallet,
|
|
|
52
52
|
const char *fee_rate,
|
|
53
53
|
bool skip_sync);
|
|
54
54
|
|
|
55
|
+
CResultString rgblib_create_utxos_begin(const COpaqueStruct *wallet,
|
|
56
|
+
const COpaqueStruct *online,
|
|
57
|
+
bool up_to,
|
|
58
|
+
const char *num_opt,
|
|
59
|
+
const char *size_opt,
|
|
60
|
+
const char *fee_rate,
|
|
61
|
+
bool skip_sync);
|
|
62
|
+
|
|
63
|
+
CResultString rgblib_create_utxos_end(const COpaqueStruct *wallet,
|
|
64
|
+
const COpaqueStruct *online,
|
|
65
|
+
const char *signed_psbt,
|
|
66
|
+
bool skip_sync);
|
|
67
|
+
|
|
68
|
+
CResultString rgblib_delete_transfers(const COpaqueStruct *wallet,
|
|
69
|
+
const char *batch_transfer_idx_opt,
|
|
70
|
+
bool no_asset_only);
|
|
71
|
+
|
|
72
|
+
CResultString rgblib_fail_transfers(const COpaqueStruct *wallet,
|
|
73
|
+
const COpaqueStruct *online,
|
|
74
|
+
const char *batch_transfer_idx_opt,
|
|
75
|
+
bool no_asset_only,
|
|
76
|
+
bool skip_sync);
|
|
77
|
+
|
|
55
78
|
CResultString rgblib_finalize_psbt(const COpaqueStruct *wallet, const char *signed_psbt);
|
|
56
79
|
|
|
57
80
|
CResultString rgblib_generate_keys(const char *bitcoin_network);
|
|
@@ -60,6 +83,8 @@ CResultString rgblib_get_address(const COpaqueStruct *wallet);
|
|
|
60
83
|
|
|
61
84
|
CResultString rgblib_get_asset_balance(const COpaqueStruct *wallet, const char *asset_id);
|
|
62
85
|
|
|
86
|
+
CResultString rgblib_get_asset_metadata(const COpaqueStruct *wallet, const char *asset_id);
|
|
87
|
+
|
|
63
88
|
CResultString rgblib_get_btc_balance(const COpaqueStruct *wallet,
|
|
64
89
|
const COpaqueStruct *online,
|
|
65
90
|
bool skip_sync);
|
|
@@ -94,7 +119,6 @@ CResultString rgblib_issue_asset_ifa(const COpaqueStruct *wallet,
|
|
|
94
119
|
const char *precision,
|
|
95
120
|
const char *amounts,
|
|
96
121
|
const char *inflation_amounts,
|
|
97
|
-
const char *replace_rights_num,
|
|
98
122
|
const char *reject_list_url_opt);
|
|
99
123
|
|
|
100
124
|
CResultString rgblib_issue_asset_nia(const COpaqueStruct *wallet,
|
|
@@ -124,7 +148,7 @@ CResultString rgblib_list_unspents(const COpaqueStruct *wallet,
|
|
|
124
148
|
bool settled_only,
|
|
125
149
|
bool skip_sync);
|
|
126
150
|
|
|
127
|
-
CResult rgblib_new_wallet(const char *wallet_data);
|
|
151
|
+
CResult rgblib_new_wallet(const char *wallet_data, const char *keys);
|
|
128
152
|
|
|
129
153
|
CResultString rgblib_refresh(const COpaqueStruct *wallet,
|
|
130
154
|
const COpaqueStruct *online,
|
|
@@ -144,6 +168,7 @@ CResultString rgblib_send(const COpaqueStruct *wallet,
|
|
|
144
168
|
bool donation,
|
|
145
169
|
const char *fee_rate,
|
|
146
170
|
const char *min_confirmations,
|
|
171
|
+
const char *expiration_timestamp_opt,
|
|
147
172
|
bool skip_sync);
|
|
148
173
|
|
|
149
174
|
CResultString rgblib_send_begin(const COpaqueStruct *wallet,
|
|
@@ -152,6 +177,8 @@ CResultString rgblib_send_begin(const COpaqueStruct *wallet,
|
|
|
152
177
|
bool donation,
|
|
153
178
|
const char *fee_rate,
|
|
154
179
|
const char *min_confirmations,
|
|
180
|
+
const char *expiration_timestamp_opt,
|
|
181
|
+
bool dry_run,
|
|
155
182
|
const char *external_inputs,
|
|
156
183
|
const char *external_outputs);
|
|
157
184
|
|
|
@@ -173,13 +200,14 @@ CResultString rgblib_sync(const COpaqueStruct *wallet, const COpaqueStruct *onli
|
|
|
173
200
|
|
|
174
201
|
CResultString rgblib_verify_consignment_amount(const COpaqueStruct *wallet,
|
|
175
202
|
const char *consignment_path,
|
|
203
|
+
const char *psbt_path,
|
|
176
204
|
const char *recipient_id,
|
|
177
205
|
const char *expected_amount);
|
|
178
206
|
|
|
179
207
|
CResultString rgblib_witness_receive(const COpaqueStruct *wallet,
|
|
180
208
|
const char *asset_id_opt,
|
|
181
209
|
const char *assignment,
|
|
182
|
-
const char *
|
|
210
|
+
const char *expiration_timestamp_opt,
|
|
183
211
|
const char *transport_endpoints,
|
|
184
212
|
const char *min_confirmations);
|
|
185
213
|
|
package/wrapper.js
CHANGED
|
@@ -716,10 +716,11 @@ exports.Wallet = class Wallet {
|
|
|
716
716
|
);
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
-
verifyConsignmentAmount(consignmentPath, recipientId, expectedAmount) {
|
|
720
|
-
const params = { consignmentPath, recipientId, expectedAmount };
|
|
719
|
+
verifyConsignmentAmount(consignmentPath, psbtPath, recipientId, expectedAmount) {
|
|
720
|
+
const params = { consignmentPath, psbtPath, recipientId, expectedAmount };
|
|
721
721
|
const expectedTypes = {
|
|
722
722
|
consignmentPath: "string",
|
|
723
|
+
psbtPath: "string",
|
|
723
724
|
recipientId: "string",
|
|
724
725
|
expectedAmount: "u64",
|
|
725
726
|
};
|
|
@@ -728,6 +729,7 @@ exports.Wallet = class Wallet {
|
|
|
728
729
|
const result = lib.rgblib_verify_consignment_amount(
|
|
729
730
|
this.wallet,
|
|
730
731
|
consignmentPath,
|
|
732
|
+
psbtPath,
|
|
731
733
|
recipientId,
|
|
732
734
|
expectedAmount.toString()
|
|
733
735
|
);
|