@sodax/types 2.0.0 → 2.1.0-rc.2

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.
@@ -2,12 +2,12 @@ export type ClientOptions = {
2
2
  baseUrl: 'https://raw.githubusercontent.com' | (string & {});
3
3
  };
4
4
  /**
5
- * Access key provides limited access to an account. Each access key belongs to some account and
6
- * is identified by a unique (within the account) public key. One account may have large number of
7
- * access keys. Access keys allow to act on behalf of the account by restricting transactions
8
- * that can be issued.
9
- * `account_id,public_key` is a key in the state
10
- */
5
+ * Access key provides limited access to an account. Each access key belongs to some account and
6
+ * is identified by a unique (within the account) public key. One account may have large number of
7
+ * access keys. Access keys allow to act on behalf of the account by restricting transactions
8
+ * that can be issued.
9
+ * `account_id,public_key` is a key in the state
10
+ */
11
11
  export type AccessKey = {
12
12
  /**
13
13
  * Nonce for this access key, used for tx nonce generation. When access key is created, nonce
@@ -21,8 +21,8 @@ export type AccessKey = {
21
21
  permission: AccessKeyPermission;
22
22
  };
23
23
  /**
24
- * Describes the cost of creating an access key.
25
- */
24
+ * Describes the cost of creating an access key.
25
+ */
26
26
  export type AccessKeyCreationConfigView = {
27
27
  /**
28
28
  * Base cost of creating a full access access-key.
@@ -38,27 +38,27 @@ export type AccessKeyCreationConfigView = {
38
38
  function_call_cost_per_byte: Fee;
39
39
  };
40
40
  /**
41
- * Describes information about an access key including the public key.
42
- */
41
+ * Describes information about an access key including the public key.
42
+ */
43
43
  export type AccessKeyInfoView = {
44
44
  access_key: AccessKeyView;
45
45
  public_key: PublicKey;
46
46
  };
47
47
  /**
48
- * Lists access keys
49
- */
48
+ * Lists access keys
49
+ */
50
50
  export type AccessKeyList = {
51
51
  keys: Array<AccessKeyInfoView>;
52
52
  };
53
53
  /**
54
- * Defines permissions for AccessKey
55
- */
54
+ * Defines permissions for AccessKey
55
+ */
56
56
  export type AccessKeyPermission = {
57
57
  FunctionCall: FunctionCallPermission;
58
58
  } | 'FullAccess';
59
59
  /**
60
- * Describes the permission scope for an access key. Whether it is a function call or a full access key.
61
- */
60
+ * Describes the permission scope for an access key. Whether it is a function call or a full access key.
61
+ */
62
62
  export type AccessKeyPermissionView = 'FullAccess' | {
63
63
  FunctionCall: {
64
64
  allowance?: NearToken | null;
@@ -67,15 +67,15 @@ export type AccessKeyPermissionView = 'FullAccess' | {
67
67
  };
68
68
  };
69
69
  /**
70
- * Describes access key permission scope and nonce.
71
- */
70
+ * Describes access key permission scope and nonce.
71
+ */
72
72
  export type AccessKeyView = {
73
73
  nonce: number;
74
74
  permission: AccessKeyPermissionView;
75
75
  };
76
76
  /**
77
- * The structure describes configuration for creation of new accounts.
78
- */
77
+ * The structure describes configuration for creation of new accounts.
78
+ */
79
79
  export type AccountCreationConfigView = {
80
80
  /**
81
81
  * The minimum length of the top-level account ID that is allowed to be created by any account.
@@ -88,18 +88,18 @@ export type AccountCreationConfigView = {
88
88
  registrar_account_id?: AccountId;
89
89
  };
90
90
  /**
91
- * AccountData is a piece of global state that a validator
92
- * signs and broadcasts to the network.
93
- *
94
- * It is essentially the data that a validator wants to share with the network.
95
- * All the nodes in the network are collecting the account data
96
- * broadcasted by the validators.
97
- * Since the number of the validators is bounded and their
98
- * identity is known (and the maximal size of allowed AccountData is bounded)
99
- * the global state that is distributed in the form of AccountData is bounded
100
- * as well.
101
- * Find more information in the docs [here](https://github.com/near/nearcore/blob/560f7fc8f4b3106e0d5d46050688610b1f104ac6/chain/client/src/client.rs#L2232)
102
- */
91
+ * AccountData is a piece of global state that a validator
92
+ * signs and broadcasts to the network.
93
+ *
94
+ * It is essentially the data that a validator wants to share with the network.
95
+ * All the nodes in the network are collecting the account data
96
+ * broadcasted by the validators.
97
+ * Since the number of the validators is bounded and their
98
+ * identity is known (and the maximal size of allowed AccountData is bounded)
99
+ * the global state that is distributed in the form of AccountData is bounded
100
+ * as well.
101
+ * Find more information in the docs [here](https://github.com/near/nearcore/blob/560f7fc8f4b3106e0d5d46050688610b1f104ac6/chain/client/src/client.rs#L2232)
102
+ */
103
103
  export type AccountDataView = {
104
104
  /**
105
105
  * Account key of the validator signing this AccountData.
@@ -122,39 +122,39 @@ export type AccountDataView = {
122
122
  timestamp: string;
123
123
  };
124
124
  /**
125
- * AccountId
126
- *
127
- * NEAR Account Identifier.
128
- *
129
- * This is a unique, syntactically valid, human-readable account identifier on the NEAR network.
130
- *
131
- * [See the Rust crate documentation for information about validation.](https://docs.rs/near-account-id/latest/near_account_id/)
132
- *
133
- * Also see the error kind documentation.
134
- *
135
- * ## Examples
136
- *
137
- * ```
138
- * use near_account_id::AccountId;
139
- *
140
- * let alice: AccountId = "alice.near".parse().unwrap();
141
- *
142
- * assert!("ƒelicia.near".parse::<AccountId>().is_err()); // (ƒ is not f)
143
- * ```
144
- */
125
+ * AccountId
126
+ *
127
+ * NEAR Account Identifier.
128
+ *
129
+ * This is a unique, syntactically valid, human-readable account identifier on the NEAR network.
130
+ *
131
+ * [See the Rust crate documentation for information about validation.](https://docs.rs/near-account-id/latest/near_account_id/)
132
+ *
133
+ * Also see the error kind documentation.
134
+ *
135
+ * ## Examples
136
+ *
137
+ * ```
138
+ * use near_account_id::AccountId;
139
+ *
140
+ * let alice: AccountId = "alice.near".parse().unwrap();
141
+ *
142
+ * assert!("ƒelicia.near".parse::<AccountId>().is_err()); // (ƒ is not f)
143
+ * ```
144
+ */
145
145
  export type AccountId = string;
146
146
  export type AccountIdValidityRulesVersion = number;
147
147
  /**
148
- * Account info for validators
149
- */
148
+ * Account info for validators
149
+ */
150
150
  export type AccountInfo = {
151
151
  account_id: AccountId;
152
152
  amount: NearToken;
153
153
  public_key: PublicKey;
154
154
  };
155
155
  /**
156
- * A view of the account
157
- */
156
+ * A view of the account
157
+ */
158
158
  export type AccountView = {
159
159
  amount: NearToken;
160
160
  code_hash: CryptoHash;
@@ -168,15 +168,15 @@ export type AccountView = {
168
168
  storage_usage: number;
169
169
  };
170
170
  /**
171
- * Account ID with its public key.
172
- */
171
+ * Account ID with its public key.
172
+ */
173
173
  export type AccountWithPublicKey = {
174
174
  account_id: AccountId;
175
175
  public_key: PublicKey;
176
176
  };
177
177
  /**
178
- * Describes the cost of creating a specific action, `Action`. Includes all variants.
179
- */
178
+ * Describes the cost of creating a specific action, `Action`. Includes all variants.
179
+ */
180
180
  export type ActionCreationConfigView = {
181
181
  /**
182
182
  * Base cost of adding a key.
@@ -226,8 +226,8 @@ export type ActionCreationConfigView = {
226
226
  transfer_cost?: Fee;
227
227
  };
228
228
  /**
229
- * An error happened during Action execution
230
- */
229
+ * An error happened during Action execution
230
+ */
231
231
  export type ActionError = {
232
232
  /**
233
233
  * Index of the failed action in the transaction.
@@ -428,8 +428,8 @@ export type ActionView = 'CreateAccount' | {
428
428
  };
429
429
  };
430
430
  /**
431
- * Describes the error for validating a list of actions.
432
- */
431
+ * Describes the error for validating a list of actions.
432
+ */
433
433
  export type ActionsValidationError = 'DeleteActionMustBeFinal' | {
434
434
  TotalPrepaidGasExceeded: {
435
435
  limit: NearGas;
@@ -509,8 +509,8 @@ export type AddGasKeyAction = {
509
509
  public_key: PublicKey;
510
510
  };
511
511
  /**
512
- * An action that adds key with public key associated
513
- */
512
+ * An action that adds key with public key associated
513
+ */
514
514
  export type AddKeyAction = {
515
515
  /**
516
516
  * An access key with the permission
@@ -522,10 +522,10 @@ export type AddKeyAction = {
522
522
  public_key: PublicKey;
523
523
  };
524
524
  /**
525
- * `BandwidthRequest` describes the size of receipts that a shard would like to send to another shard.
526
- * When a shard wants to send a lot of receipts to another shard, it needs to create a request and wait
527
- * for a bandwidth grant from the bandwidth scheduler.
528
- */
525
+ * `BandwidthRequest` describes the size of receipts that a shard would like to send to another shard.
526
+ * When a shard wants to send a lot of receipts to another shard, it needs to create a request and wait
527
+ * for a bandwidth grant from the bandwidth scheduler.
528
+ */
529
529
  export type BandwidthRequest = {
530
530
  /**
531
531
  * Bitmap which describes what values of bandwidth are requested.
@@ -537,28 +537,28 @@ export type BandwidthRequest = {
537
537
  to_shard: number;
538
538
  };
539
539
  /**
540
- * Bitmap which describes which values from the predefined list are being requested.
541
- * The nth bit is set to 1 when the nth value from the list is being requested.
542
- */
540
+ * Bitmap which describes which values from the predefined list are being requested.
541
+ * The nth bit is set to 1 when the nth value from the list is being requested.
542
+ */
543
543
  export type BandwidthRequestBitmap = {
544
544
  data: [number, number, number, number, number];
545
545
  };
546
546
  /**
547
- * A list of shard's bandwidth requests.
548
- * Describes how much the shard would like to send to other shards.
549
- */
547
+ * A list of shard's bandwidth requests.
548
+ * Describes how much the shard would like to send to other shards.
549
+ */
550
550
  export type BandwidthRequests = {
551
551
  V1: BandwidthRequestsV1;
552
552
  };
553
553
  /**
554
- * Version 1 of [`BandwidthRequest`].
555
- */
554
+ * Version 1 of [`BandwidthRequest`].
555
+ */
556
556
  export type BandwidthRequestsV1 = {
557
557
  requests: Array<BandwidthRequest>;
558
558
  };
559
559
  /**
560
- * A part of a state for the current head of a light client. More info [here](https://nomicon.io/ChainSpec/LightClient).
561
- */
560
+ * A part of a state for the current head of a light client. More info [here](https://nomicon.io/ChainSpec/LightClient).
561
+ */
562
562
  export type BlockHeaderInnerLiteView = {
563
563
  /**
564
564
  * The merkle root of all the block hashes
@@ -586,8 +586,8 @@ export type BlockHeaderInnerLiteView = {
586
586
  timestamp_nanosec: string;
587
587
  };
588
588
  /**
589
- * Contains main info about the block.
590
- */
589
+ * Contains main info about the block.
590
+ */
591
591
  export type BlockHeaderView = {
592
592
  approvals: Array<Signature | null>;
593
593
  block_body_hash?: CryptoHash | null;
@@ -648,22 +648,22 @@ export type BlockReference = {
648
648
  sync_checkpoint: SyncCheckpoint;
649
649
  };
650
650
  /**
651
- * Height and hash of a block
652
- */
651
+ * Height and hash of a block
652
+ */
653
653
  export type BlockStatusView = {
654
654
  hash: CryptoHash;
655
655
  height: number;
656
656
  };
657
657
  /**
658
- * A result returned by contract method
659
- */
658
+ * A result returned by contract method
659
+ */
660
660
  export type CallResult = {
661
661
  logs: Array<string>;
662
662
  result: Array<number>;
663
663
  };
664
664
  /**
665
- * Status of the [catchup](https://near.github.io/nearcore/architecture/how/sync.html#catchup) process
666
- */
665
+ * Status of the [catchup](https://near.github.io/nearcore/architecture/how/sync.html#catchup) process
666
+ */
667
667
  export type CatchupStatusView = {
668
668
  blocks_to_catchup: Array<BlockStatusView>;
669
669
  shard_sync_status: {
@@ -673,18 +673,18 @@ export type CatchupStatusView = {
673
673
  sync_block_height: number;
674
674
  };
675
675
  /**
676
- * Config for the Chunk Distribution Network feature.
677
- * This allows nodes to push and pull chunks from a central stream.
678
- * The two benefits of this approach are: (1) less request/response traffic
679
- * on the peer-to-peer network and (2) lower latency for RPC nodes indexing the chain.
680
- */
676
+ * Config for the Chunk Distribution Network feature.
677
+ * This allows nodes to push and pull chunks from a central stream.
678
+ * The two benefits of this approach are: (1) less request/response traffic
679
+ * on the peer-to-peer network and (2) lower latency for RPC nodes indexing the chain.
680
+ */
681
681
  export type ChunkDistributionNetworkConfig = {
682
682
  enabled?: boolean;
683
683
  uris?: ChunkDistributionUris;
684
684
  };
685
685
  /**
686
- * URIs for the Chunk Distribution Network feature.
687
- */
686
+ * URIs for the Chunk Distribution Network feature.
687
+ */
688
688
  export type ChunkDistributionUris = {
689
689
  /**
690
690
  * URI for pulling chunks from the stream.
@@ -697,8 +697,8 @@ export type ChunkDistributionUris = {
697
697
  };
698
698
  export type ChunkHash = CryptoHash;
699
699
  /**
700
- * Contains main info about the chunk.
701
- */
700
+ * Contains main info about the chunk.
701
+ */
702
702
  export type ChunkHeaderView = {
703
703
  balance_burnt: NearToken;
704
704
  bandwidth_requests?: BandwidthRequests | null;
@@ -728,10 +728,10 @@ export type ChunkHeaderView = {
728
728
  validator_reward?: NearToken;
729
729
  };
730
730
  /**
731
- * Configuration for a cloud-based archival writer. If this config is present, the writer is enabled and
732
- * writes chunk-related data based on the tracked shards. This config also controls additional archival
733
- * behavior such as block data and polling interval.
734
- */
731
+ * Configuration for a cloud-based archival writer. If this config is present, the writer is enabled and
732
+ * writes chunk-related data based on the tracked shards. This config also controls additional archival
733
+ * behavior such as block data and polling interval.
734
+ */
735
735
  export type CloudArchivalWriterConfig = {
736
736
  /**
737
737
  * Determines whether block-related data should be written to cloud storage.
@@ -754,8 +754,8 @@ export type CompilationError = {
754
754
  };
755
755
  };
756
756
  /**
757
- * The configuration for congestion control. More info about congestion [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)
758
- */
757
+ * The configuration for congestion control. More info about congestion [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)
758
+ */
759
759
  export type CongestionControlConfigView = {
760
760
  /**
761
761
  * How much gas the chosen allowed shard can send to a 100% congested shard.
@@ -833,8 +833,8 @@ export type CongestionControlConfigView = {
833
833
  reject_tx_congestion_threshold?: number;
834
834
  };
835
835
  /**
836
- * Stores the congestion level of a shard. More info about congestion [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)
837
- */
836
+ * Stores the congestion level of a shard. More info about congestion [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)
837
+ */
838
838
  export type CongestionInfoView = {
839
839
  allowed_shard: number;
840
840
  buffered_receipts_gas: string;
@@ -842,15 +842,15 @@ export type CongestionInfoView = {
842
842
  receipt_bytes: number;
843
843
  };
844
844
  /**
845
- * A view of the contract code.
846
- */
845
+ * A view of the contract code.
846
+ */
847
847
  export type ContractCodeView = {
848
848
  code_base64: string;
849
849
  hash: CryptoHash;
850
850
  };
851
851
  /**
852
- * Shows gas profile. More info [here](https://near.github.io/nearcore/architecture/gas/gas_profile.html?highlight=WASM_HOST_COST#example-transaction-gas-profile).
853
- */
852
+ * Shows gas profile. More info [here](https://near.github.io/nearcore/architecture/gas/gas_profile.html?highlight=WASM_HOST_COST#example-transaction-gas-profile).
853
+ */
854
854
  export type CostGasUsed = {
855
855
  cost: string;
856
856
  /**
@@ -860,15 +860,15 @@ export type CostGasUsed = {
860
860
  gas_used: string;
861
861
  };
862
862
  /**
863
- * Create account action
864
- */
863
+ * Create account action
864
+ */
865
865
  export type CreateAccountAction = {
866
866
  [key: string]: unknown;
867
867
  };
868
868
  export type CryptoHash = string;
869
869
  /**
870
- * Describes information about the current epoch validator
871
- */
870
+ * Describes information about the current epoch validator
871
+ */
872
872
  export type CurrentEpochValidatorInfo = {
873
873
  account_id: AccountId;
874
874
  is_slashed: boolean;
@@ -902,8 +902,8 @@ export type CurrentEpochValidatorInfo = {
902
902
  stake: NearToken;
903
903
  };
904
904
  /**
905
- * The fees settings for a data receipt creation
906
- */
905
+ * The fees settings for a data receipt creation
906
+ */
907
907
  export type DataReceiptCreationConfigView = {
908
908
  /**
909
909
  * Base cost of creating a data receipt.
@@ -928,8 +928,8 @@ export type DataReceiverView = {
928
928
  receiver_id: AccountId;
929
929
  };
930
930
  /**
931
- * This action allows to execute the inner actions behalf of the defined sender.
932
- */
931
+ * This action allows to execute the inner actions behalf of the defined sender.
932
+ */
933
933
  export type DelegateAction = {
934
934
  /**
935
935
  * List of actions to be executed.
@@ -974,8 +974,8 @@ export type DeleteKeyAction = {
974
974
  public_key: PublicKey;
975
975
  };
976
976
  /**
977
- * Deploy contract action
978
- */
977
+ * Deploy contract action
978
+ */
979
979
  export type DeployContractAction = {
980
980
  /**
981
981
  * WebAssembly binary
@@ -983,8 +983,8 @@ export type DeployContractAction = {
983
983
  code: string;
984
984
  };
985
985
  /**
986
- * Deploy global contract action
987
- */
986
+ * Deploy global contract action
987
+ */
988
988
  export type DeployGlobalContractAction = {
989
989
  /**
990
990
  * WebAssembly binary
@@ -1014,13 +1014,13 @@ export type DeterministicStateInitAction = {
1014
1014
  state_init: DeterministicAccountStateInit;
1015
1015
  };
1016
1016
  export declare const Direction: {
1017
- readonly LEFT: "Left";
1018
- readonly RIGHT: "Right";
1017
+ readonly LEFT: 'Left';
1018
+ readonly RIGHT: 'Right';
1019
1019
  };
1020
1020
  export type Direction = (typeof Direction)[keyof typeof Direction];
1021
1021
  /**
1022
- * Configures how to dump state to external storage.
1023
- */
1022
+ * Configures how to dump state to external storage.
1023
+ */
1024
1024
  export type DumpConfig = {
1025
1025
  /**
1026
1026
  * Location of a json file with credentials allowing access to the bucket.
@@ -1046,8 +1046,8 @@ export type DurationAsStdSchemaProvider = {
1046
1046
  secs: number;
1047
1047
  };
1048
1048
  /**
1049
- * Configuration for dynamic resharding feature
1050
- */
1049
+ * Configuration for dynamic resharding feature
1050
+ */
1051
1051
  export type DynamicReshardingConfigView = {
1052
1052
  /**
1053
1053
  * Maximum number of shards in the network.
@@ -1075,10 +1075,10 @@ export type DynamicReshardingConfigView = {
1075
1075
  min_epochs_between_resharding: number;
1076
1076
  };
1077
1077
  /**
1078
- * Epoch identifier -- wrapped hash, to make it easier to distinguish.
1079
- * EpochId of epoch T is the hash of last block in T-2
1080
- * EpochId of first two epochs is 0
1081
- */
1078
+ * Epoch identifier -- wrapped hash, to make it easier to distinguish.
1079
+ * EpochId of epoch T is the hash of last block in T-2
1080
+ * EpochId of first two epochs is 0
1081
+ */
1082
1082
  export type EpochId = CryptoHash;
1083
1083
  export type EpochSyncConfig = {
1084
1084
  /**
@@ -1412,9 +1412,9 @@ export type ExecutionStatusView = 'Unknown' | {
1412
1412
  SuccessReceiptId: CryptoHash;
1413
1413
  };
1414
1414
  /**
1415
- * Typed view of ExtCostsConfig to preserve JSON output field names in protocol
1416
- * config RPC output.
1417
- */
1415
+ * Typed view of ExtCostsConfig to preserve JSON output field names in protocol
1416
+ * config RPC output.
1417
+ */
1418
1418
  export type ExtCostsConfigView = {
1419
1419
  /**
1420
1420
  * Base cost for multiexp
@@ -1727,8 +1727,8 @@ export type ExternalStorageConfig = {
1727
1727
  num_concurrent_requests_during_catchup?: number;
1728
1728
  };
1729
1729
  /**
1730
- * Supported external storage backends and their minimal config.
1731
- */
1730
+ * Supported external storage backends and their minimal config.
1731
+ */
1732
1732
  export type ExternalStorageLocation = {
1733
1733
  S3: {
1734
1734
  /**
@@ -1750,11 +1750,11 @@ export type ExternalStorageLocation = {
1750
1750
  };
1751
1751
  };
1752
1752
  /**
1753
- * Costs associated with an object that can only be sent over the network (and executed
1754
- * by the receiver).
1755
- * NOTE: `send_sir` or `send_not_sir` fees are usually burned when the item is being created.
1756
- * And `execution` fee is burned when the item is being executed.
1757
- */
1753
+ * Costs associated with an object that can only be sent over the network (and executed
1754
+ * by the receiver).
1755
+ * NOTE: `send_sir` or `send_not_sir` fees are usually burned when the item is being created.
1756
+ * And `execution` fee is burned when the item is being executed.
1757
+ */
1758
1758
  export type Fee = {
1759
1759
  /**
1760
1760
  * Fee for executing the object.
@@ -1771,9 +1771,9 @@ export type Fee = {
1771
1771
  send_sir: NearGas;
1772
1772
  };
1773
1773
  /**
1774
- * Execution outcome of the transaction and all the subsequent receipts.
1775
- * Could be not finalized yet
1776
- */
1774
+ * Execution outcome of the transaction and all the subsequent receipts.
1775
+ * Could be not finalized yet
1776
+ */
1777
1777
  export type FinalExecutionOutcomeView = {
1778
1778
  /**
1779
1779
  * The execution outcome of receipts.
@@ -1797,9 +1797,9 @@ export type FinalExecutionOutcomeView = {
1797
1797
  transaction_outcome: ExecutionOutcomeWithIdView;
1798
1798
  };
1799
1799
  /**
1800
- * Final execution outcome of the transaction and all of subsequent the receipts. Also includes
1801
- * the generated receipt.
1802
- */
1800
+ * Final execution outcome of the transaction and all of subsequent the receipts. Also includes
1801
+ * the generated receipt.
1802
+ */
1803
1803
  export type FinalExecutionOutcomeWithReceiptView = {
1804
1804
  /**
1805
1805
  * Receipts generated from the transaction
@@ -1832,24 +1832,24 @@ export type FinalExecutionStatus = 'NotStarted' | 'Started' | {
1832
1832
  SuccessValue: string;
1833
1833
  };
1834
1834
  /**
1835
- * Different types of finality.
1836
- */
1835
+ * Different types of finality.
1836
+ */
1837
1837
  export declare const Finality: {
1838
- readonly OPTIMISTIC: "optimistic";
1839
- readonly NEAR_FINAL: "near-final";
1840
- readonly FINAL: "final";
1838
+ readonly OPTIMISTIC: 'optimistic';
1839
+ readonly NEAR_FINAL: 'near-final';
1840
+ readonly FINAL: 'final';
1841
1841
  };
1842
1842
  /**
1843
- * Different types of finality.
1844
- */
1843
+ * Different types of finality.
1844
+ */
1845
1845
  export type Finality = (typeof Finality)[keyof typeof Finality];
1846
1846
  /**
1847
- * This type is used to mark function arguments.
1848
- *
1849
- * NOTE: The main reason for this to exist (except the type-safety) is that the value is
1850
- * transparently serialized and deserialized as a base64-encoded string when serde is used
1851
- * (serde_json).
1852
- */
1847
+ * This type is used to mark function arguments.
1848
+ *
1849
+ * NOTE: The main reason for this to exist (except the type-safety) is that the value is
1850
+ * transparently serialized and deserialized as a base64-encoded string when serde is used
1851
+ * (serde_json).
1852
+ */
1853
1853
  export type FunctionArgs = string;
1854
1854
  export type FunctionCallAction = {
1855
1855
  args: string;
@@ -1858,11 +1858,11 @@ export type FunctionCallAction = {
1858
1858
  method_name: string;
1859
1859
  };
1860
1860
  /**
1861
- * Serializable version of `near-vm-runner::FunctionCallError`.
1862
- *
1863
- * Must never reorder/remove elements, can only add new variants at the end (but do that very
1864
- * carefully). It describes stable serialization format, and only used by serialization logic.
1865
- */
1861
+ * Serializable version of `near-vm-runner::FunctionCallError`.
1862
+ *
1863
+ * Must never reorder/remove elements, can only add new variants at the end (but do that very
1864
+ * carefully). It describes stable serialization format, and only used by serialization logic.
1865
+ */
1866
1866
  export type FunctionCallError = 'WasmUnknownError' | '_EVMError' | {
1867
1867
  CompilationError: CompilationError;
1868
1868
  } | {
@@ -1879,11 +1879,11 @@ export type FunctionCallError = 'WasmUnknownError' | '_EVMError' | {
1879
1879
  ExecutionError: string;
1880
1880
  };
1881
1881
  /**
1882
- * Grants limited permission to make transactions with FunctionCallActions
1883
- * The permission can limit the allowed balance to be spent on the prepaid gas.
1884
- * It also restrict the account ID of the receiver for this function call.
1885
- * It also can restrict the method name for the allowed function calls.
1886
- */
1882
+ * Grants limited permission to make transactions with FunctionCallActions
1883
+ * The permission can limit the allowed balance to be spent on the prepaid gas.
1884
+ * It also restrict the account ID of the receiver for this function call.
1885
+ * It also can restrict the method name for the allowed function calls.
1886
+ */
1887
1887
  export type FunctionCallPermission = {
1888
1888
  /**
1889
1889
  * Allowance is a balance limit to use by this access key to pay for function call gas and
@@ -1906,8 +1906,8 @@ export type FunctionCallPermission = {
1906
1906
  receiver_id: string;
1907
1907
  };
1908
1908
  /**
1909
- * Configuration for garbage collection.
1910
- */
1909
+ * Configuration for garbage collection.
1910
+ */
1911
1911
  export type GcConfig = {
1912
1912
  /**
1913
1913
  * Maximum number of blocks to garbage collect at every garbage collection
@@ -1929,9 +1929,9 @@ export type GcConfig = {
1929
1929
  gc_step_period?: DurationAsStdSchemaProvider;
1930
1930
  };
1931
1931
  /**
1932
- * Gas key is like an access key, except it stores a balance separately, and transactions signed
1933
- * with it deduct their cost from the gas key balance instead of the account balance.
1934
- */
1932
+ * Gas key is like an access key, except it stores a balance separately, and transactions signed
1933
+ * with it deduct their cost from the gas key balance instead of the account balance.
1934
+ */
1935
1935
  export type GasKey = {
1936
1936
  /**
1937
1937
  * The balance of the gas key.
@@ -2129,14 +2129,14 @@ export declare const GenesisConfigError: {
2129
2129
  };
2130
2130
  export type GenesisConfigError = (typeof GenesisConfigError)[keyof typeof GenesisConfigError];
2131
2131
  /**
2132
- * GenesisConfigRequest
2133
- */
2132
+ * GenesisConfigRequest
2133
+ */
2134
2134
  export declare const GenesisConfigRequest: {
2135
2135
  readonly NULL: null;
2136
2136
  };
2137
2137
  /**
2138
- * GenesisConfigRequest
2139
- */
2138
+ * GenesisConfigRequest
2139
+ */
2140
2140
  export type GenesisConfigRequest = (typeof GenesisConfigRequest)[keyof typeof GenesisConfigRequest];
2141
2141
  export type GlobalContractDeployMode = 'CodeHash' | 'AccountId';
2142
2142
  export type GlobalContractIdentifier = {
@@ -2266,8 +2266,8 @@ export type InvalidAccessKeyError = {
2266
2266
  };
2267
2267
  } | 'DepositWithFunctionCall';
2268
2268
  /**
2269
- * An error happened during TX execution
2270
- */
2269
+ * An error happened during TX execution
2270
+ */
2271
2271
  export type InvalidTxError = {
2272
2272
  InvalidAccessKeyError: InvalidAccessKeyError;
2273
2273
  } | {
@@ -2342,8 +2342,8 @@ export type InvalidTxError = {
2342
2342
  };
2343
2343
  };
2344
2344
  /**
2345
- * JsonRpcRequest_for_EXPERIMENTAL_call_function
2346
- */
2345
+ * JsonRpcRequest_for_EXPERIMENTAL_call_function
2346
+ */
2347
2347
  export type JsonRpcRequestForExperimentalCallFunction = {
2348
2348
  id: string;
2349
2349
  jsonrpc: string;
@@ -2351,8 +2351,8 @@ export type JsonRpcRequestForExperimentalCallFunction = {
2351
2351
  params: RpcCallFunctionRequest;
2352
2352
  };
2353
2353
  /**
2354
- * JsonRpcRequest_for_EXPERIMENTAL_changes
2355
- */
2354
+ * JsonRpcRequest_for_EXPERIMENTAL_changes
2355
+ */
2356
2356
  export type JsonRpcRequestForExperimentalChanges = {
2357
2357
  id: string;
2358
2358
  jsonrpc: string;
@@ -2360,8 +2360,8 @@ export type JsonRpcRequestForExperimentalChanges = {
2360
2360
  params: RpcStateChangesInBlockByTypeRequest;
2361
2361
  };
2362
2362
  /**
2363
- * JsonRpcRequest_for_EXPERIMENTAL_changes_in_block
2364
- */
2363
+ * JsonRpcRequest_for_EXPERIMENTAL_changes_in_block
2364
+ */
2365
2365
  export type JsonRpcRequestForExperimentalChangesInBlock = {
2366
2366
  id: string;
2367
2367
  jsonrpc: string;
@@ -2369,8 +2369,8 @@ export type JsonRpcRequestForExperimentalChangesInBlock = {
2369
2369
  params: RpcStateChangesInBlockRequest;
2370
2370
  };
2371
2371
  /**
2372
- * JsonRpcRequest_for_EXPERIMENTAL_congestion_level
2373
- */
2372
+ * JsonRpcRequest_for_EXPERIMENTAL_congestion_level
2373
+ */
2374
2374
  export type JsonRpcRequestForExperimentalCongestionLevel = {
2375
2375
  id: string;
2376
2376
  jsonrpc: string;
@@ -2378,8 +2378,8 @@ export type JsonRpcRequestForExperimentalCongestionLevel = {
2378
2378
  params: RpcCongestionLevelRequest;
2379
2379
  };
2380
2380
  /**
2381
- * JsonRpcRequest_for_EXPERIMENTAL_genesis_config
2382
- */
2381
+ * JsonRpcRequest_for_EXPERIMENTAL_genesis_config
2382
+ */
2383
2383
  export type JsonRpcRequestForExperimentalGenesisConfig = {
2384
2384
  id: string;
2385
2385
  jsonrpc: string;
@@ -2387,8 +2387,8 @@ export type JsonRpcRequestForExperimentalGenesisConfig = {
2387
2387
  params: GenesisConfigRequest;
2388
2388
  };
2389
2389
  /**
2390
- * JsonRpcRequest_for_EXPERIMENTAL_light_client_block_proof
2391
- */
2390
+ * JsonRpcRequest_for_EXPERIMENTAL_light_client_block_proof
2391
+ */
2392
2392
  export type JsonRpcRequestForExperimentalLightClientBlockProof = {
2393
2393
  id: string;
2394
2394
  jsonrpc: string;
@@ -2396,8 +2396,8 @@ export type JsonRpcRequestForExperimentalLightClientBlockProof = {
2396
2396
  params: RpcLightClientBlockProofRequest;
2397
2397
  };
2398
2398
  /**
2399
- * JsonRpcRequest_for_EXPERIMENTAL_light_client_proof
2400
- */
2399
+ * JsonRpcRequest_for_EXPERIMENTAL_light_client_proof
2400
+ */
2401
2401
  export type JsonRpcRequestForExperimentalLightClientProof = {
2402
2402
  id: string;
2403
2403
  jsonrpc: string;
@@ -2405,8 +2405,8 @@ export type JsonRpcRequestForExperimentalLightClientProof = {
2405
2405
  params: RpcLightClientExecutionProofRequest;
2406
2406
  };
2407
2407
  /**
2408
- * JsonRpcRequest_for_EXPERIMENTAL_maintenance_windows
2409
- */
2408
+ * JsonRpcRequest_for_EXPERIMENTAL_maintenance_windows
2409
+ */
2410
2410
  export type JsonRpcRequestForExperimentalMaintenanceWindows = {
2411
2411
  id: string;
2412
2412
  jsonrpc: string;
@@ -2414,8 +2414,8 @@ export type JsonRpcRequestForExperimentalMaintenanceWindows = {
2414
2414
  params: RpcMaintenanceWindowsRequest;
2415
2415
  };
2416
2416
  /**
2417
- * JsonRpcRequest_for_EXPERIMENTAL_protocol_config
2418
- */
2417
+ * JsonRpcRequest_for_EXPERIMENTAL_protocol_config
2418
+ */
2419
2419
  export type JsonRpcRequestForExperimentalProtocolConfig = {
2420
2420
  id: string;
2421
2421
  jsonrpc: string;
@@ -2423,8 +2423,8 @@ export type JsonRpcRequestForExperimentalProtocolConfig = {
2423
2423
  params: RpcProtocolConfigRequest;
2424
2424
  };
2425
2425
  /**
2426
- * JsonRpcRequest_for_EXPERIMENTAL_receipt
2427
- */
2426
+ * JsonRpcRequest_for_EXPERIMENTAL_receipt
2427
+ */
2428
2428
  export type JsonRpcRequestForExperimentalReceipt = {
2429
2429
  id: string;
2430
2430
  jsonrpc: string;
@@ -2432,8 +2432,8 @@ export type JsonRpcRequestForExperimentalReceipt = {
2432
2432
  params: RpcReceiptRequest;
2433
2433
  };
2434
2434
  /**
2435
- * JsonRpcRequest_for_EXPERIMENTAL_split_storage_info
2436
- */
2435
+ * JsonRpcRequest_for_EXPERIMENTAL_split_storage_info
2436
+ */
2437
2437
  export type JsonRpcRequestForExperimentalSplitStorageInfo = {
2438
2438
  id: string;
2439
2439
  jsonrpc: string;
@@ -2441,8 +2441,8 @@ export type JsonRpcRequestForExperimentalSplitStorageInfo = {
2441
2441
  params: RpcSplitStorageInfoRequest;
2442
2442
  };
2443
2443
  /**
2444
- * JsonRpcRequest_for_EXPERIMENTAL_tx_status
2445
- */
2444
+ * JsonRpcRequest_for_EXPERIMENTAL_tx_status
2445
+ */
2446
2446
  export type JsonRpcRequestForExperimentalTxStatus = {
2447
2447
  id: string;
2448
2448
  jsonrpc: string;
@@ -2450,8 +2450,8 @@ export type JsonRpcRequestForExperimentalTxStatus = {
2450
2450
  params: RpcTransactionStatusRequest;
2451
2451
  };
2452
2452
  /**
2453
- * JsonRpcRequest_for_EXPERIMENTAL_validators_ordered
2454
- */
2453
+ * JsonRpcRequest_for_EXPERIMENTAL_validators_ordered
2454
+ */
2455
2455
  export type JsonRpcRequestForExperimentalValidatorsOrdered = {
2456
2456
  id: string;
2457
2457
  jsonrpc: string;
@@ -2459,8 +2459,8 @@ export type JsonRpcRequestForExperimentalValidatorsOrdered = {
2459
2459
  params: RpcValidatorsOrderedRequest;
2460
2460
  };
2461
2461
  /**
2462
- * JsonRpcRequest_for_EXPERIMENTAL_view_access_key
2463
- */
2462
+ * JsonRpcRequest_for_EXPERIMENTAL_view_access_key
2463
+ */
2464
2464
  export type JsonRpcRequestForExperimentalViewAccessKey = {
2465
2465
  id: string;
2466
2466
  jsonrpc: string;
@@ -2468,8 +2468,8 @@ export type JsonRpcRequestForExperimentalViewAccessKey = {
2468
2468
  params: RpcViewAccessKeyRequest;
2469
2469
  };
2470
2470
  /**
2471
- * JsonRpcRequest_for_EXPERIMENTAL_view_access_key_list
2472
- */
2471
+ * JsonRpcRequest_for_EXPERIMENTAL_view_access_key_list
2472
+ */
2473
2473
  export type JsonRpcRequestForExperimentalViewAccessKeyList = {
2474
2474
  id: string;
2475
2475
  jsonrpc: string;
@@ -2477,8 +2477,8 @@ export type JsonRpcRequestForExperimentalViewAccessKeyList = {
2477
2477
  params: RpcViewAccessKeyListRequest;
2478
2478
  };
2479
2479
  /**
2480
- * JsonRpcRequest_for_EXPERIMENTAL_view_account
2481
- */
2480
+ * JsonRpcRequest_for_EXPERIMENTAL_view_account
2481
+ */
2482
2482
  export type JsonRpcRequestForExperimentalViewAccount = {
2483
2483
  id: string;
2484
2484
  jsonrpc: string;
@@ -2486,8 +2486,8 @@ export type JsonRpcRequestForExperimentalViewAccount = {
2486
2486
  params: RpcViewAccountRequest;
2487
2487
  };
2488
2488
  /**
2489
- * JsonRpcRequest_for_EXPERIMENTAL_view_code
2490
- */
2489
+ * JsonRpcRequest_for_EXPERIMENTAL_view_code
2490
+ */
2491
2491
  export type JsonRpcRequestForExperimentalViewCode = {
2492
2492
  id: string;
2493
2493
  jsonrpc: string;
@@ -2495,8 +2495,8 @@ export type JsonRpcRequestForExperimentalViewCode = {
2495
2495
  params: RpcViewCodeRequest;
2496
2496
  };
2497
2497
  /**
2498
- * JsonRpcRequest_for_EXPERIMENTAL_view_gas_key
2499
- */
2498
+ * JsonRpcRequest_for_EXPERIMENTAL_view_gas_key
2499
+ */
2500
2500
  export type JsonRpcRequestForExperimentalViewGasKey = {
2501
2501
  id: string;
2502
2502
  jsonrpc: string;
@@ -2504,8 +2504,8 @@ export type JsonRpcRequestForExperimentalViewGasKey = {
2504
2504
  params: RpcViewGasKeyRequest;
2505
2505
  };
2506
2506
  /**
2507
- * JsonRpcRequest_for_EXPERIMENTAL_view_gas_key_list
2508
- */
2507
+ * JsonRpcRequest_for_EXPERIMENTAL_view_gas_key_list
2508
+ */
2509
2509
  export type JsonRpcRequestForExperimentalViewGasKeyList = {
2510
2510
  id: string;
2511
2511
  jsonrpc: string;
@@ -2513,8 +2513,8 @@ export type JsonRpcRequestForExperimentalViewGasKeyList = {
2513
2513
  params: RpcViewGasKeyListRequest;
2514
2514
  };
2515
2515
  /**
2516
- * JsonRpcRequest_for_EXPERIMENTAL_view_state
2517
- */
2516
+ * JsonRpcRequest_for_EXPERIMENTAL_view_state
2517
+ */
2518
2518
  export type JsonRpcRequestForExperimentalViewState = {
2519
2519
  id: string;
2520
2520
  jsonrpc: string;
@@ -2522,8 +2522,8 @@ export type JsonRpcRequestForExperimentalViewState = {
2522
2522
  params: RpcViewStateRequest;
2523
2523
  };
2524
2524
  /**
2525
- * JsonRpcRequest_for_block
2526
- */
2525
+ * JsonRpcRequest_for_block
2526
+ */
2527
2527
  export type JsonRpcRequestForBlock = {
2528
2528
  id: string;
2529
2529
  jsonrpc: string;
@@ -2531,8 +2531,8 @@ export type JsonRpcRequestForBlock = {
2531
2531
  params: RpcBlockRequest;
2532
2532
  };
2533
2533
  /**
2534
- * JsonRpcRequest_for_block_effects
2535
- */
2534
+ * JsonRpcRequest_for_block_effects
2535
+ */
2536
2536
  export type JsonRpcRequestForBlockEffects = {
2537
2537
  id: string;
2538
2538
  jsonrpc: string;
@@ -2540,8 +2540,8 @@ export type JsonRpcRequestForBlockEffects = {
2540
2540
  params: RpcStateChangesInBlockRequest;
2541
2541
  };
2542
2542
  /**
2543
- * JsonRpcRequest_for_broadcast_tx_async
2544
- */
2543
+ * JsonRpcRequest_for_broadcast_tx_async
2544
+ */
2545
2545
  export type JsonRpcRequestForBroadcastTxAsync = {
2546
2546
  id: string;
2547
2547
  jsonrpc: string;
@@ -2549,8 +2549,8 @@ export type JsonRpcRequestForBroadcastTxAsync = {
2549
2549
  params: RpcSendTransactionRequest;
2550
2550
  };
2551
2551
  /**
2552
- * JsonRpcRequest_for_broadcast_tx_commit
2553
- */
2552
+ * JsonRpcRequest_for_broadcast_tx_commit
2553
+ */
2554
2554
  export type JsonRpcRequestForBroadcastTxCommit = {
2555
2555
  id: string;
2556
2556
  jsonrpc: string;
@@ -2558,8 +2558,8 @@ export type JsonRpcRequestForBroadcastTxCommit = {
2558
2558
  params: RpcSendTransactionRequest;
2559
2559
  };
2560
2560
  /**
2561
- * JsonRpcRequest_for_changes
2562
- */
2561
+ * JsonRpcRequest_for_changes
2562
+ */
2563
2563
  export type JsonRpcRequestForChanges = {
2564
2564
  id: string;
2565
2565
  jsonrpc: string;
@@ -2567,8 +2567,8 @@ export type JsonRpcRequestForChanges = {
2567
2567
  params: RpcStateChangesInBlockByTypeRequest;
2568
2568
  };
2569
2569
  /**
2570
- * JsonRpcRequest_for_chunk
2571
- */
2570
+ * JsonRpcRequest_for_chunk
2571
+ */
2572
2572
  export type JsonRpcRequestForChunk = {
2573
2573
  id: string;
2574
2574
  jsonrpc: string;
@@ -2576,8 +2576,8 @@ export type JsonRpcRequestForChunk = {
2576
2576
  params: RpcChunkRequest;
2577
2577
  };
2578
2578
  /**
2579
- * JsonRpcRequest_for_client_config
2580
- */
2579
+ * JsonRpcRequest_for_client_config
2580
+ */
2581
2581
  export type JsonRpcRequestForClientConfig = {
2582
2582
  id: string;
2583
2583
  jsonrpc: string;
@@ -2585,8 +2585,8 @@ export type JsonRpcRequestForClientConfig = {
2585
2585
  params: RpcClientConfigRequest;
2586
2586
  };
2587
2587
  /**
2588
- * JsonRpcRequest_for_gas_price
2589
- */
2588
+ * JsonRpcRequest_for_gas_price
2589
+ */
2590
2590
  export type JsonRpcRequestForGasPrice = {
2591
2591
  id: string;
2592
2592
  jsonrpc: string;
@@ -2594,8 +2594,8 @@ export type JsonRpcRequestForGasPrice = {
2594
2594
  params: RpcGasPriceRequest;
2595
2595
  };
2596
2596
  /**
2597
- * JsonRpcRequest_for_genesis_config
2598
- */
2597
+ * JsonRpcRequest_for_genesis_config
2598
+ */
2599
2599
  export type JsonRpcRequestForGenesisConfig = {
2600
2600
  id: string;
2601
2601
  jsonrpc: string;
@@ -2603,8 +2603,8 @@ export type JsonRpcRequestForGenesisConfig = {
2603
2603
  params: GenesisConfigRequest;
2604
2604
  };
2605
2605
  /**
2606
- * JsonRpcRequest_for_health
2607
- */
2606
+ * JsonRpcRequest_for_health
2607
+ */
2608
2608
  export type JsonRpcRequestForHealth = {
2609
2609
  id: string;
2610
2610
  jsonrpc: string;
@@ -2612,8 +2612,8 @@ export type JsonRpcRequestForHealth = {
2612
2612
  params: RpcHealthRequest;
2613
2613
  };
2614
2614
  /**
2615
- * JsonRpcRequest_for_light_client_proof
2616
- */
2615
+ * JsonRpcRequest_for_light_client_proof
2616
+ */
2617
2617
  export type JsonRpcRequestForLightClientProof = {
2618
2618
  id: string;
2619
2619
  jsonrpc: string;
@@ -2621,8 +2621,8 @@ export type JsonRpcRequestForLightClientProof = {
2621
2621
  params: RpcLightClientExecutionProofRequest;
2622
2622
  };
2623
2623
  /**
2624
- * JsonRpcRequest_for_maintenance_windows
2625
- */
2624
+ * JsonRpcRequest_for_maintenance_windows
2625
+ */
2626
2626
  export type JsonRpcRequestForMaintenanceWindows = {
2627
2627
  id: string;
2628
2628
  jsonrpc: string;
@@ -2630,8 +2630,8 @@ export type JsonRpcRequestForMaintenanceWindows = {
2630
2630
  params: RpcMaintenanceWindowsRequest;
2631
2631
  };
2632
2632
  /**
2633
- * JsonRpcRequest_for_network_info
2634
- */
2633
+ * JsonRpcRequest_for_network_info
2634
+ */
2635
2635
  export type JsonRpcRequestForNetworkInfo = {
2636
2636
  id: string;
2637
2637
  jsonrpc: string;
@@ -2639,8 +2639,8 @@ export type JsonRpcRequestForNetworkInfo = {
2639
2639
  params: RpcNetworkInfoRequest;
2640
2640
  };
2641
2641
  /**
2642
- * JsonRpcRequest_for_next_light_client_block
2643
- */
2642
+ * JsonRpcRequest_for_next_light_client_block
2643
+ */
2644
2644
  export type JsonRpcRequestForNextLightClientBlock = {
2645
2645
  id: string;
2646
2646
  jsonrpc: string;
@@ -2648,8 +2648,8 @@ export type JsonRpcRequestForNextLightClientBlock = {
2648
2648
  params: RpcLightClientNextBlockRequest;
2649
2649
  };
2650
2650
  /**
2651
- * JsonRpcRequest_for_query
2652
- */
2651
+ * JsonRpcRequest_for_query
2652
+ */
2653
2653
  export type JsonRpcRequestForQuery = {
2654
2654
  id: string;
2655
2655
  jsonrpc: string;
@@ -2657,8 +2657,8 @@ export type JsonRpcRequestForQuery = {
2657
2657
  params: RpcQueryRequest;
2658
2658
  };
2659
2659
  /**
2660
- * JsonRpcRequest_for_send_tx
2661
- */
2660
+ * JsonRpcRequest_for_send_tx
2661
+ */
2662
2662
  export type JsonRpcRequestForSendTx = {
2663
2663
  id: string;
2664
2664
  jsonrpc: string;
@@ -2666,8 +2666,8 @@ export type JsonRpcRequestForSendTx = {
2666
2666
  params: RpcSendTransactionRequest;
2667
2667
  };
2668
2668
  /**
2669
- * JsonRpcRequest_for_status
2670
- */
2669
+ * JsonRpcRequest_for_status
2670
+ */
2671
2671
  export type JsonRpcRequestForStatus = {
2672
2672
  id: string;
2673
2673
  jsonrpc: string;
@@ -2675,8 +2675,8 @@ export type JsonRpcRequestForStatus = {
2675
2675
  params: RpcStatusRequest;
2676
2676
  };
2677
2677
  /**
2678
- * JsonRpcRequest_for_tx
2679
- */
2678
+ * JsonRpcRequest_for_tx
2679
+ */
2680
2680
  export type JsonRpcRequestForTx = {
2681
2681
  id: string;
2682
2682
  jsonrpc: string;
@@ -2684,8 +2684,8 @@ export type JsonRpcRequestForTx = {
2684
2684
  params: RpcTransactionStatusRequest;
2685
2685
  };
2686
2686
  /**
2687
- * JsonRpcRequest_for_validators
2688
- */
2687
+ * JsonRpcRequest_for_validators
2688
+ */
2689
2689
  export type JsonRpcRequestForValidators = {
2690
2690
  id: string;
2691
2691
  jsonrpc: string;
@@ -2941,9 +2941,9 @@ export type JsonRpcResponseForRpcViewStateResponseAndRpcViewStateError = ({
2941
2941
  jsonrpc: string;
2942
2942
  };
2943
2943
  /**
2944
- * Information about a Producer: its account name, peer_id and a list of connected peers that
2945
- * the node can use to send message for this producer.
2946
- */
2944
+ * Information about a Producer: its account name, peer_id and a list of connected peers that
2945
+ * the node can use to send message for this producer.
2946
+ */
2947
2947
  export type KnownProducerView = {
2948
2948
  account_id: AccountId;
2949
2949
  next_hops?: Array<PublicKey> | null;
@@ -2955,9 +2955,9 @@ export type LightClientBlockLiteView = {
2955
2955
  prev_block_hash: CryptoHash;
2956
2956
  };
2957
2957
  /**
2958
- * Describes limits for VM and Runtime.
2959
- * TODO #4139: consider switching to strongly-typed wrappers instead of raw quantities
2960
- */
2958
+ * Describes limits for VM and Runtime.
2959
+ * TODO #4139: consider switching to strongly-typed wrappers instead of raw quantities
2960
+ */
2961
2961
  export type LimitConfig = {
2962
2962
  /**
2963
2963
  * Whether to enforce account_id well-formed-ness where it wasn't enforced
@@ -3091,8 +3091,8 @@ export type LimitConfig = {
3091
3091
  yield_timeout_length_in_blocks?: number;
3092
3092
  };
3093
3093
  export declare const LogSummaryStyle: {
3094
- readonly PLAIN: "plain";
3095
- readonly COLORED: "colored";
3094
+ readonly PLAIN: 'plain';
3095
+ readonly COLORED: 'colored';
3096
3096
  };
3097
3097
  export type LogSummaryStyle = (typeof LogSummaryStyle)[keyof typeof LogSummaryStyle];
3098
3098
  export type MerklePathItem = {
@@ -3100,9 +3100,9 @@ export type MerklePathItem = {
3100
3100
  hash: CryptoHash;
3101
3101
  };
3102
3102
  export declare const MethodResolveError: {
3103
- readonly METHOD_EMPTY_NAME: "MethodEmptyName";
3104
- readonly METHOD_NOT_FOUND: "MethodNotFound";
3105
- readonly METHOD_INVALID_SIGNATURE: "MethodInvalidSignature";
3103
+ readonly METHOD_EMPTY_NAME: 'MethodEmptyName';
3104
+ readonly METHOD_NOT_FOUND: 'MethodNotFound';
3105
+ readonly METHOD_INVALID_SIGNATURE: 'MethodInvalidSignature';
3106
3106
  };
3107
3107
  export type MethodResolveError = (typeof MethodResolveError)[keyof typeof MethodResolveError];
3108
3108
  export type MissingTrieValue = {
@@ -3110,8 +3110,8 @@ export type MissingTrieValue = {
3110
3110
  hash: CryptoHash;
3111
3111
  };
3112
3112
  /**
3113
- * Contexts in which `StorageError::MissingTrieValue` error might occur.
3114
- */
3113
+ * Contexts in which `StorageError::MissingTrieValue` error might occur.
3114
+ */
3115
3115
  export type MissingTrieValueContext = 'TrieIterator' | 'TriePrefetchingStorage' | 'TrieMemoryPartialStorage' | 'TrieStorage';
3116
3116
  export type MutableConfigValue = string;
3117
3117
  export type NearGas = number;
@@ -3132,8 +3132,8 @@ export type NextEpochValidatorInfo = {
3132
3132
  stake: NearToken;
3133
3133
  };
3134
3134
  /**
3135
- * An Action that can be included in a transaction or receipt, excluding delegate actions. This type represents all possible action types except DelegateAction to prevent infinite recursion in meta-transactions.
3136
- */
3135
+ * An Action that can be included in a transaction or receipt, excluding delegate actions. This type represents all possible action types except DelegateAction to prevent infinite recursion in meta-transactions.
3136
+ */
3137
3137
  export type NonDelegateAction = {
3138
3138
  CreateAccount: CreateAccountAction;
3139
3139
  } | {
@@ -3164,8 +3164,8 @@ export type NonDelegateAction = {
3164
3164
  TransferToGasKey: TransferToGasKeyAction;
3165
3165
  };
3166
3166
  /**
3167
- * Peer id is the public key.
3168
- */
3167
+ * Peer id is the public key.
3168
+ */
3169
3169
  export type PeerId = PublicKey;
3170
3170
  export type PeerInfoView = {
3171
3171
  account_id?: AccountId | null;
@@ -3188,19 +3188,19 @@ export type PeerInfoView = {
3188
3188
  tracked_shards: Array<ShardId>;
3189
3189
  };
3190
3190
  /**
3191
- * Error that can occur while preparing or executing Wasm smart-contract.
3192
- */
3191
+ * Error that can occur while preparing or executing Wasm smart-contract.
3192
+ */
3193
3193
  export type PrepareError = 'Serialization' | 'Deserialization' | 'InternalMemoryDeclared' | 'GasInstrumentation' | 'StackHeightInstrumentation' | 'Instantiate' | 'Memory' | 'TooManyFunctions' | 'TooManyLocals' | 'TooManyTables' | 'TooManyTableElements';
3194
3194
  /**
3195
- * Configures whether the node checks the next or the next next epoch for network version compatibility.
3196
- */
3195
+ * Configures whether the node checks the next or the next next epoch for network version compatibility.
3196
+ */
3197
3197
  export declare const ProtocolVersionCheckConfig: {
3198
- readonly NEXT: "Next";
3199
- readonly NEXT_NEXT: "NextNext";
3198
+ readonly NEXT: 'Next';
3199
+ readonly NEXT_NEXT: 'NextNext';
3200
3200
  };
3201
3201
  /**
3202
- * Configures whether the node checks the next or the next next epoch for network version compatibility.
3203
- */
3202
+ * Configures whether the node checks the next or the next next epoch for network version compatibility.
3203
+ */
3204
3204
  export type ProtocolVersionCheckConfig = (typeof ProtocolVersionCheckConfig)[keyof typeof ProtocolVersionCheckConfig];
3205
3205
  export type PublicKey = string;
3206
3206
  export type RangeOfUint64 = {
@@ -3233,8 +3233,8 @@ export type ReceiptEnumView = {
3233
3233
  };
3234
3234
  };
3235
3235
  /**
3236
- * Describes the error for validating a receipt.
3237
- */
3236
+ * Describes the error for validating a receipt.
3237
+ */
3238
3238
  export type ReceiptValidationError = {
3239
3239
  InvalidPredecessorId: {
3240
3240
  account_id: string;
@@ -3294,8 +3294,8 @@ export type RpcBlockError = {
3294
3294
  name: 'INTERNAL_ERROR';
3295
3295
  };
3296
3296
  /**
3297
- * RpcBlockRequest
3298
- */
3297
+ * RpcBlockRequest
3298
+ */
3299
3299
  export type RpcBlockRequest = {
3300
3300
  block_id: BlockId;
3301
3301
  } | {
@@ -3362,8 +3362,8 @@ export type RpcCallFunctionRequest = ({
3362
3362
  method_name: string;
3363
3363
  };
3364
3364
  /**
3365
- * A result returned by contract method
3366
- */
3365
+ * A result returned by contract method
3366
+ */
3367
3367
  export type RpcCallFunctionResponse = {
3368
3368
  block_hash: CryptoHash;
3369
3369
  block_height: number;
@@ -3392,8 +3392,8 @@ export type RpcChunkError = {
3392
3392
  name: 'UNKNOWN_CHUNK';
3393
3393
  };
3394
3394
  /**
3395
- * RpcChunkRequest
3396
- */
3395
+ * RpcChunkRequest
3396
+ */
3397
3397
  export type RpcChunkRequest = {
3398
3398
  block_id: BlockId;
3399
3399
  shard_id: ShardId;
@@ -3413,18 +3413,18 @@ export type RpcClientConfigError = {
3413
3413
  name: 'INTERNAL_ERROR';
3414
3414
  };
3415
3415
  /**
3416
- * RpcClientConfigRequest
3417
- */
3416
+ * RpcClientConfigRequest
3417
+ */
3418
3418
  export declare const RpcClientConfigRequest: {
3419
3419
  readonly NULL: null;
3420
3420
  };
3421
3421
  /**
3422
- * RpcClientConfigRequest
3423
- */
3422
+ * RpcClientConfigRequest
3423
+ */
3424
3424
  export type RpcClientConfigRequest = (typeof RpcClientConfigRequest)[keyof typeof RpcClientConfigRequest];
3425
3425
  /**
3426
- * ClientConfig where some fields can be updated at runtime.
3427
- */
3426
+ * ClientConfig where some fields can be updated at runtime.
3427
+ */
3428
3428
  export type RpcClientConfigResponse = {
3429
3429
  /**
3430
3430
  * Not clear old data, set `true` for archive nodes.
@@ -3723,8 +3723,8 @@ export type RpcClientConfigResponse = {
3723
3723
  view_client_threads?: number;
3724
3724
  };
3725
3725
  /**
3726
- * RpcCongestionLevelRequest
3727
- */
3726
+ * RpcCongestionLevelRequest
3727
+ */
3728
3728
  export type RpcCongestionLevelRequest = {
3729
3729
  block_id: BlockId;
3730
3730
  shard_id: ShardId;
@@ -3746,8 +3746,8 @@ export type RpcGasPriceError = {
3746
3746
  name: 'UNKNOWN_BLOCK';
3747
3747
  };
3748
3748
  /**
3749
- * RpcGasPriceRequest
3750
- */
3749
+ * RpcGasPriceRequest
3750
+ */
3751
3751
  export type RpcGasPriceRequest = {
3752
3752
  block_id?: BlockId | null;
3753
3753
  };
@@ -3755,14 +3755,14 @@ export type RpcGasPriceResponse = {
3755
3755
  gas_price: NearToken;
3756
3756
  };
3757
3757
  /**
3758
- * RpcHealthRequest
3759
- */
3758
+ * RpcHealthRequest
3759
+ */
3760
3760
  export declare const RpcHealthRequest: {
3761
3761
  readonly NULL: null;
3762
3762
  };
3763
3763
  /**
3764
- * RpcHealthRequest
3765
- */
3764
+ * RpcHealthRequest
3765
+ */
3766
3766
  export type RpcHealthRequest = (typeof RpcHealthRequest)[keyof typeof RpcHealthRequest];
3767
3767
  export declare const RpcHealthResponse: {
3768
3768
  readonly NULL: null;
@@ -3774,8 +3774,8 @@ export type RpcKnownProducer = {
3774
3774
  peer_id: PeerId;
3775
3775
  };
3776
3776
  /**
3777
- * RpcLightClientBlockProofRequest
3778
- */
3777
+ * RpcLightClientBlockProofRequest
3778
+ */
3779
3779
  export type RpcLightClientBlockProofRequest = {
3780
3780
  block_hash: CryptoHash;
3781
3781
  light_client_head: CryptoHash;
@@ -3818,14 +3818,14 @@ export type RpcLightClientNextBlockError = {
3818
3818
  name: 'EPOCH_OUT_OF_BOUNDS';
3819
3819
  };
3820
3820
  /**
3821
- * RpcLightClientNextBlockRequest
3822
- */
3821
+ * RpcLightClientNextBlockRequest
3822
+ */
3823
3823
  export type RpcLightClientNextBlockRequest = {
3824
3824
  last_block_hash: CryptoHash;
3825
3825
  };
3826
3826
  /**
3827
- * A state for the current head of a light client. More info [here](https://nomicon.io/ChainSpec/LightClient).
3828
- */
3827
+ * A state for the current head of a light client. More info [here](https://nomicon.io/ChainSpec/LightClient).
3828
+ */
3829
3829
  export type RpcLightClientNextBlockResponse = {
3830
3830
  approvals_after_next?: Array<Signature | null>;
3831
3831
  /**
@@ -3878,8 +3878,8 @@ export type RpcMaintenanceWindowsError = {
3878
3878
  name: 'INTERNAL_ERROR';
3879
3879
  };
3880
3880
  /**
3881
- * RpcMaintenanceWindowsRequest
3882
- */
3881
+ * RpcMaintenanceWindowsRequest
3882
+ */
3883
3883
  export type RpcMaintenanceWindowsRequest = {
3884
3884
  account_id: AccountId;
3885
3885
  };
@@ -3890,14 +3890,14 @@ export type RpcNetworkInfoError = {
3890
3890
  name: 'INTERNAL_ERROR';
3891
3891
  };
3892
3892
  /**
3893
- * RpcNetworkInfoRequest
3894
- */
3893
+ * RpcNetworkInfoRequest
3894
+ */
3895
3895
  export declare const RpcNetworkInfoRequest: {
3896
3896
  readonly NULL: null;
3897
3897
  };
3898
3898
  /**
3899
- * RpcNetworkInfoRequest
3900
- */
3899
+ * RpcNetworkInfoRequest
3900
+ */
3901
3901
  export type RpcNetworkInfoRequest = (typeof RpcNetworkInfoRequest)[keyof typeof RpcNetworkInfoRequest];
3902
3902
  export type RpcNetworkInfoResponse = {
3903
3903
  active_peers: Array<RpcPeerInfo>;
@@ -3927,8 +3927,8 @@ export type RpcProtocolConfigError = {
3927
3927
  name: 'INTERNAL_ERROR';
3928
3928
  };
3929
3929
  /**
3930
- * RpcProtocolConfigRequest
3931
- */
3930
+ * RpcProtocolConfigRequest
3931
+ */
3932
3932
  export type RpcProtocolConfigRequest = {
3933
3933
  block_id: BlockId;
3934
3934
  } | {
@@ -4157,8 +4157,8 @@ export type RpcQueryError = {
4157
4157
  name: 'INTERNAL_ERROR';
4158
4158
  };
4159
4159
  /**
4160
- * RpcQueryRequest
4161
- */
4160
+ * RpcQueryRequest
4161
+ */
4162
4162
  export type RpcQueryRequest = ({
4163
4163
  block_id: BlockId;
4164
4164
  } & {
@@ -4344,8 +4344,8 @@ export type RpcReceiptError = {
4344
4344
  name: 'UNKNOWN_RECEIPT';
4345
4345
  };
4346
4346
  /**
4347
- * RpcReceiptRequest
4348
- */
4347
+ * RpcReceiptRequest
4348
+ */
4349
4349
  export type RpcReceiptRequest = {
4350
4350
  receipt_id: CryptoHash;
4351
4351
  };
@@ -4368,8 +4368,8 @@ export type RpcRequestValidationErrorKind = {
4368
4368
  name: 'PARSE_ERROR';
4369
4369
  };
4370
4370
  /**
4371
- * RpcSendTransactionRequest
4372
- */
4371
+ * RpcSendTransactionRequest
4372
+ */
4373
4373
  export type RpcSendTransactionRequest = {
4374
4374
  signed_tx_base64: SignedTransaction;
4375
4375
  wait_until?: TxExecutionStatus;
@@ -4381,14 +4381,14 @@ export type RpcSplitStorageInfoError = {
4381
4381
  name: 'INTERNAL_ERROR';
4382
4382
  };
4383
4383
  /**
4384
- * RpcSplitStorageInfoRequest
4385
- */
4384
+ * RpcSplitStorageInfoRequest
4385
+ */
4386
4386
  export type RpcSplitStorageInfoRequest = {
4387
4387
  [key: string]: unknown;
4388
4388
  };
4389
4389
  /**
4390
- * Contains the split storage information.
4391
- */
4390
+ * Contains the split storage information.
4391
+ */
4392
4392
  export type RpcSplitStorageInfoResponse = {
4393
4393
  cold_head_height?: number | null;
4394
4394
  final_head_height?: number | null;
@@ -4409,12 +4409,12 @@ export type RpcStateChangesError = {
4409
4409
  name: 'INTERNAL_ERROR';
4410
4410
  };
4411
4411
  /**
4412
- * RpcStateChangesInBlockByTypeRequest
4413
- *
4414
- * It is a serializable view of `StateChangesRequest`.
4415
- *
4416
- * See the Rust crate documentation for more information.
4417
- */
4412
+ * RpcStateChangesInBlockByTypeRequest
4413
+ *
4414
+ * It is a serializable view of `StateChangesRequest`.
4415
+ *
4416
+ * See the Rust crate documentation for more information.
4417
+ */
4418
4418
  export type RpcStateChangesInBlockByTypeRequest = ({
4419
4419
  block_id: BlockId;
4420
4420
  } & {
@@ -4529,8 +4529,8 @@ export type RpcStateChangesInBlockByTypeResponse = {
4529
4529
  changes: Array<StateChangeKindView>;
4530
4530
  };
4531
4531
  /**
4532
- * RpcStateChangesInBlockRequest
4533
- */
4532
+ * RpcStateChangesInBlockRequest
4533
+ */
4534
4534
  export type RpcStateChangesInBlockRequest = {
4535
4535
  block_id: BlockId;
4536
4536
  } | {
@@ -4561,14 +4561,14 @@ export type RpcStatusError = {
4561
4561
  name: 'INTERNAL_ERROR';
4562
4562
  };
4563
4563
  /**
4564
- * RpcStatusRequest
4565
- */
4564
+ * RpcStatusRequest
4565
+ */
4566
4566
  export declare const RpcStatusRequest: {
4567
4567
  readonly NULL: null;
4568
4568
  };
4569
4569
  /**
4570
- * RpcStatusRequest
4571
- */
4570
+ * RpcStatusRequest
4571
+ */
4572
4572
  export type RpcStatusRequest = (typeof RpcStatusRequest)[keyof typeof RpcStatusRequest];
4573
4573
  export type RpcStatusResponse = {
4574
4574
  /**
@@ -4675,16 +4675,16 @@ export type RpcValidatorError = {
4675
4675
  name: 'INTERNAL_ERROR';
4676
4676
  };
4677
4677
  /**
4678
- * RpcValidatorRequest
4679
- */
4678
+ * RpcValidatorRequest
4679
+ */
4680
4680
  export type RpcValidatorRequest = 'latest' | {
4681
4681
  epoch_id: EpochId;
4682
4682
  } | {
4683
4683
  block_id: BlockId;
4684
4684
  };
4685
4685
  /**
4686
- * Information about this epoch validators and next epoch validators
4687
- */
4686
+ * Information about this epoch validators and next epoch validators
4687
+ */
4688
4688
  export type RpcValidatorResponse = {
4689
4689
  /**
4690
4690
  * Fishermen for the current epoch
@@ -4720,8 +4720,8 @@ export type RpcValidatorResponse = {
4720
4720
  prev_epoch_kickout: Array<ValidatorKickoutView>;
4721
4721
  };
4722
4722
  /**
4723
- * RpcValidatorsOrderedRequest
4724
- */
4723
+ * RpcValidatorsOrderedRequest
4724
+ */
4725
4725
  export type RpcValidatorsOrderedRequest = {
4726
4726
  block_id?: BlockId | null;
4727
4727
  };
@@ -4792,8 +4792,8 @@ export type RpcViewAccessKeyListRequest = ({
4792
4792
  account_id: AccountId;
4793
4793
  };
4794
4794
  /**
4795
- * Lists access keys
4796
- */
4795
+ * Lists access keys
4796
+ */
4797
4797
  export type RpcViewAccessKeyListResponse = {
4798
4798
  block_hash: CryptoHash;
4799
4799
  block_height: number;
@@ -4810,8 +4810,8 @@ export type RpcViewAccessKeyRequest = ({
4810
4810
  public_key: PublicKey;
4811
4811
  };
4812
4812
  /**
4813
- * Describes access key permission scope and nonce.
4814
- */
4813
+ * Describes access key permission scope and nonce.
4814
+ */
4815
4815
  export type RpcViewAccessKeyResponse = {
4816
4816
  block_hash: CryptoHash;
4817
4817
  block_height: number;
@@ -4853,8 +4853,8 @@ export type RpcViewAccountRequest = ({
4853
4853
  account_id: AccountId;
4854
4854
  };
4855
4855
  /**
4856
- * A view of the account
4857
- */
4856
+ * A view of the account
4857
+ */
4858
4858
  export type RpcViewAccountResponse = {
4859
4859
  amount: NearToken;
4860
4860
  block_hash: CryptoHash;
@@ -4911,8 +4911,8 @@ export type RpcViewCodeRequest = ({
4911
4911
  account_id: AccountId;
4912
4912
  };
4913
4913
  /**
4914
- * A view of the contract code.
4915
- */
4914
+ * A view of the contract code.
4915
+ */
4916
4916
  export type RpcViewCodeResponse = {
4917
4917
  block_hash: CryptoHash;
4918
4918
  block_height: number;
@@ -5052,8 +5052,8 @@ export type RpcViewStateRequest = ({
5052
5052
  prefix_base64: StoreKey;
5053
5053
  };
5054
5054
  /**
5055
- * Resulting state values for a view state query request
5056
- */
5055
+ * Resulting state values for a view state query request
5056
+ */
5057
5057
  export type RpcViewStateResponse = {
5058
5058
  block_hash: CryptoHash;
5059
5059
  block_height: number;
@@ -5061,8 +5061,8 @@ export type RpcViewStateResponse = {
5061
5061
  values: Array<StateItem>;
5062
5062
  };
5063
5063
  /**
5064
- * View that preserves JSON format of the runtime config.
5065
- */
5064
+ * View that preserves JSON format of the runtime config.
5065
+ */
5066
5066
  export type RuntimeConfigView = {
5067
5067
  /**
5068
5068
  * Config that defines rules for account creation.
@@ -5096,8 +5096,8 @@ export type RuntimeConfigView = {
5096
5096
  witness_config?: WitnessConfigView;
5097
5097
  };
5098
5098
  /**
5099
- * Describes different fees for the runtime
5100
- */
5099
+ * Describes different fees for the runtime
5100
+ */
5101
5101
  export type RuntimeFeesConfigView = {
5102
5102
  /**
5103
5103
  * Describes the cost of creating a certain action, `Action`. Includes all variants.
@@ -5129,25 +5129,25 @@ export type RuntimeFeesConfigView = {
5129
5129
  storage_usage_config?: StorageUsageConfigView;
5130
5130
  };
5131
5131
  /**
5132
- * The shard identifier. It may be an arbitrary number - it does not need to be
5133
- * a number in the range 0..NUM_SHARDS. The shard ids do not need to be
5134
- * sequential or contiguous.
5135
- *
5136
- * The shard id is wrapped in a new type to prevent the old pattern of using
5137
- * indices in range 0..NUM_SHARDS and casting to ShardId. Once the transition
5138
- * if fully complete it potentially may be simplified to a regular type alias.
5139
- */
5132
+ * The shard identifier. It may be an arbitrary number - it does not need to be
5133
+ * a number in the range 0..NUM_SHARDS. The shard ids do not need to be
5134
+ * sequential or contiguous.
5135
+ *
5136
+ * The shard id is wrapped in a new type to prevent the old pattern of using
5137
+ * indices in range 0..NUM_SHARDS and casting to ShardId. Once the transition
5138
+ * if fully complete it potentially may be simplified to a regular type alias.
5139
+ */
5140
5140
  export type ShardId = number;
5141
5141
  /**
5142
- * A versioned struct that contains all information needed to assign accounts to shards.
5143
- *
5144
- * Because of re-sharding, the chain may use different shard layout to split shards at different
5145
- * times. Currently, `ShardLayout` is stored as part of `EpochConfig`, which is generated each
5146
- * epoch given the epoch protocol version. In mainnet/testnet, we use two shard layouts since
5147
- * re-sharding has only happened once. It is stored as part of genesis config, see
5148
- * default_simple_nightshade_shard_layout() Below is an overview for some important
5149
- * functionalities of ShardLayout interface.
5150
- */
5142
+ * A versioned struct that contains all information needed to assign accounts to shards.
5143
+ *
5144
+ * Because of re-sharding, the chain may use different shard layout to split shards at different
5145
+ * times. Currently, `ShardLayout` is stored as part of `EpochConfig`, which is generated each
5146
+ * epoch given the epoch protocol version. In mainnet/testnet, we use two shard layouts since
5147
+ * re-sharding has only happened once. It is stored as part of genesis config, see
5148
+ * default_simple_nightshade_shard_layout() Below is an overview for some important
5149
+ * functionalities of ShardLayout interface.
5150
+ */
5151
5151
  export type ShardLayout = {
5152
5152
  V0: ShardLayoutV0;
5153
5153
  } | {
@@ -5158,12 +5158,12 @@ export type ShardLayout = {
5158
5158
  V3: ShardLayoutV3;
5159
5159
  };
5160
5160
  /**
5161
- * A shard layout that maps accounts evenly across all shards -- by calculate the hash of account
5162
- * id and mod number of shards. This is added to capture the old `account_id_to_shard_id` algorithm,
5163
- * to keep backward compatibility for some existing tests.
5164
- * `parent_shards` for `ShardLayoutV1` is always `None`, meaning it can only be the first shard layout
5165
- * a chain uses.
5166
- */
5161
+ * A shard layout that maps accounts evenly across all shards -- by calculate the hash of account
5162
+ * id and mod number of shards. This is added to capture the old `account_id_to_shard_id` algorithm,
5163
+ * to keep backward compatibility for some existing tests.
5164
+ * `parent_shards` for `ShardLayoutV1` is always `None`, meaning it can only be the first shard layout
5165
+ * a chain uses.
5166
+ */
5167
5167
  export type ShardLayoutV0 = {
5168
5168
  /**
5169
5169
  * Map accounts evenly across all shards
@@ -5199,9 +5199,9 @@ export type ShardLayoutV1 = {
5199
5199
  version: number;
5200
5200
  };
5201
5201
  /**
5202
- * Counterpart to `ShardLayoutV2` composed of maps with string keys to aid
5203
- * serde serialization.
5204
- */
5202
+ * Counterpart to `ShardLayoutV2` composed of maps with string keys to aid
5203
+ * serde serialization.
5204
+ */
5205
5205
  export type ShardLayoutV2 = {
5206
5206
  boundary_accounts: Array<AccountId>;
5207
5207
  id_to_index_map: {
@@ -5220,9 +5220,9 @@ export type ShardLayoutV2 = {
5220
5220
  version: number;
5221
5221
  };
5222
5222
  /**
5223
- * Counterpart to `ShardLayoutV3` composed of maps with string keys to aid
5224
- * serde serialization.
5225
- */
5223
+ * Counterpart to `ShardLayoutV3` composed of maps with string keys to aid
5224
+ * serde serialization.
5225
+ */
5226
5226
  export type ShardLayoutV3 = {
5227
5227
  boundary_accounts: Array<AccountId>;
5228
5228
  id_to_index_map: {
@@ -5235,16 +5235,16 @@ export type ShardLayoutV3 = {
5235
5235
  };
5236
5236
  };
5237
5237
  /**
5238
- * `ShardUId` is a unique representation for shards from different shard layouts.
5239
- *
5240
- * Comparing to `ShardId`, which is just an ordinal number ranging from 0 to NUM_SHARDS-1,
5241
- * `ShardUId` provides a way to unique identify shards when shard layouts may change across epochs.
5242
- * This is important because we store states indexed by shards in our database, so we need a
5243
- * way to unique identify shard even when shards change across epochs.
5244
- * Another difference between `ShardUId` and `ShardId` is that `ShardUId` should only exist in
5245
- * a node's internal state while `ShardId` can be exposed to outside APIs and used in protocol
5246
- * level information (for example, `ShardChunkHeader` contains `ShardId` instead of `ShardUId`)
5247
- */
5238
+ * `ShardUId` is a unique representation for shards from different shard layouts.
5239
+ *
5240
+ * Comparing to `ShardId`, which is just an ordinal number ranging from 0 to NUM_SHARDS-1,
5241
+ * `ShardUId` provides a way to unique identify shards when shard layouts may change across epochs.
5242
+ * This is important because we store states indexed by shards in our database, so we need a
5243
+ * way to unique identify shard even when shards change across epochs.
5244
+ * Another difference between `ShardUId` and `ShardId` is that `ShardUId` should only exist in
5245
+ * a node's internal state while `ShardId` can be exposed to outside APIs and used in protocol
5246
+ * level information (for example, `ShardChunkHeader` contains `ShardId` instead of `ShardUId`)
5247
+ */
5248
5248
  export type ShardUId = {
5249
5249
  shard_id: number;
5250
5250
  version: number;
@@ -5270,8 +5270,8 @@ export type SlashedValidator = {
5270
5270
  is_double_sign: boolean;
5271
5271
  };
5272
5272
  /**
5273
- * An action which stakes signer_id tokens and setup's validator public key
5274
- */
5273
+ * An action which stakes signer_id tokens and setup's validator public key
5274
+ */
5275
5275
  export type StakeAction = {
5276
5276
  /**
5277
5277
  * Validator key which will be used to sign transactions on behalf of signer_id
@@ -5283,8 +5283,8 @@ export type StakeAction = {
5283
5283
  stake: NearToken;
5284
5284
  };
5285
5285
  /**
5286
- * See crate::types::StateChangeCause for details.
5287
- */
5286
+ * See crate::types::StateChangeCause for details.
5287
+ */
5288
5288
  export type StateChangeCauseView = {
5289
5289
  type: 'not_writable_to_disk';
5290
5290
  } | {
@@ -5314,10 +5314,10 @@ export type StateChangeCauseView = {
5314
5314
  type: 'bandwidth_scheduler_state_update';
5315
5315
  };
5316
5316
  /**
5317
- * It is a serializable view of `StateChangeKind`.
5318
- *
5319
- * See the Rust crate documentation for more information.
5320
- */
5317
+ * It is a serializable view of `StateChangeKind`.
5318
+ *
5319
+ * See the Rust crate documentation for more information.
5320
+ */
5321
5321
  export type StateChangeKindView = {
5322
5322
  account_id: AccountId;
5323
5323
  type: 'account_touched';
@@ -5416,8 +5416,8 @@ export type StateChangeWithCauseView = ({
5416
5416
  cause: StateChangeCauseView;
5417
5417
  };
5418
5418
  /**
5419
- * Item of the state, key and value are serialized in base64 and proof for inclusion of given state item.
5420
- */
5419
+ * Item of the state, key and value are serialized in base64 and proof for inclusion of given state item.
5420
+ */
5421
5421
  export type StateItem = {
5422
5422
  key: StoreKey;
5423
5423
  value: StoreValue;
@@ -5447,9 +5447,9 @@ export type StatusSyncInfo = {
5447
5447
  syncing: boolean;
5448
5448
  };
5449
5449
  /**
5450
- * Errors which may occur during working with trie storages, storing
5451
- * trie values (trie nodes and state values) by their hashes.
5452
- */
5450
+ * Errors which may occur during working with trie storages, storing
5451
+ * trie values (trie nodes and state values) by their hashes.
5452
+ */
5453
5453
  export type StorageError = 'StorageInternalError' | {
5454
5454
  MissingTrieValue: MissingTrieValue;
5455
5455
  } | 'UnexpectedTrieValue' | {
@@ -5460,19 +5460,19 @@ export type StorageError = 'StorageInternalError' | {
5460
5460
  MemTrieLoadingError: string;
5461
5461
  };
5462
5462
  /**
5463
- * This enum represents if a storage_get call will be performed through flat storage or trie
5464
- */
5463
+ * This enum represents if a storage_get call will be performed through flat storage or trie
5464
+ */
5465
5465
  export declare const StorageGetMode: {
5466
- readonly FLAT_STORAGE: "FlatStorage";
5467
- readonly TRIE: "Trie";
5466
+ readonly FLAT_STORAGE: 'FlatStorage';
5467
+ readonly TRIE: 'Trie';
5468
5468
  };
5469
5469
  /**
5470
- * This enum represents if a storage_get call will be performed through flat storage or trie
5471
- */
5470
+ * This enum represents if a storage_get call will be performed through flat storage or trie
5471
+ */
5472
5472
  export type StorageGetMode = (typeof StorageGetMode)[keyof typeof StorageGetMode];
5473
5473
  /**
5474
- * Describes cost of storage per block
5475
- */
5474
+ * Describes cost of storage per block
5475
+ */
5476
5476
  export type StorageUsageConfigView = {
5477
5477
  /**
5478
5478
  * Number of bytes for an account record, including rounding up for account id.
@@ -5484,22 +5484,22 @@ export type StorageUsageConfigView = {
5484
5484
  num_extra_bytes_record?: number;
5485
5485
  };
5486
5486
  /**
5487
- * This type is used to mark keys (arrays of bytes) that are queried from store.
5488
- *
5489
- * NOTE: Currently, this type is only used in the view_client and RPC to be able to transparently
5490
- * pretty-serialize the bytes arrays as base64-encoded strings (see `serialize.rs`).
5491
- */
5487
+ * This type is used to mark keys (arrays of bytes) that are queried from store.
5488
+ *
5489
+ * NOTE: Currently, this type is only used in the view_client and RPC to be able to transparently
5490
+ * pretty-serialize the bytes arrays as base64-encoded strings (see `serialize.rs`).
5491
+ */
5492
5492
  export type StoreKey = string;
5493
5493
  /**
5494
- * This type is used to mark values returned from store (arrays of bytes).
5495
- *
5496
- * NOTE: Currently, this type is only used in the view_client and RPC to be able to transparently
5497
- * pretty-serialize the bytes arrays as base64-encoded strings (see `serialize.rs`).
5498
- */
5494
+ * This type is used to mark values returned from store (arrays of bytes).
5495
+ *
5496
+ * NOTE: Currently, this type is only used in the view_client and RPC to be able to transparently
5497
+ * pretty-serialize the bytes arrays as base64-encoded strings (see `serialize.rs`).
5498
+ */
5499
5499
  export type StoreValue = string;
5500
5500
  export declare const SyncCheckpoint: {
5501
- readonly GENESIS: "genesis";
5502
- readonly EARLIEST_AVAILABLE: "earliest_available";
5501
+ readonly GENESIS: 'genesis';
5502
+ readonly EARLIEST_AVAILABLE: 'earliest_available';
5503
5503
  };
5504
5504
  export type SyncCheckpoint = (typeof SyncCheckpoint)[keyof typeof SyncCheckpoint];
5505
5505
  export type SyncConcurrency = {
@@ -5527,8 +5527,8 @@ export type SyncConcurrency = {
5527
5527
  per_shard?: number;
5528
5528
  };
5529
5529
  /**
5530
- * Configures how to fetch state parts during state sync.
5531
- */
5530
+ * Configures how to fetch state parts during state sync.
5531
+ */
5532
5532
  export type SyncConfig = 'Peers' | {
5533
5533
  ExternalStorage: ExternalStorageConfig;
5534
5534
  };
@@ -5537,9 +5537,9 @@ export type Tier1ProxyView = {
5537
5537
  peer_id: PublicKey;
5538
5538
  };
5539
5539
  /**
5540
- * Describes the expected behavior of the node regarding shard tracking.
5541
- * If the node is an active validator, it will also track the shards it is responsible for as a validator.
5542
- */
5540
+ * Describes the expected behavior of the node regarding shard tracking.
5541
+ * If the node is an active validator, it will also track the shards it is responsible for as a validator.
5542
+ */
5543
5543
  export type TrackedShardsConfig = 'NoShards' | {
5544
5544
  Shards: Array<ShardUId>;
5545
5545
  } | 'AllShards' | {
@@ -5557,8 +5557,8 @@ export type TransferToGasKeyAction = {
5557
5557
  public_key: PublicKey;
5558
5558
  };
5559
5559
  /**
5560
- * Error returned in the ExecutionOutcome in case of failure
5561
- */
5560
+ * Error returned in the ExecutionOutcome in case of failure
5561
+ */
5562
5562
  export type TxExecutionError = {
5563
5563
  ActionError: ActionError;
5564
5564
  } | {
@@ -5566,8 +5566,8 @@ export type TxExecutionError = {
5566
5566
  };
5567
5567
  export type TxExecutionStatus = 'NONE' | 'INCLUDED' | 'EXECUTED_OPTIMISTIC' | 'INCLUDED_FINAL' | 'EXECUTED' | 'FINAL';
5568
5568
  /**
5569
- * Use global contract action
5570
- */
5569
+ * Use global contract action
5570
+ */
5571
5571
  export type UseGlobalContractAction = {
5572
5572
  contract_identifier: GlobalContractIdentifier;
5573
5573
  };
@@ -5645,8 +5645,8 @@ export type ValidatorInfo = {
5645
5645
  account_id: AccountId;
5646
5646
  };
5647
5647
  /**
5648
- * Reasons for removing a validator from the validator set.
5649
- */
5648
+ * Reasons for removing a validator from the validator set.
5649
+ */
5650
5650
  export type ValidatorKickoutReason = '_UnusedSlashed' | {
5651
5651
  NotEnoughBlocks: {
5652
5652
  expected: number;
@@ -5686,8 +5686,8 @@ export type ValidatorStakeViewV1 = {
5686
5686
  stake: NearToken;
5687
5687
  };
5688
5688
  /**
5689
- * Data structure for semver version and github tag or commit.
5690
- */
5689
+ * Data structure for semver version and github tag or commit.
5690
+ */
5691
5691
  export type Version = {
5692
5692
  build: string;
5693
5693
  commit: string;
@@ -5695,19 +5695,19 @@ export type Version = {
5695
5695
  version: string;
5696
5696
  };
5697
5697
  /**
5698
- * Resulting state values for a view state query request
5699
- */
5698
+ * Resulting state values for a view state query request
5699
+ */
5700
5700
  export type ViewStateResult = {
5701
5701
  proof?: Array<string>;
5702
5702
  values: Array<StateItem>;
5703
5703
  };
5704
5704
  /**
5705
- * A kind of a trap happened during execution of a binary
5706
- */
5705
+ * A kind of a trap happened during execution of a binary
5706
+ */
5707
5707
  export type WasmTrap = 'Unreachable' | 'IncorrectCallIndirectSignature' | 'MemoryOutOfBounds' | 'CallIndirectOOB' | 'IllegalArithmetic' | 'MisalignedAtomicAccess' | 'IndirectCallToNull' | 'StackOverflow' | 'GenericTrap';
5708
5708
  /**
5709
- * Configuration specific to ChunkStateWitness.
5710
- */
5709
+ * Configuration specific to ChunkStateWitness.
5710
+ */
5711
5711
  export type WitnessConfigView = {
5712
5712
  /**
5713
5713
  * Maximum size of transactions contained inside ChunkStateWitness.