@utexo/rgb-lib-linux-x64 0.3.0-beta.15 → 0.3.0-beta.16-rc1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utexo/rgb-lib-linux-x64",
3
- "version": "0.3.0-beta.15",
3
+ "version": "0.3.0-beta.16-rc1",
4
4
  "description": "Node.js bindings for rgb-lib on linux-x64",
5
5
  "main": "wrapper.js",
6
6
  "os": [
@@ -44,7 +44,7 @@ CResultString rgblib_backup_info(const COpaqueStruct *wallet);
44
44
  CResultString rgblib_blind_receive(const COpaqueStruct *wallet,
45
45
  const char *asset_id_opt,
46
46
  const char *assignment,
47
- const char *duration_seconds_opt,
47
+ const char *expiration_timestamp_opt,
48
48
  const char *transport_endpoints,
49
49
  const char *min_confirmations);
50
50
 
@@ -131,7 +131,6 @@ CResultString rgblib_issue_asset_ifa(const COpaqueStruct *wallet,
131
131
  const char *precision,
132
132
  const char *amounts,
133
133
  const char *inflation_amounts,
134
- const char *replace_rights_num,
135
134
  const char *reject_list_url_opt);
136
135
 
137
136
  CResultString rgblib_issue_asset_nia(const COpaqueStruct *wallet,
@@ -163,7 +162,7 @@ CResultString rgblib_list_unspents(const COpaqueStruct *wallet,
163
162
 
164
163
  CResult rgblib_new_vss_backup_client(const char *config_json);
165
164
 
166
- CResult rgblib_new_wallet(const char *wallet_data);
165
+ CResult rgblib_new_wallet(const char *wallet_data, const char *keys);
167
166
 
168
167
  CResultString rgblib_refresh(const COpaqueStruct *wallet,
169
168
  const COpaqueStruct *online,
@@ -185,6 +184,7 @@ CResultString rgblib_send(const COpaqueStruct *wallet,
185
184
  bool donation,
186
185
  const char *fee_rate,
187
186
  const char *min_confirmations,
187
+ const char *expiration_timestamp_opt,
188
188
  bool skip_sync);
189
189
 
190
190
  CResultString rgblib_send_begin(const COpaqueStruct *wallet,
@@ -192,7 +192,9 @@ CResultString rgblib_send_begin(const COpaqueStruct *wallet,
192
192
  const char *recipient_map,
193
193
  bool donation,
194
194
  const char *fee_rate,
195
- const char *min_confirmations);
195
+ const char *min_confirmations,
196
+ const char *expiration_timestamp_opt,
197
+ bool dry_run);
196
198
 
197
199
  CResultString rgblib_send_btc(const COpaqueStruct *wallet,
198
200
  const COpaqueStruct *online,
@@ -201,18 +203,6 @@ CResultString rgblib_send_btc(const COpaqueStruct *wallet,
201
203
  const char *fee_rate,
202
204
  bool skip_sync);
203
205
 
204
- CResultString rgblib_send_btc_begin(const COpaqueStruct *wallet,
205
- const COpaqueStruct *online,
206
- const char *address,
207
- const char *amount,
208
- const char *fee_rate,
209
- bool skip_sync);
210
-
211
- CResultString rgblib_send_btc_end(const COpaqueStruct *wallet,
212
- const COpaqueStruct *online,
213
- const char *signed_psbt,
214
- bool skip_sync);
215
-
216
206
  CResultString rgblib_send_end(const COpaqueStruct *wallet,
217
207
  const COpaqueStruct *online,
218
208
  const char *signed_psbt,
@@ -226,6 +216,11 @@ CResultString rgblib_validate_consignment(const char *file_path,
226
216
  const char *indexer_url,
227
217
  const char *bitcoin_network);
228
218
 
219
+ CResultString rgblib_validate_consignment_offchain(const char *file_path,
220
+ const char *txid,
221
+ const char *indexer_url,
222
+ const char *bitcoin_network);
223
+
229
224
  CResultString rgblib_vss_backup(const COpaqueStruct *wallet, const COpaqueStruct *client);
230
225
 
231
226
  CResultString rgblib_vss_backup_client_encryption_enabled(const COpaqueStruct *client);
@@ -237,7 +232,7 @@ CResultString rgblib_vss_delete_backup(const COpaqueStruct *client);
237
232
  CResultString rgblib_witness_receive(const COpaqueStruct *wallet,
238
233
  const char *asset_id_opt,
239
234
  const char *assignment,
240
- const char *duration_seconds_opt,
235
+ const char *expiration_timestamp_opt,
241
236
  const char *transport_endpoints,
242
237
  const char *min_confirmations);
243
238
 
package/swig_wrap.cxx CHANGED
@@ -2329,6 +2329,9 @@ static SwigV8ReturnValue _wrap_rgblib_blind_receive(const SwigV8Arguments &args)
2329
2329
  int res3 ;
2330
2330
  char *buf3 = 0 ;
2331
2331
  int alloc3 = 0 ;
2332
+ int res4 ;
2333
+ char *buf4 = 0 ;
2334
+ int alloc4 = 0 ;
2332
2335
  int res5 ;
2333
2336
  char *buf5 = 0 ;
2334
2337
  int alloc5 = 0 ;
@@ -2359,19 +2362,11 @@ static SwigV8ReturnValue _wrap_rgblib_blind_receive(const SwigV8Arguments &args)
2359
2362
  if (!SWIG_IsOK(res3)) {
2360
2363
  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rgblib_blind_receive" "', argument " "3"" of type '" "char const *""'");
2361
2364
  }
2362
- arg3 = reinterpret_cast< char * >(buf3);{
2363
- {
2364
- if (args[3] == v8::Null(v8::Isolate::GetCurrent())) {
2365
- arg4 = nullptr;
2366
- } else {
2367
- int res = SWIG_AsCharPtrAndSize(args[3], (char**)&arg4, NULL, NULL);
2368
- if (!SWIG_IsOK(res)) {
2369
- SWIG_exception_fail(SWIG_ArgError(res), "in method '" "rgblib_blind_receive" "', argument '" "4""' of type '" "char const *""'");
2370
- }
2371
- }
2372
- }
2365
+ arg3 = reinterpret_cast< char * >(buf3);res4 = SWIG_AsCharPtrAndSize(args[3], &buf4, NULL, &alloc4);
2366
+ if (!SWIG_IsOK(res4)) {
2367
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rgblib_blind_receive" "', argument " "4"" of type '" "char const *""'");
2373
2368
  }
2374
- res5 = SWIG_AsCharPtrAndSize(args[4], &buf5, NULL, &alloc5);
2369
+ arg4 = reinterpret_cast< char * >(buf4);res5 = SWIG_AsCharPtrAndSize(args[4], &buf5, NULL, &alloc5);
2375
2370
  if (!SWIG_IsOK(res5)) {
2376
2371
  SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rgblib_blind_receive" "', argument " "5"" of type '" "char const *""'");
2377
2372
  }
@@ -2397,6 +2392,7 @@ static SwigV8ReturnValue _wrap_rgblib_blind_receive(const SwigV8Arguments &args)
2397
2392
 
2398
2393
 
2399
2394
  if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2395
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
2400
2396
  if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
2401
2397
  if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
2402
2398
 
@@ -3607,7 +3603,6 @@ static SwigV8ReturnValue _wrap_rgblib_issue_asset_ifa(const SwigV8Arguments &arg
3607
3603
  char *arg5 = (char *) 0 ;
3608
3604
  char *arg6 = (char *) 0 ;
3609
3605
  char *arg7 = (char *) 0 ;
3610
- char *arg8 = (char *) 0 ;
3611
3606
  void *argp1 = 0 ;
3612
3607
  int res1 = 0 ;
3613
3608
  int res2 ;
@@ -3625,12 +3620,9 @@ static SwigV8ReturnValue _wrap_rgblib_issue_asset_ifa(const SwigV8Arguments &arg
3625
3620
  int res6 ;
3626
3621
  char *buf6 = 0 ;
3627
3622
  int alloc6 = 0 ;
3628
- int res7 ;
3629
- char *buf7 = 0 ;
3630
- int alloc7 = 0 ;
3631
3623
  CResultString result;
3632
3624
 
3633
- if (args.Length() < 8 || args.Length() > 8) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_issue_asset_ifa.");
3625
+ if (args.Length() < 7 || args.Length() > 7) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_issue_asset_ifa.");
3634
3626
 
3635
3627
  res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
3636
3628
  if (!SWIG_IsOK(res1)) {
@@ -3656,23 +3648,19 @@ static SwigV8ReturnValue _wrap_rgblib_issue_asset_ifa(const SwigV8Arguments &arg
3656
3648
  if (!SWIG_IsOK(res6)) {
3657
3649
  SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "rgblib_issue_asset_ifa" "', argument " "6"" of type '" "char const *""'");
3658
3650
  }
3659
- arg6 = reinterpret_cast< char * >(buf6);res7 = SWIG_AsCharPtrAndSize(args[6], &buf7, NULL, &alloc7);
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);{
3651
+ arg6 = reinterpret_cast< char * >(buf6);{
3664
3652
  {
3665
- if (args[7] == v8::Null(v8::Isolate::GetCurrent())) {
3666
- arg8 = nullptr;
3653
+ if (args[6] == v8::Null(v8::Isolate::GetCurrent())) {
3654
+ arg7 = nullptr;
3667
3655
  } else {
3668
- int res = SWIG_AsCharPtrAndSize(args[7], (char**)&arg8, NULL, NULL);
3656
+ int res = SWIG_AsCharPtrAndSize(args[6], (char**)&arg7, NULL, NULL);
3669
3657
  if (!SWIG_IsOK(res)) {
3670
- SWIG_exception_fail(SWIG_ArgError(res), "in method '" "rgblib_issue_asset_ifa" "', argument '" "8""' of type '" "char const *""'");
3658
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "rgblib_issue_asset_ifa" "', argument '" "7""' of type '" "char const *""'");
3671
3659
  }
3672
3660
  }
3673
3661
  }
3674
3662
  }
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,(char const *)arg8);
3663
+ 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
3664
 
3677
3665
  switch ((&result)->result) {
3678
3666
  case CResultValue::Ok:
@@ -3694,7 +3682,6 @@ static SwigV8ReturnValue _wrap_rgblib_issue_asset_ifa(const SwigV8Arguments &arg
3694
3682
  if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
3695
3683
  if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
3696
3684
  if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
3697
- if (alloc7 == SWIG_NEWOBJ) delete[] buf7;
3698
3685
 
3699
3686
  SWIGV8_RETURN(jsresult);
3700
3687
 
@@ -4152,18 +4139,26 @@ static SwigV8ReturnValue _wrap_rgblib_new_wallet(const SwigV8Arguments &args) {
4152
4139
 
4153
4140
  SWIGV8_VALUE jsresult;
4154
4141
  char *arg1 = (char *) 0 ;
4142
+ char *arg2 = (char *) 0 ;
4155
4143
  int res1 ;
4156
4144
  char *buf1 = 0 ;
4157
4145
  int alloc1 = 0 ;
4146
+ int res2 ;
4147
+ char *buf2 = 0 ;
4148
+ int alloc2 = 0 ;
4158
4149
  CResult result;
4159
4150
 
4160
- if (args.Length() < 1 || args.Length() > 1) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_new_wallet.");
4151
+ if (args.Length() < 2 || args.Length() > 2) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_new_wallet.");
4161
4152
 
4162
4153
  res1 = SWIG_AsCharPtrAndSize(args[0], &buf1, NULL, &alloc1);
4163
4154
  if (!SWIG_IsOK(res1)) {
4164
4155
  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_new_wallet" "', argument " "1"" of type '" "char const *""'");
4165
4156
  }
4166
- arg1 = reinterpret_cast< char * >(buf1);result = rgblib_new_wallet((char const *)arg1);
4157
+ arg1 = reinterpret_cast< char * >(buf1);res2 = SWIG_AsCharPtrAndSize(args[1], &buf2, NULL, &alloc2);
4158
+ if (!SWIG_IsOK(res2)) {
4159
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_new_wallet" "', argument " "2"" of type '" "char const *""'");
4160
+ }
4161
+ arg2 = reinterpret_cast< char * >(buf2);result = rgblib_new_wallet((char const *)arg1,(char const *)arg2);
4167
4162
 
4168
4163
  switch ((&result)->result) {
4169
4164
  case CResultValue::Ok:
@@ -4175,6 +4170,7 @@ static SwigV8ReturnValue _wrap_rgblib_new_wallet(const SwigV8Arguments &args) {
4175
4170
  }
4176
4171
 
4177
4172
  if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
4173
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4178
4174
 
4179
4175
  SWIGV8_RETURN(jsresult);
4180
4176
 
@@ -4430,7 +4426,8 @@ static SwigV8ReturnValue _wrap_rgblib_send(const SwigV8Arguments &args) {
4430
4426
  bool arg4 ;
4431
4427
  char *arg5 = (char *) 0 ;
4432
4428
  char *arg6 = (char *) 0 ;
4433
- bool arg7 ;
4429
+ char *arg7 = (char *) 0 ;
4430
+ bool arg8 ;
4434
4431
  void *argp1 = 0 ;
4435
4432
  int res1 = 0 ;
4436
4433
  void *argp2 = 0 ;
@@ -4446,11 +4443,14 @@ static SwigV8ReturnValue _wrap_rgblib_send(const SwigV8Arguments &args) {
4446
4443
  int res6 ;
4447
4444
  char *buf6 = 0 ;
4448
4445
  int alloc6 = 0 ;
4449
- bool val7 ;
4450
- int ecode7 = 0 ;
4446
+ int res7 ;
4447
+ char *buf7 = 0 ;
4448
+ int alloc7 = 0 ;
4449
+ bool val8 ;
4450
+ int ecode8 = 0 ;
4451
4451
  CResultString result;
4452
4452
 
4453
- if (args.Length() < 7 || args.Length() > 7) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_send.");
4453
+ if (args.Length() < 8 || args.Length() > 8) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_send.");
4454
4454
 
4455
4455
  res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
4456
4456
  if (!SWIG_IsOK(res1)) {
@@ -4476,11 +4476,15 @@ static SwigV8ReturnValue _wrap_rgblib_send(const SwigV8Arguments &args) {
4476
4476
  if (!SWIG_IsOK(res6)) {
4477
4477
  SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "rgblib_send" "', argument " "6"" of type '" "char const *""'");
4478
4478
  }
4479
- arg6 = reinterpret_cast< char * >(buf6);ecode7 = SWIG_AsVal_bool(args[6], &val7);
4480
- if (!SWIG_IsOK(ecode7)) {
4481
- SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "rgblib_send" "', argument " "7"" of type '" "bool""'");
4479
+ arg6 = reinterpret_cast< char * >(buf6);res7 = SWIG_AsCharPtrAndSize(args[6], &buf7, NULL, &alloc7);
4480
+ if (!SWIG_IsOK(res7)) {
4481
+ SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rgblib_send" "', argument " "7"" of type '" "char const *""'");
4482
+ }
4483
+ arg7 = reinterpret_cast< char * >(buf7);ecode8 = SWIG_AsVal_bool(args[7], &val8);
4484
+ if (!SWIG_IsOK(ecode8)) {
4485
+ SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "rgblib_send" "', argument " "8"" of type '" "bool""'");
4482
4486
  }
4483
- arg7 = static_cast< bool >(val7);result = rgblib_send((COpaqueStruct const *)arg1,(COpaqueStruct const *)arg2,(char const *)arg3,arg4,(char const *)arg5,(char const *)arg6,arg7);
4487
+ 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
4488
 
4485
4489
  switch ((&result)->result) {
4486
4490
  case CResultValue::Ok:
@@ -4502,6 +4506,7 @@ static SwigV8ReturnValue _wrap_rgblib_send(const SwigV8Arguments &args) {
4502
4506
 
4503
4507
  if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
4504
4508
  if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
4509
+ if (alloc7 == SWIG_NEWOBJ) delete[] buf7;
4505
4510
 
4506
4511
 
4507
4512
  SWIGV8_RETURN(jsresult);
@@ -4522,6 +4527,8 @@ static SwigV8ReturnValue _wrap_rgblib_send_begin(const SwigV8Arguments &args) {
4522
4527
  bool arg4 ;
4523
4528
  char *arg5 = (char *) 0 ;
4524
4529
  char *arg6 = (char *) 0 ;
4530
+ char *arg7 = (char *) 0 ;
4531
+ bool arg8 ;
4525
4532
  void *argp1 = 0 ;
4526
4533
  int res1 = 0 ;
4527
4534
  void *argp2 = 0 ;
@@ -4537,9 +4544,14 @@ static SwigV8ReturnValue _wrap_rgblib_send_begin(const SwigV8Arguments &args) {
4537
4544
  int res6 ;
4538
4545
  char *buf6 = 0 ;
4539
4546
  int alloc6 = 0 ;
4547
+ int res7 ;
4548
+ char *buf7 = 0 ;
4549
+ int alloc7 = 0 ;
4550
+ bool val8 ;
4551
+ int ecode8 = 0 ;
4540
4552
  CResultString result;
4541
4553
 
4542
- if (args.Length() < 6 || args.Length() > 6) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_send_begin.");
4554
+ if (args.Length() < 8 || args.Length() > 8) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_send_begin.");
4543
4555
 
4544
4556
  res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
4545
4557
  if (!SWIG_IsOK(res1)) {
@@ -4565,7 +4577,15 @@ static SwigV8ReturnValue _wrap_rgblib_send_begin(const SwigV8Arguments &args) {
4565
4577
  if (!SWIG_IsOK(res6)) {
4566
4578
  SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "rgblib_send_begin" "', argument " "6"" of type '" "char const *""'");
4567
4579
  }
4568
- arg6 = reinterpret_cast< char * >(buf6);result = rgblib_send_begin((COpaqueStruct const *)arg1,(COpaqueStruct const *)arg2,(char const *)arg3,arg4,(char const *)arg5,(char const *)arg6);
4580
+ arg6 = reinterpret_cast< char * >(buf6);res7 = SWIG_AsCharPtrAndSize(args[6], &buf7, NULL, &alloc7);
4581
+ if (!SWIG_IsOK(res7)) {
4582
+ SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rgblib_send_begin" "', argument " "7"" of type '" "char const *""'");
4583
+ }
4584
+ arg7 = reinterpret_cast< char * >(buf7);ecode8 = SWIG_AsVal_bool(args[7], &val8);
4585
+ if (!SWIG_IsOK(ecode8)) {
4586
+ SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "rgblib_send_begin" "', argument " "8"" of type '" "bool""'");
4587
+ }
4588
+ 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
4589
 
4570
4590
  switch ((&result)->result) {
4571
4591
  case CResultValue::Ok:
@@ -4587,6 +4607,8 @@ static SwigV8ReturnValue _wrap_rgblib_send_begin(const SwigV8Arguments &args) {
4587
4607
 
4588
4608
  if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
4589
4609
  if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
4610
+ if (alloc7 == SWIG_NEWOBJ) delete[] buf7;
4611
+
4590
4612
 
4591
4613
  SWIGV8_RETURN(jsresult);
4592
4614
 
@@ -4680,16 +4702,14 @@ fail:
4680
4702
  }
4681
4703
 
4682
4704
 
4683
- static SwigV8ReturnValue _wrap_rgblib_send_btc_begin(const SwigV8Arguments &args) {
4705
+ static SwigV8ReturnValue _wrap_rgblib_send_end(const SwigV8Arguments &args) {
4684
4706
  SWIGV8_HANDLESCOPE();
4685
4707
 
4686
4708
  SWIGV8_VALUE jsresult;
4687
4709
  COpaqueStruct *arg1 = (COpaqueStruct *) 0 ;
4688
4710
  COpaqueStruct *arg2 = (COpaqueStruct *) 0 ;
4689
4711
  char *arg3 = (char *) 0 ;
4690
- char *arg4 = (char *) 0 ;
4691
- char *arg5 = (char *) 0 ;
4692
- bool arg6 ;
4712
+ bool arg4 ;
4693
4713
  void *argp1 = 0 ;
4694
4714
  int res1 = 0 ;
4695
4715
  void *argp2 = 0 ;
@@ -4697,43 +4717,29 @@ static SwigV8ReturnValue _wrap_rgblib_send_btc_begin(const SwigV8Arguments &args
4697
4717
  int res3 ;
4698
4718
  char *buf3 = 0 ;
4699
4719
  int alloc3 = 0 ;
4700
- int res4 ;
4701
- char *buf4 = 0 ;
4702
- int alloc4 = 0 ;
4703
- int res5 ;
4704
- char *buf5 = 0 ;
4705
- int alloc5 = 0 ;
4706
- bool val6 ;
4707
- int ecode6 = 0 ;
4720
+ bool val4 ;
4721
+ int ecode4 = 0 ;
4708
4722
  CResultString result;
4709
4723
 
4710
- if (args.Length() < 6 || args.Length() > 6) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_send_btc_begin.");
4724
+ if (args.Length() < 4 || args.Length() > 4) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_send_end.");
4711
4725
 
4712
4726
  res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
4713
4727
  if (!SWIG_IsOK(res1)) {
4714
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_send_btc_begin" "', argument " "1"" of type '" "COpaqueStruct const *""'");
4728
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_send_end" "', argument " "1"" of type '" "COpaqueStruct const *""'");
4715
4729
  }
4716
4730
  arg1 = reinterpret_cast< COpaqueStruct * >(argp1);res2 = SWIG_ConvertPtr(args[1], &argp2,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
4717
4731
  if (!SWIG_IsOK(res2)) {
4718
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_send_btc_begin" "', argument " "2"" of type '" "COpaqueStruct const *""'");
4732
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_send_end" "', argument " "2"" of type '" "COpaqueStruct const *""'");
4719
4733
  }
4720
4734
  arg2 = reinterpret_cast< COpaqueStruct * >(argp2);res3 = SWIG_AsCharPtrAndSize(args[2], &buf3, NULL, &alloc3);
4721
4735
  if (!SWIG_IsOK(res3)) {
4722
- SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rgblib_send_btc_begin" "', argument " "3"" of type '" "char const *""'");
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 *""'");
4736
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rgblib_send_end" "', argument " "3"" of type '" "char const *""'");
4731
4737
  }
4732
- arg5 = reinterpret_cast< char * >(buf5);ecode6 = SWIG_AsVal_bool(args[5], &val6);
4733
- if (!SWIG_IsOK(ecode6)) {
4734
- SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rgblib_send_btc_begin" "', argument " "6"" of type '" "bool""'");
4738
+ arg3 = reinterpret_cast< char * >(buf3);ecode4 = SWIG_AsVal_bool(args[3], &val4);
4739
+ if (!SWIG_IsOK(ecode4)) {
4740
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rgblib_send_end" "', argument " "4"" of type '" "bool""'");
4735
4741
  }
4736
- arg6 = static_cast< bool >(val6);result = rgblib_send_btc_begin((COpaqueStruct const *)arg1,(COpaqueStruct const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6);
4742
+ arg4 = static_cast< bool >(val4);result = rgblib_send_end((COpaqueStruct const *)arg1,(COpaqueStruct const *)arg2,(char const *)arg3,arg4);
4737
4743
 
4738
4744
  switch ((&result)->result) {
4739
4745
  case CResultValue::Ok:
@@ -4752,8 +4758,6 @@ static SwigV8ReturnValue _wrap_rgblib_send_btc_begin(const SwigV8Arguments &args
4752
4758
 
4753
4759
 
4754
4760
  if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4755
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
4756
- if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
4757
4761
 
4758
4762
 
4759
4763
  SWIGV8_RETURN(jsresult);
@@ -4764,44 +4768,30 @@ fail:
4764
4768
  }
4765
4769
 
4766
4770
 
4767
- static SwigV8ReturnValue _wrap_rgblib_send_btc_end(const SwigV8Arguments &args) {
4771
+ static SwigV8ReturnValue _wrap_rgblib_sign_psbt(const SwigV8Arguments &args) {
4768
4772
  SWIGV8_HANDLESCOPE();
4769
4773
 
4770
4774
  SWIGV8_VALUE jsresult;
4771
4775
  COpaqueStruct *arg1 = (COpaqueStruct *) 0 ;
4772
- COpaqueStruct *arg2 = (COpaqueStruct *) 0 ;
4773
- char *arg3 = (char *) 0 ;
4774
- bool arg4 ;
4776
+ char *arg2 = (char *) 0 ;
4775
4777
  void *argp1 = 0 ;
4776
4778
  int res1 = 0 ;
4777
- void *argp2 = 0 ;
4778
- int res2 = 0 ;
4779
- int res3 ;
4780
- char *buf3 = 0 ;
4781
- int alloc3 = 0 ;
4782
- bool val4 ;
4783
- int ecode4 = 0 ;
4779
+ int res2 ;
4780
+ char *buf2 = 0 ;
4781
+ int alloc2 = 0 ;
4784
4782
  CResultString result;
4785
4783
 
4786
- if (args.Length() < 4 || args.Length() > 4) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_send_btc_end.");
4784
+ if (args.Length() < 2 || args.Length() > 2) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_sign_psbt.");
4787
4785
 
4788
4786
  res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
4789
4787
  if (!SWIG_IsOK(res1)) {
4790
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_send_btc_end" "', argument " "1"" of type '" "COpaqueStruct const *""'");
4788
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_sign_psbt" "', argument " "1"" of type '" "COpaqueStruct const *""'");
4791
4789
  }
4792
- arg1 = reinterpret_cast< COpaqueStruct * >(argp1);res2 = SWIG_ConvertPtr(args[1], &argp2,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
4790
+ arg1 = reinterpret_cast< COpaqueStruct * >(argp1);res2 = SWIG_AsCharPtrAndSize(args[1], &buf2, NULL, &alloc2);
4793
4791
  if (!SWIG_IsOK(res2)) {
4794
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_send_btc_end" "', argument " "2"" of type '" "COpaqueStruct const *""'");
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 *""'");
4792
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_sign_psbt" "', argument " "2"" of type '" "char const *""'");
4799
4793
  }
4800
- arg3 = reinterpret_cast< char * >(buf3);ecode4 = SWIG_AsVal_bool(args[3], &val4);
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);
4794
+ arg2 = reinterpret_cast< char * >(buf2);result = rgblib_sign_psbt((COpaqueStruct const *)arg1,(char const *)arg2);
4805
4795
 
4806
4796
  switch ((&result)->result) {
4807
4797
  case CResultValue::Ok:
@@ -4818,9 +4808,7 @@ static SwigV8ReturnValue _wrap_rgblib_send_btc_end(const SwigV8Arguments &args)
4818
4808
  }
4819
4809
 
4820
4810
 
4821
-
4822
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4823
-
4811
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4824
4812
 
4825
4813
  SWIGV8_RETURN(jsresult);
4826
4814
 
@@ -4830,44 +4818,29 @@ fail:
4830
4818
  }
4831
4819
 
4832
4820
 
4833
- static SwigV8ReturnValue _wrap_rgblib_send_end(const SwigV8Arguments &args) {
4821
+ static SwigV8ReturnValue _wrap_rgblib_sync(const SwigV8Arguments &args) {
4834
4822
  SWIGV8_HANDLESCOPE();
4835
4823
 
4836
4824
  SWIGV8_VALUE jsresult;
4837
4825
  COpaqueStruct *arg1 = (COpaqueStruct *) 0 ;
4838
4826
  COpaqueStruct *arg2 = (COpaqueStruct *) 0 ;
4839
- char *arg3 = (char *) 0 ;
4840
- bool arg4 ;
4841
4827
  void *argp1 = 0 ;
4842
4828
  int res1 = 0 ;
4843
4829
  void *argp2 = 0 ;
4844
4830
  int res2 = 0 ;
4845
- int res3 ;
4846
- char *buf3 = 0 ;
4847
- int alloc3 = 0 ;
4848
- bool val4 ;
4849
- int ecode4 = 0 ;
4850
4831
  CResultString result;
4851
4832
 
4852
- if (args.Length() < 4 || args.Length() > 4) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_send_end.");
4833
+ if (args.Length() < 2 || args.Length() > 2) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_sync.");
4853
4834
 
4854
4835
  res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
4855
4836
  if (!SWIG_IsOK(res1)) {
4856
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_send_end" "', argument " "1"" of type '" "COpaqueStruct const *""'");
4837
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_sync" "', argument " "1"" of type '" "COpaqueStruct const *""'");
4857
4838
  }
4858
4839
  arg1 = reinterpret_cast< COpaqueStruct * >(argp1);res2 = SWIG_ConvertPtr(args[1], &argp2,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
4859
4840
  if (!SWIG_IsOK(res2)) {
4860
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_send_end" "', argument " "2"" of type '" "COpaqueStruct const *""'");
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 *""'");
4841
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_sync" "', argument " "2"" of type '" "COpaqueStruct const *""'");
4865
4842
  }
4866
- arg3 = reinterpret_cast< char * >(buf3);ecode4 = SWIG_AsVal_bool(args[3], &val4);
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);
4843
+ arg2 = reinterpret_cast< COpaqueStruct * >(argp2);result = rgblib_sync((COpaqueStruct const *)arg1,(COpaqueStruct const *)arg2);
4871
4844
 
4872
4845
  switch ((&result)->result) {
4873
4846
  case CResultValue::Ok:
@@ -4885,8 +4858,6 @@ static SwigV8ReturnValue _wrap_rgblib_send_end(const SwigV8Arguments &args) {
4885
4858
 
4886
4859
 
4887
4860
 
4888
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4889
-
4890
4861
 
4891
4862
  SWIGV8_RETURN(jsresult);
4892
4863
 
@@ -4896,79 +4867,39 @@ fail:
4896
4867
  }
4897
4868
 
4898
4869
 
4899
- static SwigV8ReturnValue _wrap_rgblib_sign_psbt(const SwigV8Arguments &args) {
4870
+ static SwigV8ReturnValue _wrap_rgblib_validate_consignment(const SwigV8Arguments &args) {
4900
4871
  SWIGV8_HANDLESCOPE();
4901
4872
 
4902
4873
  SWIGV8_VALUE jsresult;
4903
- COpaqueStruct *arg1 = (COpaqueStruct *) 0 ;
4874
+ char *arg1 = (char *) 0 ;
4904
4875
  char *arg2 = (char *) 0 ;
4905
- void *argp1 = 0 ;
4906
- int res1 = 0 ;
4876
+ char *arg3 = (char *) 0 ;
4877
+ int res1 ;
4878
+ char *buf1 = 0 ;
4879
+ int alloc1 = 0 ;
4907
4880
  int res2 ;
4908
4881
  char *buf2 = 0 ;
4909
4882
  int alloc2 = 0 ;
4883
+ int res3 ;
4884
+ char *buf3 = 0 ;
4885
+ int alloc3 = 0 ;
4910
4886
  CResultString result;
4911
4887
 
4912
- if (args.Length() < 2 || args.Length() > 2) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_sign_psbt.");
4888
+ if (args.Length() < 3 || args.Length() > 3) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_validate_consignment.");
4913
4889
 
4914
- res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
4890
+ res1 = SWIG_AsCharPtrAndSize(args[0], &buf1, NULL, &alloc1);
4915
4891
  if (!SWIG_IsOK(res1)) {
4916
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_sign_psbt" "', argument " "1"" of type '" "COpaqueStruct const *""'");
4892
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_validate_consignment" "', argument " "1"" of type '" "char const *""'");
4917
4893
  }
4918
- arg1 = reinterpret_cast< COpaqueStruct * >(argp1);res2 = SWIG_AsCharPtrAndSize(args[1], &buf2, NULL, &alloc2);
4894
+ arg1 = reinterpret_cast< char * >(buf1);res2 = SWIG_AsCharPtrAndSize(args[1], &buf2, NULL, &alloc2);
4919
4895
  if (!SWIG_IsOK(res2)) {
4920
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_sign_psbt" "', argument " "2"" of type '" "char const *""'");
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 *""'");
4896
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_validate_consignment" "', argument " "2"" of type '" "char const *""'");
4966
4897
  }
4967
- arg1 = reinterpret_cast< COpaqueStruct * >(argp1);res2 = SWIG_ConvertPtr(args[1], &argp2,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
4968
- if (!SWIG_IsOK(res2)) {
4969
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_sync" "', argument " "2"" of type '" "COpaqueStruct const *""'");
4898
+ arg2 = reinterpret_cast< char * >(buf2);res3 = SWIG_AsCharPtrAndSize(args[2], &buf3, NULL, &alloc3);
4899
+ if (!SWIG_IsOK(res3)) {
4900
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rgblib_validate_consignment" "', argument " "3"" of type '" "char const *""'");
4970
4901
  }
4971
- arg2 = reinterpret_cast< COpaqueStruct * >(argp2);result = rgblib_sync((COpaqueStruct const *)arg1,(COpaqueStruct const *)arg2);
4902
+ arg3 = reinterpret_cast< char * >(buf3);result = rgblib_validate_consignment((char const *)arg1,(char const *)arg2,(char const *)arg3);
4972
4903
 
4973
4904
  switch ((&result)->result) {
4974
4905
  case CResultValue::Ok:
@@ -4984,8 +4915,9 @@ static SwigV8ReturnValue _wrap_rgblib_sync(const SwigV8Arguments &args) {
4984
4915
  break;
4985
4916
  }
4986
4917
 
4987
-
4988
-
4918
+ if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
4919
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4920
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4989
4921
 
4990
4922
  SWIGV8_RETURN(jsresult);
4991
4923
 
@@ -4995,13 +4927,14 @@ fail:
4995
4927
  }
4996
4928
 
4997
4929
 
4998
- static SwigV8ReturnValue _wrap_rgblib_validate_consignment(const SwigV8Arguments &args) {
4930
+ static SwigV8ReturnValue _wrap_rgblib_validate_consignment_offchain(const SwigV8Arguments &args) {
4999
4931
  SWIGV8_HANDLESCOPE();
5000
4932
 
5001
4933
  SWIGV8_VALUE jsresult;
5002
4934
  char *arg1 = (char *) 0 ;
5003
4935
  char *arg2 = (char *) 0 ;
5004
4936
  char *arg3 = (char *) 0 ;
4937
+ char *arg4 = (char *) 0 ;
5005
4938
  int res1 ;
5006
4939
  char *buf1 = 0 ;
5007
4940
  int alloc1 = 0 ;
@@ -5011,23 +4944,30 @@ static SwigV8ReturnValue _wrap_rgblib_validate_consignment(const SwigV8Arguments
5011
4944
  int res3 ;
5012
4945
  char *buf3 = 0 ;
5013
4946
  int alloc3 = 0 ;
4947
+ int res4 ;
4948
+ char *buf4 = 0 ;
4949
+ int alloc4 = 0 ;
5014
4950
  CResultString result;
5015
4951
 
5016
- if (args.Length() < 3 || args.Length() > 3) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_validate_consignment.");
4952
+ if (args.Length() < 4 || args.Length() > 4) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_validate_consignment_offchain.");
5017
4953
 
5018
4954
  res1 = SWIG_AsCharPtrAndSize(args[0], &buf1, NULL, &alloc1);
5019
4955
  if (!SWIG_IsOK(res1)) {
5020
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_validate_consignment" "', argument " "1"" of type '" "char const *""'");
4956
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_validate_consignment_offchain" "', argument " "1"" of type '" "char const *""'");
5021
4957
  }
5022
4958
  arg1 = reinterpret_cast< char * >(buf1);res2 = SWIG_AsCharPtrAndSize(args[1], &buf2, NULL, &alloc2);
5023
4959
  if (!SWIG_IsOK(res2)) {
5024
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_validate_consignment" "', argument " "2"" of type '" "char const *""'");
4960
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rgblib_validate_consignment_offchain" "', argument " "2"" of type '" "char const *""'");
5025
4961
  }
5026
4962
  arg2 = reinterpret_cast< char * >(buf2);res3 = SWIG_AsCharPtrAndSize(args[2], &buf3, NULL, &alloc3);
5027
4963
  if (!SWIG_IsOK(res3)) {
5028
- SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rgblib_validate_consignment" "', argument " "3"" of type '" "char const *""'");
4964
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rgblib_validate_consignment_offchain" "', argument " "3"" of type '" "char const *""'");
5029
4965
  }
5030
- arg3 = reinterpret_cast< char * >(buf3);result = rgblib_validate_consignment((char const *)arg1,(char const *)arg2,(char const *)arg3);
4966
+ arg3 = reinterpret_cast< char * >(buf3);res4 = SWIG_AsCharPtrAndSize(args[3], &buf4, NULL, &alloc4);
4967
+ if (!SWIG_IsOK(res4)) {
4968
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rgblib_validate_consignment_offchain" "', argument " "4"" of type '" "char const *""'");
4969
+ }
4970
+ arg4 = reinterpret_cast< char * >(buf4);result = rgblib_validate_consignment_offchain((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
5031
4971
 
5032
4972
  switch ((&result)->result) {
5033
4973
  case CResultValue::Ok:
@@ -5046,6 +4986,7 @@ static SwigV8ReturnValue _wrap_rgblib_validate_consignment(const SwigV8Arguments
5046
4986
  if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
5047
4987
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5048
4988
  if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
4989
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
5049
4990
 
5050
4991
  SWIGV8_RETURN(jsresult);
5051
4992
 
@@ -5250,6 +5191,9 @@ static SwigV8ReturnValue _wrap_rgblib_witness_receive(const SwigV8Arguments &arg
5250
5191
  int res3 ;
5251
5192
  char *buf3 = 0 ;
5252
5193
  int alloc3 = 0 ;
5194
+ int res4 ;
5195
+ char *buf4 = 0 ;
5196
+ int alloc4 = 0 ;
5253
5197
  int res5 ;
5254
5198
  char *buf5 = 0 ;
5255
5199
  int alloc5 = 0 ;
@@ -5280,19 +5224,11 @@ static SwigV8ReturnValue _wrap_rgblib_witness_receive(const SwigV8Arguments &arg
5280
5224
  if (!SWIG_IsOK(res3)) {
5281
5225
  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rgblib_witness_receive" "', argument " "3"" of type '" "char const *""'");
5282
5226
  }
5283
- arg3 = reinterpret_cast< char * >(buf3);{
5284
- {
5285
- if (args[3] == v8::Null(v8::Isolate::GetCurrent())) {
5286
- arg4 = nullptr;
5287
- } else {
5288
- int res = SWIG_AsCharPtrAndSize(args[3], (char**)&arg4, NULL, NULL);
5289
- if (!SWIG_IsOK(res)) {
5290
- SWIG_exception_fail(SWIG_ArgError(res), "in method '" "rgblib_witness_receive" "', argument '" "4""' of type '" "char const *""'");
5291
- }
5292
- }
5293
- }
5227
+ arg3 = reinterpret_cast< char * >(buf3);res4 = SWIG_AsCharPtrAndSize(args[3], &buf4, NULL, &alloc4);
5228
+ if (!SWIG_IsOK(res4)) {
5229
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rgblib_witness_receive" "', argument " "4"" of type '" "char const *""'");
5294
5230
  }
5295
- res5 = SWIG_AsCharPtrAndSize(args[4], &buf5, NULL, &alloc5);
5231
+ arg4 = reinterpret_cast< char * >(buf4);res5 = SWIG_AsCharPtrAndSize(args[4], &buf5, NULL, &alloc5);
5296
5232
  if (!SWIG_IsOK(res5)) {
5297
5233
  SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rgblib_witness_receive" "', argument " "5"" of type '" "char const *""'");
5298
5234
  }
@@ -5318,6 +5254,7 @@ static SwigV8ReturnValue _wrap_rgblib_witness_receive(const SwigV8Arguments &arg
5318
5254
 
5319
5255
 
5320
5256
  if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
5257
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
5321
5258
  if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
5322
5259
  if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
5323
5260
 
@@ -5784,12 +5721,11 @@ SWIGV8_AddStaticFunction(exports_obj, "rgblib_restore_keys", _wrap_rgblib_restor
5784
5721
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_send", _wrap_rgblib_send, context);
5785
5722
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_send_begin", _wrap_rgblib_send_begin, context);
5786
5723
  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
5724
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_send_end", _wrap_rgblib_send_end, context);
5790
5725
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_sign_psbt", _wrap_rgblib_sign_psbt, context);
5791
5726
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_sync", _wrap_rgblib_sync, context);
5792
5727
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_validate_consignment", _wrap_rgblib_validate_consignment, context);
5728
+ SWIGV8_AddStaticFunction(exports_obj, "rgblib_validate_consignment_offchain", _wrap_rgblib_validate_consignment_offchain, context);
5793
5729
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_vss_backup", _wrap_rgblib_vss_backup, context);
5794
5730
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_vss_backup_client_encryption_enabled", _wrap_rgblib_vss_backup_client_encryption_enabled, context);
5795
5731
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_vss_backup_info", _wrap_rgblib_vss_backup_info, context);