@fuel-ts/account 0.94.3 → 0.94.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account.d.ts.map +1 -1
- package/dist/index.global.js +352 -268
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +307 -167
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +304 -167
- package/dist/index.mjs.map +1 -1
- package/dist/predicate/predicate.d.ts.map +1 -1
- package/dist/providers/__generated__/operations.d.ts +81 -0
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/message.d.ts +3 -0
- package/dist/providers/message.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +27 -2
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/transaction-request/blob-transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/create-transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/helpers.d.ts +2 -0
- package/dist/providers/transaction-request/helpers.d.ts.map +1 -1
- package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/transaction-request.d.ts +4 -2
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
- package/dist/providers/utils/extract-tx-error.d.ts.map +1 -1
- package/dist/providers/utils/handle-gql-error-message.d.ts +6 -0
- package/dist/providers/utils/handle-gql-error-message.d.ts.map +1 -0
- package/dist/test-utils/launchNode.d.ts.map +1 -1
- package/dist/test-utils.global.js +196 -118
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +262 -134
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +260 -132
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +16 -16
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"predicate.d.ts","sourceRoot":"","sources":["../../src/predicate/predicate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC9D,O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,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GAAG,SAAS,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAC5F,SAAQ,OAAO;IACf,KAAK,EAAE,UAAU,CAAC;IAClB,aAAa,EAAE,KAAK,CAA0B;IAC9C,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;;;;;;OAQG;gBACS,EACV,QAAQ,EACR,GAAG,EACH,QAAQ,EACR,IAAI,EACJ,qBAAqB,GACtB,EAAE,eAAe,CAAC,KAAK,EAAE,cAAc,CAAC;IAgBzC;;;;;OAKG;IACH,gCAAgC,CAAC,CAAC,SAAS,kBAAkB,EAC3D,sBAAsB,EAAE,sBAAsB;IAwBhD;;;;;OAKG;IACH,eAAe,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAM7F;;;;;OAKG;IACH,mBAAmB,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC;IAKxF,OAAO,CAAC,gBAAgB;IASxB;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAgCnC;;;;;;OAMG;IACG,mBAAmB,CACvB,UAAU,EAAE,gBAAgB,EAAE,CAAC,8BAA8B,EAC7D,WAAW,CAAC,EAAE,sBAAsB,GACnC,OAAO,CAAC,QAAQ,EAAE,CAAC;IAatB;;;;;OAKG;IACH,qBAAqB,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC;IAQ9D;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,wBAAwB;IA8CvC;;;;;OAKG;IACH,OAAO,CAAC,8BAA8B;CAgCvC"}
|
@@ -778,6 +778,7 @@ export type GqlQuery = {
|
|
778
778
|
* is the same.
|
779
779
|
*/
|
780
780
|
coinsToSpend: Array<Array<GqlCoinType>>;
|
781
|
+
consensusParameters: GqlConsensusParameters;
|
781
782
|
contract?: Maybe<GqlContract>;
|
782
783
|
contractBalance: GqlContractBalance;
|
783
784
|
contractBalances: GqlContractBalanceConnection;
|
@@ -797,6 +798,8 @@ export type GqlQuery = {
|
|
797
798
|
/** Read register value by index. */
|
798
799
|
register: Scalars['U64']['output'];
|
799
800
|
relayedTransactionStatus?: Maybe<GqlRelayedTransactionStatus>;
|
801
|
+
stateTransitionBytecodeByRoot: GqlStateTransitionBytecode;
|
802
|
+
stateTransitionBytecodeByVersion?: Maybe<GqlStateTransitionBytecode>;
|
800
803
|
transaction?: Maybe<GqlTransaction>;
|
801
804
|
transactions: GqlTransactionConnection;
|
802
805
|
transactionsByOwner: GqlTransactionConnection;
|
@@ -840,6 +843,9 @@ export type GqlQueryCoinsToSpendArgs = {
|
|
840
843
|
owner: Scalars['Address']['input'];
|
841
844
|
queryPerAsset: Array<GqlSpendQueryElementInput>;
|
842
845
|
};
|
846
|
+
export type GqlQueryConsensusParametersArgs = {
|
847
|
+
version: Scalars['Int']['input'];
|
848
|
+
};
|
843
849
|
export type GqlQueryContractArgs = {
|
844
850
|
id: Scalars['ContractId']['input'];
|
845
851
|
};
|
@@ -891,6 +897,12 @@ export type GqlQueryRegisterArgs = {
|
|
891
897
|
export type GqlQueryRelayedTransactionStatusArgs = {
|
892
898
|
id: Scalars['RelayedTransactionId']['input'];
|
893
899
|
};
|
900
|
+
export type GqlQueryStateTransitionBytecodeByRootArgs = {
|
901
|
+
root: Scalars['HexString']['input'];
|
902
|
+
};
|
903
|
+
export type GqlQueryStateTransitionBytecodeByVersionArgs = {
|
904
|
+
version: Scalars['Int']['input'];
|
905
|
+
};
|
894
906
|
export type GqlQueryTransactionArgs = {
|
895
907
|
id: Scalars['TransactionId']['input'];
|
896
908
|
};
|
@@ -993,6 +1005,10 @@ export type GqlSpendQueryElementInput = {
|
|
993
1005
|
export type GqlSqueezedOutStatus = {
|
994
1006
|
reason: Scalars['String']['output'];
|
995
1007
|
};
|
1008
|
+
export type GqlStateTransitionBytecode = {
|
1009
|
+
bytecode: GqlUploadedBytecode;
|
1010
|
+
root: Scalars['HexString']['output'];
|
1011
|
+
};
|
996
1012
|
export type GqlStateTransitionPurpose = {
|
997
1013
|
root: Scalars['Bytes32']['output'];
|
998
1014
|
};
|
@@ -1017,6 +1033,12 @@ export type GqlSubscription = {
|
|
1017
1033
|
statusChange: GqlTransactionStatus;
|
1018
1034
|
/** Submits transaction to the `TxPool` and await either confirmation or failure. */
|
1019
1035
|
submitAndAwait: GqlTransactionStatus;
|
1036
|
+
/**
|
1037
|
+
* Submits the transaction to the `TxPool` and returns a stream of events.
|
1038
|
+
* Compared to the `submitAndAwait`, the stream also contains `
|
1039
|
+
* SubmittedStatus` as an intermediate state.
|
1040
|
+
*/
|
1041
|
+
submitAndAwaitStatus: GqlTransactionStatus;
|
1020
1042
|
};
|
1021
1043
|
export type GqlSubscriptionStatusChangeArgs = {
|
1022
1044
|
id: Scalars['TransactionId']['input'];
|
@@ -1024,6 +1046,9 @@ export type GqlSubscriptionStatusChangeArgs = {
|
|
1024
1046
|
export type GqlSubscriptionSubmitAndAwaitArgs = {
|
1025
1047
|
tx: Scalars['HexString']['input'];
|
1026
1048
|
};
|
1049
|
+
export type GqlSubscriptionSubmitAndAwaitStatusArgs = {
|
1050
|
+
tx: Scalars['HexString']['input'];
|
1051
|
+
};
|
1027
1052
|
export type GqlSuccessStatus = {
|
1028
1053
|
block: GqlBlock;
|
1029
1054
|
blockHeight: Scalars['U32']['output'];
|
@@ -1102,6 +1127,14 @@ export declare enum GqlTxParametersVersion {
|
|
1102
1127
|
V1 = "V1"
|
1103
1128
|
}
|
1104
1129
|
export type GqlUpgradePurpose = GqlConsensusParametersPurpose | GqlStateTransitionPurpose;
|
1130
|
+
export type GqlUploadedBytecode = {
|
1131
|
+
/** Combined bytecode of all uploaded subsections. */
|
1132
|
+
bytecode: Scalars['HexString']['output'];
|
1133
|
+
/** Indicates if the bytecode upload is complete. */
|
1134
|
+
completed: Scalars['Boolean']['output'];
|
1135
|
+
/** Number of uploaded subsections (if incomplete). */
|
1136
|
+
uploadedSubsectionsNumber?: Maybe<Scalars['Int']['output']>;
|
1137
|
+
};
|
1105
1138
|
export type GqlVariableOutput = {
|
1106
1139
|
amount: Scalars['U64']['output'];
|
1107
1140
|
assetId: Scalars['AssetId']['output'];
|
@@ -1725,6 +1758,14 @@ export type GqlBlockFragment = {
|
|
1725
1758
|
height: string;
|
1726
1759
|
header: {
|
1727
1760
|
time: string;
|
1761
|
+
daHeight: string;
|
1762
|
+
stateTransitionBytecodeVersion: string;
|
1763
|
+
transactionsCount: string;
|
1764
|
+
transactionsRoot: string;
|
1765
|
+
messageOutboxRoot: string;
|
1766
|
+
eventInboxRoot: string;
|
1767
|
+
prevRoot: string;
|
1768
|
+
applicationHash: string;
|
1728
1769
|
};
|
1729
1770
|
transactions: Array<{
|
1730
1771
|
id: string;
|
@@ -2564,6 +2605,14 @@ export type GqlChainInfoFragment = {
|
|
2564
2605
|
height: string;
|
2565
2606
|
header: {
|
2566
2607
|
time: string;
|
2608
|
+
daHeight: string;
|
2609
|
+
stateTransitionBytecodeVersion: string;
|
2610
|
+
transactionsCount: string;
|
2611
|
+
transactionsRoot: string;
|
2612
|
+
messageOutboxRoot: string;
|
2613
|
+
eventInboxRoot: string;
|
2614
|
+
prevRoot: string;
|
2615
|
+
applicationHash: string;
|
2567
2616
|
};
|
2568
2617
|
transactions: Array<{
|
2569
2618
|
id: string;
|
@@ -2995,6 +3044,14 @@ export type GqlGetChainQuery = {
|
|
2995
3044
|
height: string;
|
2996
3045
|
header: {
|
2997
3046
|
time: string;
|
3047
|
+
daHeight: string;
|
3048
|
+
stateTransitionBytecodeVersion: string;
|
3049
|
+
transactionsCount: string;
|
3050
|
+
transactionsRoot: string;
|
3051
|
+
messageOutboxRoot: string;
|
3052
|
+
eventInboxRoot: string;
|
3053
|
+
prevRoot: string;
|
3054
|
+
applicationHash: string;
|
2998
3055
|
};
|
2999
3056
|
transactions: Array<{
|
3000
3057
|
id: string;
|
@@ -3810,6 +3867,14 @@ export type GqlGetBlockQuery = {
|
|
3810
3867
|
height: string;
|
3811
3868
|
header: {
|
3812
3869
|
time: string;
|
3870
|
+
daHeight: string;
|
3871
|
+
stateTransitionBytecodeVersion: string;
|
3872
|
+
transactionsCount: string;
|
3873
|
+
transactionsRoot: string;
|
3874
|
+
messageOutboxRoot: string;
|
3875
|
+
eventInboxRoot: string;
|
3876
|
+
prevRoot: string;
|
3877
|
+
applicationHash: string;
|
3813
3878
|
};
|
3814
3879
|
transactions: Array<{
|
3815
3880
|
id: string;
|
@@ -3918,6 +3983,14 @@ export type GqlGetBlockWithTransactionsQuery = {
|
|
3918
3983
|
}>;
|
3919
3984
|
header: {
|
3920
3985
|
time: string;
|
3986
|
+
daHeight: string;
|
3987
|
+
stateTransitionBytecodeVersion: string;
|
3988
|
+
transactionsCount: string;
|
3989
|
+
transactionsRoot: string;
|
3990
|
+
messageOutboxRoot: string;
|
3991
|
+
eventInboxRoot: string;
|
3992
|
+
prevRoot: string;
|
3993
|
+
applicationHash: string;
|
3921
3994
|
};
|
3922
3995
|
} | null;
|
3923
3996
|
};
|
@@ -3941,6 +4014,14 @@ export type GqlGetBlocksQuery = {
|
|
3941
4014
|
height: string;
|
3942
4015
|
header: {
|
3943
4016
|
time: string;
|
4017
|
+
daHeight: string;
|
4018
|
+
stateTransitionBytecodeVersion: string;
|
4019
|
+
transactionsCount: string;
|
4020
|
+
transactionsRoot: string;
|
4021
|
+
messageOutboxRoot: string;
|
4022
|
+
eventInboxRoot: string;
|
4023
|
+
prevRoot: string;
|
4024
|
+
applicationHash: string;
|
3944
4025
|
};
|
3945
4026
|
transactions: Array<{
|
3946
4027
|
id: string;
|