@trustwallet/wallet-core 4.0.22 → 4.0.23
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.
@@ -2581,6 +2581,183 @@ export namespace TW {
|
|
2581
2581
|
*/
|
2582
2582
|
public toJSON(): { [k: string]: any };
|
2583
2583
|
}
|
2584
|
+
|
2585
|
+
/** FacetCutAction enum. */
|
2586
|
+
enum FacetCutAction {
|
2587
|
+
ADD = 0,
|
2588
|
+
REPLACE = 1,
|
2589
|
+
REMOVE = 2
|
2590
|
+
}
|
2591
|
+
|
2592
|
+
/** Properties of a FacetCut. */
|
2593
|
+
interface IFacetCut {
|
2594
|
+
|
2595
|
+
/** FacetCut facetAddress */
|
2596
|
+
facetAddress?: (string|null);
|
2597
|
+
|
2598
|
+
/** FacetCut action */
|
2599
|
+
action?: (TW.Barz.Proto.FacetCutAction|null);
|
2600
|
+
|
2601
|
+
/** FacetCut functionSelectors */
|
2602
|
+
functionSelectors?: (Uint8Array[]|null);
|
2603
|
+
}
|
2604
|
+
|
2605
|
+
/** Represents a FacetCut. */
|
2606
|
+
class FacetCut implements IFacetCut {
|
2607
|
+
|
2608
|
+
/**
|
2609
|
+
* Constructs a new FacetCut.
|
2610
|
+
* @param [properties] Properties to set
|
2611
|
+
*/
|
2612
|
+
constructor(properties?: TW.Barz.Proto.IFacetCut);
|
2613
|
+
|
2614
|
+
/** FacetCut facetAddress. */
|
2615
|
+
public facetAddress: string;
|
2616
|
+
|
2617
|
+
/** FacetCut action. */
|
2618
|
+
public action: TW.Barz.Proto.FacetCutAction;
|
2619
|
+
|
2620
|
+
/** FacetCut functionSelectors. */
|
2621
|
+
public functionSelectors: Uint8Array[];
|
2622
|
+
|
2623
|
+
/**
|
2624
|
+
* Creates a new FacetCut instance using the specified properties.
|
2625
|
+
* @param [properties] Properties to set
|
2626
|
+
* @returns FacetCut instance
|
2627
|
+
*/
|
2628
|
+
public static create(properties?: TW.Barz.Proto.IFacetCut): TW.Barz.Proto.FacetCut;
|
2629
|
+
|
2630
|
+
/**
|
2631
|
+
* Encodes the specified FacetCut message. Does not implicitly {@link TW.Barz.Proto.FacetCut.verify|verify} messages.
|
2632
|
+
* @param message FacetCut message or plain object to encode
|
2633
|
+
* @param [writer] Writer to encode to
|
2634
|
+
* @returns Writer
|
2635
|
+
*/
|
2636
|
+
public static encode(message: TW.Barz.Proto.IFacetCut, writer?: $protobuf.Writer): $protobuf.Writer;
|
2637
|
+
|
2638
|
+
/**
|
2639
|
+
* Decodes a FacetCut message from the specified reader or buffer.
|
2640
|
+
* @param reader Reader or buffer to decode from
|
2641
|
+
* @param [length] Message length if known beforehand
|
2642
|
+
* @returns FacetCut
|
2643
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2644
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2645
|
+
*/
|
2646
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Barz.Proto.FacetCut;
|
2647
|
+
|
2648
|
+
/**
|
2649
|
+
* Verifies a FacetCut message.
|
2650
|
+
* @param message Plain object to verify
|
2651
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
2652
|
+
*/
|
2653
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
2654
|
+
|
2655
|
+
/**
|
2656
|
+
* Creates a FacetCut message from a plain object. Also converts values to their respective internal types.
|
2657
|
+
* @param object Plain object
|
2658
|
+
* @returns FacetCut
|
2659
|
+
*/
|
2660
|
+
public static fromObject(object: { [k: string]: any }): TW.Barz.Proto.FacetCut;
|
2661
|
+
|
2662
|
+
/**
|
2663
|
+
* Creates a plain object from a FacetCut message. Also converts values to other types if specified.
|
2664
|
+
* @param message FacetCut
|
2665
|
+
* @param [options] Conversion options
|
2666
|
+
* @returns Plain object
|
2667
|
+
*/
|
2668
|
+
public static toObject(message: TW.Barz.Proto.FacetCut, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2669
|
+
|
2670
|
+
/**
|
2671
|
+
* Converts this FacetCut to JSON.
|
2672
|
+
* @returns JSON object
|
2673
|
+
*/
|
2674
|
+
public toJSON(): { [k: string]: any };
|
2675
|
+
}
|
2676
|
+
|
2677
|
+
/** Properties of a DiamondCutInput. */
|
2678
|
+
interface IDiamondCutInput {
|
2679
|
+
|
2680
|
+
/** DiamondCutInput facetCuts */
|
2681
|
+
facetCuts?: (TW.Barz.Proto.IFacetCut[]|null);
|
2682
|
+
|
2683
|
+
/** DiamondCutInput initAddress */
|
2684
|
+
initAddress?: (string|null);
|
2685
|
+
|
2686
|
+
/** DiamondCutInput initData */
|
2687
|
+
initData?: (Uint8Array|null);
|
2688
|
+
}
|
2689
|
+
|
2690
|
+
/** Represents a DiamondCutInput. */
|
2691
|
+
class DiamondCutInput implements IDiamondCutInput {
|
2692
|
+
|
2693
|
+
/**
|
2694
|
+
* Constructs a new DiamondCutInput.
|
2695
|
+
* @param [properties] Properties to set
|
2696
|
+
*/
|
2697
|
+
constructor(properties?: TW.Barz.Proto.IDiamondCutInput);
|
2698
|
+
|
2699
|
+
/** DiamondCutInput facetCuts. */
|
2700
|
+
public facetCuts: TW.Barz.Proto.IFacetCut[];
|
2701
|
+
|
2702
|
+
/** DiamondCutInput initAddress. */
|
2703
|
+
public initAddress: string;
|
2704
|
+
|
2705
|
+
/** DiamondCutInput initData. */
|
2706
|
+
public initData: Uint8Array;
|
2707
|
+
|
2708
|
+
/**
|
2709
|
+
* Creates a new DiamondCutInput instance using the specified properties.
|
2710
|
+
* @param [properties] Properties to set
|
2711
|
+
* @returns DiamondCutInput instance
|
2712
|
+
*/
|
2713
|
+
public static create(properties?: TW.Barz.Proto.IDiamondCutInput): TW.Barz.Proto.DiamondCutInput;
|
2714
|
+
|
2715
|
+
/**
|
2716
|
+
* Encodes the specified DiamondCutInput message. Does not implicitly {@link TW.Barz.Proto.DiamondCutInput.verify|verify} messages.
|
2717
|
+
* @param message DiamondCutInput message or plain object to encode
|
2718
|
+
* @param [writer] Writer to encode to
|
2719
|
+
* @returns Writer
|
2720
|
+
*/
|
2721
|
+
public static encode(message: TW.Barz.Proto.IDiamondCutInput, writer?: $protobuf.Writer): $protobuf.Writer;
|
2722
|
+
|
2723
|
+
/**
|
2724
|
+
* Decodes a DiamondCutInput message from the specified reader or buffer.
|
2725
|
+
* @param reader Reader or buffer to decode from
|
2726
|
+
* @param [length] Message length if known beforehand
|
2727
|
+
* @returns DiamondCutInput
|
2728
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2729
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2730
|
+
*/
|
2731
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Barz.Proto.DiamondCutInput;
|
2732
|
+
|
2733
|
+
/**
|
2734
|
+
* Verifies a DiamondCutInput message.
|
2735
|
+
* @param message Plain object to verify
|
2736
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
2737
|
+
*/
|
2738
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
2739
|
+
|
2740
|
+
/**
|
2741
|
+
* Creates a DiamondCutInput message from a plain object. Also converts values to their respective internal types.
|
2742
|
+
* @param object Plain object
|
2743
|
+
* @returns DiamondCutInput
|
2744
|
+
*/
|
2745
|
+
public static fromObject(object: { [k: string]: any }): TW.Barz.Proto.DiamondCutInput;
|
2746
|
+
|
2747
|
+
/**
|
2748
|
+
* Creates a plain object from a DiamondCutInput message. Also converts values to other types if specified.
|
2749
|
+
* @param message DiamondCutInput
|
2750
|
+
* @param [options] Conversion options
|
2751
|
+
* @returns Plain object
|
2752
|
+
*/
|
2753
|
+
public static toObject(message: TW.Barz.Proto.DiamondCutInput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2754
|
+
|
2755
|
+
/**
|
2756
|
+
* Converts this DiamondCutInput to JSON.
|
2757
|
+
* @returns JSON object
|
2758
|
+
*/
|
2759
|
+
public toJSON(): { [k: string]: any };
|
2760
|
+
}
|
2584
2761
|
}
|
2585
2762
|
}
|
2586
2763
|
|
@@ -7594,6 +7594,497 @@
|
|
7594
7594
|
return ContractAddressInput;
|
7595
7595
|
})();
|
7596
7596
|
|
7597
|
+
/**
|
7598
|
+
* FacetCutAction enum.
|
7599
|
+
* @name TW.Barz.Proto.FacetCutAction
|
7600
|
+
* @enum {number}
|
7601
|
+
* @property {number} ADD=0 ADD value
|
7602
|
+
* @property {number} REPLACE=1 REPLACE value
|
7603
|
+
* @property {number} REMOVE=2 REMOVE value
|
7604
|
+
*/
|
7605
|
+
Proto.FacetCutAction = (function() {
|
7606
|
+
var valuesById = {}, values = Object.create(valuesById);
|
7607
|
+
values[valuesById[0] = "ADD"] = 0;
|
7608
|
+
values[valuesById[1] = "REPLACE"] = 1;
|
7609
|
+
values[valuesById[2] = "REMOVE"] = 2;
|
7610
|
+
return values;
|
7611
|
+
})();
|
7612
|
+
|
7613
|
+
Proto.FacetCut = (function() {
|
7614
|
+
|
7615
|
+
/**
|
7616
|
+
* Properties of a FacetCut.
|
7617
|
+
* @memberof TW.Barz.Proto
|
7618
|
+
* @interface IFacetCut
|
7619
|
+
* @property {string|null} [facetAddress] FacetCut facetAddress
|
7620
|
+
* @property {TW.Barz.Proto.FacetCutAction|null} [action] FacetCut action
|
7621
|
+
* @property {Array.<Uint8Array>|null} [functionSelectors] FacetCut functionSelectors
|
7622
|
+
*/
|
7623
|
+
|
7624
|
+
/**
|
7625
|
+
* Constructs a new FacetCut.
|
7626
|
+
* @memberof TW.Barz.Proto
|
7627
|
+
* @classdesc Represents a FacetCut.
|
7628
|
+
* @implements IFacetCut
|
7629
|
+
* @constructor
|
7630
|
+
* @param {TW.Barz.Proto.IFacetCut=} [properties] Properties to set
|
7631
|
+
*/
|
7632
|
+
function FacetCut(properties) {
|
7633
|
+
this.functionSelectors = [];
|
7634
|
+
if (properties)
|
7635
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
7636
|
+
if (properties[keys[i]] != null)
|
7637
|
+
this[keys[i]] = properties[keys[i]];
|
7638
|
+
}
|
7639
|
+
|
7640
|
+
/**
|
7641
|
+
* FacetCut facetAddress.
|
7642
|
+
* @member {string} facetAddress
|
7643
|
+
* @memberof TW.Barz.Proto.FacetCut
|
7644
|
+
* @instance
|
7645
|
+
*/
|
7646
|
+
FacetCut.prototype.facetAddress = "";
|
7647
|
+
|
7648
|
+
/**
|
7649
|
+
* FacetCut action.
|
7650
|
+
* @member {TW.Barz.Proto.FacetCutAction} action
|
7651
|
+
* @memberof TW.Barz.Proto.FacetCut
|
7652
|
+
* @instance
|
7653
|
+
*/
|
7654
|
+
FacetCut.prototype.action = 0;
|
7655
|
+
|
7656
|
+
/**
|
7657
|
+
* FacetCut functionSelectors.
|
7658
|
+
* @member {Array.<Uint8Array>} functionSelectors
|
7659
|
+
* @memberof TW.Barz.Proto.FacetCut
|
7660
|
+
* @instance
|
7661
|
+
*/
|
7662
|
+
FacetCut.prototype.functionSelectors = $util.emptyArray;
|
7663
|
+
|
7664
|
+
/**
|
7665
|
+
* Creates a new FacetCut instance using the specified properties.
|
7666
|
+
* @function create
|
7667
|
+
* @memberof TW.Barz.Proto.FacetCut
|
7668
|
+
* @static
|
7669
|
+
* @param {TW.Barz.Proto.IFacetCut=} [properties] Properties to set
|
7670
|
+
* @returns {TW.Barz.Proto.FacetCut} FacetCut instance
|
7671
|
+
*/
|
7672
|
+
FacetCut.create = function create(properties) {
|
7673
|
+
return new FacetCut(properties);
|
7674
|
+
};
|
7675
|
+
|
7676
|
+
/**
|
7677
|
+
* Encodes the specified FacetCut message. Does not implicitly {@link TW.Barz.Proto.FacetCut.verify|verify} messages.
|
7678
|
+
* @function encode
|
7679
|
+
* @memberof TW.Barz.Proto.FacetCut
|
7680
|
+
* @static
|
7681
|
+
* @param {TW.Barz.Proto.IFacetCut} message FacetCut message or plain object to encode
|
7682
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
7683
|
+
* @returns {$protobuf.Writer} Writer
|
7684
|
+
*/
|
7685
|
+
FacetCut.encode = function encode(message, writer) {
|
7686
|
+
if (!writer)
|
7687
|
+
writer = $Writer.create();
|
7688
|
+
if (message.facetAddress != null && Object.hasOwnProperty.call(message, "facetAddress"))
|
7689
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.facetAddress);
|
7690
|
+
if (message.action != null && Object.hasOwnProperty.call(message, "action"))
|
7691
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action);
|
7692
|
+
if (message.functionSelectors != null && message.functionSelectors.length)
|
7693
|
+
for (var i = 0; i < message.functionSelectors.length; ++i)
|
7694
|
+
writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.functionSelectors[i]);
|
7695
|
+
return writer;
|
7696
|
+
};
|
7697
|
+
|
7698
|
+
/**
|
7699
|
+
* Decodes a FacetCut message from the specified reader or buffer.
|
7700
|
+
* @function decode
|
7701
|
+
* @memberof TW.Barz.Proto.FacetCut
|
7702
|
+
* @static
|
7703
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
7704
|
+
* @param {number} [length] Message length if known beforehand
|
7705
|
+
* @returns {TW.Barz.Proto.FacetCut} FacetCut
|
7706
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
7707
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7708
|
+
*/
|
7709
|
+
FacetCut.decode = function decode(reader, length) {
|
7710
|
+
if (!(reader instanceof $Reader))
|
7711
|
+
reader = $Reader.create(reader);
|
7712
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Barz.Proto.FacetCut();
|
7713
|
+
while (reader.pos < end) {
|
7714
|
+
var tag = reader.uint32();
|
7715
|
+
switch (tag >>> 3) {
|
7716
|
+
case 1:
|
7717
|
+
message.facetAddress = reader.string();
|
7718
|
+
break;
|
7719
|
+
case 2:
|
7720
|
+
message.action = reader.int32();
|
7721
|
+
break;
|
7722
|
+
case 3:
|
7723
|
+
if (!(message.functionSelectors && message.functionSelectors.length))
|
7724
|
+
message.functionSelectors = [];
|
7725
|
+
message.functionSelectors.push(reader.bytes());
|
7726
|
+
break;
|
7727
|
+
default:
|
7728
|
+
reader.skipType(tag & 7);
|
7729
|
+
break;
|
7730
|
+
}
|
7731
|
+
}
|
7732
|
+
return message;
|
7733
|
+
};
|
7734
|
+
|
7735
|
+
/**
|
7736
|
+
* Verifies a FacetCut message.
|
7737
|
+
* @function verify
|
7738
|
+
* @memberof TW.Barz.Proto.FacetCut
|
7739
|
+
* @static
|
7740
|
+
* @param {Object.<string,*>} message Plain object to verify
|
7741
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
7742
|
+
*/
|
7743
|
+
FacetCut.verify = function verify(message) {
|
7744
|
+
if (typeof message !== "object" || message === null)
|
7745
|
+
return "object expected";
|
7746
|
+
if (message.facetAddress != null && message.hasOwnProperty("facetAddress"))
|
7747
|
+
if (!$util.isString(message.facetAddress))
|
7748
|
+
return "facetAddress: string expected";
|
7749
|
+
if (message.action != null && message.hasOwnProperty("action"))
|
7750
|
+
switch (message.action) {
|
7751
|
+
default:
|
7752
|
+
return "action: enum value expected";
|
7753
|
+
case 0:
|
7754
|
+
case 1:
|
7755
|
+
case 2:
|
7756
|
+
break;
|
7757
|
+
}
|
7758
|
+
if (message.functionSelectors != null && message.hasOwnProperty("functionSelectors")) {
|
7759
|
+
if (!Array.isArray(message.functionSelectors))
|
7760
|
+
return "functionSelectors: array expected";
|
7761
|
+
for (var i = 0; i < message.functionSelectors.length; ++i)
|
7762
|
+
if (!(message.functionSelectors[i] && typeof message.functionSelectors[i].length === "number" || $util.isString(message.functionSelectors[i])))
|
7763
|
+
return "functionSelectors: buffer[] expected";
|
7764
|
+
}
|
7765
|
+
return null;
|
7766
|
+
};
|
7767
|
+
|
7768
|
+
/**
|
7769
|
+
* Creates a FacetCut message from a plain object. Also converts values to their respective internal types.
|
7770
|
+
* @function fromObject
|
7771
|
+
* @memberof TW.Barz.Proto.FacetCut
|
7772
|
+
* @static
|
7773
|
+
* @param {Object.<string,*>} object Plain object
|
7774
|
+
* @returns {TW.Barz.Proto.FacetCut} FacetCut
|
7775
|
+
*/
|
7776
|
+
FacetCut.fromObject = function fromObject(object) {
|
7777
|
+
if (object instanceof $root.TW.Barz.Proto.FacetCut)
|
7778
|
+
return object;
|
7779
|
+
var message = new $root.TW.Barz.Proto.FacetCut();
|
7780
|
+
if (object.facetAddress != null)
|
7781
|
+
message.facetAddress = String(object.facetAddress);
|
7782
|
+
switch (object.action) {
|
7783
|
+
case "ADD":
|
7784
|
+
case 0:
|
7785
|
+
message.action = 0;
|
7786
|
+
break;
|
7787
|
+
case "REPLACE":
|
7788
|
+
case 1:
|
7789
|
+
message.action = 1;
|
7790
|
+
break;
|
7791
|
+
case "REMOVE":
|
7792
|
+
case 2:
|
7793
|
+
message.action = 2;
|
7794
|
+
break;
|
7795
|
+
}
|
7796
|
+
if (object.functionSelectors) {
|
7797
|
+
if (!Array.isArray(object.functionSelectors))
|
7798
|
+
throw TypeError(".TW.Barz.Proto.FacetCut.functionSelectors: array expected");
|
7799
|
+
message.functionSelectors = [];
|
7800
|
+
for (var i = 0; i < object.functionSelectors.length; ++i)
|
7801
|
+
if (typeof object.functionSelectors[i] === "string")
|
7802
|
+
$util.base64.decode(object.functionSelectors[i], message.functionSelectors[i] = $util.newBuffer($util.base64.length(object.functionSelectors[i])), 0);
|
7803
|
+
else if (object.functionSelectors[i].length)
|
7804
|
+
message.functionSelectors[i] = object.functionSelectors[i];
|
7805
|
+
}
|
7806
|
+
return message;
|
7807
|
+
};
|
7808
|
+
|
7809
|
+
/**
|
7810
|
+
* Creates a plain object from a FacetCut message. Also converts values to other types if specified.
|
7811
|
+
* @function toObject
|
7812
|
+
* @memberof TW.Barz.Proto.FacetCut
|
7813
|
+
* @static
|
7814
|
+
* @param {TW.Barz.Proto.FacetCut} message FacetCut
|
7815
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
7816
|
+
* @returns {Object.<string,*>} Plain object
|
7817
|
+
*/
|
7818
|
+
FacetCut.toObject = function toObject(message, options) {
|
7819
|
+
if (!options)
|
7820
|
+
options = {};
|
7821
|
+
var object = {};
|
7822
|
+
if (options.arrays || options.defaults)
|
7823
|
+
object.functionSelectors = [];
|
7824
|
+
if (options.defaults) {
|
7825
|
+
object.facetAddress = "";
|
7826
|
+
object.action = options.enums === String ? "ADD" : 0;
|
7827
|
+
}
|
7828
|
+
if (message.facetAddress != null && message.hasOwnProperty("facetAddress"))
|
7829
|
+
object.facetAddress = message.facetAddress;
|
7830
|
+
if (message.action != null && message.hasOwnProperty("action"))
|
7831
|
+
object.action = options.enums === String ? $root.TW.Barz.Proto.FacetCutAction[message.action] : message.action;
|
7832
|
+
if (message.functionSelectors && message.functionSelectors.length) {
|
7833
|
+
object.functionSelectors = [];
|
7834
|
+
for (var j = 0; j < message.functionSelectors.length; ++j)
|
7835
|
+
object.functionSelectors[j] = options.bytes === String ? $util.base64.encode(message.functionSelectors[j], 0, message.functionSelectors[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.functionSelectors[j]) : message.functionSelectors[j];
|
7836
|
+
}
|
7837
|
+
return object;
|
7838
|
+
};
|
7839
|
+
|
7840
|
+
/**
|
7841
|
+
* Converts this FacetCut to JSON.
|
7842
|
+
* @function toJSON
|
7843
|
+
* @memberof TW.Barz.Proto.FacetCut
|
7844
|
+
* @instance
|
7845
|
+
* @returns {Object.<string,*>} JSON object
|
7846
|
+
*/
|
7847
|
+
FacetCut.prototype.toJSON = function toJSON() {
|
7848
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
7849
|
+
};
|
7850
|
+
|
7851
|
+
return FacetCut;
|
7852
|
+
})();
|
7853
|
+
|
7854
|
+
Proto.DiamondCutInput = (function() {
|
7855
|
+
|
7856
|
+
/**
|
7857
|
+
* Properties of a DiamondCutInput.
|
7858
|
+
* @memberof TW.Barz.Proto
|
7859
|
+
* @interface IDiamondCutInput
|
7860
|
+
* @property {Array.<TW.Barz.Proto.IFacetCut>|null} [facetCuts] DiamondCutInput facetCuts
|
7861
|
+
* @property {string|null} [initAddress] DiamondCutInput initAddress
|
7862
|
+
* @property {Uint8Array|null} [initData] DiamondCutInput initData
|
7863
|
+
*/
|
7864
|
+
|
7865
|
+
/**
|
7866
|
+
* Constructs a new DiamondCutInput.
|
7867
|
+
* @memberof TW.Barz.Proto
|
7868
|
+
* @classdesc Represents a DiamondCutInput.
|
7869
|
+
* @implements IDiamondCutInput
|
7870
|
+
* @constructor
|
7871
|
+
* @param {TW.Barz.Proto.IDiamondCutInput=} [properties] Properties to set
|
7872
|
+
*/
|
7873
|
+
function DiamondCutInput(properties) {
|
7874
|
+
this.facetCuts = [];
|
7875
|
+
if (properties)
|
7876
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
7877
|
+
if (properties[keys[i]] != null)
|
7878
|
+
this[keys[i]] = properties[keys[i]];
|
7879
|
+
}
|
7880
|
+
|
7881
|
+
/**
|
7882
|
+
* DiamondCutInput facetCuts.
|
7883
|
+
* @member {Array.<TW.Barz.Proto.IFacetCut>} facetCuts
|
7884
|
+
* @memberof TW.Barz.Proto.DiamondCutInput
|
7885
|
+
* @instance
|
7886
|
+
*/
|
7887
|
+
DiamondCutInput.prototype.facetCuts = $util.emptyArray;
|
7888
|
+
|
7889
|
+
/**
|
7890
|
+
* DiamondCutInput initAddress.
|
7891
|
+
* @member {string} initAddress
|
7892
|
+
* @memberof TW.Barz.Proto.DiamondCutInput
|
7893
|
+
* @instance
|
7894
|
+
*/
|
7895
|
+
DiamondCutInput.prototype.initAddress = "";
|
7896
|
+
|
7897
|
+
/**
|
7898
|
+
* DiamondCutInput initData.
|
7899
|
+
* @member {Uint8Array} initData
|
7900
|
+
* @memberof TW.Barz.Proto.DiamondCutInput
|
7901
|
+
* @instance
|
7902
|
+
*/
|
7903
|
+
DiamondCutInput.prototype.initData = $util.newBuffer([]);
|
7904
|
+
|
7905
|
+
/**
|
7906
|
+
* Creates a new DiamondCutInput instance using the specified properties.
|
7907
|
+
* @function create
|
7908
|
+
* @memberof TW.Barz.Proto.DiamondCutInput
|
7909
|
+
* @static
|
7910
|
+
* @param {TW.Barz.Proto.IDiamondCutInput=} [properties] Properties to set
|
7911
|
+
* @returns {TW.Barz.Proto.DiamondCutInput} DiamondCutInput instance
|
7912
|
+
*/
|
7913
|
+
DiamondCutInput.create = function create(properties) {
|
7914
|
+
return new DiamondCutInput(properties);
|
7915
|
+
};
|
7916
|
+
|
7917
|
+
/**
|
7918
|
+
* Encodes the specified DiamondCutInput message. Does not implicitly {@link TW.Barz.Proto.DiamondCutInput.verify|verify} messages.
|
7919
|
+
* @function encode
|
7920
|
+
* @memberof TW.Barz.Proto.DiamondCutInput
|
7921
|
+
* @static
|
7922
|
+
* @param {TW.Barz.Proto.IDiamondCutInput} message DiamondCutInput message or plain object to encode
|
7923
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
7924
|
+
* @returns {$protobuf.Writer} Writer
|
7925
|
+
*/
|
7926
|
+
DiamondCutInput.encode = function encode(message, writer) {
|
7927
|
+
if (!writer)
|
7928
|
+
writer = $Writer.create();
|
7929
|
+
if (message.facetCuts != null && message.facetCuts.length)
|
7930
|
+
for (var i = 0; i < message.facetCuts.length; ++i)
|
7931
|
+
$root.TW.Barz.Proto.FacetCut.encode(message.facetCuts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
7932
|
+
if (message.initAddress != null && Object.hasOwnProperty.call(message, "initAddress"))
|
7933
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.initAddress);
|
7934
|
+
if (message.initData != null && Object.hasOwnProperty.call(message, "initData"))
|
7935
|
+
writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.initData);
|
7936
|
+
return writer;
|
7937
|
+
};
|
7938
|
+
|
7939
|
+
/**
|
7940
|
+
* Decodes a DiamondCutInput message from the specified reader or buffer.
|
7941
|
+
* @function decode
|
7942
|
+
* @memberof TW.Barz.Proto.DiamondCutInput
|
7943
|
+
* @static
|
7944
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
7945
|
+
* @param {number} [length] Message length if known beforehand
|
7946
|
+
* @returns {TW.Barz.Proto.DiamondCutInput} DiamondCutInput
|
7947
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
7948
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7949
|
+
*/
|
7950
|
+
DiamondCutInput.decode = function decode(reader, length) {
|
7951
|
+
if (!(reader instanceof $Reader))
|
7952
|
+
reader = $Reader.create(reader);
|
7953
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.TW.Barz.Proto.DiamondCutInput();
|
7954
|
+
while (reader.pos < end) {
|
7955
|
+
var tag = reader.uint32();
|
7956
|
+
switch (tag >>> 3) {
|
7957
|
+
case 1:
|
7958
|
+
if (!(message.facetCuts && message.facetCuts.length))
|
7959
|
+
message.facetCuts = [];
|
7960
|
+
message.facetCuts.push($root.TW.Barz.Proto.FacetCut.decode(reader, reader.uint32()));
|
7961
|
+
break;
|
7962
|
+
case 2:
|
7963
|
+
message.initAddress = reader.string();
|
7964
|
+
break;
|
7965
|
+
case 3:
|
7966
|
+
message.initData = reader.bytes();
|
7967
|
+
break;
|
7968
|
+
default:
|
7969
|
+
reader.skipType(tag & 7);
|
7970
|
+
break;
|
7971
|
+
}
|
7972
|
+
}
|
7973
|
+
return message;
|
7974
|
+
};
|
7975
|
+
|
7976
|
+
/**
|
7977
|
+
* Verifies a DiamondCutInput message.
|
7978
|
+
* @function verify
|
7979
|
+
* @memberof TW.Barz.Proto.DiamondCutInput
|
7980
|
+
* @static
|
7981
|
+
* @param {Object.<string,*>} message Plain object to verify
|
7982
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
7983
|
+
*/
|
7984
|
+
DiamondCutInput.verify = function verify(message) {
|
7985
|
+
if (typeof message !== "object" || message === null)
|
7986
|
+
return "object expected";
|
7987
|
+
if (message.facetCuts != null && message.hasOwnProperty("facetCuts")) {
|
7988
|
+
if (!Array.isArray(message.facetCuts))
|
7989
|
+
return "facetCuts: array expected";
|
7990
|
+
for (var i = 0; i < message.facetCuts.length; ++i) {
|
7991
|
+
var error = $root.TW.Barz.Proto.FacetCut.verify(message.facetCuts[i]);
|
7992
|
+
if (error)
|
7993
|
+
return "facetCuts." + error;
|
7994
|
+
}
|
7995
|
+
}
|
7996
|
+
if (message.initAddress != null && message.hasOwnProperty("initAddress"))
|
7997
|
+
if (!$util.isString(message.initAddress))
|
7998
|
+
return "initAddress: string expected";
|
7999
|
+
if (message.initData != null && message.hasOwnProperty("initData"))
|
8000
|
+
if (!(message.initData && typeof message.initData.length === "number" || $util.isString(message.initData)))
|
8001
|
+
return "initData: buffer expected";
|
8002
|
+
return null;
|
8003
|
+
};
|
8004
|
+
|
8005
|
+
/**
|
8006
|
+
* Creates a DiamondCutInput message from a plain object. Also converts values to their respective internal types.
|
8007
|
+
* @function fromObject
|
8008
|
+
* @memberof TW.Barz.Proto.DiamondCutInput
|
8009
|
+
* @static
|
8010
|
+
* @param {Object.<string,*>} object Plain object
|
8011
|
+
* @returns {TW.Barz.Proto.DiamondCutInput} DiamondCutInput
|
8012
|
+
*/
|
8013
|
+
DiamondCutInput.fromObject = function fromObject(object) {
|
8014
|
+
if (object instanceof $root.TW.Barz.Proto.DiamondCutInput)
|
8015
|
+
return object;
|
8016
|
+
var message = new $root.TW.Barz.Proto.DiamondCutInput();
|
8017
|
+
if (object.facetCuts) {
|
8018
|
+
if (!Array.isArray(object.facetCuts))
|
8019
|
+
throw TypeError(".TW.Barz.Proto.DiamondCutInput.facetCuts: array expected");
|
8020
|
+
message.facetCuts = [];
|
8021
|
+
for (var i = 0; i < object.facetCuts.length; ++i) {
|
8022
|
+
if (typeof object.facetCuts[i] !== "object")
|
8023
|
+
throw TypeError(".TW.Barz.Proto.DiamondCutInput.facetCuts: object expected");
|
8024
|
+
message.facetCuts[i] = $root.TW.Barz.Proto.FacetCut.fromObject(object.facetCuts[i]);
|
8025
|
+
}
|
8026
|
+
}
|
8027
|
+
if (object.initAddress != null)
|
8028
|
+
message.initAddress = String(object.initAddress);
|
8029
|
+
if (object.initData != null)
|
8030
|
+
if (typeof object.initData === "string")
|
8031
|
+
$util.base64.decode(object.initData, message.initData = $util.newBuffer($util.base64.length(object.initData)), 0);
|
8032
|
+
else if (object.initData.length)
|
8033
|
+
message.initData = object.initData;
|
8034
|
+
return message;
|
8035
|
+
};
|
8036
|
+
|
8037
|
+
/**
|
8038
|
+
* Creates a plain object from a DiamondCutInput message. Also converts values to other types if specified.
|
8039
|
+
* @function toObject
|
8040
|
+
* @memberof TW.Barz.Proto.DiamondCutInput
|
8041
|
+
* @static
|
8042
|
+
* @param {TW.Barz.Proto.DiamondCutInput} message DiamondCutInput
|
8043
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
8044
|
+
* @returns {Object.<string,*>} Plain object
|
8045
|
+
*/
|
8046
|
+
DiamondCutInput.toObject = function toObject(message, options) {
|
8047
|
+
if (!options)
|
8048
|
+
options = {};
|
8049
|
+
var object = {};
|
8050
|
+
if (options.arrays || options.defaults)
|
8051
|
+
object.facetCuts = [];
|
8052
|
+
if (options.defaults) {
|
8053
|
+
object.initAddress = "";
|
8054
|
+
if (options.bytes === String)
|
8055
|
+
object.initData = "";
|
8056
|
+
else {
|
8057
|
+
object.initData = [];
|
8058
|
+
if (options.bytes !== Array)
|
8059
|
+
object.initData = $util.newBuffer(object.initData);
|
8060
|
+
}
|
8061
|
+
}
|
8062
|
+
if (message.facetCuts && message.facetCuts.length) {
|
8063
|
+
object.facetCuts = [];
|
8064
|
+
for (var j = 0; j < message.facetCuts.length; ++j)
|
8065
|
+
object.facetCuts[j] = $root.TW.Barz.Proto.FacetCut.toObject(message.facetCuts[j], options);
|
8066
|
+
}
|
8067
|
+
if (message.initAddress != null && message.hasOwnProperty("initAddress"))
|
8068
|
+
object.initAddress = message.initAddress;
|
8069
|
+
if (message.initData != null && message.hasOwnProperty("initData"))
|
8070
|
+
object.initData = options.bytes === String ? $util.base64.encode(message.initData, 0, message.initData.length) : options.bytes === Array ? Array.prototype.slice.call(message.initData) : message.initData;
|
8071
|
+
return object;
|
8072
|
+
};
|
8073
|
+
|
8074
|
+
/**
|
8075
|
+
* Converts this DiamondCutInput to JSON.
|
8076
|
+
* @function toJSON
|
8077
|
+
* @memberof TW.Barz.Proto.DiamondCutInput
|
8078
|
+
* @instance
|
8079
|
+
* @returns {Object.<string,*>} JSON object
|
8080
|
+
*/
|
8081
|
+
DiamondCutInput.prototype.toJSON = function toJSON() {
|
8082
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
8083
|
+
};
|
8084
|
+
|
8085
|
+
return DiamondCutInput;
|
8086
|
+
})();
|
8087
|
+
|
7597
8088
|
return Proto;
|
7598
8089
|
})();
|
7599
8090
|
|
package/dist/lib/wallet-core.js
CHANGED
@@ -34,7 +34,7 @@ function Ua(){Qa++;g.monitorRunDependencies&&g.monitorRunDependencies(Qa);assert
|
|
34
34
|
function Va(){return G.startsWith("data:application/octet-stream;base64,")}function ma(a){return a.startsWith("file://")}function H(a){return function(){var b=g.asm;assert(Oa,"native function `"+a+"` called before runtime initialization");b[a]||assert(b[a],"exported native function `"+a+"` not found");return b[a].apply(null,arguments)}}var G;G="wallet-core.wasm";if(!Va()){var Wa=G;G=g.locateFile?g.locateFile(Wa,w):w+Wa}
|
35
35
|
function Xa(){var a=G;try{if(a==G&&qa)return new Uint8Array(qa);if(ka)return ka(a);throw"both async and sync fetching of the wasm failed";}catch(b){p(b)}}
|
36
36
|
function Ya(){if(!qa&&(ea||fa)){if("function"==typeof fetch&&!ma(G))return fetch(G,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+G+"'";return a.arrayBuffer()}).catch(function(){return Xa()});if(ja)return new Promise(function(a,b){ja(G,function(c){a(new Uint8Array(c))},b)})}return Promise.resolve().then(function(){return Xa()})}
|
37
|
-
var Za,$a,ab={
|
37
|
+
var Za,$a,ab={2210196:()=>{if(void 0===g.ea)try{var a="object"===typeof window?window:self,b="undefined"!==typeof a.crypto?a.crypto:a.msCrypto;a=function(){var d=new Uint32Array(1);b.getRandomValues(d);return d[0]>>>0};a();g.ea=a}catch(d){try{var c=require("crypto");a=function(){var e=c.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};a();g.ea=a}catch(e){throw"No secure random number generator found";}}},2210918:()=>g.ea()};function bb(a){for(;0<a.length;)a.shift()(g)}
|
38
38
|
function va(a){assert("number"===typeof a);return"0x"+a.toString(16).padStart(8,"0")}function pa(a){cb||(cb={});cb[a]||(cb[a]=1,v&&(a="warning: "+a),y(a))}var cb,db=0;
|
39
39
|
function eb(a){this.l=a-24;this.Ta=function(b){F[this.l+4>>2]=b};this.Da=function(){return F[this.l+4>>2]};this.Ja=function(b){F[this.l+8>>2]=b};this.Ka=function(){D[this.l>>2]=0};this.Ia=function(){B[this.l+12>>0]=0};this.Na=function(){B[this.l+13>>0]=0};this.Ea=function(b,c){this.F(0);this.Ta(b);this.Ja(c);this.Ka();this.Ia();this.Na()};this.F=function(b){F[this.l+16>>2]=b}}
|
40
40
|
var fb=0,gb=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},hb=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=gb(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},ib=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},jb=
|
@@ -119,7 +119,7 @@ oc=g.InternalError=mc("InternalError");S.prototype.isAliasOf=function(a){if(!(th
|
|
119
119
|
S.prototype.clone=function(){this.g.l||rc(this);if(this.g.U)return this.g.count.value+=1,this;var a=Dc,b=Object,c=b.create,d=Object.getPrototypeOf(this),e=this.g;a=a(c.call(b,d,{g:{value:{count:e.count,R:e.R,U:e.U,l:e.l,o:e.o,v:e.v,A:e.A}}}));a.g.count.value+=1;a.g.R=!1;return a};S.prototype["delete"]=function(){this.g.l||rc(this);this.g.R&&!this.g.U&&Q("Object already scheduled for deletion");tc(this);uc(this.g);this.g.U||(this.g.v=void 0,this.g.l=void 0)};S.prototype.isDeleted=function(){return!this.g.l};
|
120
120
|
S.prototype.deleteLater=function(){this.g.l||rc(this);this.g.R&&!this.g.U&&Q("Object already scheduled for deletion");xc.push(this);1===xc.length&&zc&&zc(yc);this.g.R=!0;return this};g.getInheritedInstanceCount=function(){return Object.keys(Ac).length};g.getLiveInheritedInstances=function(){var a=[],b;for(b in Ac)Ac.hasOwnProperty(b)&&a.push(Ac[b]);return a};g.flushPendingDeletes=yc;g.setDelayFunction=function(a){zc=a;xc.length&&zc&&zc(yc)};T.prototype.Ca=function(a){this.va&&(a=this.va(a));return a};
|
121
121
|
T.prototype.na=function(a){this.M&&this.M(a)};T.prototype.argPackAdvance=8;T.prototype.readValueFromPointer=Oc;T.prototype.deleteObject=function(a){if(null!==a)a["delete"]()};T.prototype.fromWireType=Ec;Tc=g.UnboundTypeError=mc("UnboundTypeError");g.count_emval_handles=function(){for(var a=0,b=5;b<W.length;++b)void 0!==W[b]&&++a;return a};g.get_first_emval=function(){for(var a=5;a<W.length;++a)if(void 0!==W[a])return W[a];return null};
|
122
|
-
var
|
122
|
+
var re={__assert_fail:function(a,b,c,d){p("Assertion failed: "+wa(a)+", at: "+[b?wa(b):"unknown filename",c,d?wa(d):"unknown function"])},__cxa_find_matching_catch_2:function(){var a=db;if(!a)return Nd(0),0;var b=new eb(a);b.F(a);var c=b.Da();if(!c)return Nd(0),a;for(var d=0;d<arguments.length;d++){var e=arguments[d];if(0===e||e===c)break;if(Od(e,c,b.l+16))return Nd(e),a}Nd(c);return a},__cxa_throw:function(a,b,c){(new eb(a)).Ea(b,c);db=a;fb++;throw a+" - Exception catching is disabled, this exception cannot be caught. Compile with -sNO_DISABLE_EXCEPTION_CATCHING or -sEXCEPTION_CATCHING_ALLOWED=[..] to catch.";
|
123
123
|
},__resumeException:function(a){db||(db=a);throw a+" - Exception catching is disabled, this exception cannot be caught. Compile with -sNO_DISABLE_EXCEPTION_CATCHING or -sEXCEPTION_CATCHING_ALLOWED=[..] to catch.";},__syscall_fcntl64:function(a,b,c){dc=c;try{var d=N(a);switch(b){case 0:var e=ec();return 0>e?-28:Sb(d,e).fd;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=ec(),d.flags|=e,0;case 5:return e=ec(),C[e+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return D[Pd()>>
|
124
124
|
2]=28,-1;default:return-28}}catch(f){if("undefined"==typeof L||!(f instanceof I))throw f;return-f.D}},__syscall_getcwd:function(a,b){try{if(0===b)return-28;var c=za("/")+1;if(b<c)return-68;ya("/",a,b);return c}catch(d){if("undefined"==typeof L||!(d instanceof I))throw d;return-d.D}},__syscall_ioctl:function(a,b,c){dc=c;try{var d=N(a);switch(b){case 21509:case 21505:return d.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return d.tty?0:-59;case 21519:if(!d.tty)return-59;
|
125
125
|
var e=ec();return D[e>>2]=0;case 21520:return d.tty?-28:-59;case 21531:a=e=ec();if(!d.h.Ga)throw new I(59);return d.h.Ga(d,b,a);case 21523:return d.tty?0:-59;case 21524:return d.tty?0:-59;default:return-28}}catch(f){if("undefined"==typeof L||!(f instanceof I))throw f;return-f.D}},__syscall_openat:function(a,b,c,d){dc=d;try{b=wa(b);var e=b;if("/"===e.charAt(0))b=e;else{var f=-100===a?"/":N(a).path;if(0==e.length)throw new I(44);b=hb(f+"/"+e)}var h=d?ec():0;return Xb(b,c,h).fd}catch(l){if("undefined"==
|
@@ -146,30 +146,30 @@ d);e=e.min.call(e,2147483648,d+(65536-d%65536)%65536);a:{d=e;var f=ra.buffer;try
|
|
146
146
|
b;for(var f,h=b=0;h<c;h++){var l=F[a>>2],n=F[a+4>>2];a+=8;var m=e,q=l,t=n,u=f,k=B;if(0>t||0>u)throw new I(28);if(null===m.fd)throw new I(8);if(1===(m.flags&2097155))throw new I(8);if(16384===(m.node.mode&61440))throw new I(31);if(!m.h.read)throw new I(28);var r="undefined"!=typeof u;if(!r)u=m.position;else if(!m.seekable)throw new I(70);var x=m.h.read(m,k,q,t,u);r||(m.position+=x);var E=x;if(0>E){var P=-1;break a}b+=E;if(E<n)break;"undefined"!==typeof f&&(f+=E)}P=b}F[d>>2]=P;return 0}catch(M){if("undefined"==
|
147
147
|
typeof L||!(M instanceof I))throw M;return M.D}},fd_seek:function(a,b,c,d,e){try{assert(b==b>>>0||b==(b|0));assert(c===(c|0));var f=c+2097152>>>0<4194305-!!b?(b>>>0)+4294967296*c:NaN;if(isNaN(f))return 61;var h=N(a);Yb(h,f,d);$a=[h.position>>>0,(Za=h.position,1<=+Math.abs(Za)?0<Za?(Math.min(+Math.floor(Za/4294967296),4294967295)|0)>>>0:~~+Math.ceil((Za-+(~~Za>>>0))/4294967296)>>>0:0)];D[e>>2]=$a[0];D[e+4>>2]=$a[1];h.fa&&0===f&&0===d&&(h.fa=null);return 0}catch(l){if("undefined"==typeof L||!(l instanceof
|
148
148
|
I))throw l;return l.D}},fd_write:function(a,b,c,d){try{a:{var e=N(a);a=b;for(var f,h=b=0;h<c;h++){var l=F[a>>2],n=F[a+4>>2];a+=8;var m=e,q=l,t=n,u=f,k=B;if(0>t||0>u)throw new I(28);if(null===m.fd)throw new I(8);if(0===(m.flags&2097155))throw new I(8);if(16384===(m.node.mode&61440))throw new I(31);if(!m.h.write)throw new I(28);m.seekable&&m.flags&1024&&Yb(m,0,2);var r="undefined"!=typeof u;if(!r)u=m.position;else if(!m.seekable)throw new I(70);var x=m.h.write(m,k,q,t,u,void 0);r||(m.position+=x);var E=
|
149
|
-
x;if(0>E){var P=-1;break a}b+=E;"undefined"!==typeof f&&(f+=E)}P=b}F[d>>2]=P;return 0}catch(M){if("undefined"==typeof L||!(M instanceof I))throw M;return M.D}},getentropy:Fd,invoke_i:Qd,invoke_ii:Rd,invoke_iid:Sd,invoke_iii:Td,invoke_iiii:Ud,invoke_iiiii:Vd,invoke_iiiiii:Wd,invoke_iiiiiii:Xd,invoke_iij:Yd,invoke_iijii:Zd,invoke_iijj:$d,invoke_jii:ae,invoke_jiii:be,invoke_jj:ce,
|
150
|
-
invoke_viiiiiiii:
|
149
|
+
x;if(0>E){var P=-1;break a}b+=E;"undefined"!==typeof f&&(f+=E)}P=b}F[d>>2]=P;return 0}catch(M){if("undefined"==typeof L||!(M instanceof I))throw M;return M.D}},getentropy:Fd,invoke_i:Qd,invoke_ii:Rd,invoke_iid:Sd,invoke_iii:Td,invoke_iiii:Ud,invoke_iiiii:Vd,invoke_iiiiii:Wd,invoke_iiiiiii:Xd,invoke_iij:Yd,invoke_iijii:Zd,invoke_iijj:$d,invoke_jii:ae,invoke_jiii:be,invoke_jj:ce,invoke_v:de,invoke_vi:ee,invoke_vii:fe,invoke_viii:ge,invoke_viiii:he,invoke_viiiii:ie,invoke_viiiiii:je,invoke_viiiiiii:ke,
|
150
|
+
invoke_viiiiiiii:le,invoke_viiiiiji:me,invoke_viiijii:ne,invoke_viij:oe,invoke_viijii:pe,invoke_vij:qe,strftime_l:function(a,b,c,d){return Kd(a,b,c,d)}};
|
151
151
|
(function(){function a(f){g.asm=f.exports;ra=g.asm.memory;assert(ra,"memory not found in wasm exports");Da();Fa=g.asm.__indirect_function_table;assert(Fa,"table not found in wasm exports");Ma.unshift(g.asm.__wasm_call_ctors);Qa--;g.monitorRunDependencies&&g.monitorRunDependencies(Qa);assert(Ta["wasm-instantiate"]);delete Ta["wasm-instantiate"];0==Qa&&(null!==Ra&&(clearInterval(Ra),Ra=null),Sa&&(f=Sa,Sa=null,f()))}function b(f){assert(g===e,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?");
|
152
|
-
e=null;a(f.instance)}function c(f){return Ya().then(function(h){return WebAssembly.instantiate(h,d)}).then(function(h){return h}).then(f,function(h){y("failed to asynchronously prepare wasm: "+h);ma(G)&&y("warning: Loading from a file URI ("+G+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing");p(h)})}var d={env:
|
152
|
+
e=null;a(f.instance)}function c(f){return Ya().then(function(h){return WebAssembly.instantiate(h,d)}).then(function(h){return h}).then(f,function(h){y("failed to asynchronously prepare wasm: "+h);ma(G)&&y("warning: Loading from a file URI ("+G+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing");p(h)})}var d={env:re,wasi_snapshot_preview1:re};Ua();var e=g;if(g.instantiateWasm)try{return g.instantiateWasm(d,
|
153
153
|
a)}catch(f){y("Module.instantiateWasm callback failed with error: "+f),ba(f)}(function(){return qa||"function"!=typeof WebAssembly.instantiateStreaming||Va()||ma(G)||v||"function"!=typeof fetch?c(b):fetch(G,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,d).then(b,function(h){y("wasm streaming compile failed: "+h);y("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(ba);return{}})();g.___wasm_call_ctors=H("__wasm_call_ctors");
|
154
154
|
var zd=g._malloc=H("malloc"),Pd=g.___errno_location=H("__errno_location"),V=g._free=H("free");g._fflush=H("fflush");var Vc=g.___getTypeName=H("__getTypeName");g.__embind_initialize_bindings=H("_embind_initialize_bindings");g._htonl=H("htonl");g._htons=H("htons");var xb=g._emscripten_builtin_memalign=H("emscripten_builtin_memalign");g._ntohs=H("ntohs");
|
155
|
-
var X=g._setThrew=H("setThrew"),Nd=g.setTempRet0=H("setTempRet0"),
|
155
|
+
var X=g._setThrew=H("setThrew"),Nd=g.setTempRet0=H("setTempRet0"),se=g._emscripten_stack_init=function(){return(se=g._emscripten_stack_init=g.asm.emscripten_stack_init).apply(null,arguments)};g._emscripten_stack_get_free=function(){return(g._emscripten_stack_get_free=g.asm.emscripten_stack_get_free).apply(null,arguments)};g._emscripten_stack_get_base=function(){return(g._emscripten_stack_get_base=g.asm.emscripten_stack_get_base).apply(null,arguments)};
|
156
156
|
var Ha=g._emscripten_stack_get_end=function(){return(Ha=g._emscripten_stack_get_end=g.asm.emscripten_stack_get_end).apply(null,arguments)},Y=g.stackSave=H("stackSave"),Z=g.stackRestore=H("stackRestore");g.stackAlloc=H("stackAlloc");g._emscripten_stack_get_current=function(){return(g._emscripten_stack_get_current=g.asm.emscripten_stack_get_current).apply(null,arguments)};g.___cxa_free_exception=H("__cxa_free_exception");var Od=g.___cxa_can_catch=H("__cxa_can_catch");g.___cxa_is_pointer_type=H("__cxa_is_pointer_type");
|
157
|
-
g.dynCall_iiiiij=H("dynCall_iiiiij");g.dynCall_iiiij=H("dynCall_iiiij");var
|
158
|
-
var
|
159
|
-
function
|
160
|
-
function
|
161
|
-
function Ud(a,b,c,d){var e=Y();try{return U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function
|
162
|
-
function Xd(a,b,c,d,e,f,h){var l=Y();try{return U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function
|
163
|
-
function Zd(a,b,c,d,e,f){var h=Y();try{return
|
164
|
-
function be(a,b,c,d){var e=Y();try{return
|
157
|
+
g.dynCall_iiiiij=H("dynCall_iiiiij");g.dynCall_iiiij=H("dynCall_iiiij");var te=g.dynCall_jii=H("dynCall_jii");g.dynCall_ji=H("dynCall_ji");g.dynCall_iiji=H("dynCall_iiji");g.dynCall_iiiji=H("dynCall_iiiji");var ue=g.dynCall_jiii=H("dynCall_jiii");g.dynCall_jiiii=H("dynCall_jiiii");g.dynCall_iiij=H("dynCall_iiij");g.dynCall_jijjj=H("dynCall_jijjj");g.dynCall_jij=H("dynCall_jij");var ve=g.dynCall_viijii=H("dynCall_viijii");g.dynCall_viiiijijji=H("dynCall_viiiijijji");
|
158
|
+
var we=g.dynCall_jj=H("dynCall_jj"),xe=g.dynCall_vij=H("dynCall_vij"),ye=g.dynCall_iijii=H("dynCall_iijii"),ze=g.dynCall_iij=H("dynCall_iij"),Ae=g.dynCall_iijj=H("dynCall_iijj"),Be=g.dynCall_viiiiiji=H("dynCall_viiiiiji"),Ce=g.dynCall_viiijii=H("dynCall_viiijii"),De=g.dynCall_viij=H("dynCall_viij");g.dynCall_viji=H("dynCall_viji");g.dynCall_jiji=H("dynCall_jiji");g.dynCall_iiiiijj=H("dynCall_iiiiijj");g.dynCall_iiiiiijj=H("dynCall_iiiiiijj");
|
159
|
+
function ge(a,b,c,d){var e=Y();try{U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function fe(a,b,c){var d=Y();try{U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function ee(a,b){var c=Y();try{U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function ke(a,b,c,d,e,f,h,l){var n=Y();try{U(a)(b,c,d,e,f,h,l)}catch(m){Z(n);if(m!==m+0)throw m;X(1,0)}}function ie(a,b,c,d,e,f){var h=Y();try{U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}
|
160
|
+
function de(a){var b=Y();try{U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Td(a,b,c){var d=Y();try{return U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function he(a,b,c,d,e){var f=Y();try{U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function Qd(a){var b=Y();try{return U(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function Rd(a,b){var c=Y();try{return U(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}
|
161
|
+
function Ud(a,b,c,d){var e=Y();try{return U(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function je(a,b,c,d,e,f,h){var l=Y();try{U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function Vd(a,b,c,d,e){var f=Y();try{return U(a)(b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}function Sd(a,b,c){var d=Y();try{return U(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function Wd(a,b,c,d,e,f){var h=Y();try{return U(a)(b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}
|
162
|
+
function Xd(a,b,c,d,e,f,h){var l=Y();try{return U(a)(b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function le(a,b,c,d,e,f,h,l,n){var m=Y();try{U(a)(b,c,d,e,f,h,l,n)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}function ce(a,b,c){var d=Y();try{return we(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function qe(a,b,c,d){var e=Y();try{xe(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function ae(a,b,c){var d=Y();try{return te(a,b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}
|
163
|
+
function Zd(a,b,c,d,e,f){var h=Y();try{return ye(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function Yd(a,b,c,d){var e=Y();try{return ze(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function $d(a,b,c,d,e,f){var h=Y();try{return Ae(a,b,c,d,e,f)}catch(l){Z(h);if(l!==l+0)throw l;X(1,0)}}function me(a,b,c,d,e,f,h,l,n){var m=Y();try{Be(a,b,c,d,e,f,h,l,n)}catch(q){Z(m);if(q!==q+0)throw q;X(1,0)}}
|
164
|
+
function be(a,b,c,d){var e=Y();try{return ue(a,b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function pe(a,b,c,d,e,f,h){var l=Y();try{ve(a,b,c,d,e,f,h)}catch(n){Z(l);if(n!==n+0)throw n;X(1,0)}}function ne(a,b,c,d,e,f,h,l){var n=Y();try{Ce(a,b,c,d,e,f,h,l)}catch(m){Z(n);if(m!==m+0)throw m;X(1,0)}}function oe(a,b,c,d,e){var f=Y();try{De(a,b,c,d,e)}catch(h){Z(f);if(h!==h+0)throw h;X(1,0)}}
|
165
165
|
"run UTF8ArrayToString UTF8ToString stringToUTF8Array stringToUTF8 lengthBytesUTF8 addOnPreRun addOnInit addOnPreMain addOnExit addOnPostRun addRunDependency removeRunDependency FS_createFolder FS_createPath FS_createDataFile FS_createPreloadedFile FS_createLazyFile FS_createLink FS_createDevice FS_unlink getLEB getFunctionTables alignFunctionTables registerFunctions prettyPrint getCompilerSetting out err callMain abort keepRuntimeAlive wasmMemory stackAlloc stackSave stackRestore getTempRet0 setTempRet0 writeStackCookie checkStackCookie ptrToString zeroMemory stringToNewUTF8 exitJS getHeapMax emscripten_realloc_buffer ENV ERRNO_CODES ERRNO_MESSAGES setErrNo inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr DNS getHostByName Protocols Sockets getRandomDevice warnOnce traverseStack UNWIND_CACHE convertPCtoSourceLocation readEmAsmArgsArray readEmAsmArgs runEmAsmFunction runMainThreadEmAsm jstoi_q jstoi_s getExecutableName listenOnce autoResumeAudioContext dynCallLegacy getDynCaller dynCall handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle asyncLoad alignMemory mmapAlloc handleAllocator writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromI64 readI53FromU64 convertI32PairToI53 convertI32PairToI53Checked convertU32PairToI53 getCFunc ccall cwrap uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm freeTableIndexes functionsInTableMap getEmptyTableSlot updateTableMap addFunction removeFunction reallyNegative unSign strLen reSign formatString setValue getValue PATH PATH_FS intArrayFromString intArrayToString AsciiToString stringToAscii UTF16Decoder UTF16ToString stringToUTF16 lengthBytesUTF16 UTF32ToString stringToUTF32 lengthBytesUTF32 allocateUTF8 allocateUTF8OnStack writeStringToMemory writeArrayToMemory writeAsciiToMemory SYSCALLS getSocketFromFD getSocketAddress JSEvents registerKeyEventCallback specialHTMLTargets maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox currentFullscreenStrategy restoreOldWindowedStyle softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize demangle demangleAll jsStackTrace stackTrace ExitStatus getEnvStrings checkWasiClock doReadv doWritev createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate promiseMap newNativePromise getPromise uncaughtExceptionCount exceptionLast exceptionCaught ExceptionInfo exception_addRef exception_decRef Browser setMainLoop wget FS MEMFS TTY PIPEFS SOCKFS _setNetworkCallback InternalError BindingError UnboundTypeError PureVirtualError init_embind throwInternalError throwBindingError throwUnboundTypeError ensureOverloadTable exposePublicSymbol replacePublicSymbol extendError createNamedFunction embindRepr registeredInstances getBasestPointer registerInheritedInstance unregisterInheritedInstance getInheritedInstance getInheritedInstanceCount getLiveInheritedInstances registeredTypes awaitingDependencies typeDependencies registeredPointers registerType whenDependentTypesAreResolved embind_charCodes embind_init_charCodes readLatin1String getTypeName heap32VectorToArray requireRegisteredType getShiftFromSize integerReadValueFromPointer enumReadValueFromPointer floatReadValueFromPointer simpleReadValueFromPointer runDestructors new_ craftInvokerFunction embind__requireFunction tupleRegistrations structRegistrations genericPointerToWireType constNoSmartPtrRawPointerToWireType nonConstNoSmartPtrRawPointerToWireType init_RegisteredPointer RegisteredPointer RegisteredPointer_getPointee RegisteredPointer_destructor RegisteredPointer_deleteObject RegisteredPointer_fromWireType runDestructor releaseClassHandle finalizationRegistry detachFinalizer_deps detachFinalizer attachFinalizer makeClassHandle init_ClassHandle ClassHandle ClassHandle_isAliasOf throwInstanceAlreadyDeleted ClassHandle_clone ClassHandle_delete deletionQueue ClassHandle_isDeleted ClassHandle_deleteLater flushPendingDeletes delayFunction setDelayFunction RegisteredClass shallowCopyInternalPointer downcastPointer upcastPointer validateThis char_0 char_9 makeLegalFunctionName emval_handle_array emval_free_list emval_symbols init_emval count_emval_handles get_first_emval getStringOrSymbol Emval emval_newers craftEmvalAllocator emval_get_global emval_lookupTypes emval_allocateDestructors emval_methodCallers emval_addMethodCaller emval_registeredMethods".split(" ").forEach(function(a){Object.getOwnPropertyDescriptor(g,a)||
|
166
166
|
Object.defineProperty(g,a,{configurable:!0,get:function(){var b="'"+a+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";oa(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");p(b)}})});
|
167
167
|
"stringToNewUTF8 exitJS inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr getHostByName traverseStack convertPCtoSourceLocation runMainThreadEmAsm jstoi_q jstoi_s listenOnce autoResumeAudioContext handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle handleAllocator writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromU64 convertI32PairToI53 convertU32PairToI53 getCFunc ccall cwrap uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm getEmptyTableSlot updateTableMap addFunction removeFunction reallyNegative unSign strLen reSign formatString intArrayToString AsciiToString stringToAscii allocateUTF8OnStack writeStringToMemory getSocketFromFD getSocketAddress registerKeyEventCallback maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize jsStackTrace stackTrace checkWasiClock createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate newNativePromise getPromise exception_addRef exception_decRef setMainLoop _setNetworkCallback registerInheritedInstance unregisterInheritedInstance validateThis".split(" ").forEach(function(a){"undefined"===typeof globalThis||
|
168
|
-
Object.getOwnPropertyDescriptor(globalThis,a)||Object.defineProperty(globalThis,a,{configurable:!0,get:function(){var b="`"+a+"` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line",c=a;c.startsWith("_")||(c="$"+a);b+=" (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE="+c+")";oa(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");pa(b)}})});var
|
169
|
-
Sa=function
|
170
|
-
function
|
168
|
+
Object.getOwnPropertyDescriptor(globalThis,a)||Object.defineProperty(globalThis,a,{configurable:!0,get:function(){var b="`"+a+"` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line",c=a;c.startsWith("_")||(c="$"+a);b+=" (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE="+c+")";oa(a)&&(b+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you");pa(b)}})});var Ee;
|
169
|
+
Sa=function Fe(){Ee||Ge();Ee||(Sa=Fe)};
|
170
|
+
function Ge(){function a(){if(!Ee&&(Ee=!0,g.calledRun=!0,!sa)){assert(!Oa);Oa=!0;Ia();if(!g.noFSInit&&!$b){assert(!$b,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)");$b=!0;Zb();g.stdin=g.stdin;g.stdout=g.stdout;g.stderr=g.stderr;g.stdin?cc("stdin",g.stdin):Vb("/dev/tty","/dev/stdin");g.stdout?cc("stdout",null,g.stdout):Vb("/dev/tty","/dev/stdout");g.stderr?cc("stderr",null,
|
171
171
|
g.stderr):Vb("/dev/tty1","/dev/stderr");var b=Xb("/dev/stdin",0),c=Xb("/dev/stdout",1),d=Xb("/dev/stderr",1);assert(0===b.fd,"invalid handle for stdin ("+b.fd+")");assert(1===c.fd,"invalid handle for stdout ("+c.fd+")");assert(2===d.fd,"invalid handle for stderr ("+d.fd+")")}Gb=!1;bb(Ma);aa(g);if(g.onRuntimeInitialized)g.onRuntimeInitialized();assert(!g._main,'compiled without a main, but one is present. if you added it from JS, use Module["onRuntimeInitialized"]');Ia();if(g.postRun)for("function"==
|
172
|
-
typeof g.postRun&&(g.postRun=[g.postRun]);g.postRun.length;)b=g.postRun.shift(),Na.unshift(b);bb(Na)}}if(!(0<Qa)){
|
172
|
+
typeof g.postRun&&(g.postRun=[g.postRun]);g.postRun.length;)b=g.postRun.shift(),Na.unshift(b);bb(Na)}}if(!(0<Qa)){se();Ga();if(g.preRun)for("function"==typeof g.preRun&&(g.preRun=[g.preRun]);g.preRun.length;)Pa();bb(La);0<Qa||(g.setStatus?(g.setStatus("Running..."),setTimeout(function(){setTimeout(function(){g.setStatus("")},1);a()},1)):a(),Ia())}}if(g.preInit)for("function"==typeof g.preInit&&(g.preInit=[g.preInit]);0<g.preInit.length;)g.preInit.pop()();Ge();
|
173
173
|
|
174
174
|
|
175
175
|
return Module.ready
|
Binary file
|
@@ -93,6 +93,8 @@ export class Barz {
|
|
93
93
|
static getCounterfactualAddress(input: Uint8Array | Buffer): string;
|
94
94
|
static getInitCode(factory: string, publicKey: PublicKey, verificationFacet: string, salt: number): Uint8Array;
|
95
95
|
static getFormattedSignature(signature: Uint8Array | Buffer, challenge: Uint8Array | Buffer, authenticatorData: Uint8Array | Buffer, clientDataJSON: string): Uint8Array;
|
96
|
+
static getPrefixedMsgHash(msgHash: Uint8Array | Buffer, barzAddress: string, chainId: number): Uint8Array;
|
97
|
+
static getDiamondCutCode(input: Uint8Array | Buffer): Uint8Array;
|
96
98
|
}
|
97
99
|
export class Base32 {
|
98
100
|
static decodeWithAlphabet(string: string, alphabet: string): Uint8Array;
|