@trustwallet/wallet-core 4.9.1 → 4.9.3
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.
|
@@ -44585,6 +44585,110 @@ export namespace TW {
|
|
|
44585
44585
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
44586
44586
|
}
|
|
44587
44587
|
|
|
44588
|
+
/** Properties of a TransferCoreAsset. */
|
|
44589
|
+
interface ITransferCoreAsset {
|
|
44590
|
+
|
|
44591
|
+
/** TransferCoreAsset assetAddress */
|
|
44592
|
+
assetAddress?: (string|null);
|
|
44593
|
+
|
|
44594
|
+
/** TransferCoreAsset recipientAddress */
|
|
44595
|
+
recipientAddress?: (string|null);
|
|
44596
|
+
|
|
44597
|
+
/** TransferCoreAsset collectionAddress */
|
|
44598
|
+
collectionAddress?: (string|null);
|
|
44599
|
+
|
|
44600
|
+
/** TransferCoreAsset memo */
|
|
44601
|
+
memo?: (string|null);
|
|
44602
|
+
|
|
44603
|
+
/** TransferCoreAsset references */
|
|
44604
|
+
references?: (string[]|null);
|
|
44605
|
+
}
|
|
44606
|
+
|
|
44607
|
+
/** Represents a TransferCoreAsset. */
|
|
44608
|
+
class TransferCoreAsset implements ITransferCoreAsset {
|
|
44609
|
+
|
|
44610
|
+
/**
|
|
44611
|
+
* Constructs a new TransferCoreAsset.
|
|
44612
|
+
* @param [properties] Properties to set
|
|
44613
|
+
*/
|
|
44614
|
+
constructor(properties?: TW.Solana.Proto.ITransferCoreAsset);
|
|
44615
|
+
|
|
44616
|
+
/** TransferCoreAsset assetAddress. */
|
|
44617
|
+
public assetAddress: string;
|
|
44618
|
+
|
|
44619
|
+
/** TransferCoreAsset recipientAddress. */
|
|
44620
|
+
public recipientAddress: string;
|
|
44621
|
+
|
|
44622
|
+
/** TransferCoreAsset collectionAddress. */
|
|
44623
|
+
public collectionAddress: string;
|
|
44624
|
+
|
|
44625
|
+
/** TransferCoreAsset memo. */
|
|
44626
|
+
public memo: string;
|
|
44627
|
+
|
|
44628
|
+
/** TransferCoreAsset references. */
|
|
44629
|
+
public references: string[];
|
|
44630
|
+
|
|
44631
|
+
/**
|
|
44632
|
+
* Creates a new TransferCoreAsset instance using the specified properties.
|
|
44633
|
+
* @param [properties] Properties to set
|
|
44634
|
+
* @returns TransferCoreAsset instance
|
|
44635
|
+
*/
|
|
44636
|
+
public static create(properties?: TW.Solana.Proto.ITransferCoreAsset): TW.Solana.Proto.TransferCoreAsset;
|
|
44637
|
+
|
|
44638
|
+
/**
|
|
44639
|
+
* Encodes the specified TransferCoreAsset message. Does not implicitly {@link TW.Solana.Proto.TransferCoreAsset.verify|verify} messages.
|
|
44640
|
+
* @param message TransferCoreAsset message or plain object to encode
|
|
44641
|
+
* @param [writer] Writer to encode to
|
|
44642
|
+
* @returns Writer
|
|
44643
|
+
*/
|
|
44644
|
+
public static encode(message: TW.Solana.Proto.ITransferCoreAsset, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
44645
|
+
|
|
44646
|
+
/**
|
|
44647
|
+
* Decodes a TransferCoreAsset message from the specified reader or buffer.
|
|
44648
|
+
* @param reader Reader or buffer to decode from
|
|
44649
|
+
* @param [length] Message length if known beforehand
|
|
44650
|
+
* @returns TransferCoreAsset
|
|
44651
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44652
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44653
|
+
*/
|
|
44654
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): TW.Solana.Proto.TransferCoreAsset;
|
|
44655
|
+
|
|
44656
|
+
/**
|
|
44657
|
+
* Verifies a TransferCoreAsset message.
|
|
44658
|
+
* @param message Plain object to verify
|
|
44659
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
44660
|
+
*/
|
|
44661
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
44662
|
+
|
|
44663
|
+
/**
|
|
44664
|
+
* Creates a TransferCoreAsset message from a plain object. Also converts values to their respective internal types.
|
|
44665
|
+
* @param object Plain object
|
|
44666
|
+
* @returns TransferCoreAsset
|
|
44667
|
+
*/
|
|
44668
|
+
public static fromObject(object: { [k: string]: any }): TW.Solana.Proto.TransferCoreAsset;
|
|
44669
|
+
|
|
44670
|
+
/**
|
|
44671
|
+
* Creates a plain object from a TransferCoreAsset message. Also converts values to other types if specified.
|
|
44672
|
+
* @param message TransferCoreAsset
|
|
44673
|
+
* @param [options] Conversion options
|
|
44674
|
+
* @returns Plain object
|
|
44675
|
+
*/
|
|
44676
|
+
public static toObject(message: TW.Solana.Proto.TransferCoreAsset, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
44677
|
+
|
|
44678
|
+
/**
|
|
44679
|
+
* Converts this TransferCoreAsset to JSON.
|
|
44680
|
+
* @returns JSON object
|
|
44681
|
+
*/
|
|
44682
|
+
public toJSON(): { [k: string]: any };
|
|
44683
|
+
|
|
44684
|
+
/**
|
|
44685
|
+
* Gets the default type url for TransferCoreAsset
|
|
44686
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
44687
|
+
* @returns The default type url
|
|
44688
|
+
*/
|
|
44689
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
44690
|
+
}
|
|
44691
|
+
|
|
44588
44692
|
/** Properties of a TokenTransferToFeePayer. */
|
|
44589
44693
|
interface ITokenTransferToFeePayer {
|
|
44590
44694
|
|
|
@@ -45927,6 +46031,9 @@ export namespace TW {
|
|
|
45927
46031
|
/** SigningInput advanceNonceAccount */
|
|
45928
46032
|
advanceNonceAccount?: (TW.Solana.Proto.IAdvanceNonceAccount|null);
|
|
45929
46033
|
|
|
46034
|
+
/** SigningInput transferCoreAssetTransaction */
|
|
46035
|
+
transferCoreAssetTransaction?: (TW.Solana.Proto.ITransferCoreAsset|null);
|
|
46036
|
+
|
|
45930
46037
|
/** SigningInput sender */
|
|
45931
46038
|
sender?: (string|null);
|
|
45932
46039
|
|
|
@@ -46012,6 +46119,9 @@ export namespace TW {
|
|
|
46012
46119
|
/** SigningInput advanceNonceAccount. */
|
|
46013
46120
|
public advanceNonceAccount?: (TW.Solana.Proto.IAdvanceNonceAccount|null);
|
|
46014
46121
|
|
|
46122
|
+
/** SigningInput transferCoreAssetTransaction. */
|
|
46123
|
+
public transferCoreAssetTransaction?: (TW.Solana.Proto.ITransferCoreAsset|null);
|
|
46124
|
+
|
|
46015
46125
|
/** SigningInput sender. */
|
|
46016
46126
|
public sender: string;
|
|
46017
46127
|
|
|
@@ -46043,7 +46153,7 @@ export namespace TW {
|
|
|
46043
46153
|
public transferToFeePayer?: (TW.Solana.Proto.ITransfer|null);
|
|
46044
46154
|
|
|
46045
46155
|
/** SigningInput transactionType. */
|
|
46046
|
-
public transactionType?: ("transferTransaction"|"delegateStakeTransaction"|"deactivateStakeTransaction"|"deactivateAllStakeTransaction"|"withdrawTransaction"|"withdrawAllTransaction"|"createTokenAccountTransaction"|"tokenTransferTransaction"|"createAndTransferTokenTransaction"|"createNonceAccount"|"withdrawNonceAccount"|"advanceNonceAccount");
|
|
46156
|
+
public transactionType?: ("transferTransaction"|"delegateStakeTransaction"|"deactivateStakeTransaction"|"deactivateAllStakeTransaction"|"withdrawTransaction"|"withdrawAllTransaction"|"createTokenAccountTransaction"|"tokenTransferTransaction"|"createAndTransferTokenTransaction"|"createNonceAccount"|"withdrawNonceAccount"|"advanceNonceAccount"|"transferCoreAssetTransaction");
|
|
46047
46157
|
|
|
46048
46158
|
/**
|
|
46049
46159
|
* Creates a new SigningInput instance using the specified properties.
|
|
@@ -149529,6 +149529,329 @@
|
|
|
149529
149529
|
return CreateAndTransferToken;
|
|
149530
149530
|
})();
|
|
149531
149531
|
|
|
149532
|
+
Proto.TransferCoreAsset = (function() {
|
|
149533
|
+
|
|
149534
|
+
/**
|
|
149535
|
+
* Properties of a TransferCoreAsset.
|
|
149536
|
+
* @memberof TW.Solana.Proto
|
|
149537
|
+
* @interface ITransferCoreAsset
|
|
149538
|
+
* @property {string|null} [assetAddress] TransferCoreAsset assetAddress
|
|
149539
|
+
* @property {string|null} [recipientAddress] TransferCoreAsset recipientAddress
|
|
149540
|
+
* @property {string|null} [collectionAddress] TransferCoreAsset collectionAddress
|
|
149541
|
+
* @property {string|null} [memo] TransferCoreAsset memo
|
|
149542
|
+
* @property {Array.<string>|null} [references] TransferCoreAsset references
|
|
149543
|
+
*/
|
|
149544
|
+
|
|
149545
|
+
/**
|
|
149546
|
+
* Constructs a new TransferCoreAsset.
|
|
149547
|
+
* @memberof TW.Solana.Proto
|
|
149548
|
+
* @classdesc Represents a TransferCoreAsset.
|
|
149549
|
+
* @implements ITransferCoreAsset
|
|
149550
|
+
* @constructor
|
|
149551
|
+
* @param {TW.Solana.Proto.ITransferCoreAsset=} [properties] Properties to set
|
|
149552
|
+
*/
|
|
149553
|
+
function TransferCoreAsset(properties) {
|
|
149554
|
+
this.references = [];
|
|
149555
|
+
if (properties)
|
|
149556
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
149557
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
149558
|
+
this[keys[i]] = properties[keys[i]];
|
|
149559
|
+
}
|
|
149560
|
+
|
|
149561
|
+
/**
|
|
149562
|
+
* TransferCoreAsset assetAddress.
|
|
149563
|
+
* @member {string} assetAddress
|
|
149564
|
+
* @memberof TW.Solana.Proto.TransferCoreAsset
|
|
149565
|
+
* @instance
|
|
149566
|
+
*/
|
|
149567
|
+
TransferCoreAsset.prototype.assetAddress = "";
|
|
149568
|
+
|
|
149569
|
+
/**
|
|
149570
|
+
* TransferCoreAsset recipientAddress.
|
|
149571
|
+
* @member {string} recipientAddress
|
|
149572
|
+
* @memberof TW.Solana.Proto.TransferCoreAsset
|
|
149573
|
+
* @instance
|
|
149574
|
+
*/
|
|
149575
|
+
TransferCoreAsset.prototype.recipientAddress = "";
|
|
149576
|
+
|
|
149577
|
+
/**
|
|
149578
|
+
* TransferCoreAsset collectionAddress.
|
|
149579
|
+
* @member {string} collectionAddress
|
|
149580
|
+
* @memberof TW.Solana.Proto.TransferCoreAsset
|
|
149581
|
+
* @instance
|
|
149582
|
+
*/
|
|
149583
|
+
TransferCoreAsset.prototype.collectionAddress = "";
|
|
149584
|
+
|
|
149585
|
+
/**
|
|
149586
|
+
* TransferCoreAsset memo.
|
|
149587
|
+
* @member {string} memo
|
|
149588
|
+
* @memberof TW.Solana.Proto.TransferCoreAsset
|
|
149589
|
+
* @instance
|
|
149590
|
+
*/
|
|
149591
|
+
TransferCoreAsset.prototype.memo = "";
|
|
149592
|
+
|
|
149593
|
+
/**
|
|
149594
|
+
* TransferCoreAsset references.
|
|
149595
|
+
* @member {Array.<string>} references
|
|
149596
|
+
* @memberof TW.Solana.Proto.TransferCoreAsset
|
|
149597
|
+
* @instance
|
|
149598
|
+
*/
|
|
149599
|
+
TransferCoreAsset.prototype.references = $util.emptyArray;
|
|
149600
|
+
|
|
149601
|
+
/**
|
|
149602
|
+
* Creates a new TransferCoreAsset instance using the specified properties.
|
|
149603
|
+
* @function create
|
|
149604
|
+
* @memberof TW.Solana.Proto.TransferCoreAsset
|
|
149605
|
+
* @static
|
|
149606
|
+
* @param {TW.Solana.Proto.ITransferCoreAsset=} [properties] Properties to set
|
|
149607
|
+
* @returns {TW.Solana.Proto.TransferCoreAsset} TransferCoreAsset instance
|
|
149608
|
+
*/
|
|
149609
|
+
TransferCoreAsset.create = function create(properties) {
|
|
149610
|
+
return new TransferCoreAsset(properties);
|
|
149611
|
+
};
|
|
149612
|
+
|
|
149613
|
+
/**
|
|
149614
|
+
* Encodes the specified TransferCoreAsset message. Does not implicitly {@link TW.Solana.Proto.TransferCoreAsset.verify|verify} messages.
|
|
149615
|
+
* @function encode
|
|
149616
|
+
* @memberof TW.Solana.Proto.TransferCoreAsset
|
|
149617
|
+
* @static
|
|
149618
|
+
* @param {TW.Solana.Proto.ITransferCoreAsset} message TransferCoreAsset message or plain object to encode
|
|
149619
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
149620
|
+
* @returns {$protobuf.Writer} Writer
|
|
149621
|
+
*/
|
|
149622
|
+
TransferCoreAsset.encode = function encode(message, writer, q) {
|
|
149623
|
+
if (!writer)
|
|
149624
|
+
writer = $Writer.create();
|
|
149625
|
+
if (q === undefined)
|
|
149626
|
+
q = 0;
|
|
149627
|
+
if (q > $util.recursionLimit)
|
|
149628
|
+
throw Error("max depth exceeded");
|
|
149629
|
+
if (message.assetAddress != null && Object.hasOwnProperty.call(message, "assetAddress"))
|
|
149630
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.assetAddress);
|
|
149631
|
+
if (message.recipientAddress != null && Object.hasOwnProperty.call(message, "recipientAddress"))
|
|
149632
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.recipientAddress);
|
|
149633
|
+
if (message.collectionAddress != null && Object.hasOwnProperty.call(message, "collectionAddress"))
|
|
149634
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.collectionAddress);
|
|
149635
|
+
if (message.memo != null && Object.hasOwnProperty.call(message, "memo"))
|
|
149636
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.memo);
|
|
149637
|
+
if (message.references != null && message.references.length)
|
|
149638
|
+
for (var i = 0; i < message.references.length; ++i)
|
|
149639
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.references[i]);
|
|
149640
|
+
return writer;
|
|
149641
|
+
};
|
|
149642
|
+
|
|
149643
|
+
/**
|
|
149644
|
+
* Decodes a TransferCoreAsset message from the specified reader or buffer.
|
|
149645
|
+
* @function decode
|
|
149646
|
+
* @memberof TW.Solana.Proto.TransferCoreAsset
|
|
149647
|
+
* @static
|
|
149648
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
149649
|
+
* @param {number} [length] Message length if known beforehand
|
|
149650
|
+
* @returns {TW.Solana.Proto.TransferCoreAsset} TransferCoreAsset
|
|
149651
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
149652
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
149653
|
+
*/
|
|
149654
|
+
TransferCoreAsset.decode = function decode(reader, length, error, long) {
|
|
149655
|
+
if (!(reader instanceof $Reader))
|
|
149656
|
+
reader = $Reader.create(reader);
|
|
149657
|
+
if (long === undefined)
|
|
149658
|
+
long = 0;
|
|
149659
|
+
if (long > $Reader.recursionLimit)
|
|
149660
|
+
throw Error("maximum nesting depth exceeded");
|
|
149661
|
+
var end, message;
|
|
149662
|
+
if (length === undefined)
|
|
149663
|
+
end = reader.len;
|
|
149664
|
+
else {
|
|
149665
|
+
end = reader.pos + length;
|
|
149666
|
+
if (end > reader.len)
|
|
149667
|
+
throw RangeError("index out of range");
|
|
149668
|
+
length = reader.len;
|
|
149669
|
+
reader.len = end;
|
|
149670
|
+
}
|
|
149671
|
+
message = new $root.TW.Solana.Proto.TransferCoreAsset();
|
|
149672
|
+
while (reader.pos < end) {
|
|
149673
|
+
var tag = reader.uint32();
|
|
149674
|
+
if (tag === error)
|
|
149675
|
+
break;
|
|
149676
|
+
switch (tag >>> 3) {
|
|
149677
|
+
case 1: {
|
|
149678
|
+
message.assetAddress = reader.string();
|
|
149679
|
+
break;
|
|
149680
|
+
}
|
|
149681
|
+
case 2: {
|
|
149682
|
+
message.recipientAddress = reader.string();
|
|
149683
|
+
break;
|
|
149684
|
+
}
|
|
149685
|
+
case 3: {
|
|
149686
|
+
message.collectionAddress = reader.string();
|
|
149687
|
+
break;
|
|
149688
|
+
}
|
|
149689
|
+
case 4: {
|
|
149690
|
+
message.memo = reader.string();
|
|
149691
|
+
break;
|
|
149692
|
+
}
|
|
149693
|
+
case 5: {
|
|
149694
|
+
if (!(message.references && message.references.length))
|
|
149695
|
+
message.references = [];
|
|
149696
|
+
message.references.push(reader.string());
|
|
149697
|
+
break;
|
|
149698
|
+
}
|
|
149699
|
+
default:
|
|
149700
|
+
reader.skipType(tag & 7, long);
|
|
149701
|
+
break;
|
|
149702
|
+
}
|
|
149703
|
+
}
|
|
149704
|
+
if (length !== undefined) {
|
|
149705
|
+
if (reader.pos !== end)
|
|
149706
|
+
throw RangeError("index out of range");
|
|
149707
|
+
reader.len = length;
|
|
149708
|
+
}
|
|
149709
|
+
return message;
|
|
149710
|
+
};
|
|
149711
|
+
|
|
149712
|
+
/**
|
|
149713
|
+
* Verifies a TransferCoreAsset message.
|
|
149714
|
+
* @function verify
|
|
149715
|
+
* @memberof TW.Solana.Proto.TransferCoreAsset
|
|
149716
|
+
* @static
|
|
149717
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
149718
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
149719
|
+
*/
|
|
149720
|
+
TransferCoreAsset.verify = function verify(message, long) {
|
|
149721
|
+
if (typeof message !== "object" || message === null)
|
|
149722
|
+
return "object expected";
|
|
149723
|
+
if (long === undefined)
|
|
149724
|
+
long = 0;
|
|
149725
|
+
if (long > $util.recursionLimit)
|
|
149726
|
+
return "maximum nesting depth exceeded";
|
|
149727
|
+
if (message.assetAddress != null && Object.hasOwnProperty.call(message, "assetAddress"))
|
|
149728
|
+
if (!$util.isString(message.assetAddress))
|
|
149729
|
+
return "assetAddress: string expected";
|
|
149730
|
+
if (message.recipientAddress != null && Object.hasOwnProperty.call(message, "recipientAddress"))
|
|
149731
|
+
if (!$util.isString(message.recipientAddress))
|
|
149732
|
+
return "recipientAddress: string expected";
|
|
149733
|
+
if (message.collectionAddress != null && Object.hasOwnProperty.call(message, "collectionAddress"))
|
|
149734
|
+
if (!$util.isString(message.collectionAddress))
|
|
149735
|
+
return "collectionAddress: string expected";
|
|
149736
|
+
if (message.memo != null && Object.hasOwnProperty.call(message, "memo"))
|
|
149737
|
+
if (!$util.isString(message.memo))
|
|
149738
|
+
return "memo: string expected";
|
|
149739
|
+
if (message.references != null && Object.hasOwnProperty.call(message, "references")) {
|
|
149740
|
+
if (!Array.isArray(message.references))
|
|
149741
|
+
return "references: array expected";
|
|
149742
|
+
for (var i = 0; i < message.references.length; ++i)
|
|
149743
|
+
if (!$util.isString(message.references[i]))
|
|
149744
|
+
return "references: string[] expected";
|
|
149745
|
+
}
|
|
149746
|
+
return null;
|
|
149747
|
+
};
|
|
149748
|
+
|
|
149749
|
+
/**
|
|
149750
|
+
* Creates a TransferCoreAsset message from a plain object. Also converts values to their respective internal types.
|
|
149751
|
+
* @function fromObject
|
|
149752
|
+
* @memberof TW.Solana.Proto.TransferCoreAsset
|
|
149753
|
+
* @static
|
|
149754
|
+
* @param {Object.<string,*>} object Plain object
|
|
149755
|
+
* @returns {TW.Solana.Proto.TransferCoreAsset} TransferCoreAsset
|
|
149756
|
+
*/
|
|
149757
|
+
TransferCoreAsset.fromObject = function fromObject(object, long) {
|
|
149758
|
+
if (object instanceof $root.TW.Solana.Proto.TransferCoreAsset)
|
|
149759
|
+
return object;
|
|
149760
|
+
if (!$util.isObject(object))
|
|
149761
|
+
throw TypeError(".TW.Solana.Proto.TransferCoreAsset: object expected");
|
|
149762
|
+
if (long === undefined)
|
|
149763
|
+
long = 0;
|
|
149764
|
+
if (long > $util.recursionLimit)
|
|
149765
|
+
throw Error("maximum nesting depth exceeded");
|
|
149766
|
+
var message = new $root.TW.Solana.Proto.TransferCoreAsset();
|
|
149767
|
+
if (object.assetAddress != null)
|
|
149768
|
+
message.assetAddress = String(object.assetAddress);
|
|
149769
|
+
if (object.recipientAddress != null)
|
|
149770
|
+
message.recipientAddress = String(object.recipientAddress);
|
|
149771
|
+
if (object.collectionAddress != null)
|
|
149772
|
+
message.collectionAddress = String(object.collectionAddress);
|
|
149773
|
+
if (object.memo != null)
|
|
149774
|
+
message.memo = String(object.memo);
|
|
149775
|
+
if (object.references) {
|
|
149776
|
+
if (!Array.isArray(object.references))
|
|
149777
|
+
throw TypeError(".TW.Solana.Proto.TransferCoreAsset.references: array expected");
|
|
149778
|
+
message.references = [];
|
|
149779
|
+
for (var i = 0; i < object.references.length; ++i)
|
|
149780
|
+
message.references[i] = String(object.references[i]);
|
|
149781
|
+
}
|
|
149782
|
+
return message;
|
|
149783
|
+
};
|
|
149784
|
+
|
|
149785
|
+
/**
|
|
149786
|
+
* Creates a plain object from a TransferCoreAsset message. Also converts values to other types if specified.
|
|
149787
|
+
* @function toObject
|
|
149788
|
+
* @memberof TW.Solana.Proto.TransferCoreAsset
|
|
149789
|
+
* @static
|
|
149790
|
+
* @param {TW.Solana.Proto.TransferCoreAsset} message TransferCoreAsset
|
|
149791
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
149792
|
+
* @returns {Object.<string,*>} Plain object
|
|
149793
|
+
*/
|
|
149794
|
+
TransferCoreAsset.toObject = function toObject(message, options, q) {
|
|
149795
|
+
if (!options)
|
|
149796
|
+
options = {};
|
|
149797
|
+
if (q === undefined)
|
|
149798
|
+
q = 0;
|
|
149799
|
+
if (q > $util.recursionLimit)
|
|
149800
|
+
throw Error("max depth exceeded");
|
|
149801
|
+
var object = {};
|
|
149802
|
+
if (options.arrays || options.defaults)
|
|
149803
|
+
object.references = [];
|
|
149804
|
+
if (options.defaults) {
|
|
149805
|
+
object.assetAddress = "";
|
|
149806
|
+
object.recipientAddress = "";
|
|
149807
|
+
object.collectionAddress = "";
|
|
149808
|
+
object.memo = "";
|
|
149809
|
+
}
|
|
149810
|
+
if (message.assetAddress != null && Object.hasOwnProperty.call(message, "assetAddress"))
|
|
149811
|
+
object.assetAddress = message.assetAddress;
|
|
149812
|
+
if (message.recipientAddress != null && Object.hasOwnProperty.call(message, "recipientAddress"))
|
|
149813
|
+
object.recipientAddress = message.recipientAddress;
|
|
149814
|
+
if (message.collectionAddress != null && Object.hasOwnProperty.call(message, "collectionAddress"))
|
|
149815
|
+
object.collectionAddress = message.collectionAddress;
|
|
149816
|
+
if (message.memo != null && Object.hasOwnProperty.call(message, "memo"))
|
|
149817
|
+
object.memo = message.memo;
|
|
149818
|
+
if (message.references && message.references.length) {
|
|
149819
|
+
object.references = [];
|
|
149820
|
+
for (var j = 0; j < message.references.length; ++j)
|
|
149821
|
+
object.references[j] = message.references[j];
|
|
149822
|
+
}
|
|
149823
|
+
return object;
|
|
149824
|
+
};
|
|
149825
|
+
|
|
149826
|
+
/**
|
|
149827
|
+
* Converts this TransferCoreAsset to JSON.
|
|
149828
|
+
* @function toJSON
|
|
149829
|
+
* @memberof TW.Solana.Proto.TransferCoreAsset
|
|
149830
|
+
* @instance
|
|
149831
|
+
* @returns {Object.<string,*>} JSON object
|
|
149832
|
+
*/
|
|
149833
|
+
TransferCoreAsset.prototype.toJSON = function toJSON() {
|
|
149834
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
149835
|
+
};
|
|
149836
|
+
|
|
149837
|
+
/**
|
|
149838
|
+
* Gets the default type url for TransferCoreAsset
|
|
149839
|
+
* @function getTypeUrl
|
|
149840
|
+
* @memberof TW.Solana.Proto.TransferCoreAsset
|
|
149841
|
+
* @static
|
|
149842
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
149843
|
+
* @returns {string} The default type url
|
|
149844
|
+
*/
|
|
149845
|
+
TransferCoreAsset.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
149846
|
+
if (typeUrlPrefix === undefined) {
|
|
149847
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
149848
|
+
}
|
|
149849
|
+
return typeUrlPrefix + "/TW.Solana.Proto.TransferCoreAsset";
|
|
149850
|
+
};
|
|
149851
|
+
|
|
149852
|
+
return TransferCoreAsset;
|
|
149853
|
+
})();
|
|
149854
|
+
|
|
149532
149855
|
Proto.TokenTransferToFeePayer = (function() {
|
|
149533
149856
|
|
|
149534
149857
|
/**
|
|
@@ -153686,6 +154009,7 @@
|
|
|
153686
154009
|
* @property {TW.Solana.Proto.ICreateNonceAccount|null} [createNonceAccount] SigningInput createNonceAccount
|
|
153687
154010
|
* @property {TW.Solana.Proto.IWithdrawNonceAccount|null} [withdrawNonceAccount] SigningInput withdrawNonceAccount
|
|
153688
154011
|
* @property {TW.Solana.Proto.IAdvanceNonceAccount|null} [advanceNonceAccount] SigningInput advanceNonceAccount
|
|
154012
|
+
* @property {TW.Solana.Proto.ITransferCoreAsset|null} [transferCoreAssetTransaction] SigningInput transferCoreAssetTransaction
|
|
153689
154013
|
* @property {string|null} [sender] SigningInput sender
|
|
153690
154014
|
* @property {string|null} [nonceAccount] SigningInput nonceAccount
|
|
153691
154015
|
* @property {Uint8Array|null} [feePayerPrivateKey] SigningInput feePayerPrivateKey
|
|
@@ -153833,6 +154157,14 @@
|
|
|
153833
154157
|
*/
|
|
153834
154158
|
SigningInput.prototype.advanceNonceAccount = null;
|
|
153835
154159
|
|
|
154160
|
+
/**
|
|
154161
|
+
* SigningInput transferCoreAssetTransaction.
|
|
154162
|
+
* @member {TW.Solana.Proto.ITransferCoreAsset|null|undefined} transferCoreAssetTransaction
|
|
154163
|
+
* @memberof TW.Solana.Proto.SigningInput
|
|
154164
|
+
* @instance
|
|
154165
|
+
*/
|
|
154166
|
+
SigningInput.prototype.transferCoreAssetTransaction = null;
|
|
154167
|
+
|
|
153836
154168
|
/**
|
|
153837
154169
|
* SigningInput sender.
|
|
153838
154170
|
* @member {string} sender
|
|
@@ -153918,12 +154250,12 @@
|
|
|
153918
154250
|
|
|
153919
154251
|
/**
|
|
153920
154252
|
* SigningInput transactionType.
|
|
153921
|
-
* @member {"transferTransaction"|"delegateStakeTransaction"|"deactivateStakeTransaction"|"deactivateAllStakeTransaction"|"withdrawTransaction"|"withdrawAllTransaction"|"createTokenAccountTransaction"|"tokenTransferTransaction"|"createAndTransferTokenTransaction"|"createNonceAccount"|"withdrawNonceAccount"|"advanceNonceAccount"|undefined} transactionType
|
|
154253
|
+
* @member {"transferTransaction"|"delegateStakeTransaction"|"deactivateStakeTransaction"|"deactivateAllStakeTransaction"|"withdrawTransaction"|"withdrawAllTransaction"|"createTokenAccountTransaction"|"tokenTransferTransaction"|"createAndTransferTokenTransaction"|"createNonceAccount"|"withdrawNonceAccount"|"advanceNonceAccount"|"transferCoreAssetTransaction"|undefined} transactionType
|
|
153922
154254
|
* @memberof TW.Solana.Proto.SigningInput
|
|
153923
154255
|
* @instance
|
|
153924
154256
|
*/
|
|
153925
154257
|
Object.defineProperty(SigningInput.prototype, "transactionType", {
|
|
153926
|
-
get: $util.oneOfGetter($oneOfFields = ["transferTransaction", "delegateStakeTransaction", "deactivateStakeTransaction", "deactivateAllStakeTransaction", "withdrawTransaction", "withdrawAllTransaction", "createTokenAccountTransaction", "tokenTransferTransaction", "createAndTransferTokenTransaction", "createNonceAccount", "withdrawNonceAccount", "advanceNonceAccount"]),
|
|
154258
|
+
get: $util.oneOfGetter($oneOfFields = ["transferTransaction", "delegateStakeTransaction", "deactivateStakeTransaction", "deactivateAllStakeTransaction", "withdrawTransaction", "withdrawAllTransaction", "createTokenAccountTransaction", "tokenTransferTransaction", "createAndTransferTokenTransaction", "createNonceAccount", "withdrawNonceAccount", "advanceNonceAccount", "transferCoreAssetTransaction"]),
|
|
153927
154259
|
set: $util.oneOfSetter($oneOfFields)
|
|
153928
154260
|
});
|
|
153929
154261
|
|
|
@@ -154005,6 +154337,8 @@
|
|
|
154005
154337
|
$root.TW.Solana.Proto.TokenTransferToFeePayer.encode(message.tokenTransferToFeePayer, writer.uint32(/* id 24, wireType 2 =*/194).fork(), q + 1).ldelim();
|
|
154006
154338
|
if (message.transferToFeePayer != null && Object.hasOwnProperty.call(message, "transferToFeePayer"))
|
|
154007
154339
|
$root.TW.Solana.Proto.Transfer.encode(message.transferToFeePayer, writer.uint32(/* id 25, wireType 2 =*/202).fork(), q + 1).ldelim();
|
|
154340
|
+
if (message.transferCoreAssetTransaction != null && Object.hasOwnProperty.call(message, "transferCoreAssetTransaction"))
|
|
154341
|
+
$root.TW.Solana.Proto.TransferCoreAsset.encode(message.transferCoreAssetTransaction, writer.uint32(/* id 26, wireType 2 =*/210).fork(), q + 1).ldelim();
|
|
154008
154342
|
return writer;
|
|
154009
154343
|
};
|
|
154010
154344
|
|
|
@@ -154102,6 +154436,10 @@
|
|
|
154102
154436
|
message.advanceNonceAccount = $root.TW.Solana.Proto.AdvanceNonceAccount.decode(reader, reader.uint32(), undefined, long + 1);
|
|
154103
154437
|
break;
|
|
154104
154438
|
}
|
|
154439
|
+
case 26: {
|
|
154440
|
+
message.transferCoreAssetTransaction = $root.TW.Solana.Proto.TransferCoreAsset.decode(reader, reader.uint32(), undefined, long + 1);
|
|
154441
|
+
break;
|
|
154442
|
+
}
|
|
154105
154443
|
case 14: {
|
|
154106
154444
|
message.sender = reader.string();
|
|
154107
154445
|
break;
|
|
@@ -154298,6 +154636,16 @@
|
|
|
154298
154636
|
return "advanceNonceAccount." + error;
|
|
154299
154637
|
}
|
|
154300
154638
|
}
|
|
154639
|
+
if (message.transferCoreAssetTransaction != null && Object.hasOwnProperty.call(message, "transferCoreAssetTransaction")) {
|
|
154640
|
+
if (properties.transactionType === 1)
|
|
154641
|
+
return "transactionType: multiple values";
|
|
154642
|
+
properties.transactionType = 1;
|
|
154643
|
+
{
|
|
154644
|
+
var error = $root.TW.Solana.Proto.TransferCoreAsset.verify(message.transferCoreAssetTransaction, long + 1);
|
|
154645
|
+
if (error)
|
|
154646
|
+
return "transferCoreAssetTransaction." + error;
|
|
154647
|
+
}
|
|
154648
|
+
}
|
|
154301
154649
|
if (message.sender != null && Object.hasOwnProperty.call(message, "sender"))
|
|
154302
154650
|
if (!$util.isString(message.sender))
|
|
154303
154651
|
return "sender: string expected";
|
|
@@ -154433,6 +154781,11 @@
|
|
|
154433
154781
|
throw TypeError(".TW.Solana.Proto.SigningInput.advanceNonceAccount: object expected");
|
|
154434
154782
|
message.advanceNonceAccount = $root.TW.Solana.Proto.AdvanceNonceAccount.fromObject(object.advanceNonceAccount, long + 1);
|
|
154435
154783
|
}
|
|
154784
|
+
if (object.transferCoreAssetTransaction != null) {
|
|
154785
|
+
if (!$util.isObject(object.transferCoreAssetTransaction))
|
|
154786
|
+
throw TypeError(".TW.Solana.Proto.SigningInput.transferCoreAssetTransaction: object expected");
|
|
154787
|
+
message.transferCoreAssetTransaction = $root.TW.Solana.Proto.TransferCoreAsset.fromObject(object.transferCoreAssetTransaction, long + 1);
|
|
154788
|
+
}
|
|
154436
154789
|
if (object.sender != null)
|
|
154437
154790
|
message.sender = String(object.sender);
|
|
154438
154791
|
if (object.nonceAccount != null)
|
|
@@ -154618,6 +154971,11 @@
|
|
|
154618
154971
|
object.tokenTransferToFeePayer = $root.TW.Solana.Proto.TokenTransferToFeePayer.toObject(message.tokenTransferToFeePayer, options, q + 1);
|
|
154619
154972
|
if (message.transferToFeePayer != null && Object.hasOwnProperty.call(message, "transferToFeePayer"))
|
|
154620
154973
|
object.transferToFeePayer = $root.TW.Solana.Proto.Transfer.toObject(message.transferToFeePayer, options, q + 1);
|
|
154974
|
+
if (message.transferCoreAssetTransaction != null && Object.hasOwnProperty.call(message, "transferCoreAssetTransaction")) {
|
|
154975
|
+
object.transferCoreAssetTransaction = $root.TW.Solana.Proto.TransferCoreAsset.toObject(message.transferCoreAssetTransaction, options, q + 1);
|
|
154976
|
+
if (options.oneofs)
|
|
154977
|
+
object.transactionType = "transferCoreAssetTransaction";
|
|
154978
|
+
}
|
|
154621
154979
|
return object;
|
|
154622
154980
|
};
|
|
154623
154981
|
|
package/dist/lib/wallet-core.js
CHANGED
|
@@ -83,7 +83,7 @@ m("undefined"==typeof l.read,"Module.read option was removed");m("undefined"==ty
|
|
|
83
83
|
m("undefined"==typeof l.ENVIRONMENT,"Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -sENVIRONMENT=web or -sENVIRONMENT=node)");m("undefined"==typeof l.STACK_SIZE,"STACK_SIZE can no longer be set at runtime. Use -sSTACK_SIZE at link time");m("undefined"==typeof l.wasmMemory,"Use of `wasmMemory` detected. Use -sIMPORTED_MEMORY to define wasmMemory externally");m("undefined"==typeof l.INITIAL_MEMORY,"Detected runtime INITIAL_MEMORY setting. Use -sIMPORTED_MEMORY to define wasmMemory dynamically");
|
|
84
84
|
"writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromI64 readI53FromU64 convertI32PairToI53 convertI32PairToI53Checked convertU32PairToI53 stackAlloc getTempRet0 setTempRet0 exitJS withStackSave inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr runMainThreadEmAsm jstoi_q autoResumeAudioContext getDynCaller dynCall handleException keepRuntimeAlive runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit asmjsMangle HandleAllocator addOnPreRun addOnInit addOnPostCtor addOnPreMain addOnExit addOnPostRun STACK_SIZE STACK_ALIGN POINTER_SIZE ASSERTIONS ccall cwrap convertJsFunctionToWasm getEmptyTableSlot updateTableMap getFunctionAddress addFunction removeFunction intArrayToString stringToAscii stringToNewUTF8 stringToUTF8OnStack writeArrayToMemory registerKeyEventCallback maybeCStringToJsString findEventTarget 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 registerBatteryEventCallback setCanvasElementSize getCanvasElementSize jsStackTrace getCallstack convertPCtoSourceLocation wasiRightsToMuslOFlags wasiOFlagsToMuslOFlags safeSetTimeout setImmediateWrapped safeRequestAnimationFrame clearImmediateWrapped registerPostMainLoop registerPreMainLoop getPromise makePromise idsToPromises makePromiseCallback findMatchingCatch Browser_asyncPrepareDataCounter isLeapYear ydayFromDate arraySum addDays getSocketFromFD getSocketAddress FS_mkdirTree _setNetworkCallback getFunctionArgsName createJsInvokerSignature createJsInvoker PureVirtualError registerInheritedInstance unregisterInheritedInstance getInheritedInstanceCount getLiveInheritedInstances setDelayFunction validateThis count_emval_handles".split(" ").forEach(function(a){ra(a)});
|
|
85
85
|
"run out err callMain abort wasmExports HEAPF32 HEAPF64 HEAP8 HEAPU8 HEAP16 HEAPU16 HEAP32 HEAPU32 HEAP64 HEAPU64 writeStackCookie checkStackCookie INT53_MAX INT53_MIN bigintToI53Checked stackSave stackRestore createNamedFunction ptrToString zeroMemory getHeapMax growMemory ENV ERRNO_CODES strError DNS Protocols Sockets timers warnOnce readEmAsmArgsArray readEmAsmArgs runEmAsmFunction getExecutableName asyncLoad alignMemory mmapAlloc wasmTable wasmMemory getUniqueRunDependency noExitRuntime addRunDependency removeRunDependency freeTableIndexes functionsInTableMap setValue getValue PATH PATH_FS UTF8Decoder UTF8ArrayToString UTF8ToString stringToUTF8Array stringToUTF8 lengthBytesUTF8 intArrayFromString AsciiToString UTF16Decoder UTF16ToString stringToUTF16 lengthBytesUTF16 UTF32ToString stringToUTF32 lengthBytesUTF32 JSEvents specialHTMLTargets findCanvasEventTarget currentFullscreenStrategy restoreOldWindowedStyle UNWIND_CACHE ExitStatus getEnvStrings checkWasiClock doReadv doWritev initRandomFill randomFill emSetImmediate emClearImmediate_deps emClearImmediate promiseMap uncaughtExceptionCount exceptionLast exceptionCaught ExceptionInfo Browser requestFullscreen requestFullScreen setCanvasSize getUserMedia createContext getPreloadedImageData__data wget MONTH_DAYS_REGULAR MONTH_DAYS_LEAP MONTH_DAYS_REGULAR_CUMULATIVE MONTH_DAYS_LEAP_CUMULATIVE SYSCALLS preloadPlugins FS_createPreloadedFile FS_preloadFile FS_modeStringToFlags FS_getMode FS_stdin_getChar_buffer FS_stdin_getChar FS_unlink FS_createPath FS_createDevice FS_readFile FS FS_root FS_mounts FS_devices FS_streams FS_nextInode FS_nameTable FS_currentPath FS_initialized FS_ignorePermissions FS_filesystems FS_syncFSRequests FS_lookupPath FS_getPath FS_hashName FS_hashAddNode FS_hashRemoveNode FS_lookupNode FS_createNode FS_destroyNode FS_isRoot FS_isMountpoint FS_isFile FS_isDir FS_isLink FS_isChrdev FS_isBlkdev FS_isFIFO FS_isSocket FS_flagsToPermissionString FS_nodePermissions FS_mayLookup FS_mayCreate FS_mayDelete FS_mayOpen FS_checkOpExists FS_nextfd FS_getStreamChecked FS_getStream FS_createStream FS_closeStream FS_dupStream FS_doSetAttr FS_chrdev_stream_ops FS_major FS_minor FS_makedev FS_registerDevice FS_getDevice FS_getMounts FS_syncfs FS_mount FS_unmount FS_lookup FS_mknod FS_statfs FS_statfsStream FS_statfsNode FS_create FS_mkdir FS_mkdev FS_symlink FS_rename FS_rmdir FS_readdir FS_readlink FS_stat FS_fstat FS_lstat FS_doChmod FS_chmod FS_lchmod FS_fchmod FS_doChown FS_chown FS_lchown FS_fchown FS_doTruncate FS_truncate FS_ftruncate FS_utime FS_open FS_close FS_isClosed FS_llseek FS_read FS_write FS_mmap FS_msync FS_ioctl FS_writeFile FS_cwd FS_chdir FS_createDefaultDirectories FS_createDefaultDevices FS_createSpecialDirectories FS_createStandardStreams FS_staticInit FS_init FS_quit FS_findObject FS_analyzePath FS_createFile FS_createDataFile FS_forceLoadFile FS_createLazyFile FS_absolutePath FS_createFolder FS_createLink FS_joinPath FS_mmapAlloc FS_standardizePath MEMFS TTY PIPEFS SOCKFS InternalError BindingError throwInternalError throwBindingError registeredTypes awaitingDependencies typeDependencies tupleRegistrations structRegistrations sharedRegisterType whenDependentTypesAreResolved getTypeName getFunctionName heap32VectorToArray requireRegisteredType usesDestructorStack checkArgCount getRequiredArgCount UnboundTypeError EmValType EmValOptionalType throwUnboundTypeError ensureOverloadTable exposePublicSymbol replacePublicSymbol embindRepr registeredInstances getBasestPointer getInheritedInstance registeredPointers registerType integerReadValueFromPointer enumReadValueFromPointer floatReadValueFromPointer assertIntegerRange readPointer runDestructors craftInvokerFunction embind__requireFunction genericPointerToWireType constNoSmartPtrRawPointerToWireType nonConstNoSmartPtrRawPointerToWireType init_RegisteredPointer RegisteredPointer RegisteredPointer_fromWireType runDestructor releaseClassHandle finalizationRegistry detachFinalizer_deps detachFinalizer attachFinalizer makeClassHandle init_ClassHandle ClassHandle throwInstanceAlreadyDeleted deletionQueue flushPendingDeletes delayFunction RegisteredClass shallowCopyInternalPointer downcastPointer upcastPointer char_0 char_9 makeLegalFunctionName emval_freelist emval_handles emval_symbols getStringOrSymbol Emval emval_returnValue emval_lookupTypes emval_methodCallers emval_addMethodCaller".split(" ").forEach(ra);
|
|
86
|
-
var fd={
|
|
86
|
+
var fd={2230936:()=>{if(void 0===l.ga)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();l.ga=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();l.ga=a}catch(e){throw"No secure random number generator found";}}},2231658:()=>l.ga()},Ac=y("___getTypeName"),gd=y("_malloc"),Y=y("_free"),tb=y("_strerror"),
|
|
87
87
|
kb=y("_emscripten_builtin_memalign");l._setThrew=y("_setThrew");
|
|
88
88
|
var hd=y("_emscripten_stack_init"),na=y("_emscripten_stack_get_end"),Ca=y("wasmMemory"),xc=y("wasmTable"),jd={__assert_fail:(a,b,c,d)=>r(`Assertion failed: ${I(a)}, at: `+[b?I(b):"unknown filename",c,d?I(d):"unknown function"]),__cxa_throw:(a,b,c)=>{a=new Na(a);w[a.l+16>>2]=0;w[a.l+4>>2]=b;w[a.l+8>>2]=c;Oa++;m(!1,"Exception thrown, but exception catching is not enabled. Compile with -sNO_DISABLE_EXCEPTION_CATCHING or -sEXCEPTION_CATCHING_ALLOWED=[..] to catch.")},__syscall_fcntl64:function(a,b,c){Pa=
|
|
89
89
|
c;try{var d=Q(a);switch(b){case 0:var e=J();if(0>e)break;for(;pb[e];)e++;return Fb(d,e).fd;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=J(),d.flags|=e,0;case 12:return e=J(),G[e+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(f){if("undefined"==typeof S||"ErrnoError"!==f.name)throw f;return-f.A}},__syscall_getcwd:function(a,b){try{if(0===b)return-28;var c=Za("/")+1;if(b<c)return-68;T("/",a,b);return c}catch(d){if("undefined"==typeof S||"ErrnoError"!==d.name)throw d;return-d.A}},
|
|
Binary file
|