@xelis/sdk 0.11.20 → 0.11.22
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/dist/types/daemon/types.d.ts +25 -0
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ export interface Block {
|
|
|
28
28
|
miner_reward?: number;
|
|
29
29
|
cumulative_difficulty: string;
|
|
30
30
|
total_fees?: number;
|
|
31
|
+
total_fees_burned?: number;
|
|
31
32
|
total_size_in_bytes: number;
|
|
32
33
|
version: number;
|
|
33
34
|
tips: string[];
|
|
@@ -182,6 +183,14 @@ export interface MultiSigPayload {
|
|
|
182
183
|
export interface ContractDeposit {
|
|
183
184
|
public: number;
|
|
184
185
|
}
|
|
186
|
+
export interface ContractCall {
|
|
187
|
+
contract: string;
|
|
188
|
+
chunk: "all" | {
|
|
189
|
+
specific: number[];
|
|
190
|
+
} | {
|
|
191
|
+
exclude: number[];
|
|
192
|
+
};
|
|
193
|
+
}
|
|
185
194
|
export interface InvokeContractPayload {
|
|
186
195
|
contract: string;
|
|
187
196
|
deposits: {
|
|
@@ -190,6 +199,11 @@ export interface InvokeContractPayload {
|
|
|
190
199
|
entry_id: number;
|
|
191
200
|
max_gas: number;
|
|
192
201
|
parameters: number[][];
|
|
202
|
+
permission: "none" | "all" | {
|
|
203
|
+
specific: ContractCall[];
|
|
204
|
+
} | {
|
|
205
|
+
exclude: ContractCall[];
|
|
206
|
+
};
|
|
193
207
|
}
|
|
194
208
|
export interface InvokeConstructorPayload {
|
|
195
209
|
max_gas: number;
|
|
@@ -582,8 +596,19 @@ export interface ContractTransfer {
|
|
|
582
596
|
block_hash: string;
|
|
583
597
|
topoheight: number;
|
|
584
598
|
}
|
|
599
|
+
export interface ContractEventSource {
|
|
600
|
+
contract: string;
|
|
601
|
+
id: number;
|
|
602
|
+
}
|
|
603
|
+
export interface ContractEventMetadata {
|
|
604
|
+
block_hash: string;
|
|
605
|
+
topoheight: number;
|
|
606
|
+
}
|
|
585
607
|
export interface ContractEvent {
|
|
586
608
|
data: any;
|
|
609
|
+
meta: ContractEventMetadata;
|
|
610
|
+
contract_event: ContractEventSource;
|
|
611
|
+
raw: any;
|
|
587
612
|
}
|
|
588
613
|
export interface GetContractLogsParams {
|
|
589
614
|
caller: string;
|
package/package.json
CHANGED