@fuel-ts/account 0.97.2 → 0.98.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 (110) hide show
  1. package/dist/account.d.ts +19 -16
  2. package/dist/account.d.ts.map +1 -1
  3. package/dist/connectors/fuel-connector.d.ts +4 -4
  4. package/dist/connectors/fuel-connector.d.ts.map +1 -1
  5. package/dist/connectors/fuel.d.ts +3 -3
  6. package/dist/connectors/fuel.d.ts.map +1 -1
  7. package/dist/connectors/types/data-type.d.ts +8 -0
  8. package/dist/connectors/types/data-type.d.ts.map +1 -1
  9. package/dist/hdwallet/hdwallet.d.ts +1 -1
  10. package/dist/hdwallet/hdwallet.d.ts.map +1 -1
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.global.js +2922 -1249
  14. package/dist/index.global.js.map +1 -1
  15. package/dist/index.js +333 -279
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.mjs +358 -309
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/mnemonic/mnemonic.d.ts +1 -1
  20. package/dist/mnemonic/mnemonic.d.ts.map +1 -1
  21. package/dist/mnemonic/utils.d.ts +1 -1
  22. package/dist/mnemonic/utils.d.ts.map +1 -1
  23. package/dist/predicate/predicate.d.ts +9 -1
  24. package/dist/predicate/predicate.d.ts.map +1 -1
  25. package/dist/predicate/utils/getPredicateRoot.d.ts +1 -1
  26. package/dist/predicate/utils/getPredicateRoot.d.ts.map +1 -1
  27. package/dist/providers/__generated__/operations.d.ts +0 -169
  28. package/dist/providers/__generated__/operations.d.ts.map +1 -1
  29. package/dist/providers/coin-quantity.d.ts +1 -1
  30. package/dist/providers/coin-quantity.d.ts.map +1 -1
  31. package/dist/providers/coin.d.ts +3 -2
  32. package/dist/providers/coin.d.ts.map +1 -1
  33. package/dist/providers/message.d.ts +8 -7
  34. package/dist/providers/message.d.ts.map +1 -1
  35. package/dist/providers/provider.d.ts +27 -34
  36. package/dist/providers/provider.d.ts.map +1 -1
  37. package/dist/providers/resource.d.ts +1 -1
  38. package/dist/providers/resource.d.ts.map +1 -1
  39. package/dist/providers/transaction-request/create-transaction-request.d.ts +1 -1
  40. package/dist/providers/transaction-request/create-transaction-request.d.ts.map +1 -1
  41. package/dist/providers/transaction-request/errors.d.ts +3 -3
  42. package/dist/providers/transaction-request/errors.d.ts.map +1 -1
  43. package/dist/providers/transaction-request/helpers.d.ts +26 -4
  44. package/dist/providers/transaction-request/helpers.d.ts.map +1 -1
  45. package/dist/providers/transaction-request/input.d.ts +1 -1
  46. package/dist/providers/transaction-request/input.d.ts.map +1 -1
  47. package/dist/providers/transaction-request/output.d.ts +1 -1
  48. package/dist/providers/transaction-request/output.d.ts.map +1 -1
  49. package/dist/providers/transaction-request/script-transaction-request.d.ts +13 -3
  50. package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
  51. package/dist/providers/transaction-request/scripts.d.ts +1 -1
  52. package/dist/providers/transaction-request/scripts.d.ts.map +1 -1
  53. package/dist/providers/transaction-request/storage-slot.d.ts +1 -1
  54. package/dist/providers/transaction-request/storage-slot.d.ts.map +1 -1
  55. package/dist/providers/transaction-request/transaction-request.d.ts +5 -3
  56. package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
  57. package/dist/providers/transaction-request/types.d.ts +7 -0
  58. package/dist/providers/transaction-request/types.d.ts.map +1 -1
  59. package/dist/providers/transaction-request/upgrade-transaction-request.d.ts +1 -1
  60. package/dist/providers/transaction-request/upgrade-transaction-request.d.ts.map +1 -1
  61. package/dist/providers/transaction-request/upload-transaction-request.d.ts +1 -1
  62. package/dist/providers/transaction-request/upload-transaction-request.d.ts.map +1 -1
  63. package/dist/providers/transaction-request/witness.d.ts +1 -1
  64. package/dist/providers/transaction-request/witness.d.ts.map +1 -1
  65. package/dist/providers/transaction-response/transaction-response.d.ts +1 -1
  66. package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
  67. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -1
  68. package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts +0 -1
  69. package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts.map +1 -1
  70. package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
  71. package/dist/providers/transaction-summary/input.d.ts +1 -1
  72. package/dist/providers/transaction-summary/status.d.ts +9 -2
  73. package/dist/providers/transaction-summary/status.d.ts.map +1 -1
  74. package/dist/providers/transaction-summary/types.d.ts +1 -21
  75. package/dist/providers/transaction-summary/types.d.ts.map +1 -1
  76. package/dist/providers/utils/receipts.d.ts.map +1 -1
  77. package/dist/signer/signer.d.ts +1 -1
  78. package/dist/signer/signer.d.ts.map +1 -1
  79. package/dist/test-utils/launchNode.d.ts +2 -1
  80. package/dist/test-utils/launchNode.d.ts.map +1 -1
  81. package/dist/test-utils/setup-test-provider-and-wallets.d.ts.map +1 -1
  82. package/dist/test-utils/test-message.d.ts +6 -6
  83. package/dist/test-utils/test-message.d.ts.map +1 -1
  84. package/dist/test-utils.global.js +2908 -1240
  85. package/dist/test-utils.global.js.map +1 -1
  86. package/dist/test-utils.js +258 -219
  87. package/dist/test-utils.js.map +1 -1
  88. package/dist/test-utils.mjs +287 -248
  89. package/dist/test-utils.mjs.map +1 -1
  90. package/dist/types.d.ts +11 -0
  91. package/dist/types.d.ts.map +1 -0
  92. package/dist/utils/formatTransferToContractScriptData.d.ts +1 -1
  93. package/dist/utils/formatTransferToContractScriptData.d.ts.map +1 -1
  94. package/dist/wallet/base-wallet-unlocked.d.ts +2 -2
  95. package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -1
  96. package/dist/wallet/keystore-wallet.d.ts +2 -2
  97. package/dist/wallet/keystore-wallet.d.ts.map +1 -1
  98. package/dist/wallet/wallet.d.ts +3 -2
  99. package/dist/wallet/wallet.d.ts.map +1 -1
  100. package/dist/wallet/wallets.d.ts +1 -1
  101. package/dist/wallet/wallets.d.ts.map +1 -1
  102. package/dist/wallet-manager/types.d.ts +4 -4
  103. package/dist/wallet-manager/types.d.ts.map +1 -1
  104. package/dist/wallet-manager/vaults/mnemonic-vault.d.ts +5 -5
  105. package/dist/wallet-manager/vaults/mnemonic-vault.d.ts.map +1 -1
  106. package/dist/wallet-manager/vaults/privatekey-vault.d.ts +5 -5
  107. package/dist/wallet-manager/vaults/privatekey-vault.d.ts.map +1 -1
  108. package/dist/wallet-manager/wallet-manager.d.ts +3 -3
  109. package/dist/wallet-manager/wallet-manager.d.ts.map +1 -1
  110. package/package.json +28 -29
@@ -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,CAAC,CAAC;IAExB;;;;OAIG;gBACS,QAAQ,GAAE,KAAK,CAAC,MAAM,CAAW;IAM7C;;;;OAIG;IACH,iBAAiB,CAAC,MAAM,EAAE,cAAc;IAIxC;;;;OAIG;IACH,iBAAiB,CAAC,OAAO,EAAE,SAAS;IAIpC;;;;;OAKG;IACH,MAAM,CAAC,iBAAiB,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,GAAE,KAAK,CAAC,MAAM,CAAW,GAAG,MAAM;IAQ3F;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,GAAE,KAAK,CAAC,MAAM,CAAW,G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;;;OAIG;IACH,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,GAAE,KAAK,CAAC,MAAM,CAAW,GAAG,MAAM;IAWvF;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,cAAc,EAAE,UAAU,GAAE,SAAc;IASxE;;;;OAIG;IACH,MAAM,CAAC,oBAAoB,CAAC,MAAM,EAAE,cAAc,EAAE,UAAU,GAAE,SAAc;IAK9E;;;;OAIG;IACH,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM;IAqBrC,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAqB5C;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU;IAanD;;;;;;OAMG;IACH,MAAM,CAAC,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,OAAe,GAAG,MAAM;IAuBxE;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAE,MAAW,EAAE,YAAY,GAAE,SAAc;CAMhE;AAED,eAAe,QAAQ,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { BytesLike } from '@fuel-ts/interfaces';
1
+ import type { BytesLike } from '@fuel-ts/utils';
2
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,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAOrC,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EACtB,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,eAAe,CACzB,KAAK,SAAS,UAAU,EAAE,GAAG,UAAU,EAAE,EACzC,cAAc,SAAS;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GAAG,SAAS,GAAG;IAAE,CAAC,IAAI,EA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AO,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"}
@@ -3165,173 +3165,6 @@ export type GqlGetConsensusParametersVersionQuery = {
3165
3165
  };
3166
3166
  };
3167
3167
  };
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
3168
  export type GqlSubmitAndAwaitStatusSubscriptionVariables = Exact<{
3336
3169
  encodedTransaction: Scalars['HexString']['input'];
3337
3170
  }>;
@@ -3736,7 +3569,6 @@ export declare const ProduceBlocksDocument: DocumentNode;
3736
3569
  export declare const GetMessageByNonceDocument: DocumentNode;
3737
3570
  export declare const IsUserAccountDocument: DocumentNode;
3738
3571
  export declare const GetConsensusParametersVersionDocument: DocumentNode;
3739
- export declare const SubmitAndAwaitDocument: DocumentNode;
3740
3572
  export declare const SubmitAndAwaitStatusDocument: DocumentNode;
3741
3573
  export declare const StatusChangeDocument: DocumentNode;
3742
3574
  export type Requester<C = {}> = <R, V>(doc: DocumentNode, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
@@ -3774,7 +3606,6 @@ export declare function getSdk<C>(requester: Requester<C>): {
3774
3606
  getMessageByNonce(variables: GqlGetMessageByNonceQueryVariables, options?: C): Promise<GqlGetMessageByNonceQuery>;
3775
3607
  isUserAccount(variables: GqlIsUserAccountQueryVariables, options?: C): Promise<GqlIsUserAccountQuery>;
3776
3608
  getConsensusParametersVersion(variables?: GqlGetConsensusParametersVersionQueryVariables, options?: C): Promise<GqlGetConsensusParametersVersionQuery>;
3777
- submitAndAwait(variables: GqlSubmitAndAwaitSubscriptionVariables, options?: C): AsyncIterable<GqlSubmitAndAwaitSubscription>;
3778
3609
  submitAndAwaitStatus(variables: GqlSubmitAndAwaitStatusSubscriptionVariables, options?: C): AsyncIterable<GqlSubmitAndAwaitStatusSubscription>;
3779
3610
  statusChange(variables: GqlStatusChangeSubscriptionVariables, options?: C): AsyncIterable<GqlStatusChangeSubscription>;
3780
3611
  };