@xelis/sdk 0.11.41 → 0.11.43
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.
|
@@ -73,8 +73,8 @@ export declare class RPC extends HttpRPC {
|
|
|
73
73
|
getContractRegisteredExecutionsAtTopoheight(params: types.GetContractScheduledExecutionsAtTopoheightParams): Promise<[number, string][]>;
|
|
74
74
|
getContractsOutputs(params: types.GetContractOutputsParams): Promise<types.GetContractsOutputsResult>;
|
|
75
75
|
getContractModule(params: types.GetContractModuleParams): Promise<types.GetContractModuleResult>;
|
|
76
|
-
getContractData(params: types.GetContractDataParams): Promise<
|
|
77
|
-
getContractDataAtTopoheight(params: types.GetContractDataAtTopoheightParams): Promise<
|
|
76
|
+
getContractData(params: types.GetContractDataParams): Promise<types.GetContractDataResult>;
|
|
77
|
+
getContractDataAtTopoheight(params: types.GetContractDataAtTopoheightParams): Promise<types.GetContractDataAtTopoHeightResult>;
|
|
78
78
|
getContractBalance(params: types.GetContractBalanceParams): Promise<types.GetContractBalanceResult>;
|
|
79
79
|
getContractBalanceAtTopoheight(params: types.GetContractBalanceAtTopoheightParams): Promise<types.GetContractBalanceAtTopoheightResult>;
|
|
80
80
|
getContractAssets(params: types.GetContractBalancesParams): Promise<string[]>;
|
|
@@ -654,6 +654,11 @@ export interface GetContractModuleResult {
|
|
|
654
654
|
};
|
|
655
655
|
}
|
|
656
656
|
export interface GetContractDataResult {
|
|
657
|
+
previous_topoheight: number | null;
|
|
658
|
+
topoheight: number;
|
|
659
|
+
data: any | null;
|
|
660
|
+
}
|
|
661
|
+
export interface GetContractDataAtTopoHeightResult {
|
|
657
662
|
previous_topoheight: number | null;
|
|
658
663
|
data: any | null;
|
|
659
664
|
}
|
|
@@ -837,7 +842,17 @@ export interface ContractLogScheduledExecution {
|
|
|
837
842
|
value: {
|
|
838
843
|
contract: string;
|
|
839
844
|
hash: string;
|
|
840
|
-
kind:
|
|
845
|
+
kind: {
|
|
846
|
+
topo_height: {
|
|
847
|
+
topoheight: number;
|
|
848
|
+
};
|
|
849
|
+
} | {
|
|
850
|
+
block_end: {
|
|
851
|
+
chunk_id: number;
|
|
852
|
+
max_gas: number;
|
|
853
|
+
params: [];
|
|
854
|
+
};
|
|
855
|
+
};
|
|
841
856
|
};
|
|
842
857
|
}
|
|
843
858
|
export interface ContractLogExitPayload {
|
|
@@ -171,8 +171,8 @@ export declare class DaemonMethods {
|
|
|
171
171
|
getContractRegisteredExecutionsAtTopoheight(params: types.GetContractScheduledExecutionsAtTopoheightParams): Promise<[number, string][]>;
|
|
172
172
|
getContractsOutputs(params: types.GetContractOutputsParams): Promise<types.GetContractsOutputsResult>;
|
|
173
173
|
getContractModule(params: types.GetContractModuleParams): Promise<types.GetContractModuleResult>;
|
|
174
|
-
getContractData(params: types.GetContractDataParams): Promise<
|
|
175
|
-
getContractDataAtTopoheight(params: types.GetContractDataAtTopoheightParams): Promise<
|
|
174
|
+
getContractData(params: types.GetContractDataParams): Promise<types.GetContractDataResult>;
|
|
175
|
+
getContractDataAtTopoheight(params: types.GetContractDataAtTopoheightParams): Promise<types.GetContractDataAtTopoHeightResult>;
|
|
176
176
|
getContractBalance(params: types.GetContractBalanceParams): Promise<types.GetContractBalanceResult>;
|
|
177
177
|
getContractBalanceAtTopoheight(params: types.GetContractBalanceAtTopoheightParams): Promise<types.GetContractBalanceAtTopoheightResult>;
|
|
178
178
|
getContractAssets(params: types.GetContractBalancesParams): Promise<string[]>;
|
package/package.json
CHANGED