@utexo/rgb-lib-linux-x64 0.3.0-beta.10 → 0.3.0-beta.11
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
|
@@ -210,6 +210,10 @@ CResultString rgblib_sign_psbt(const COpaqueStruct *wallet, const char *unsigned
|
|
|
210
210
|
|
|
211
211
|
CResultString rgblib_sync(const COpaqueStruct *wallet, const COpaqueStruct *online);
|
|
212
212
|
|
|
213
|
+
CResultString rgblib_validate_consignment(const char *file_path,
|
|
214
|
+
const char *indexer_url,
|
|
215
|
+
const char *bitcoin_network);
|
|
216
|
+
|
|
213
217
|
CResultString rgblib_witness_receive(const COpaqueStruct *wallet,
|
|
214
218
|
const char *asset_id_opt,
|
|
215
219
|
const char *assignment,
|
|
Binary file
|
package/swig_wrap.cxx
CHANGED
|
@@ -4732,6 +4732,66 @@ fail:
|
|
|
4732
4732
|
}
|
|
4733
4733
|
|
|
4734
4734
|
|
|
4735
|
+
static SwigV8ReturnValue _wrap_rgblib_validate_consignment(const SwigV8Arguments &args) {
|
|
4736
|
+
SWIGV8_HANDLESCOPE();
|
|
4737
|
+
|
|
4738
|
+
SWIGV8_VALUE jsresult;
|
|
4739
|
+
char *arg1 = (char *) 0 ;
|
|
4740
|
+
char *arg2 = (char *) 0 ;
|
|
4741
|
+
char *arg3 = (char *) 0 ;
|
|
4742
|
+
int res1 ;
|
|
4743
|
+
char *buf1 = 0 ;
|
|
4744
|
+
int alloc1 = 0 ;
|
|
4745
|
+
int res2 ;
|
|
4746
|
+
char *buf2 = 0 ;
|
|
4747
|
+
int alloc2 = 0 ;
|
|
4748
|
+
int res3 ;
|
|
4749
|
+
char *buf3 = 0 ;
|
|
4750
|
+
int alloc3 = 0 ;
|
|
4751
|
+
CResultString result;
|
|
4752
|
+
|
|
4753
|
+
if (args.Length() < 3 || args.Length() > 3) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_validate_consignment.");
|
|
4754
|
+
|
|
4755
|
+
res1 = SWIG_AsCharPtrAndSize(args[0], &buf1, NULL, &alloc1);
|
|
4756
|
+
if (!SWIG_IsOK(res1)) {
|
|
4757
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_validate_consignment" "', argument " "1"" of type '" "char const *""'");
|
|
4758
|
+
}
|
|
4759
|
+
arg1 = reinterpret_cast< char * >(buf1);res2 = SWIG_AsCharPtrAndSize(args[1], &buf2, NULL, &alloc2);
|
|
4760
|
+
if (!SWIG_IsOK(res2)) {
|
|
4761
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_validate_consignment" "', argument " "2"" of type '" "char const *""'");
|
|
4762
|
+
}
|
|
4763
|
+
arg2 = reinterpret_cast< char * >(buf2);res3 = SWIG_AsCharPtrAndSize(args[2], &buf3, NULL, &alloc3);
|
|
4764
|
+
if (!SWIG_IsOK(res3)) {
|
|
4765
|
+
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rgblib_validate_consignment" "', argument " "3"" of type '" "char const *""'");
|
|
4766
|
+
}
|
|
4767
|
+
arg3 = reinterpret_cast< char * >(buf3);result = rgblib_validate_consignment((char const *)arg1,(char const *)arg2,(char const *)arg3);
|
|
4768
|
+
|
|
4769
|
+
switch ((&result)->result) {
|
|
4770
|
+
case CResultValue::Ok:
|
|
4771
|
+
if ((&result)->inner == nullptr) {
|
|
4772
|
+
jsresult = v8::Null(v8::Isolate::GetCurrent());
|
|
4773
|
+
} else {
|
|
4774
|
+
jsresult = v8::String::NewFromUtf8(args.GetIsolate(), (const char*) (&result)->inner).ToLocalChecked();
|
|
4775
|
+
delete ((&result)->inner);
|
|
4776
|
+
}
|
|
4777
|
+
break;
|
|
4778
|
+
case CResultValue::Err:
|
|
4779
|
+
SWIG_V8_Raise((const char*) (&result)->inner);
|
|
4780
|
+
break;
|
|
4781
|
+
}
|
|
4782
|
+
|
|
4783
|
+
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
4784
|
+
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
4785
|
+
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
4786
|
+
|
|
4787
|
+
SWIGV8_RETURN(jsresult);
|
|
4788
|
+
|
|
4789
|
+
goto fail;
|
|
4790
|
+
fail:
|
|
4791
|
+
SWIGV8_RETURN(SWIGV8_UNDEFINED());
|
|
4792
|
+
}
|
|
4793
|
+
|
|
4794
|
+
|
|
4735
4795
|
static SwigV8ReturnValue _wrap_rgblib_witness_receive(const SwigV8Arguments &args) {
|
|
4736
4796
|
SWIGV8_HANDLESCOPE();
|
|
4737
4797
|
|
|
@@ -5280,6 +5340,7 @@ SWIGV8_AddStaticFunction(exports_obj, "rgblib_send_btc_end", _wrap_rgblib_send_b
|
|
|
5280
5340
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_send_end", _wrap_rgblib_send_end, context);
|
|
5281
5341
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_sign_psbt", _wrap_rgblib_sign_psbt, context);
|
|
5282
5342
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_sync", _wrap_rgblib_sync, context);
|
|
5343
|
+
SWIGV8_AddStaticFunction(exports_obj, "rgblib_validate_consignment", _wrap_rgblib_validate_consignment, context);
|
|
5283
5344
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_witness_receive", _wrap_rgblib_witness_receive, context);
|
|
5284
5345
|
|
|
5285
5346
|
|