@sleet-js/neardata-types 0.0.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.
- package/LICENSE +9 -0
- package/README.md +42 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/interface/block_response.d.ts +47 -0
- package/dist/interface/block_response.js +3 -0
- package/dist/interface/block_response.js.map +1 -0
- package/dist/interface/block_response_block_chunks.d.ts +22 -0
- package/dist/interface/block_response_block_chunks.js +5 -0
- package/dist/interface/block_response_block_chunks.js.map +1 -0
- package/dist/interface/block_response_shards.d.ts +62 -0
- package/dist/interface/block_response_shards.js +3 -0
- package/dist/interface/block_response_shards.js.map +1 -0
- package/dist/interface/index.d.ts +11 -0
- package/dist/interface/index.js +3 -0
- package/dist/interface/index.js.map +1 -0
- package/dist/interface/receipts.d.ts +36 -0
- package/dist/interface/receipts.js +3 -0
- package/dist/interface/receipts.js.map +1 -0
- package/dist/interface/transactions.d.ts +29 -0
- package/dist/interface/transactions.js +3 -0
- package/dist/interface/transactions.js.map +1 -0
- package/dist/interface/transactions_actions_AddKey.d.ts +12 -0
- package/dist/interface/transactions_actions_AddKey.js +5 -0
- package/dist/interface/transactions_actions_AddKey.js.map +1 -0
- package/dist/interface/transactions_actions_CreateAccount.d.ts +2 -0
- package/dist/interface/transactions_actions_CreateAccount.js +11 -0
- package/dist/interface/transactions_actions_CreateAccount.js.map +1 -0
- package/dist/interface/transactions_actions_Delegate.d.ts +22 -0
- package/dist/interface/transactions_actions_Delegate.js +3 -0
- package/dist/interface/transactions_actions_Delegate.js.map +1 -0
- package/dist/interface/transactions_actions_DeleteAccount.d.ts +3 -0
- package/dist/interface/transactions_actions_DeleteAccount.js +5 -0
- package/dist/interface/transactions_actions_DeleteAccount.js.map +1 -0
- package/dist/interface/transactions_actions_FunctionCall.d.ts +6 -0
- package/dist/interface/transactions_actions_FunctionCall.js +5 -0
- package/dist/interface/transactions_actions_FunctionCall.js.map +1 -0
- package/dist/interface/transactions_actions_Transfer.d.ts +3 -0
- package/dist/interface/transactions_actions_Transfer.js +5 -0
- package/dist/interface/transactions_actions_Transfer.js.map +1 -0
- package/dist/interface/transactions_outcome_interface.d.ts +41 -0
- package/dist/interface/transactions_outcome_interface.js +3 -0
- package/dist/interface/transactions_outcome_interface.js.map +1 -0
- package/dist/zod/block_response.d.ts +508 -0
- package/dist/zod/block_response.js +56 -0
- package/dist/zod/block_response.js.map +1 -0
- package/dist/zod/block_response_block_chunks.d.ts +23 -0
- package/dist/zod/block_response_block_chunks.js +28 -0
- package/dist/zod/block_response_block_chunks.js.map +1 -0
- package/dist/zod/block_response_shards.d.ts +603 -0
- package/dist/zod/block_response_shards.js +73 -0
- package/dist/zod/block_response_shards.js.map +1 -0
- package/dist/zod/index.d.ts +11 -0
- package/dist/zod/index.js +21 -0
- package/dist/zod/index.js.map +1 -0
- package/dist/zod/receipts.d.ts +367 -0
- package/dist/zod/receipts.js +52 -0
- package/dist/zod/receipts.js.map +1 -0
- package/dist/zod/transactions.d.ts +240 -0
- package/dist/zod/transactions.js +42 -0
- package/dist/zod/transactions.js.map +1 -0
- package/dist/zod/transactions_actions_AddKey.d.ts +13 -0
- package/dist/zod/transactions_actions_AddKey.js +21 -0
- package/dist/zod/transactions_actions_AddKey.js.map +1 -0
- package/dist/zod/transactions_actions_CreateAccount.d.ts +2 -0
- package/dist/zod/transactions_actions_CreateAccount.js +7 -0
- package/dist/zod/transactions_actions_CreateAccount.js.map +1 -0
- package/dist/zod/transactions_actions_Delegate.d.ts +59 -0
- package/dist/zod/transactions_actions_Delegate.js +31 -0
- package/dist/zod/transactions_actions_Delegate.js.map +1 -0
- package/dist/zod/transactions_actions_DeleteAccount.d.ts +4 -0
- package/dist/zod/transactions_actions_DeleteAccount.js +9 -0
- package/dist/zod/transactions_actions_DeleteAccount.js.map +1 -0
- package/dist/zod/transactions_actions_FunctionCall.d.ts +7 -0
- package/dist/zod/transactions_actions_FunctionCall.js +12 -0
- package/dist/zod/transactions_actions_FunctionCall.js.map +1 -0
- package/dist/zod/transactions_actions_Transfer.d.ts +4 -0
- package/dist/zod/transactions_actions_Transfer.js +9 -0
- package/dist/zod/transactions_actions_Transfer.js.map +1 -0
- package/dist/zod/transactions_outcome_interface.d.ts +120 -0
- package/dist/zod/transactions_outcome_interface.js +55 -0
- package/dist/zod/transactions_outcome_interface.js.map +1 -0
- package/package.json +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 sleet.near
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# neardata-types
|
|
2
|
+
|
|
3
|
+
types for neardata
|
|
4
|
+
|
|
5
|
+
🚧 WIP
|
|
6
|
+
|
|
7
|
+
ℹ️ these types where written for internal use by sleet.near
|
|
8
|
+
<br/>
|
|
9
|
+
ℹ️ works for and tested with fastnear neardata
|
|
10
|
+
<br/>
|
|
11
|
+
ℹ️ https://github.com/fastnear/neardata-server/
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
develop and publish this package
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
bun install
|
|
19
|
+
# bun run index.ts
|
|
20
|
+
bun run tsc --noEmit
|
|
21
|
+
bunx prettier . --write
|
|
22
|
+
# publish
|
|
23
|
+
bun run build
|
|
24
|
+
bun publish --dry-run
|
|
25
|
+
bunx npm login
|
|
26
|
+
bun publish --access public
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## HOW TO USE
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
bun add @sleet-js/neardata-types
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
This project was created using `bun init` in bun v1.3.11. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
|
|
41
|
+
|
|
42
|
+
copyright 2026 by sleet.near
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { neardata_block_chunks_interface } from "./block_response_block_chunks";
|
|
2
|
+
import type { neardata_shard_interface } from "./block_response_shards";
|
|
3
|
+
export interface neardata_block_response_interface {
|
|
4
|
+
block: neardata_block_interface;
|
|
5
|
+
shards: neardata_shard_interface[];
|
|
6
|
+
}
|
|
7
|
+
export interface neardata_block_interface {
|
|
8
|
+
author: string;
|
|
9
|
+
header: neardata_block_header_interface;
|
|
10
|
+
chunks: neardata_block_chunks_interface[];
|
|
11
|
+
}
|
|
12
|
+
export interface neardata_block_header_interface {
|
|
13
|
+
height: number;
|
|
14
|
+
prev_height: number;
|
|
15
|
+
epoch_id: string;
|
|
16
|
+
next_epoch_id: string;
|
|
17
|
+
hash: string;
|
|
18
|
+
prev_hash: string;
|
|
19
|
+
prev_state_root: string;
|
|
20
|
+
block_body_hash: string;
|
|
21
|
+
chunk_receipts_root: string;
|
|
22
|
+
chunk_headers_root: string;
|
|
23
|
+
chunk_tx_root: string;
|
|
24
|
+
outcome_root: string;
|
|
25
|
+
chunks_included: number;
|
|
26
|
+
challenges_root: string;
|
|
27
|
+
timestamp: number;
|
|
28
|
+
timestamp_nanosec: string;
|
|
29
|
+
random_value: string;
|
|
30
|
+
validator_proposals: any[];
|
|
31
|
+
chunk_mask: boolean[];
|
|
32
|
+
gas_price: string;
|
|
33
|
+
block_ordinal: number;
|
|
34
|
+
rent_paid: string;
|
|
35
|
+
validator_reward: string;
|
|
36
|
+
total_supply: string;
|
|
37
|
+
challenges_result: any[];
|
|
38
|
+
last_final_block: string;
|
|
39
|
+
last_ds_final_block: string;
|
|
40
|
+
next_bp_hash: string;
|
|
41
|
+
block_merkle_root: string;
|
|
42
|
+
epoch_sync_data_hash: string | null;
|
|
43
|
+
approvals: (string | null)[];
|
|
44
|
+
signature: string;
|
|
45
|
+
latest_protocol_version: number;
|
|
46
|
+
chunk_endorsements: number[][];
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block_response.js","sourceRoot":"","sources":["../../src/interface/block_response.ts"],"names":[],"mappings":"AAqDA,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface neardata_block_chunks_interface {
|
|
2
|
+
chunk_hash: string;
|
|
3
|
+
prev_block_hash: string;
|
|
4
|
+
outcome_root: string;
|
|
5
|
+
prev_state_root: string;
|
|
6
|
+
encoded_merkle_root: string;
|
|
7
|
+
encoded_length: number;
|
|
8
|
+
height_created: number;
|
|
9
|
+
height_included: number;
|
|
10
|
+
shard_id: number;
|
|
11
|
+
gas_used: number;
|
|
12
|
+
gas_limit: number;
|
|
13
|
+
rent_paid: string;
|
|
14
|
+
validator_reward: string;
|
|
15
|
+
balance_burnt: string;
|
|
16
|
+
outgoing_receipts_root: string;
|
|
17
|
+
tx_root: string;
|
|
18
|
+
validator_proposals: any[];
|
|
19
|
+
congestion_info: any;
|
|
20
|
+
bandwidth_requests: any;
|
|
21
|
+
signature: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block_response_block_chunks.js","sourceRoot":"","sources":["../../src/interface/block_response_block_chunks.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,4CAA4C;AAyB5C,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { neardata_transactions_interface } from "./transactions";
|
|
2
|
+
import type { neardata_receipt_interface, neardata_receipt_execution_outcome_interface } from "./receipts";
|
|
3
|
+
export interface neardata_shard_interface {
|
|
4
|
+
shard_id: number;
|
|
5
|
+
chunk: neardata_shard_chunk_interface;
|
|
6
|
+
receipt_execution_outcomes: neardata_receipt_execution_outcome_interface[];
|
|
7
|
+
state_changes: neardata_state_change_interface[];
|
|
8
|
+
}
|
|
9
|
+
export interface neardata_state_change_interface {
|
|
10
|
+
cause: {
|
|
11
|
+
receipt_hash?: string;
|
|
12
|
+
transaction_hash?: string;
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
change: {
|
|
16
|
+
account_id?: string;
|
|
17
|
+
amount?: string;
|
|
18
|
+
code_hash?: string;
|
|
19
|
+
locked?: string;
|
|
20
|
+
storage_paid_at?: number;
|
|
21
|
+
storage_usage?: number;
|
|
22
|
+
[key: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
type: string;
|
|
25
|
+
}
|
|
26
|
+
export interface neardata_shard_chunk_interface {
|
|
27
|
+
author: string;
|
|
28
|
+
header: {
|
|
29
|
+
chunk_hash: string;
|
|
30
|
+
prev_block_hash: string;
|
|
31
|
+
outcome_root: string;
|
|
32
|
+
prev_state_root: string;
|
|
33
|
+
encoded_merkle_root: string;
|
|
34
|
+
encoded_length: number;
|
|
35
|
+
height_created: number;
|
|
36
|
+
height_included: number;
|
|
37
|
+
shard_id: number;
|
|
38
|
+
gas_used: number;
|
|
39
|
+
gas_limit: number;
|
|
40
|
+
rent_paid: string;
|
|
41
|
+
validator_reward: string;
|
|
42
|
+
balance_burnt: string;
|
|
43
|
+
outgoing_receipts_root: string;
|
|
44
|
+
tx_root: string;
|
|
45
|
+
validator_proposals: any[];
|
|
46
|
+
congestion_info: {
|
|
47
|
+
delayed_receipts_gas: string;
|
|
48
|
+
buffered_receipts_gas: string;
|
|
49
|
+
receipt_bytes: number;
|
|
50
|
+
allowed_shard: number;
|
|
51
|
+
};
|
|
52
|
+
bandwidth_requests: {
|
|
53
|
+
V1: {
|
|
54
|
+
requests: any[];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
signature: string;
|
|
58
|
+
};
|
|
59
|
+
transactions: neardata_transactions_interface[];
|
|
60
|
+
receipts: neardata_receipt_interface[];
|
|
61
|
+
local_receipts: any[];
|
|
62
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block_response_shards.js","sourceRoot":"","sources":["../../src/interface/block_response_shards.ts"],"names":[],"mappings":"AA8EA,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type * from "./block_response.ts";
|
|
2
|
+
export type * from "./block_response_block_chunks.ts";
|
|
3
|
+
export type * from "./block_response_shards.ts";
|
|
4
|
+
export type * from "./receipts.ts";
|
|
5
|
+
export type * from "./transactions.ts";
|
|
6
|
+
export type * from "./transactions_actions_AddKey.ts";
|
|
7
|
+
export type * from "./transactions_actions_CreateAccount.ts";
|
|
8
|
+
export type * from "./transactions_actions_Delegate.ts";
|
|
9
|
+
export type * from "./transactions_actions_DeleteAccount.ts";
|
|
10
|
+
export type * from "./transactions_actions_FunctionCall.ts";
|
|
11
|
+
export type * from "./transactions_actions_Transfer.ts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAkBA,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { neardata_action_interface } from "./transactions";
|
|
2
|
+
import type { neardata_execution_outcome_interface } from "./transactions_outcome_interface";
|
|
3
|
+
export interface neardata_receipt_interface {
|
|
4
|
+
predecessor_id: string;
|
|
5
|
+
receiver_id: string;
|
|
6
|
+
receipt_id: string;
|
|
7
|
+
receipt: neardata_receipt_kind_interface;
|
|
8
|
+
priority: number;
|
|
9
|
+
}
|
|
10
|
+
export interface neardata_receipt_kind_interface {
|
|
11
|
+
Action?: neardata_action_receipt_interface;
|
|
12
|
+
Data?: neardata_data_receipt_interface;
|
|
13
|
+
}
|
|
14
|
+
export interface neardata_action_receipt_interface {
|
|
15
|
+
signer_id: string;
|
|
16
|
+
signer_public_key: string;
|
|
17
|
+
gas_price: string;
|
|
18
|
+
output_data_receivers: neardata_data_receiver_interface[];
|
|
19
|
+
input_data_ids: string[];
|
|
20
|
+
actions: neardata_action_interface[];
|
|
21
|
+
is_promise_yield: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface neardata_data_receiver_interface {
|
|
24
|
+
data_id: string;
|
|
25
|
+
receiver_id: string;
|
|
26
|
+
}
|
|
27
|
+
export interface neardata_data_receipt_interface {
|
|
28
|
+
data_id: string;
|
|
29
|
+
data: string | null;
|
|
30
|
+
is_promise_resume: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface neardata_receipt_execution_outcome_interface {
|
|
33
|
+
execution_outcome: neardata_execution_outcome_interface;
|
|
34
|
+
receipt: neardata_receipt_interface;
|
|
35
|
+
tx_hash: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receipts.js","sourceRoot":"","sources":["../../src/interface/receipts.ts"],"names":[],"mappings":"AA8DA,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { neardata_transactions_outcome_interface } from "./transactions_outcome_interface";
|
|
2
|
+
import type { neardata_function_call_action_interface } from "./transactions_actions_FunctionCall";
|
|
3
|
+
import type { neardata_transfer_action_interface } from "./transactions_actions_Transfer";
|
|
4
|
+
import type { neardata_delegate_action_interface } from "./transactions_actions_Delegate";
|
|
5
|
+
import type { neardata_add_key_action_interface } from "./transactions_actions_AddKey";
|
|
6
|
+
import type { neardata_delete_account_action_interface } from "./transactions_actions_DeleteAccount";
|
|
7
|
+
export interface neardata_transactions_interface {
|
|
8
|
+
transaction: neardata_transactions_transaction_interface;
|
|
9
|
+
outcome: neardata_transactions_outcome_interface;
|
|
10
|
+
}
|
|
11
|
+
export interface neardata_transactions_transaction_interface {
|
|
12
|
+
signer_id: string;
|
|
13
|
+
public_key: string;
|
|
14
|
+
nonce: number;
|
|
15
|
+
receiver_id: string;
|
|
16
|
+
actions: neardata_action_interface[];
|
|
17
|
+
priority_fee: number;
|
|
18
|
+
signature: string;
|
|
19
|
+
hash: string;
|
|
20
|
+
}
|
|
21
|
+
export type neardata_action_interface = "CreateAccount" | "DeleteAccount" | {
|
|
22
|
+
CreateAccount?: {};
|
|
23
|
+
DeleteAccount?: neardata_delete_account_action_interface;
|
|
24
|
+
AddKey?: neardata_add_key_action_interface;
|
|
25
|
+
FunctionCall?: neardata_function_call_action_interface;
|
|
26
|
+
Transfer?: neardata_transfer_action_interface;
|
|
27
|
+
Delegate?: neardata_delegate_action_interface;
|
|
28
|
+
[actionName: string]: unknown;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../src/interface/transactions.ts"],"names":[],"mappings":"AAgDA,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions_actions_AddKey.js","sourceRoot":"","sources":["../../src/interface/transactions_actions_AddKey.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,mDAAmD;AAiBnD,yDAAyD;AACzD,+BAA+B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ======================================================
|
|
2
|
+
// ====== neardata_create_account_action_interface =======
|
|
3
|
+
// ======================================================
|
|
4
|
+
// ====== neardata_action_interface =====================
|
|
5
|
+
// Note: Actions can be represented as either:
|
|
6
|
+
// - An object with the action type as key (e.g., { CreateAccount: {} })
|
|
7
|
+
// - A string for actions with no fields (e.g., "CreateAccount")
|
|
8
|
+
// This is handled in the zod schema via union types
|
|
9
|
+
// ======================================================
|
|
10
|
+
// copyright 2025 by sleet.near
|
|
11
|
+
//# sourceMappingURL=transactions_actions_CreateAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions_actions_CreateAccount.js","sourceRoot":"","sources":["../../src/interface/transactions_actions_CreateAccount.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,0DAA0D;AAM1D,yDAAyD;AACzD,yDAAyD;AAEzD,8CAA8C;AAC9C,wEAAwE;AACxE,gEAAgE;AAChE,oDAAoD;AAEpD,yDAAyD;AACzD,+BAA+B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { neardata_function_call_action_interface } from "./transactions_actions_FunctionCall";
|
|
2
|
+
import type { neardata_transfer_action_interface } from "./transactions_actions_Transfer";
|
|
3
|
+
import type { neardata_create_account_action_interface } from "./transactions_actions_CreateAccount";
|
|
4
|
+
import type { neardata_add_key_action_interface } from "./transactions_actions_AddKey";
|
|
5
|
+
export interface neardata_delegate_action_inner_action_interface {
|
|
6
|
+
CreateAccount?: neardata_create_account_action_interface;
|
|
7
|
+
AddKey?: neardata_add_key_action_interface;
|
|
8
|
+
FunctionCall?: neardata_function_call_action_interface;
|
|
9
|
+
Transfer?: neardata_transfer_action_interface;
|
|
10
|
+
[actionName: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface neardata_delegate_action_interface {
|
|
13
|
+
delegate_action: {
|
|
14
|
+
sender_id: string;
|
|
15
|
+
receiver_id: string;
|
|
16
|
+
actions: neardata_delegate_action_inner_action_interface[];
|
|
17
|
+
nonce: number;
|
|
18
|
+
max_block_height: number;
|
|
19
|
+
public_key: string;
|
|
20
|
+
};
|
|
21
|
+
signature: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions_actions_Delegate.js","sourceRoot":"","sources":["../../src/interface/transactions_actions_Delegate.ts"],"names":[],"mappings":"AAmCA,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// =======================================================
|
|
2
|
+
// ====== neardata_delete_account_action_interface =======
|
|
3
|
+
// ======================================================
|
|
4
|
+
// copyright 2025 by sleet.near
|
|
5
|
+
//# sourceMappingURL=transactions_actions_DeleteAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions_actions_DeleteAccount.js","sourceRoot":"","sources":["../../src/interface/transactions_actions_DeleteAccount.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,0DAA0D;AAM1D,yDAAyD;AACzD,+BAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions_actions_FunctionCall.js","sourceRoot":"","sources":["../../src/interface/transactions_actions_FunctionCall.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,yDAAyD;AASzD,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions_actions_Transfer.js","sourceRoot":"","sources":["../../src/interface/transactions_actions_Transfer.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,yDAAyD;AAMzD,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface neardata_transactions_outcome_interface {
|
|
2
|
+
execution_outcome: neardata_execution_outcome_interface;
|
|
3
|
+
receipt: neardata_receipt_interface | null;
|
|
4
|
+
}
|
|
5
|
+
export interface neardata_execution_outcome_interface {
|
|
6
|
+
proof: neardata_merkle_proof_node_interface[];
|
|
7
|
+
block_hash: string;
|
|
8
|
+
id: string;
|
|
9
|
+
outcome: neardata_outcome_interface;
|
|
10
|
+
}
|
|
11
|
+
export interface neardata_merkle_proof_node_interface {
|
|
12
|
+
hash: string;
|
|
13
|
+
direction: "Left" | "Right";
|
|
14
|
+
}
|
|
15
|
+
export interface neardata_outcome_interface {
|
|
16
|
+
logs: string[];
|
|
17
|
+
receipt_ids: string[];
|
|
18
|
+
gas_burnt: number;
|
|
19
|
+
tokens_burnt: string;
|
|
20
|
+
executor_id: string;
|
|
21
|
+
status: neardata_outcome_status_interface;
|
|
22
|
+
metadata: neardata_outcome_metadata_interface;
|
|
23
|
+
}
|
|
24
|
+
export interface neardata_outcome_metadata_interface {
|
|
25
|
+
version: number;
|
|
26
|
+
gas_profile: neardata_gas_profile_entry_interface[] | null;
|
|
27
|
+
}
|
|
28
|
+
export interface neardata_gas_profile_entry_interface {
|
|
29
|
+
cost: string;
|
|
30
|
+
cost_category: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
}
|
|
33
|
+
export type neardata_outcome_status_interface = {
|
|
34
|
+
SuccessValue: string;
|
|
35
|
+
} | {
|
|
36
|
+
SuccessReceiptId: string;
|
|
37
|
+
} | {
|
|
38
|
+
Failure: Record<string, unknown>;
|
|
39
|
+
};
|
|
40
|
+
export interface neardata_receipt_interface {
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions_outcome_interface.js","sourceRoot":"","sources":["../../src/interface/transactions_outcome_interface.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,yCAAyC"}
|