@fuel-ts/account 0.97.2 → 0.99.0

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.
Files changed (154) hide show
  1. package/dist/account.d.ts +20 -17
  2. package/dist/account.d.ts.map +1 -1
  3. package/dist/assets/asset-api.d.ts +69 -0
  4. package/dist/assets/asset-api.d.ts.map +1 -0
  5. package/dist/assets/assets.d.ts.map +1 -0
  6. package/dist/{providers/assets → assets}/index.d.ts +1 -0
  7. package/dist/assets/index.d.ts.map +1 -0
  8. package/dist/assets/types.d.ts.map +1 -0
  9. package/dist/assets/utils/fuelAssetsBaseUrl.d.ts +2 -0
  10. package/dist/assets/utils/fuelAssetsBaseUrl.d.ts.map +1 -0
  11. package/dist/assets/utils/index.d.ts.map +1 -0
  12. package/dist/{providers/assets → assets}/utils/network.d.ts +6 -6
  13. package/dist/assets/utils/network.d.ts.map +1 -0
  14. package/dist/assets/utils/resolveIconPaths.d.ts.map +1 -0
  15. package/dist/assets/utils/url.d.ts.map +1 -0
  16. package/dist/configs.d.ts +2 -2
  17. package/dist/configs.global.js.map +1 -1
  18. package/dist/configs.js.map +1 -1
  19. package/dist/configs.mjs.map +1 -1
  20. package/dist/connectors/fuel-connector.d.ts +5 -5
  21. package/dist/connectors/fuel-connector.d.ts.map +1 -1
  22. package/dist/connectors/fuel.d.ts +3 -3
  23. package/dist/connectors/fuel.d.ts.map +1 -1
  24. package/dist/connectors/types/data-type.d.ts +8 -0
  25. package/dist/connectors/types/data-type.d.ts.map +1 -1
  26. package/dist/connectors/types/events.d.ts +1 -1
  27. package/dist/connectors/types/events.d.ts.map +1 -1
  28. package/dist/hdwallet/hdwallet.d.ts +1 -1
  29. package/dist/hdwallet/hdwallet.d.ts.map +1 -1
  30. package/dist/index.d.ts +3 -0
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.global.js +17174 -15376
  33. package/dist/index.global.js.map +1 -1
  34. package/dist/index.js +6602 -6428
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +6613 -6450
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/mnemonic/mnemonic.d.ts +1 -1
  39. package/dist/mnemonic/mnemonic.d.ts.map +1 -1
  40. package/dist/mnemonic/utils.d.ts +1 -1
  41. package/dist/mnemonic/utils.d.ts.map +1 -1
  42. package/dist/predicate/predicate.d.ts +9 -1
  43. package/dist/predicate/predicate.d.ts.map +1 -1
  44. package/dist/predicate/utils/getPredicateRoot.d.ts +1 -1
  45. package/dist/predicate/utils/getPredicateRoot.d.ts.map +1 -1
  46. package/dist/providers/__generated__/operations.d.ts +28 -175
  47. package/dist/providers/__generated__/operations.d.ts.map +1 -1
  48. package/dist/providers/coin-quantity.d.ts +1 -1
  49. package/dist/providers/coin-quantity.d.ts.map +1 -1
  50. package/dist/providers/coin.d.ts +3 -2
  51. package/dist/providers/coin.d.ts.map +1 -1
  52. package/dist/providers/fuel-graphql-subscriber.d.ts +1 -0
  53. package/dist/providers/fuel-graphql-subscriber.d.ts.map +1 -1
  54. package/dist/providers/index.d.ts +0 -1
  55. package/dist/providers/index.d.ts.map +1 -1
  56. package/dist/providers/message.d.ts +8 -7
  57. package/dist/providers/message.d.ts.map +1 -1
  58. package/dist/providers/provider.d.ts +65 -42
  59. package/dist/providers/provider.d.ts.map +1 -1
  60. package/dist/providers/resource.d.ts +1 -1
  61. package/dist/providers/resource.d.ts.map +1 -1
  62. package/dist/providers/transaction-request/create-transaction-request.d.ts +1 -1
  63. package/dist/providers/transaction-request/create-transaction-request.d.ts.map +1 -1
  64. package/dist/providers/transaction-request/errors.d.ts +3 -3
  65. package/dist/providers/transaction-request/errors.d.ts.map +1 -1
  66. package/dist/providers/transaction-request/helpers.d.ts +26 -4
  67. package/dist/providers/transaction-request/helpers.d.ts.map +1 -1
  68. package/dist/providers/transaction-request/input.d.ts +1 -1
  69. package/dist/providers/transaction-request/input.d.ts.map +1 -1
  70. package/dist/providers/transaction-request/output.d.ts +1 -1
  71. package/dist/providers/transaction-request/output.d.ts.map +1 -1
  72. package/dist/providers/transaction-request/script-transaction-request.d.ts +13 -3
  73. package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
  74. package/dist/providers/transaction-request/scripts.d.ts +1 -1
  75. package/dist/providers/transaction-request/scripts.d.ts.map +1 -1
  76. package/dist/providers/transaction-request/storage-slot.d.ts +1 -1
  77. package/dist/providers/transaction-request/storage-slot.d.ts.map +1 -1
  78. package/dist/providers/transaction-request/transaction-request.d.ts +5 -3
  79. package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
  80. package/dist/providers/transaction-request/types.d.ts +7 -0
  81. package/dist/providers/transaction-request/types.d.ts.map +1 -1
  82. package/dist/providers/transaction-request/upgrade-transaction-request.d.ts +1 -1
  83. package/dist/providers/transaction-request/upgrade-transaction-request.d.ts.map +1 -1
  84. package/dist/providers/transaction-request/upload-transaction-request.d.ts +1 -1
  85. package/dist/providers/transaction-request/upload-transaction-request.d.ts.map +1 -1
  86. package/dist/providers/transaction-request/witness.d.ts +1 -1
  87. package/dist/providers/transaction-request/witness.d.ts.map +1 -1
  88. package/dist/providers/transaction-response/transaction-response.d.ts +1 -1
  89. package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
  90. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -1
  91. package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts +0 -1
  92. package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts.map +1 -1
  93. package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
  94. package/dist/providers/transaction-summary/input.d.ts +1 -1
  95. package/dist/providers/transaction-summary/status.d.ts +9 -2
  96. package/dist/providers/transaction-summary/status.d.ts.map +1 -1
  97. package/dist/providers/transaction-summary/types.d.ts +1 -21
  98. package/dist/providers/transaction-summary/types.d.ts.map +1 -1
  99. package/dist/providers/utils/handle-gql-error-message.d.ts +5 -1
  100. package/dist/providers/utils/handle-gql-error-message.d.ts.map +1 -1
  101. package/dist/providers/utils/receipts.d.ts.map +1 -1
  102. package/dist/signer/signer.d.ts +1 -1
  103. package/dist/signer/signer.d.ts.map +1 -1
  104. package/dist/test-utils/launchNode.d.ts +2 -1
  105. package/dist/test-utils/launchNode.d.ts.map +1 -1
  106. package/dist/test-utils/setup-test-provider-and-wallets.d.ts.map +1 -1
  107. package/dist/test-utils/test-message.d.ts +6 -6
  108. package/dist/test-utils/test-message.d.ts.map +1 -1
  109. package/dist/test-utils/wallet-config.d.ts +2 -1
  110. package/dist/test-utils/wallet-config.d.ts.map +1 -1
  111. package/dist/test-utils.global.js +3096 -1963
  112. package/dist/test-utils.global.js.map +1 -1
  113. package/dist/test-utils.js +498 -1011
  114. package/dist/test-utils.js.map +1 -1
  115. package/dist/test-utils.mjs +453 -966
  116. package/dist/test-utils.mjs.map +1 -1
  117. package/dist/types.d.ts +11 -0
  118. package/dist/types.d.ts.map +1 -0
  119. package/dist/utils/deployScriptOrPredicate.d.ts.map +1 -1
  120. package/dist/utils/formatTransferToContractScriptData.d.ts +1 -1
  121. package/dist/utils/formatTransferToContractScriptData.d.ts.map +1 -1
  122. package/dist/utils/predicate-script-loader-instructions.d.ts +36 -1
  123. package/dist/utils/predicate-script-loader-instructions.d.ts.map +1 -1
  124. package/dist/wallet/base-wallet-unlocked.d.ts +2 -2
  125. package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -1
  126. package/dist/wallet/keystore-wallet.d.ts +2 -2
  127. package/dist/wallet/keystore-wallet.d.ts.map +1 -1
  128. package/dist/wallet/wallet.d.ts +3 -2
  129. package/dist/wallet/wallet.d.ts.map +1 -1
  130. package/dist/wallet/wallets.d.ts +1 -1
  131. package/dist/wallet/wallets.d.ts.map +1 -1
  132. package/dist/wallet-manager/types.d.ts +4 -4
  133. package/dist/wallet-manager/types.d.ts.map +1 -1
  134. package/dist/wallet-manager/vaults/mnemonic-vault.d.ts +6 -5
  135. package/dist/wallet-manager/vaults/mnemonic-vault.d.ts.map +1 -1
  136. package/dist/wallet-manager/vaults/privatekey-vault.d.ts +6 -5
  137. package/dist/wallet-manager/vaults/privatekey-vault.d.ts.map +1 -1
  138. package/dist/wallet-manager/wallet-manager.d.ts +3 -3
  139. package/dist/wallet-manager/wallet-manager.d.ts.map +1 -1
  140. package/package.json +28 -30
  141. package/dist/providers/assets/assets.d.ts.map +0 -1
  142. package/dist/providers/assets/index.d.ts.map +0 -1
  143. package/dist/providers/assets/types.d.ts.map +0 -1
  144. package/dist/providers/assets/utils/fuelAssetsBaseUrl.d.ts +0 -2
  145. package/dist/providers/assets/utils/fuelAssetsBaseUrl.d.ts.map +0 -1
  146. package/dist/providers/assets/utils/index.d.ts.map +0 -1
  147. package/dist/providers/assets/utils/network.d.ts.map +0 -1
  148. package/dist/providers/assets/utils/resolveIconPaths.d.ts.map +0 -1
  149. package/dist/providers/assets/utils/url.d.ts.map +0 -1
  150. /package/dist/{providers/assets → assets}/assets.d.ts +0 -0
  151. /package/dist/{providers/assets → assets}/types.d.ts +0 -0
  152. /package/dist/{providers/assets → assets}/utils/index.d.ts +0 -0
  153. /package/dist/{providers/assets → assets}/utils/resolveIconPaths.d.ts +0 -0
  154. /package/dist/{providers/assets → assets}/utils/url.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import type { BytesLike } from '@fuel-ts/interfaces';
1
+ import type { BytesLike } from '@fuel-ts/utils';
2
2
  import type { MnemonicPhrase } from './utils';
3
3
  export declare const MNEMONIC_SIZES: number[];
4
4
  declare class Mnemonic {
@@ -1 +1 @@
1
- {"version":3,"file":"mnemonic.d.ts","sourceRoot":"","sources":["../../src/mnemonic/mnemonic.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAKrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAW9C,eAAO,MAAM,cAAc,UAAuB,CAAC;AA8BnD,cAAM,QAAQ;IACZ,QAAQ,EAAE,KAAK,CAAC,MAAM,CA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2
  export type MnemonicPhrase = string | Array<string>;
3
3
  export declare function getWords(mnemonic: MnemonicPhrase): Array<string>;
4
4
  export declare function getPhrase(mnemonic: MnemonicPhrase): string;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/mnemonic/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIrD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAYpD,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,CAKhE;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,CAK1D;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CA+B3E;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAkC/F"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/mnemonic/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIhD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAYpD,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,CAKhE;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,CAK1D;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CA+B3E;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAkC/F"}
@@ -1,6 +1,6 @@
1
1
  import type { JsonAbi, InputValue } from '@fuel-ts/abi-coder';
2
2
  import { Interface } from '@fuel-ts/abi-coder';
3
- import type { BytesLike } from '@fuel-ts/interfaces';
3
+ import type { BytesLike } from '@fuel-ts/utils';
4
4
  import type { FakeResources } from '../account';
5
5
  import { Account } from '../account';
6
6
  import type { CallResult, CoinQuantityLike, ExcludeResourcesOption, Provider, Resource, TransactionRequest, TransactionRequestLike, TransactionResponse } from '../providers';
@@ -26,6 +26,8 @@ export declare class Predicate<TData extends InputValue[] = InputValue[], TConfi
26
26
  bytes: Uint8Array;
27
27
  predicateData: TData;
28
28
  interface: Interface;
29
+ initialBytecode: Uint8Array;
30
+ configurableConstants: TConfigurables | undefined;
29
31
  /**
30
32
  * Creates an instance of the Predicate class.
31
33
  *
@@ -58,6 +60,12 @@ export declare class Predicate<TData extends InputValue[] = InputValue[], TConfi
58
60
  */
59
61
  simulateTransaction(transactionRequestLike: TransactionRequestLike): Promise<CallResult>;
60
62
  private getPredicateData;
63
+ /**
64
+ * Creates a new Predicate instance from an existing Predicate instance.
65
+ * @param overrides - The data and configurable constants to override.
66
+ * @returns A new Predicate instance with the same bytecode, ABI and provider but with the ability to set the data and configurable constants.
67
+ */
68
+ toNewInstance(overrides?: Pick<PredicateParams<TData, TConfigurables>, 'data' | 'configurableConstants'>): Predicate<TData, TConfigurables>;
61
69
  /**
62
70
  * Processes the predicate data and returns the altered bytecode and interface.
63
71
  *
@@ -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,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,OAAO,KAAK,EAAE,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E,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAM;IAWhG;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IA6BnC;;;;;;OAMG;IACY,mBAAmB,CAChC,UAAU,EAAE,gBAAgB,EAAE,CAAC,8BAA8B,EAC7D,WAAW,CAAC,EAAE,sBAAsB,GACnC,OAAO,CAAC,QAAQ,EAAE,CAAC;IAatB;;;;;OAKG;IACM,qBAAqB,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC;IAQvE;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAuCvC;;;;;OAKG;IACH,OAAO,CAAC,8BAA8B;IAiCtC;;;;;;;;OAQG;IACG,MAAM,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,OAAO;;;;CAcxC"}
@@ -1,4 +1,4 @@
1
- import type { BytesLike } from '@fuel-ts/interfaces';
1
+ import type { BytesLike } from '@fuel-ts/utils';
2
2
  /**
3
3
  * @hidden
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"getPredicateRoot.d.ts","sourceRoot":"","sources":["../../../src/predicate/utils/getPredicateRoot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIrD;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,aAAc,SAAS,KAAG,MAQtD,CAAC"}
1
+ {"version":3,"file":"getPredicateRoot.d.ts","sourceRoot":"","sources":["../../../src/predicate/utils/getPredicateRoot.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,aAAc,SAAS,KAAG,MAQtD,CAAC"}
@@ -293,6 +293,9 @@ export type GqlContractParameters = {
293
293
  export declare enum GqlContractParametersVersion {
294
294
  V1 = "V1"
295
295
  }
296
+ export type GqlDaCompressedBlock = {
297
+ bytes: Scalars['HexString']['output'];
298
+ };
296
299
  export type GqlDependentCost = GqlHeavyOperation | GqlLightOperation;
297
300
  export type GqlDryRunFailureStatus = {
298
301
  programState?: Maybe<GqlProgramState>;
@@ -691,9 +694,12 @@ export type GqlMutationSubmitArgs = {
691
694
  };
692
695
  export type GqlNodeInfo = {
693
696
  maxDepth: Scalars['U64']['output'];
697
+ maxGas: Scalars['U64']['output'];
698
+ maxSize: Scalars['U64']['output'];
694
699
  maxTx: Scalars['U64']['output'];
695
700
  nodeVersion: Scalars['String']['output'];
696
701
  peers: Array<GqlPeerInfo>;
702
+ txPoolStats: GqlTxPoolStats;
697
703
  utxoValidation: Scalars['Boolean']['output'];
698
704
  vmBacktrace: Scalars['Boolean']['output'];
699
705
  };
@@ -783,6 +789,7 @@ export type GqlQuery = {
783
789
  contract?: Maybe<GqlContract>;
784
790
  contractBalance: GqlContractBalance;
785
791
  contractBalances: GqlContractBalanceConnection;
792
+ daCompressedBlock?: Maybe<GqlDaCompressedBlock>;
786
793
  estimateGasPrice: GqlEstimateGasPrice;
787
794
  /** Estimate the predicate gas for the provided transaction */
788
795
  estimatePredicates: GqlTransaction;
@@ -861,6 +868,9 @@ export type GqlQueryContractBalancesArgs = {
861
868
  first?: InputMaybe<Scalars['Int']['input']>;
862
869
  last?: InputMaybe<Scalars['Int']['input']>;
863
870
  };
871
+ export type GqlQueryDaCompressedBlockArgs = {
872
+ height: Scalars['U32']['input'];
873
+ };
864
874
  export type GqlQueryEstimateGasPriceArgs = {
865
875
  blockHorizon?: InputMaybe<Scalars['U32']['input']>;
866
876
  };
@@ -1127,6 +1137,14 @@ export type GqlTxParameters = {
1127
1137
  export declare enum GqlTxParametersVersion {
1128
1138
  V1 = "V1"
1129
1139
  }
1140
+ export type GqlTxPoolStats = {
1141
+ /** The total gas of the transactions in the pool */
1142
+ totalGas: Scalars['U64']['output'];
1143
+ /** The total size of the transactions in the pool */
1144
+ totalSize: Scalars['U64']['output'];
1145
+ /** The number of transactions in the pool */
1146
+ txCount: Scalars['U64']['output'];
1147
+ };
1130
1148
  export type GqlUpgradePurpose = GqlConsensusParametersPurpose | GqlStateTransitionPurpose;
1131
1149
  export type GqlUploadedBytecode = {
1132
1150
  /** Combined bytecode of all uploaded subsections. */
@@ -2940,12 +2958,6 @@ export type GqlGetBalancesQueryVariables = Exact<{
2940
2958
  }>;
2941
2959
  export type GqlGetBalancesQuery = {
2942
2960
  balances: {
2943
- pageInfo: {
2944
- hasPreviousPage: boolean;
2945
- hasNextPage: boolean;
2946
- startCursor?: string | null;
2947
- endCursor?: string | null;
2948
- };
2949
2961
  edges: Array<{
2950
2962
  node: {
2951
2963
  assetId: string;
@@ -2981,6 +2993,14 @@ export type GqlGetMessagesQuery = {
2981
2993
  }>;
2982
2994
  };
2983
2995
  };
2996
+ export type GqlDaCompressedBlockQueryVariables = Exact<{
2997
+ height: Scalars['U32']['input'];
2998
+ }>;
2999
+ export type GqlDaCompressedBlockQuery = {
3000
+ daCompressedBlock?: {
3001
+ bytes: string;
3002
+ } | null;
3003
+ };
2984
3004
  export type GqlGetMessageProofQueryVariables = Exact<{
2985
3005
  transactionId: Scalars['TransactionId']['input'];
2986
3006
  nonce: Scalars['Nonce']['input'];
@@ -3165,173 +3185,6 @@ export type GqlGetConsensusParametersVersionQuery = {
3165
3185
  };
3166
3186
  };
3167
3187
  };
3168
- export type GqlSubmitAndAwaitSubscriptionVariables = Exact<{
3169
- encodedTransaction: Scalars['HexString']['input'];
3170
- }>;
3171
- export type GqlSubmitAndAwaitSubscription = {
3172
- submitAndAwait: {
3173
- totalGas: string;
3174
- totalFee: string;
3175
- time: string;
3176
- reason: string;
3177
- type: 'FailureStatus';
3178
- transaction: {
3179
- receiptsRoot?: string | null;
3180
- inputs?: Array<{
3181
- txPointer: string;
3182
- type: 'InputCoin';
3183
- } | {
3184
- txPointer: string;
3185
- type: 'InputContract';
3186
- } | {
3187
- type: 'InputMessage';
3188
- }> | null;
3189
- outputs: Array<{
3190
- to: string;
3191
- amount: string;
3192
- assetId: string;
3193
- type: 'ChangeOutput';
3194
- } | {
3195
- to: string;
3196
- amount: string;
3197
- assetId: string;
3198
- type: 'CoinOutput';
3199
- } | {
3200
- contract: string;
3201
- stateRoot: string;
3202
- type: 'ContractCreated';
3203
- } | {
3204
- inputIndex: string;
3205
- balanceRoot: string;
3206
- stateRoot: string;
3207
- type: 'ContractOutput';
3208
- } | {
3209
- to: string;
3210
- amount: string;
3211
- assetId: string;
3212
- type: 'VariableOutput';
3213
- }>;
3214
- };
3215
- block: {
3216
- id: string;
3217
- };
3218
- receipts: Array<{
3219
- id?: string | null;
3220
- pc?: string | null;
3221
- is?: string | null;
3222
- to?: string | null;
3223
- toAddress?: string | null;
3224
- amount?: string | null;
3225
- assetId?: string | null;
3226
- gas?: string | null;
3227
- param1?: string | null;
3228
- param2?: string | null;
3229
- val?: string | null;
3230
- ptr?: string | null;
3231
- digest?: string | null;
3232
- reason?: string | null;
3233
- ra?: string | null;
3234
- rb?: string | null;
3235
- rc?: string | null;
3236
- rd?: string | null;
3237
- len?: string | null;
3238
- receiptType: GqlReceiptType;
3239
- result?: string | null;
3240
- gasUsed?: string | null;
3241
- data?: string | null;
3242
- sender?: string | null;
3243
- recipient?: string | null;
3244
- nonce?: string | null;
3245
- contractId?: string | null;
3246
- subId?: string | null;
3247
- }>;
3248
- } | {
3249
- reason: string;
3250
- type: 'SqueezedOutStatus';
3251
- } | {
3252
- time: string;
3253
- type: 'SubmittedStatus';
3254
- } | {
3255
- time: string;
3256
- totalGas: string;
3257
- totalFee: string;
3258
- type: 'SuccessStatus';
3259
- transaction: {
3260
- receiptsRoot?: string | null;
3261
- inputs?: Array<{
3262
- txPointer: string;
3263
- type: 'InputCoin';
3264
- } | {
3265
- txPointer: string;
3266
- type: 'InputContract';
3267
- } | {
3268
- type: 'InputMessage';
3269
- }> | null;
3270
- outputs: Array<{
3271
- to: string;
3272
- amount: string;
3273
- assetId: string;
3274
- type: 'ChangeOutput';
3275
- } | {
3276
- to: string;
3277
- amount: string;
3278
- assetId: string;
3279
- type: 'CoinOutput';
3280
- } | {
3281
- contract: string;
3282
- stateRoot: string;
3283
- type: 'ContractCreated';
3284
- } | {
3285
- inputIndex: string;
3286
- balanceRoot: string;
3287
- stateRoot: string;
3288
- type: 'ContractOutput';
3289
- } | {
3290
- to: string;
3291
- amount: string;
3292
- assetId: string;
3293
- type: 'VariableOutput';
3294
- }>;
3295
- };
3296
- block: {
3297
- id: string;
3298
- };
3299
- programState?: {
3300
- returnType: GqlReturnType;
3301
- data: string;
3302
- } | null;
3303
- receipts: Array<{
3304
- id?: string | null;
3305
- pc?: string | null;
3306
- is?: string | null;
3307
- to?: string | null;
3308
- toAddress?: string | null;
3309
- amount?: string | null;
3310
- assetId?: string | null;
3311
- gas?: string | null;
3312
- param1?: string | null;
3313
- param2?: string | null;
3314
- val?: string | null;
3315
- ptr?: string | null;
3316
- digest?: string | null;
3317
- reason?: string | null;
3318
- ra?: string | null;
3319
- rb?: string | null;
3320
- rc?: string | null;
3321
- rd?: string | null;
3322
- len?: string | null;
3323
- receiptType: GqlReceiptType;
3324
- result?: string | null;
3325
- gasUsed?: string | null;
3326
- data?: string | null;
3327
- sender?: string | null;
3328
- recipient?: string | null;
3329
- nonce?: string | null;
3330
- contractId?: string | null;
3331
- subId?: string | null;
3332
- }>;
3333
- };
3334
- };
3335
3188
  export type GqlSubmitAndAwaitStatusSubscriptionVariables = Exact<{
3336
3189
  encodedTransaction: Scalars['HexString']['input'];
3337
3190
  }>;
@@ -3727,6 +3580,7 @@ export declare const GetLatestGasPriceDocument: DocumentNode;
3727
3580
  export declare const EstimateGasPriceDocument: DocumentNode;
3728
3581
  export declare const GetBalancesDocument: DocumentNode;
3729
3582
  export declare const GetMessagesDocument: DocumentNode;
3583
+ export declare const DaCompressedBlockDocument: DocumentNode;
3730
3584
  export declare const GetMessageProofDocument: DocumentNode;
3731
3585
  export declare const GetMessageStatusDocument: DocumentNode;
3732
3586
  export declare const GetRelayedTransactionStatusDocument: DocumentNode;
@@ -3736,7 +3590,6 @@ export declare const ProduceBlocksDocument: DocumentNode;
3736
3590
  export declare const GetMessageByNonceDocument: DocumentNode;
3737
3591
  export declare const IsUserAccountDocument: DocumentNode;
3738
3592
  export declare const GetConsensusParametersVersionDocument: DocumentNode;
3739
- export declare const SubmitAndAwaitDocument: DocumentNode;
3740
3593
  export declare const SubmitAndAwaitStatusDocument: DocumentNode;
3741
3594
  export declare const StatusChangeDocument: DocumentNode;
3742
3595
  export type Requester<C = {}> = <R, V>(doc: DocumentNode, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
@@ -3765,6 +3618,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
3765
3618
  estimateGasPrice(variables: GqlEstimateGasPriceQueryVariables, options?: C): Promise<GqlEstimateGasPriceQuery>;
3766
3619
  getBalances(variables: GqlGetBalancesQueryVariables, options?: C): Promise<GqlGetBalancesQuery>;
3767
3620
  getMessages(variables: GqlGetMessagesQueryVariables, options?: C): Promise<GqlGetMessagesQuery>;
3621
+ daCompressedBlock(variables: GqlDaCompressedBlockQueryVariables, options?: C): Promise<GqlDaCompressedBlockQuery>;
3768
3622
  getMessageProof(variables: GqlGetMessageProofQueryVariables, options?: C): Promise<GqlGetMessageProofQuery>;
3769
3623
  getMessageStatus(variables: GqlGetMessageStatusQueryVariables, options?: C): Promise<GqlGetMessageStatusQuery>;
3770
3624
  getRelayedTransactionStatus(variables: GqlGetRelayedTransactionStatusQueryVariables, options?: C): Promise<GqlGetRelayedTransactionStatusQuery>;
@@ -3774,7 +3628,6 @@ export declare function getSdk<C>(requester: Requester<C>): {
3774
3628
  getMessageByNonce(variables: GqlGetMessageByNonceQueryVariables, options?: C): Promise<GqlGetMessageByNonceQuery>;
3775
3629
  isUserAccount(variables: GqlIsUserAccountQueryVariables, options?: C): Promise<GqlIsUserAccountQuery>;
3776
3630
  getConsensusParametersVersion(variables?: GqlGetConsensusParametersVersionQueryVariables, options?: C): Promise<GqlGetConsensusParametersVersionQuery>;
3777
- submitAndAwait(variables: GqlSubmitAndAwaitSubscriptionVariables, options?: C): AsyncIterable<GqlSubmitAndAwaitSubscription>;
3778
3631
  submitAndAwaitStatus(variables: GqlSubmitAndAwaitStatusSubscriptionVariables, options?: C): AsyncIterable<GqlSubmitAndAwaitStatusSubscription>;
3779
3632
  statusChange(variables: GqlStatusChangeSubscriptionVariables, options?: C): AsyncIterable<GqlStatusChangeSubscription>;
3780
3633
  };