@mainsail/evm 0.0.1-evm.6 → 0.0.1-evm.7
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/index.d.ts +12 -0
- package/package.json +5 -5
package/index.d.ts
CHANGED
|
@@ -66,6 +66,8 @@ export interface JsViewResult {
|
|
|
66
66
|
output?: Buffer
|
|
67
67
|
}
|
|
68
68
|
export interface JsTransactionReceipt {
|
|
69
|
+
blockHeight?: bigint
|
|
70
|
+
txHash?: string
|
|
69
71
|
gasUsed: bigint
|
|
70
72
|
gasRefunded: bigint
|
|
71
73
|
success: boolean
|
|
@@ -84,6 +86,14 @@ export interface JsAccountUpdate {
|
|
|
84
86
|
vote?: string
|
|
85
87
|
unvote?: string
|
|
86
88
|
}
|
|
89
|
+
export interface JsGetAccounts {
|
|
90
|
+
nextOffset?: bigint
|
|
91
|
+
accounts: Array<JsAccountUpdate>
|
|
92
|
+
}
|
|
93
|
+
export interface JsGetReceipts {
|
|
94
|
+
nextOffset?: bigint
|
|
95
|
+
receipts: Array<JsTransactionReceipt>
|
|
96
|
+
}
|
|
87
97
|
export type JsEvmWrapper = Evm
|
|
88
98
|
export declare class Evm {
|
|
89
99
|
constructor(path: string)
|
|
@@ -94,6 +104,8 @@ export declare class Evm {
|
|
|
94
104
|
calculateTopValidators(ctx: JsCalculateTopValidatorsContext): Promise<void>
|
|
95
105
|
updateRewardsAndVotes(ctx: JsUpdateRewardsAndVotesContext): Promise<void>
|
|
96
106
|
getAccountInfo(address: string): Promise<JsAccountInfo>
|
|
107
|
+
getAccounts(offset: bigint, limit: bigint): Promise<JsGetAccounts>
|
|
108
|
+
getReceipts(offset: bigint, limit: bigint): Promise<JsGetReceipts>
|
|
97
109
|
codeAt(address: string): Promise<string>
|
|
98
110
|
storageAt(address: string, slot: bigint): Promise<string>
|
|
99
111
|
commit(commitKey: JsCommitKey): Promise<JsCommitResult>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mainsail/evm",
|
|
3
|
-
"version": "0.0.1-evm.
|
|
3
|
+
"version": "0.0.1-evm.7",
|
|
4
4
|
"description": "EVM for the Mainsail blockchain",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"contributors": [],
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"optionalDependencies": {
|
|
28
|
-
"@mainsail/evm-linux-arm64-gnu": "0.0.1-evm.
|
|
29
|
-
"@mainsail/evm-linux-arm64-musl": "0.0.1-evm.
|
|
30
|
-
"@mainsail/evm-linux-x64-gnu": "0.0.1-evm.
|
|
31
|
-
"@mainsail/evm-linux-x64-musl": "0.0.1-evm.
|
|
28
|
+
"@mainsail/evm-linux-arm64-gnu": "0.0.1-evm.7",
|
|
29
|
+
"@mainsail/evm-linux-arm64-musl": "0.0.1-evm.7",
|
|
30
|
+
"@mainsail/evm-linux-x64-gnu": "0.0.1-evm.7",
|
|
31
|
+
"@mainsail/evm-linux-x64-musl": "0.0.1-evm.7"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"artifacts": "napi artifacts",
|