@utexo/rgb-lib-linux-x64 0.3.0-beta.15 → 0.3.0-beta.16.dev
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/swig_wrap.cxx
CHANGED
|
@@ -2733,9 +2733,6 @@ static SwigV8ReturnValue _wrap_rgblib_delete_transfers(const SwigV8Arguments &ar
|
|
|
2733
2733
|
bool arg3 ;
|
|
2734
2734
|
void *argp1 = 0 ;
|
|
2735
2735
|
int res1 = 0 ;
|
|
2736
|
-
int res2 ;
|
|
2737
|
-
char *buf2 = 0 ;
|
|
2738
|
-
int alloc2 = 0 ;
|
|
2739
2736
|
bool val3 ;
|
|
2740
2737
|
int ecode3 = 0 ;
|
|
2741
2738
|
CResultString result;
|
|
@@ -2746,11 +2743,19 @@ static SwigV8ReturnValue _wrap_rgblib_delete_transfers(const SwigV8Arguments &ar
|
|
|
2746
2743
|
if (!SWIG_IsOK(res1)) {
|
|
2747
2744
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_delete_transfers" "', argument " "1"" of type '" "COpaqueStruct const *""'");
|
|
2748
2745
|
}
|
|
2749
|
-
arg1 = reinterpret_cast< COpaqueStruct * >(argp1);
|
|
2750
|
-
|
|
2751
|
-
|
|
2746
|
+
arg1 = reinterpret_cast< COpaqueStruct * >(argp1);{
|
|
2747
|
+
{
|
|
2748
|
+
if (args[1] == v8::Null(v8::Isolate::GetCurrent())) {
|
|
2749
|
+
arg2 = nullptr;
|
|
2750
|
+
} else {
|
|
2751
|
+
int res = SWIG_AsCharPtrAndSize(args[1], (char**)&arg2, NULL, NULL);
|
|
2752
|
+
if (!SWIG_IsOK(res)) {
|
|
2753
|
+
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "rgblib_delete_transfers" "', argument '" "2""' of type '" "char const *""'");
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2752
2757
|
}
|
|
2753
|
-
|
|
2758
|
+
ecode3 = SWIG_AsVal_bool(args[2], &val3);
|
|
2754
2759
|
if (!SWIG_IsOK(ecode3)) {
|
|
2755
2760
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rgblib_delete_transfers" "', argument " "3"" of type '" "bool""'");
|
|
2756
2761
|
}
|
|
@@ -2771,7 +2776,6 @@ static SwigV8ReturnValue _wrap_rgblib_delete_transfers(const SwigV8Arguments &ar
|
|
|
2771
2776
|
}
|
|
2772
2777
|
|
|
2773
2778
|
|
|
2774
|
-
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
2775
2779
|
|
|
2776
2780
|
|
|
2777
2781
|
SWIGV8_RETURN(jsresult);
|
|
@@ -2836,9 +2840,6 @@ static SwigV8ReturnValue _wrap_rgblib_fail_transfers(const SwigV8Arguments &args
|
|
|
2836
2840
|
int res1 = 0 ;
|
|
2837
2841
|
void *argp2 = 0 ;
|
|
2838
2842
|
int res2 = 0 ;
|
|
2839
|
-
int res3 ;
|
|
2840
|
-
char *buf3 = 0 ;
|
|
2841
|
-
int alloc3 = 0 ;
|
|
2842
2843
|
bool val4 ;
|
|
2843
2844
|
int ecode4 = 0 ;
|
|
2844
2845
|
bool val5 ;
|
|
@@ -2855,11 +2856,19 @@ static SwigV8ReturnValue _wrap_rgblib_fail_transfers(const SwigV8Arguments &args
|
|
|
2855
2856
|
if (!SWIG_IsOK(res2)) {
|
|
2856
2857
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_fail_transfers" "', argument " "2"" of type '" "COpaqueStruct const *""'");
|
|
2857
2858
|
}
|
|
2858
|
-
arg2 = reinterpret_cast< COpaqueStruct * >(argp2);
|
|
2859
|
-
|
|
2860
|
-
|
|
2859
|
+
arg2 = reinterpret_cast< COpaqueStruct * >(argp2);{
|
|
2860
|
+
{
|
|
2861
|
+
if (args[2] == v8::Null(v8::Isolate::GetCurrent())) {
|
|
2862
|
+
arg3 = nullptr;
|
|
2863
|
+
} else {
|
|
2864
|
+
int res = SWIG_AsCharPtrAndSize(args[2], (char**)&arg3, NULL, NULL);
|
|
2865
|
+
if (!SWIG_IsOK(res)) {
|
|
2866
|
+
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "rgblib_fail_transfers" "', argument '" "3""' of type '" "char const *""'");
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2861
2870
|
}
|
|
2862
|
-
|
|
2871
|
+
ecode4 = SWIG_AsVal_bool(args[3], &val4);
|
|
2863
2872
|
if (!SWIG_IsOK(ecode4)) {
|
|
2864
2873
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rgblib_fail_transfers" "', argument " "4"" of type '" "bool""'");
|
|
2865
2874
|
}
|
|
@@ -2885,7 +2894,6 @@ static SwigV8ReturnValue _wrap_rgblib_fail_transfers(const SwigV8Arguments &args
|
|
|
2885
2894
|
|
|
2886
2895
|
|
|
2887
2896
|
|
|
2888
|
-
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
2889
2897
|
|
|
2890
2898
|
|
|
2891
2899
|
|
|
@@ -3607,7 +3615,6 @@ static SwigV8ReturnValue _wrap_rgblib_issue_asset_ifa(const SwigV8Arguments &arg
|
|
|
3607
3615
|
char *arg5 = (char *) 0 ;
|
|
3608
3616
|
char *arg6 = (char *) 0 ;
|
|
3609
3617
|
char *arg7 = (char *) 0 ;
|
|
3610
|
-
char *arg8 = (char *) 0 ;
|
|
3611
3618
|
void *argp1 = 0 ;
|
|
3612
3619
|
int res1 = 0 ;
|
|
3613
3620
|
int res2 ;
|
|
@@ -3625,12 +3632,9 @@ static SwigV8ReturnValue _wrap_rgblib_issue_asset_ifa(const SwigV8Arguments &arg
|
|
|
3625
3632
|
int res6 ;
|
|
3626
3633
|
char *buf6 = 0 ;
|
|
3627
3634
|
int alloc6 = 0 ;
|
|
3628
|
-
int res7 ;
|
|
3629
|
-
char *buf7 = 0 ;
|
|
3630
|
-
int alloc7 = 0 ;
|
|
3631
3635
|
CResultString result;
|
|
3632
3636
|
|
|
3633
|
-
if (args.Length() <
|
|
3637
|
+
if (args.Length() < 7 || args.Length() > 7) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_issue_asset_ifa.");
|
|
3634
3638
|
|
|
3635
3639
|
res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
|
|
3636
3640
|
if (!SWIG_IsOK(res1)) {
|
|
@@ -3656,23 +3660,19 @@ static SwigV8ReturnValue _wrap_rgblib_issue_asset_ifa(const SwigV8Arguments &arg
|
|
|
3656
3660
|
if (!SWIG_IsOK(res6)) {
|
|
3657
3661
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "rgblib_issue_asset_ifa" "', argument " "6"" of type '" "char const *""'");
|
|
3658
3662
|
}
|
|
3659
|
-
arg6 = reinterpret_cast< char * >(buf6);
|
|
3660
|
-
if (!SWIG_IsOK(res7)) {
|
|
3661
|
-
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rgblib_issue_asset_ifa" "', argument " "7"" of type '" "char const *""'");
|
|
3662
|
-
}
|
|
3663
|
-
arg7 = reinterpret_cast< char * >(buf7);{
|
|
3663
|
+
arg6 = reinterpret_cast< char * >(buf6);{
|
|
3664
3664
|
{
|
|
3665
|
-
if (args[
|
|
3666
|
-
|
|
3665
|
+
if (args[6] == v8::Null(v8::Isolate::GetCurrent())) {
|
|
3666
|
+
arg7 = nullptr;
|
|
3667
3667
|
} else {
|
|
3668
|
-
int res = SWIG_AsCharPtrAndSize(args[
|
|
3668
|
+
int res = SWIG_AsCharPtrAndSize(args[6], (char**)&arg7, NULL, NULL);
|
|
3669
3669
|
if (!SWIG_IsOK(res)) {
|
|
3670
|
-
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "rgblib_issue_asset_ifa" "', argument '" "
|
|
3670
|
+
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "rgblib_issue_asset_ifa" "', argument '" "7""' of type '" "char const *""'");
|
|
3671
3671
|
}
|
|
3672
3672
|
}
|
|
3673
3673
|
}
|
|
3674
3674
|
}
|
|
3675
|
-
result = rgblib_issue_asset_ifa((COpaqueStruct const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7
|
|
3675
|
+
result = rgblib_issue_asset_ifa((COpaqueStruct const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7);
|
|
3676
3676
|
|
|
3677
3677
|
switch ((&result)->result) {
|
|
3678
3678
|
case CResultValue::Ok:
|
|
@@ -3694,7 +3694,6 @@ static SwigV8ReturnValue _wrap_rgblib_issue_asset_ifa(const SwigV8Arguments &arg
|
|
|
3694
3694
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
3695
3695
|
if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
|
|
3696
3696
|
if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
|
|
3697
|
-
if (alloc7 == SWIG_NEWOBJ) delete[] buf7;
|
|
3698
3697
|
|
|
3699
3698
|
SWIGV8_RETURN(jsresult);
|
|
3700
3699
|
|
|
@@ -4152,18 +4151,26 @@ static SwigV8ReturnValue _wrap_rgblib_new_wallet(const SwigV8Arguments &args) {
|
|
|
4152
4151
|
|
|
4153
4152
|
SWIGV8_VALUE jsresult;
|
|
4154
4153
|
char *arg1 = (char *) 0 ;
|
|
4154
|
+
char *arg2 = (char *) 0 ;
|
|
4155
4155
|
int res1 ;
|
|
4156
4156
|
char *buf1 = 0 ;
|
|
4157
4157
|
int alloc1 = 0 ;
|
|
4158
|
+
int res2 ;
|
|
4159
|
+
char *buf2 = 0 ;
|
|
4160
|
+
int alloc2 = 0 ;
|
|
4158
4161
|
CResult result;
|
|
4159
4162
|
|
|
4160
|
-
if (args.Length() <
|
|
4163
|
+
if (args.Length() < 2 || args.Length() > 2) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_new_wallet.");
|
|
4161
4164
|
|
|
4162
4165
|
res1 = SWIG_AsCharPtrAndSize(args[0], &buf1, NULL, &alloc1);
|
|
4163
4166
|
if (!SWIG_IsOK(res1)) {
|
|
4164
4167
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_new_wallet" "', argument " "1"" of type '" "char const *""'");
|
|
4165
4168
|
}
|
|
4166
|
-
arg1 = reinterpret_cast< char * >(buf1);
|
|
4169
|
+
arg1 = reinterpret_cast< char * >(buf1);res2 = SWIG_AsCharPtrAndSize(args[1], &buf2, NULL, &alloc2);
|
|
4170
|
+
if (!SWIG_IsOK(res2)) {
|
|
4171
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_new_wallet" "', argument " "2"" of type '" "char const *""'");
|
|
4172
|
+
}
|
|
4173
|
+
arg2 = reinterpret_cast< char * >(buf2);result = rgblib_new_wallet((char const *)arg1,(char const *)arg2);
|
|
4167
4174
|
|
|
4168
4175
|
switch ((&result)->result) {
|
|
4169
4176
|
case CResultValue::Ok:
|
|
@@ -4175,6 +4182,7 @@ static SwigV8ReturnValue _wrap_rgblib_new_wallet(const SwigV8Arguments &args) {
|
|
|
4175
4182
|
}
|
|
4176
4183
|
|
|
4177
4184
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
4185
|
+
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
4178
4186
|
|
|
4179
4187
|
SWIGV8_RETURN(jsresult);
|
|
4180
4188
|
|
|
@@ -4420,6 +4428,88 @@ fail:
|
|
|
4420
4428
|
}
|
|
4421
4429
|
|
|
4422
4430
|
|
|
4431
|
+
static SwigV8ReturnValue _wrap_rgblib_rotate_colored_address(const SwigV8Arguments &args) {
|
|
4432
|
+
SWIGV8_HANDLESCOPE();
|
|
4433
|
+
|
|
4434
|
+
SWIGV8_VALUE jsresult;
|
|
4435
|
+
COpaqueStruct *arg1 = (COpaqueStruct *) 0 ;
|
|
4436
|
+
void *argp1 = 0 ;
|
|
4437
|
+
int res1 = 0 ;
|
|
4438
|
+
CResultString result;
|
|
4439
|
+
|
|
4440
|
+
if (args.Length() < 1 || args.Length() > 1) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_rotate_colored_address.");
|
|
4441
|
+
|
|
4442
|
+
res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
|
|
4443
|
+
if (!SWIG_IsOK(res1)) {
|
|
4444
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_rotate_colored_address" "', argument " "1"" of type '" "COpaqueStruct const *""'");
|
|
4445
|
+
}
|
|
4446
|
+
arg1 = reinterpret_cast< COpaqueStruct * >(argp1);result = rgblib_rotate_colored_address((COpaqueStruct const *)arg1);
|
|
4447
|
+
|
|
4448
|
+
switch ((&result)->result) {
|
|
4449
|
+
case CResultValue::Ok:
|
|
4450
|
+
if ((&result)->inner == nullptr) {
|
|
4451
|
+
jsresult = v8::Null(v8::Isolate::GetCurrent());
|
|
4452
|
+
} else {
|
|
4453
|
+
jsresult = v8::String::NewFromUtf8(args.GetIsolate(), (const char*) (&result)->inner).ToLocalChecked();
|
|
4454
|
+
delete ((&result)->inner);
|
|
4455
|
+
}
|
|
4456
|
+
break;
|
|
4457
|
+
case CResultValue::Err:
|
|
4458
|
+
SWIG_V8_Raise((const char*) (&result)->inner);
|
|
4459
|
+
break;
|
|
4460
|
+
}
|
|
4461
|
+
|
|
4462
|
+
|
|
4463
|
+
|
|
4464
|
+
SWIGV8_RETURN(jsresult);
|
|
4465
|
+
|
|
4466
|
+
goto fail;
|
|
4467
|
+
fail:
|
|
4468
|
+
SWIGV8_RETURN(SWIGV8_UNDEFINED());
|
|
4469
|
+
}
|
|
4470
|
+
|
|
4471
|
+
|
|
4472
|
+
static SwigV8ReturnValue _wrap_rgblib_rotate_vanilla_address(const SwigV8Arguments &args) {
|
|
4473
|
+
SWIGV8_HANDLESCOPE();
|
|
4474
|
+
|
|
4475
|
+
SWIGV8_VALUE jsresult;
|
|
4476
|
+
COpaqueStruct *arg1 = (COpaqueStruct *) 0 ;
|
|
4477
|
+
void *argp1 = 0 ;
|
|
4478
|
+
int res1 = 0 ;
|
|
4479
|
+
CResultString result;
|
|
4480
|
+
|
|
4481
|
+
if (args.Length() < 1 || args.Length() > 1) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_rotate_vanilla_address.");
|
|
4482
|
+
|
|
4483
|
+
res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
|
|
4484
|
+
if (!SWIG_IsOK(res1)) {
|
|
4485
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_rotate_vanilla_address" "', argument " "1"" of type '" "COpaqueStruct const *""'");
|
|
4486
|
+
}
|
|
4487
|
+
arg1 = reinterpret_cast< COpaqueStruct * >(argp1);result = rgblib_rotate_vanilla_address((COpaqueStruct const *)arg1);
|
|
4488
|
+
|
|
4489
|
+
switch ((&result)->result) {
|
|
4490
|
+
case CResultValue::Ok:
|
|
4491
|
+
if ((&result)->inner == nullptr) {
|
|
4492
|
+
jsresult = v8::Null(v8::Isolate::GetCurrent());
|
|
4493
|
+
} else {
|
|
4494
|
+
jsresult = v8::String::NewFromUtf8(args.GetIsolate(), (const char*) (&result)->inner).ToLocalChecked();
|
|
4495
|
+
delete ((&result)->inner);
|
|
4496
|
+
}
|
|
4497
|
+
break;
|
|
4498
|
+
case CResultValue::Err:
|
|
4499
|
+
SWIG_V8_Raise((const char*) (&result)->inner);
|
|
4500
|
+
break;
|
|
4501
|
+
}
|
|
4502
|
+
|
|
4503
|
+
|
|
4504
|
+
|
|
4505
|
+
SWIGV8_RETURN(jsresult);
|
|
4506
|
+
|
|
4507
|
+
goto fail;
|
|
4508
|
+
fail:
|
|
4509
|
+
SWIGV8_RETURN(SWIGV8_UNDEFINED());
|
|
4510
|
+
}
|
|
4511
|
+
|
|
4512
|
+
|
|
4423
4513
|
static SwigV8ReturnValue _wrap_rgblib_send(const SwigV8Arguments &args) {
|
|
4424
4514
|
SWIGV8_HANDLESCOPE();
|
|
4425
4515
|
|
|
@@ -4430,7 +4520,8 @@ static SwigV8ReturnValue _wrap_rgblib_send(const SwigV8Arguments &args) {
|
|
|
4430
4520
|
bool arg4 ;
|
|
4431
4521
|
char *arg5 = (char *) 0 ;
|
|
4432
4522
|
char *arg6 = (char *) 0 ;
|
|
4433
|
-
|
|
4523
|
+
char *arg7 = (char *) 0 ;
|
|
4524
|
+
bool arg8 ;
|
|
4434
4525
|
void *argp1 = 0 ;
|
|
4435
4526
|
int res1 = 0 ;
|
|
4436
4527
|
void *argp2 = 0 ;
|
|
@@ -4446,11 +4537,11 @@ static SwigV8ReturnValue _wrap_rgblib_send(const SwigV8Arguments &args) {
|
|
|
4446
4537
|
int res6 ;
|
|
4447
4538
|
char *buf6 = 0 ;
|
|
4448
4539
|
int alloc6 = 0 ;
|
|
4449
|
-
bool
|
|
4450
|
-
int
|
|
4540
|
+
bool val8 ;
|
|
4541
|
+
int ecode8 = 0 ;
|
|
4451
4542
|
CResultString result;
|
|
4452
4543
|
|
|
4453
|
-
if (args.Length() <
|
|
4544
|
+
if (args.Length() < 8 || args.Length() > 8) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_send.");
|
|
4454
4545
|
|
|
4455
4546
|
res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
|
|
4456
4547
|
if (!SWIG_IsOK(res1)) {
|
|
@@ -4476,11 +4567,23 @@ static SwigV8ReturnValue _wrap_rgblib_send(const SwigV8Arguments &args) {
|
|
|
4476
4567
|
if (!SWIG_IsOK(res6)) {
|
|
4477
4568
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "rgblib_send" "', argument " "6"" of type '" "char const *""'");
|
|
4478
4569
|
}
|
|
4479
|
-
arg6 = reinterpret_cast< char * >(buf6);
|
|
4480
|
-
|
|
4481
|
-
|
|
4570
|
+
arg6 = reinterpret_cast< char * >(buf6);{
|
|
4571
|
+
{
|
|
4572
|
+
if (args[6] == v8::Null(v8::Isolate::GetCurrent())) {
|
|
4573
|
+
arg7 = nullptr;
|
|
4574
|
+
} else {
|
|
4575
|
+
int res = SWIG_AsCharPtrAndSize(args[6], (char**)&arg7, NULL, NULL);
|
|
4576
|
+
if (!SWIG_IsOK(res)) {
|
|
4577
|
+
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "rgblib_send" "', argument '" "7""' of type '" "char const *""'");
|
|
4578
|
+
}
|
|
4579
|
+
}
|
|
4580
|
+
}
|
|
4581
|
+
}
|
|
4582
|
+
ecode8 = SWIG_AsVal_bool(args[7], &val8);
|
|
4583
|
+
if (!SWIG_IsOK(ecode8)) {
|
|
4584
|
+
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "rgblib_send" "', argument " "8"" of type '" "bool""'");
|
|
4482
4585
|
}
|
|
4483
|
-
|
|
4586
|
+
arg8 = static_cast< bool >(val8);result = rgblib_send((COpaqueStruct const *)arg1,(COpaqueStruct const *)arg2,(char const *)arg3,arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,arg8);
|
|
4484
4587
|
|
|
4485
4588
|
switch ((&result)->result) {
|
|
4486
4589
|
case CResultValue::Ok:
|
|
@@ -4522,6 +4625,8 @@ static SwigV8ReturnValue _wrap_rgblib_send_begin(const SwigV8Arguments &args) {
|
|
|
4522
4625
|
bool arg4 ;
|
|
4523
4626
|
char *arg5 = (char *) 0 ;
|
|
4524
4627
|
char *arg6 = (char *) 0 ;
|
|
4628
|
+
char *arg7 = (char *) 0 ;
|
|
4629
|
+
bool arg8 ;
|
|
4525
4630
|
void *argp1 = 0 ;
|
|
4526
4631
|
int res1 = 0 ;
|
|
4527
4632
|
void *argp2 = 0 ;
|
|
@@ -4537,9 +4642,11 @@ static SwigV8ReturnValue _wrap_rgblib_send_begin(const SwigV8Arguments &args) {
|
|
|
4537
4642
|
int res6 ;
|
|
4538
4643
|
char *buf6 = 0 ;
|
|
4539
4644
|
int alloc6 = 0 ;
|
|
4645
|
+
bool val8 ;
|
|
4646
|
+
int ecode8 = 0 ;
|
|
4540
4647
|
CResultString result;
|
|
4541
4648
|
|
|
4542
|
-
if (args.Length() <
|
|
4649
|
+
if (args.Length() < 8 || args.Length() > 8) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_send_begin.");
|
|
4543
4650
|
|
|
4544
4651
|
res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
|
|
4545
4652
|
if (!SWIG_IsOK(res1)) {
|
|
@@ -4565,7 +4672,23 @@ static SwigV8ReturnValue _wrap_rgblib_send_begin(const SwigV8Arguments &args) {
|
|
|
4565
4672
|
if (!SWIG_IsOK(res6)) {
|
|
4566
4673
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "rgblib_send_begin" "', argument " "6"" of type '" "char const *""'");
|
|
4567
4674
|
}
|
|
4568
|
-
arg6 = reinterpret_cast< char * >(buf6);
|
|
4675
|
+
arg6 = reinterpret_cast< char * >(buf6);{
|
|
4676
|
+
{
|
|
4677
|
+
if (args[6] == v8::Null(v8::Isolate::GetCurrent())) {
|
|
4678
|
+
arg7 = nullptr;
|
|
4679
|
+
} else {
|
|
4680
|
+
int res = SWIG_AsCharPtrAndSize(args[6], (char**)&arg7, NULL, NULL);
|
|
4681
|
+
if (!SWIG_IsOK(res)) {
|
|
4682
|
+
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "rgblib_send_begin" "', argument '" "7""' of type '" "char const *""'");
|
|
4683
|
+
}
|
|
4684
|
+
}
|
|
4685
|
+
}
|
|
4686
|
+
}
|
|
4687
|
+
ecode8 = SWIG_AsVal_bool(args[7], &val8);
|
|
4688
|
+
if (!SWIG_IsOK(ecode8)) {
|
|
4689
|
+
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "rgblib_send_begin" "', argument " "8"" of type '" "bool""'");
|
|
4690
|
+
}
|
|
4691
|
+
arg8 = static_cast< bool >(val8);result = rgblib_send_begin((COpaqueStruct const *)arg1,(COpaqueStruct const *)arg2,(char const *)arg3,arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,arg8);
|
|
4569
4692
|
|
|
4570
4693
|
switch ((&result)->result) {
|
|
4571
4694
|
case CResultValue::Ok:
|
|
@@ -4588,6 +4711,7 @@ static SwigV8ReturnValue _wrap_rgblib_send_begin(const SwigV8Arguments &args) {
|
|
|
4588
4711
|
if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
|
|
4589
4712
|
if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
|
|
4590
4713
|
|
|
4714
|
+
|
|
4591
4715
|
SWIGV8_RETURN(jsresult);
|
|
4592
4716
|
|
|
4593
4717
|
goto fail;
|
|
@@ -4680,16 +4804,14 @@ fail:
|
|
|
4680
4804
|
}
|
|
4681
4805
|
|
|
4682
4806
|
|
|
4683
|
-
static SwigV8ReturnValue
|
|
4807
|
+
static SwigV8ReturnValue _wrap_rgblib_send_end(const SwigV8Arguments &args) {
|
|
4684
4808
|
SWIGV8_HANDLESCOPE();
|
|
4685
4809
|
|
|
4686
4810
|
SWIGV8_VALUE jsresult;
|
|
4687
4811
|
COpaqueStruct *arg1 = (COpaqueStruct *) 0 ;
|
|
4688
4812
|
COpaqueStruct *arg2 = (COpaqueStruct *) 0 ;
|
|
4689
4813
|
char *arg3 = (char *) 0 ;
|
|
4690
|
-
|
|
4691
|
-
char *arg5 = (char *) 0 ;
|
|
4692
|
-
bool arg6 ;
|
|
4814
|
+
bool arg4 ;
|
|
4693
4815
|
void *argp1 = 0 ;
|
|
4694
4816
|
int res1 = 0 ;
|
|
4695
4817
|
void *argp2 = 0 ;
|
|
@@ -4697,43 +4819,29 @@ static SwigV8ReturnValue _wrap_rgblib_send_btc_begin(const SwigV8Arguments &args
|
|
|
4697
4819
|
int res3 ;
|
|
4698
4820
|
char *buf3 = 0 ;
|
|
4699
4821
|
int alloc3 = 0 ;
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
int alloc4 = 0 ;
|
|
4703
|
-
int res5 ;
|
|
4704
|
-
char *buf5 = 0 ;
|
|
4705
|
-
int alloc5 = 0 ;
|
|
4706
|
-
bool val6 ;
|
|
4707
|
-
int ecode6 = 0 ;
|
|
4822
|
+
bool val4 ;
|
|
4823
|
+
int ecode4 = 0 ;
|
|
4708
4824
|
CResultString result;
|
|
4709
4825
|
|
|
4710
|
-
if (args.Length() <
|
|
4826
|
+
if (args.Length() < 4 || args.Length() > 4) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_send_end.");
|
|
4711
4827
|
|
|
4712
4828
|
res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
|
|
4713
4829
|
if (!SWIG_IsOK(res1)) {
|
|
4714
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "
|
|
4830
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_send_end" "', argument " "1"" of type '" "COpaqueStruct const *""'");
|
|
4715
4831
|
}
|
|
4716
4832
|
arg1 = reinterpret_cast< COpaqueStruct * >(argp1);res2 = SWIG_ConvertPtr(args[1], &argp2,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
|
|
4717
4833
|
if (!SWIG_IsOK(res2)) {
|
|
4718
|
-
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "
|
|
4834
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_send_end" "', argument " "2"" of type '" "COpaqueStruct const *""'");
|
|
4719
4835
|
}
|
|
4720
4836
|
arg2 = reinterpret_cast< COpaqueStruct * >(argp2);res3 = SWIG_AsCharPtrAndSize(args[2], &buf3, NULL, &alloc3);
|
|
4721
4837
|
if (!SWIG_IsOK(res3)) {
|
|
4722
|
-
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "
|
|
4723
|
-
}
|
|
4724
|
-
arg3 = reinterpret_cast< char * >(buf3);res4 = SWIG_AsCharPtrAndSize(args[3], &buf4, NULL, &alloc4);
|
|
4725
|
-
if (!SWIG_IsOK(res4)) {
|
|
4726
|
-
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rgblib_send_btc_begin" "', argument " "4"" of type '" "char const *""'");
|
|
4727
|
-
}
|
|
4728
|
-
arg4 = reinterpret_cast< char * >(buf4);res5 = SWIG_AsCharPtrAndSize(args[4], &buf5, NULL, &alloc5);
|
|
4729
|
-
if (!SWIG_IsOK(res5)) {
|
|
4730
|
-
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rgblib_send_btc_begin" "', argument " "5"" of type '" "char const *""'");
|
|
4838
|
+
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rgblib_send_end" "', argument " "3"" of type '" "char const *""'");
|
|
4731
4839
|
}
|
|
4732
|
-
|
|
4733
|
-
if (!SWIG_IsOK(
|
|
4734
|
-
SWIG_exception_fail(SWIG_ArgError(
|
|
4840
|
+
arg3 = reinterpret_cast< char * >(buf3);ecode4 = SWIG_AsVal_bool(args[3], &val4);
|
|
4841
|
+
if (!SWIG_IsOK(ecode4)) {
|
|
4842
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rgblib_send_end" "', argument " "4"" of type '" "bool""'");
|
|
4735
4843
|
}
|
|
4736
|
-
|
|
4844
|
+
arg4 = static_cast< bool >(val4);result = rgblib_send_end((COpaqueStruct const *)arg1,(COpaqueStruct const *)arg2,(char const *)arg3,arg4);
|
|
4737
4845
|
|
|
4738
4846
|
switch ((&result)->result) {
|
|
4739
4847
|
case CResultValue::Ok:
|
|
@@ -4752,8 +4860,6 @@ static SwigV8ReturnValue _wrap_rgblib_send_btc_begin(const SwigV8Arguments &args
|
|
|
4752
4860
|
|
|
4753
4861
|
|
|
4754
4862
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
4755
|
-
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
4756
|
-
if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
|
|
4757
4863
|
|
|
4758
4864
|
|
|
4759
4865
|
SWIGV8_RETURN(jsresult);
|
|
@@ -4764,44 +4870,30 @@ fail:
|
|
|
4764
4870
|
}
|
|
4765
4871
|
|
|
4766
4872
|
|
|
4767
|
-
static SwigV8ReturnValue
|
|
4873
|
+
static SwigV8ReturnValue _wrap_rgblib_sign_psbt(const SwigV8Arguments &args) {
|
|
4768
4874
|
SWIGV8_HANDLESCOPE();
|
|
4769
4875
|
|
|
4770
4876
|
SWIGV8_VALUE jsresult;
|
|
4771
4877
|
COpaqueStruct *arg1 = (COpaqueStruct *) 0 ;
|
|
4772
|
-
|
|
4773
|
-
char *arg3 = (char *) 0 ;
|
|
4774
|
-
bool arg4 ;
|
|
4878
|
+
char *arg2 = (char *) 0 ;
|
|
4775
4879
|
void *argp1 = 0 ;
|
|
4776
4880
|
int res1 = 0 ;
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
int
|
|
4780
|
-
char *buf3 = 0 ;
|
|
4781
|
-
int alloc3 = 0 ;
|
|
4782
|
-
bool val4 ;
|
|
4783
|
-
int ecode4 = 0 ;
|
|
4881
|
+
int res2 ;
|
|
4882
|
+
char *buf2 = 0 ;
|
|
4883
|
+
int alloc2 = 0 ;
|
|
4784
4884
|
CResultString result;
|
|
4785
4885
|
|
|
4786
|
-
if (args.Length() <
|
|
4886
|
+
if (args.Length() < 2 || args.Length() > 2) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_sign_psbt.");
|
|
4787
4887
|
|
|
4788
4888
|
res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
|
|
4789
4889
|
if (!SWIG_IsOK(res1)) {
|
|
4790
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "
|
|
4890
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_sign_psbt" "', argument " "1"" of type '" "COpaqueStruct const *""'");
|
|
4791
4891
|
}
|
|
4792
|
-
arg1 = reinterpret_cast< COpaqueStruct * >(argp1);res2 =
|
|
4892
|
+
arg1 = reinterpret_cast< COpaqueStruct * >(argp1);res2 = SWIG_AsCharPtrAndSize(args[1], &buf2, NULL, &alloc2);
|
|
4793
4893
|
if (!SWIG_IsOK(res2)) {
|
|
4794
|
-
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "
|
|
4795
|
-
}
|
|
4796
|
-
arg2 = reinterpret_cast< COpaqueStruct * >(argp2);res3 = SWIG_AsCharPtrAndSize(args[2], &buf3, NULL, &alloc3);
|
|
4797
|
-
if (!SWIG_IsOK(res3)) {
|
|
4798
|
-
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rgblib_send_btc_end" "', argument " "3"" of type '" "char const *""'");
|
|
4894
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_sign_psbt" "', argument " "2"" of type '" "char const *""'");
|
|
4799
4895
|
}
|
|
4800
|
-
|
|
4801
|
-
if (!SWIG_IsOK(ecode4)) {
|
|
4802
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rgblib_send_btc_end" "', argument " "4"" of type '" "bool""'");
|
|
4803
|
-
}
|
|
4804
|
-
arg4 = static_cast< bool >(val4);result = rgblib_send_btc_end((COpaqueStruct const *)arg1,(COpaqueStruct const *)arg2,(char const *)arg3,arg4);
|
|
4896
|
+
arg2 = reinterpret_cast< char * >(buf2);result = rgblib_sign_psbt((COpaqueStruct const *)arg1,(char const *)arg2);
|
|
4805
4897
|
|
|
4806
4898
|
switch ((&result)->result) {
|
|
4807
4899
|
case CResultValue::Ok:
|
|
@@ -4818,9 +4910,7 @@ static SwigV8ReturnValue _wrap_rgblib_send_btc_end(const SwigV8Arguments &args)
|
|
|
4818
4910
|
}
|
|
4819
4911
|
|
|
4820
4912
|
|
|
4821
|
-
|
|
4822
|
-
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
4823
|
-
|
|
4913
|
+
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
4824
4914
|
|
|
4825
4915
|
SWIGV8_RETURN(jsresult);
|
|
4826
4916
|
|
|
@@ -4830,44 +4920,29 @@ fail:
|
|
|
4830
4920
|
}
|
|
4831
4921
|
|
|
4832
4922
|
|
|
4833
|
-
static SwigV8ReturnValue
|
|
4923
|
+
static SwigV8ReturnValue _wrap_rgblib_sync(const SwigV8Arguments &args) {
|
|
4834
4924
|
SWIGV8_HANDLESCOPE();
|
|
4835
4925
|
|
|
4836
4926
|
SWIGV8_VALUE jsresult;
|
|
4837
4927
|
COpaqueStruct *arg1 = (COpaqueStruct *) 0 ;
|
|
4838
4928
|
COpaqueStruct *arg2 = (COpaqueStruct *) 0 ;
|
|
4839
|
-
char *arg3 = (char *) 0 ;
|
|
4840
|
-
bool arg4 ;
|
|
4841
4929
|
void *argp1 = 0 ;
|
|
4842
4930
|
int res1 = 0 ;
|
|
4843
4931
|
void *argp2 = 0 ;
|
|
4844
4932
|
int res2 = 0 ;
|
|
4845
|
-
int res3 ;
|
|
4846
|
-
char *buf3 = 0 ;
|
|
4847
|
-
int alloc3 = 0 ;
|
|
4848
|
-
bool val4 ;
|
|
4849
|
-
int ecode4 = 0 ;
|
|
4850
4933
|
CResultString result;
|
|
4851
4934
|
|
|
4852
|
-
if (args.Length() <
|
|
4935
|
+
if (args.Length() < 2 || args.Length() > 2) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_sync.");
|
|
4853
4936
|
|
|
4854
4937
|
res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
|
|
4855
4938
|
if (!SWIG_IsOK(res1)) {
|
|
4856
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "
|
|
4939
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_sync" "', argument " "1"" of type '" "COpaqueStruct const *""'");
|
|
4857
4940
|
}
|
|
4858
4941
|
arg1 = reinterpret_cast< COpaqueStruct * >(argp1);res2 = SWIG_ConvertPtr(args[1], &argp2,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
|
|
4859
4942
|
if (!SWIG_IsOK(res2)) {
|
|
4860
|
-
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "
|
|
4861
|
-
}
|
|
4862
|
-
arg2 = reinterpret_cast< COpaqueStruct * >(argp2);res3 = SWIG_AsCharPtrAndSize(args[2], &buf3, NULL, &alloc3);
|
|
4863
|
-
if (!SWIG_IsOK(res3)) {
|
|
4864
|
-
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rgblib_send_end" "', argument " "3"" of type '" "char const *""'");
|
|
4943
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_sync" "', argument " "2"" of type '" "COpaqueStruct const *""'");
|
|
4865
4944
|
}
|
|
4866
|
-
|
|
4867
|
-
if (!SWIG_IsOK(ecode4)) {
|
|
4868
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rgblib_send_end" "', argument " "4"" of type '" "bool""'");
|
|
4869
|
-
}
|
|
4870
|
-
arg4 = static_cast< bool >(val4);result = rgblib_send_end((COpaqueStruct const *)arg1,(COpaqueStruct const *)arg2,(char const *)arg3,arg4);
|
|
4945
|
+
arg2 = reinterpret_cast< COpaqueStruct * >(argp2);result = rgblib_sync((COpaqueStruct const *)arg1,(COpaqueStruct const *)arg2);
|
|
4871
4946
|
|
|
4872
4947
|
switch ((&result)->result) {
|
|
4873
4948
|
case CResultValue::Ok:
|
|
@@ -4885,8 +4960,6 @@ static SwigV8ReturnValue _wrap_rgblib_send_end(const SwigV8Arguments &args) {
|
|
|
4885
4960
|
|
|
4886
4961
|
|
|
4887
4962
|
|
|
4888
|
-
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
4889
|
-
|
|
4890
4963
|
|
|
4891
4964
|
SWIGV8_RETURN(jsresult);
|
|
4892
4965
|
|
|
@@ -4896,79 +4969,39 @@ fail:
|
|
|
4896
4969
|
}
|
|
4897
4970
|
|
|
4898
4971
|
|
|
4899
|
-
static SwigV8ReturnValue
|
|
4972
|
+
static SwigV8ReturnValue _wrap_rgblib_validate_consignment(const SwigV8Arguments &args) {
|
|
4900
4973
|
SWIGV8_HANDLESCOPE();
|
|
4901
4974
|
|
|
4902
4975
|
SWIGV8_VALUE jsresult;
|
|
4903
|
-
|
|
4976
|
+
char *arg1 = (char *) 0 ;
|
|
4904
4977
|
char *arg2 = (char *) 0 ;
|
|
4905
|
-
|
|
4906
|
-
int res1
|
|
4978
|
+
char *arg3 = (char *) 0 ;
|
|
4979
|
+
int res1 ;
|
|
4980
|
+
char *buf1 = 0 ;
|
|
4981
|
+
int alloc1 = 0 ;
|
|
4907
4982
|
int res2 ;
|
|
4908
4983
|
char *buf2 = 0 ;
|
|
4909
4984
|
int alloc2 = 0 ;
|
|
4985
|
+
int res3 ;
|
|
4986
|
+
char *buf3 = 0 ;
|
|
4987
|
+
int alloc3 = 0 ;
|
|
4910
4988
|
CResultString result;
|
|
4911
4989
|
|
|
4912
|
-
if (args.Length() <
|
|
4990
|
+
if (args.Length() < 3 || args.Length() > 3) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_validate_consignment.");
|
|
4913
4991
|
|
|
4914
|
-
res1 =
|
|
4992
|
+
res1 = SWIG_AsCharPtrAndSize(args[0], &buf1, NULL, &alloc1);
|
|
4915
4993
|
if (!SWIG_IsOK(res1)) {
|
|
4916
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "
|
|
4994
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_validate_consignment" "', argument " "1"" of type '" "char const *""'");
|
|
4917
4995
|
}
|
|
4918
|
-
arg1 = reinterpret_cast<
|
|
4996
|
+
arg1 = reinterpret_cast< char * >(buf1);res2 = SWIG_AsCharPtrAndSize(args[1], &buf2, NULL, &alloc2);
|
|
4919
4997
|
if (!SWIG_IsOK(res2)) {
|
|
4920
|
-
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "
|
|
4921
|
-
}
|
|
4922
|
-
arg2 = reinterpret_cast< char * >(buf2);result = rgblib_sign_psbt((COpaqueStruct const *)arg1,(char const *)arg2);
|
|
4923
|
-
|
|
4924
|
-
switch ((&result)->result) {
|
|
4925
|
-
case CResultValue::Ok:
|
|
4926
|
-
if ((&result)->inner == nullptr) {
|
|
4927
|
-
jsresult = v8::Null(v8::Isolate::GetCurrent());
|
|
4928
|
-
} else {
|
|
4929
|
-
jsresult = v8::String::NewFromUtf8(args.GetIsolate(), (const char*) (&result)->inner).ToLocalChecked();
|
|
4930
|
-
delete ((&result)->inner);
|
|
4931
|
-
}
|
|
4932
|
-
break;
|
|
4933
|
-
case CResultValue::Err:
|
|
4934
|
-
SWIG_V8_Raise((const char*) (&result)->inner);
|
|
4935
|
-
break;
|
|
4936
|
-
}
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
4940
|
-
|
|
4941
|
-
SWIGV8_RETURN(jsresult);
|
|
4942
|
-
|
|
4943
|
-
goto fail;
|
|
4944
|
-
fail:
|
|
4945
|
-
SWIGV8_RETURN(SWIGV8_UNDEFINED());
|
|
4946
|
-
}
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
static SwigV8ReturnValue _wrap_rgblib_sync(const SwigV8Arguments &args) {
|
|
4950
|
-
SWIGV8_HANDLESCOPE();
|
|
4951
|
-
|
|
4952
|
-
SWIGV8_VALUE jsresult;
|
|
4953
|
-
COpaqueStruct *arg1 = (COpaqueStruct *) 0 ;
|
|
4954
|
-
COpaqueStruct *arg2 = (COpaqueStruct *) 0 ;
|
|
4955
|
-
void *argp1 = 0 ;
|
|
4956
|
-
int res1 = 0 ;
|
|
4957
|
-
void *argp2 = 0 ;
|
|
4958
|
-
int res2 = 0 ;
|
|
4959
|
-
CResultString result;
|
|
4960
|
-
|
|
4961
|
-
if (args.Length() < 2 || args.Length() > 2) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_sync.");
|
|
4962
|
-
|
|
4963
|
-
res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
|
|
4964
|
-
if (!SWIG_IsOK(res1)) {
|
|
4965
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_sync" "', argument " "1"" of type '" "COpaqueStruct const *""'");
|
|
4998
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_validate_consignment" "', argument " "2"" of type '" "char const *""'");
|
|
4966
4999
|
}
|
|
4967
|
-
|
|
4968
|
-
if (!SWIG_IsOK(
|
|
4969
|
-
SWIG_exception_fail(SWIG_ArgError(
|
|
5000
|
+
arg2 = reinterpret_cast< char * >(buf2);res3 = SWIG_AsCharPtrAndSize(args[2], &buf3, NULL, &alloc3);
|
|
5001
|
+
if (!SWIG_IsOK(res3)) {
|
|
5002
|
+
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rgblib_validate_consignment" "', argument " "3"" of type '" "char const *""'");
|
|
4970
5003
|
}
|
|
4971
|
-
|
|
5004
|
+
arg3 = reinterpret_cast< char * >(buf3);result = rgblib_validate_consignment((char const *)arg1,(char const *)arg2,(char const *)arg3);
|
|
4972
5005
|
|
|
4973
5006
|
switch ((&result)->result) {
|
|
4974
5007
|
case CResultValue::Ok:
|
|
@@ -4984,8 +5017,9 @@ static SwigV8ReturnValue _wrap_rgblib_sync(const SwigV8Arguments &args) {
|
|
|
4984
5017
|
break;
|
|
4985
5018
|
}
|
|
4986
5019
|
|
|
4987
|
-
|
|
4988
|
-
|
|
5020
|
+
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
5021
|
+
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
5022
|
+
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
4989
5023
|
|
|
4990
5024
|
SWIGV8_RETURN(jsresult);
|
|
4991
5025
|
|
|
@@ -4995,13 +5029,14 @@ fail:
|
|
|
4995
5029
|
}
|
|
4996
5030
|
|
|
4997
5031
|
|
|
4998
|
-
static SwigV8ReturnValue
|
|
5032
|
+
static SwigV8ReturnValue _wrap_rgblib_validate_consignment_offchain(const SwigV8Arguments &args) {
|
|
4999
5033
|
SWIGV8_HANDLESCOPE();
|
|
5000
5034
|
|
|
5001
5035
|
SWIGV8_VALUE jsresult;
|
|
5002
5036
|
char *arg1 = (char *) 0 ;
|
|
5003
5037
|
char *arg2 = (char *) 0 ;
|
|
5004
5038
|
char *arg3 = (char *) 0 ;
|
|
5039
|
+
char *arg4 = (char *) 0 ;
|
|
5005
5040
|
int res1 ;
|
|
5006
5041
|
char *buf1 = 0 ;
|
|
5007
5042
|
int alloc1 = 0 ;
|
|
@@ -5011,23 +5046,30 @@ static SwigV8ReturnValue _wrap_rgblib_validate_consignment(const SwigV8Arguments
|
|
|
5011
5046
|
int res3 ;
|
|
5012
5047
|
char *buf3 = 0 ;
|
|
5013
5048
|
int alloc3 = 0 ;
|
|
5049
|
+
int res4 ;
|
|
5050
|
+
char *buf4 = 0 ;
|
|
5051
|
+
int alloc4 = 0 ;
|
|
5014
5052
|
CResultString result;
|
|
5015
5053
|
|
|
5016
|
-
if (args.Length() <
|
|
5054
|
+
if (args.Length() < 4 || args.Length() > 4) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_validate_consignment_offchain.");
|
|
5017
5055
|
|
|
5018
5056
|
res1 = SWIG_AsCharPtrAndSize(args[0], &buf1, NULL, &alloc1);
|
|
5019
5057
|
if (!SWIG_IsOK(res1)) {
|
|
5020
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "
|
|
5058
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_validate_consignment_offchain" "', argument " "1"" of type '" "char const *""'");
|
|
5021
5059
|
}
|
|
5022
5060
|
arg1 = reinterpret_cast< char * >(buf1);res2 = SWIG_AsCharPtrAndSize(args[1], &buf2, NULL, &alloc2);
|
|
5023
5061
|
if (!SWIG_IsOK(res2)) {
|
|
5024
|
-
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "
|
|
5062
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_validate_consignment_offchain" "', argument " "2"" of type '" "char const *""'");
|
|
5025
5063
|
}
|
|
5026
5064
|
arg2 = reinterpret_cast< char * >(buf2);res3 = SWIG_AsCharPtrAndSize(args[2], &buf3, NULL, &alloc3);
|
|
5027
5065
|
if (!SWIG_IsOK(res3)) {
|
|
5028
|
-
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "
|
|
5066
|
+
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rgblib_validate_consignment_offchain" "', argument " "3"" of type '" "char const *""'");
|
|
5029
5067
|
}
|
|
5030
|
-
arg3 = reinterpret_cast< char * >(buf3);
|
|
5068
|
+
arg3 = reinterpret_cast< char * >(buf3);res4 = SWIG_AsCharPtrAndSize(args[3], &buf4, NULL, &alloc4);
|
|
5069
|
+
if (!SWIG_IsOK(res4)) {
|
|
5070
|
+
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rgblib_validate_consignment_offchain" "', argument " "4"" of type '" "char const *""'");
|
|
5071
|
+
}
|
|
5072
|
+
arg4 = reinterpret_cast< char * >(buf4);result = rgblib_validate_consignment_offchain((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
|
|
5031
5073
|
|
|
5032
5074
|
switch ((&result)->result) {
|
|
5033
5075
|
case CResultValue::Ok:
|
|
@@ -5046,6 +5088,7 @@ static SwigV8ReturnValue _wrap_rgblib_validate_consignment(const SwigV8Arguments
|
|
|
5046
5088
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
5047
5089
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
5048
5090
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
5091
|
+
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
5049
5092
|
|
|
5050
5093
|
SWIGV8_RETURN(jsresult);
|
|
5051
5094
|
|
|
@@ -5781,15 +5824,16 @@ SWIGV8_AddStaticFunction(exports_obj, "rgblib_refresh", _wrap_rgblib_refresh, co
|
|
|
5781
5824
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_restore_backup", _wrap_rgblib_restore_backup, context);
|
|
5782
5825
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_restore_from_vss", _wrap_rgblib_restore_from_vss, context);
|
|
5783
5826
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_restore_keys", _wrap_rgblib_restore_keys, context);
|
|
5827
|
+
SWIGV8_AddStaticFunction(exports_obj, "rgblib_rotate_colored_address", _wrap_rgblib_rotate_colored_address, context);
|
|
5828
|
+
SWIGV8_AddStaticFunction(exports_obj, "rgblib_rotate_vanilla_address", _wrap_rgblib_rotate_vanilla_address, context);
|
|
5784
5829
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_send", _wrap_rgblib_send, context);
|
|
5785
5830
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_send_begin", _wrap_rgblib_send_begin, context);
|
|
5786
5831
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_send_btc", _wrap_rgblib_send_btc, context);
|
|
5787
|
-
SWIGV8_AddStaticFunction(exports_obj, "rgblib_send_btc_begin", _wrap_rgblib_send_btc_begin, context);
|
|
5788
|
-
SWIGV8_AddStaticFunction(exports_obj, "rgblib_send_btc_end", _wrap_rgblib_send_btc_end, context);
|
|
5789
5832
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_send_end", _wrap_rgblib_send_end, context);
|
|
5790
5833
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_sign_psbt", _wrap_rgblib_sign_psbt, context);
|
|
5791
5834
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_sync", _wrap_rgblib_sync, context);
|
|
5792
5835
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_validate_consignment", _wrap_rgblib_validate_consignment, context);
|
|
5836
|
+
SWIGV8_AddStaticFunction(exports_obj, "rgblib_validate_consignment_offchain", _wrap_rgblib_validate_consignment_offchain, context);
|
|
5793
5837
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_vss_backup", _wrap_rgblib_vss_backup, context);
|
|
5794
5838
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_vss_backup_client_encryption_enabled", _wrap_rgblib_vss_backup_client_encryption_enabled, context);
|
|
5795
5839
|
SWIGV8_AddStaticFunction(exports_obj, "rgblib_vss_backup_info", _wrap_rgblib_vss_backup_info, context);
|