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

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.16-rc1",
3
+ "version": "0.3.0-beta.17",
4
4
  "description": "Node.js bindings for rgb-lib on linux-x64",
5
5
  "main": "wrapper.js",
6
6
  "os": [
@@ -178,6 +178,10 @@ CResultString rgblib_restore_from_vss(const char *config_json, const char *targe
178
178
 
179
179
  CResultString rgblib_restore_keys(const char *bitcoin_network, const char *mnemonic);
180
180
 
181
+ CResultString rgblib_rotate_colored_address(const COpaqueStruct *wallet);
182
+
183
+ CResultString rgblib_rotate_vanilla_address(const COpaqueStruct *wallet);
184
+
181
185
  CResultString rgblib_send(const COpaqueStruct *wallet,
182
186
  const COpaqueStruct *online,
183
187
  const char *recipient_map,
package/swig_wrap.cxx CHANGED
@@ -4416,6 +4416,88 @@ fail:
4416
4416
  }
4417
4417
 
4418
4418
 
4419
+ static SwigV8ReturnValue _wrap_rgblib_rotate_colored_address(const SwigV8Arguments &args) {
4420
+ SWIGV8_HANDLESCOPE();
4421
+
4422
+ SWIGV8_VALUE jsresult;
4423
+ COpaqueStruct *arg1 = (COpaqueStruct *) 0 ;
4424
+ void *argp1 = 0 ;
4425
+ int res1 = 0 ;
4426
+ CResultString result;
4427
+
4428
+ if (args.Length() < 1 || args.Length() > 1) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_rotate_colored_address.");
4429
+
4430
+ res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
4431
+ if (!SWIG_IsOK(res1)) {
4432
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_rotate_colored_address" "', argument " "1"" of type '" "COpaqueStruct const *""'");
4433
+ }
4434
+ arg1 = reinterpret_cast< COpaqueStruct * >(argp1);result = rgblib_rotate_colored_address((COpaqueStruct const *)arg1);
4435
+
4436
+ switch ((&result)->result) {
4437
+ case CResultValue::Ok:
4438
+ if ((&result)->inner == nullptr) {
4439
+ jsresult = v8::Null(v8::Isolate::GetCurrent());
4440
+ } else {
4441
+ jsresult = v8::String::NewFromUtf8(args.GetIsolate(), (const char*) (&result)->inner).ToLocalChecked();
4442
+ delete ((&result)->inner);
4443
+ }
4444
+ break;
4445
+ case CResultValue::Err:
4446
+ SWIG_V8_Raise((const char*) (&result)->inner);
4447
+ break;
4448
+ }
4449
+
4450
+
4451
+
4452
+ SWIGV8_RETURN(jsresult);
4453
+
4454
+ goto fail;
4455
+ fail:
4456
+ SWIGV8_RETURN(SWIGV8_UNDEFINED());
4457
+ }
4458
+
4459
+
4460
+ static SwigV8ReturnValue _wrap_rgblib_rotate_vanilla_address(const SwigV8Arguments &args) {
4461
+ SWIGV8_HANDLESCOPE();
4462
+
4463
+ SWIGV8_VALUE jsresult;
4464
+ COpaqueStruct *arg1 = (COpaqueStruct *) 0 ;
4465
+ void *argp1 = 0 ;
4466
+ int res1 = 0 ;
4467
+ CResultString result;
4468
+
4469
+ if (args.Length() < 1 || args.Length() > 1) SWIG_exception_fail(SWIG_ERROR, "Illegal number of arguments for _wrap_rgblib_rotate_vanilla_address.");
4470
+
4471
+ res1 = SWIG_ConvertPtr(args[0], &argp1,SWIGTYPE_p_COpaqueStruct, 0 | 0 );
4472
+ if (!SWIG_IsOK(res1)) {
4473
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rgblib_rotate_vanilla_address" "', argument " "1"" of type '" "COpaqueStruct const *""'");
4474
+ }
4475
+ arg1 = reinterpret_cast< COpaqueStruct * >(argp1);result = rgblib_rotate_vanilla_address((COpaqueStruct const *)arg1);
4476
+
4477
+ switch ((&result)->result) {
4478
+ case CResultValue::Ok:
4479
+ if ((&result)->inner == nullptr) {
4480
+ jsresult = v8::Null(v8::Isolate::GetCurrent());
4481
+ } else {
4482
+ jsresult = v8::String::NewFromUtf8(args.GetIsolate(), (const char*) (&result)->inner).ToLocalChecked();
4483
+ delete ((&result)->inner);
4484
+ }
4485
+ break;
4486
+ case CResultValue::Err:
4487
+ SWIG_V8_Raise((const char*) (&result)->inner);
4488
+ break;
4489
+ }
4490
+
4491
+
4492
+
4493
+ SWIGV8_RETURN(jsresult);
4494
+
4495
+ goto fail;
4496
+ fail:
4497
+ SWIGV8_RETURN(SWIGV8_UNDEFINED());
4498
+ }
4499
+
4500
+
4419
4501
  static SwigV8ReturnValue _wrap_rgblib_send(const SwigV8Arguments &args) {
4420
4502
  SWIGV8_HANDLESCOPE();
4421
4503
 
@@ -5718,6 +5800,8 @@ SWIGV8_AddStaticFunction(exports_obj, "rgblib_refresh", _wrap_rgblib_refresh, co
5718
5800
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_restore_backup", _wrap_rgblib_restore_backup, context);
5719
5801
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_restore_from_vss", _wrap_rgblib_restore_from_vss, context);
5720
5802
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_restore_keys", _wrap_rgblib_restore_keys, context);
5803
+ SWIGV8_AddStaticFunction(exports_obj, "rgblib_rotate_colored_address", _wrap_rgblib_rotate_colored_address, context);
5804
+ SWIGV8_AddStaticFunction(exports_obj, "rgblib_rotate_vanilla_address", _wrap_rgblib_rotate_vanilla_address, context);
5721
5805
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_send", _wrap_rgblib_send, context);
5722
5806
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_send_begin", _wrap_rgblib_send_begin, context);
5723
5807
  SWIGV8_AddStaticFunction(exports_obj, "rgblib_send_btc", _wrap_rgblib_send_btc, context);