@xelis/sdk 0.11.28 → 0.11.29
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.
|
@@ -191,6 +191,11 @@ export interface ContractCall {
|
|
|
191
191
|
exclude: number[];
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
|
+
export type InterContractPermission = "none" | "all" | {
|
|
195
|
+
specific: ContractCall[];
|
|
196
|
+
} | {
|
|
197
|
+
exclude: ContractCall[];
|
|
198
|
+
};
|
|
194
199
|
export interface InvokeContractPayload {
|
|
195
200
|
contract: string;
|
|
196
201
|
deposits: {
|
|
@@ -199,11 +204,7 @@ export interface InvokeContractPayload {
|
|
|
199
204
|
entry_id: number;
|
|
200
205
|
max_gas: number;
|
|
201
206
|
parameters: number[][];
|
|
202
|
-
permission:
|
|
203
|
-
specific: ContractCall[];
|
|
204
|
-
} | {
|
|
205
|
-
exclude: ContractCall[];
|
|
206
|
-
};
|
|
207
|
+
permission: InterContractPermission;
|
|
207
208
|
}
|
|
208
209
|
export interface InvokeConstructorPayload {
|
|
209
210
|
max_gas: number;
|
|
@@ -550,7 +551,11 @@ export interface Module {
|
|
|
550
551
|
}
|
|
551
552
|
export interface GetContractModuleResult {
|
|
552
553
|
previous_topoheight: number | null;
|
|
553
|
-
|
|
554
|
+
topoheight: number;
|
|
555
|
+
data: {
|
|
556
|
+
module: Module | null;
|
|
557
|
+
version: string;
|
|
558
|
+
};
|
|
554
559
|
}
|
|
555
560
|
export interface GetContractDataResult {
|
|
556
561
|
previous_topoheight: number | null;
|
package/package.json
CHANGED