@xelis/sdk 0.11.28 → 0.11.30
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/cjs/daemon/rpc.js +0 -3
- package/dist/cjs/daemon/types.js +0 -1
- package/dist/cjs/daemon/websocket.js +0 -3
- package/dist/esm/daemon/rpc.js +0 -3
- package/dist/esm/daemon/types.js +0 -1
- package/dist/esm/daemon/websocket.js +0 -3
- package/dist/types/daemon/rpc.d.ts +0 -1
- package/dist/types/daemon/types.d.ts +11 -15
- package/dist/types/daemon/websocket.d.ts +0 -1
- package/dist/types/wallet/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/daemon/rpc.js
CHANGED
|
@@ -190,9 +190,6 @@ class RPC extends http_1.HttpRPC {
|
|
|
190
190
|
getContractRegisteredExecutionsAtTopoheight(params) {
|
|
191
191
|
return this.request(types_1.RPCMethod.GetContractRegisteredExecutionsAtTopoheight, params);
|
|
192
192
|
}
|
|
193
|
-
getContractOutputs(params) {
|
|
194
|
-
return this.request(types_1.RPCMethod.GetContractOutputs, params);
|
|
195
|
-
}
|
|
196
193
|
getContractModule(params) {
|
|
197
194
|
return this.request(types_1.RPCMethod.GetContractModule, params);
|
|
198
195
|
}
|
package/dist/cjs/daemon/types.js
CHANGED
|
@@ -78,7 +78,6 @@ var RPCMethod;
|
|
|
78
78
|
RPCMethod["GetContractLogs"] = "get_contract_logs";
|
|
79
79
|
RPCMethod["GetContractScheduledExecutionsAtTopoheight"] = "get_contract_scheduled_executions_at_topoheight";
|
|
80
80
|
RPCMethod["GetContractRegisteredExecutionsAtTopoheight"] = "get_contract_registered_executions_at_topoheight";
|
|
81
|
-
RPCMethod["GetContractOutputs"] = "get_contract_outputs";
|
|
82
81
|
RPCMethod["GetContractModule"] = "get_contract_module";
|
|
83
82
|
RPCMethod["GetContractData"] = "get_contract_data";
|
|
84
83
|
RPCMethod["GetContractDataAtTopoheight"] = "get_contract_data_at_topoheight";
|
|
@@ -209,9 +209,6 @@ class DaemonMethods {
|
|
|
209
209
|
getContractRegisteredExecutionsAtTopoheight(params) {
|
|
210
210
|
return this.dataCall(types_1.RPCMethod.GetContractRegisteredExecutionsAtTopoheight, params);
|
|
211
211
|
}
|
|
212
|
-
getContractOutputs(params) {
|
|
213
|
-
return this.dataCall(types_1.RPCMethod.GetContractOutputs, params);
|
|
214
|
-
}
|
|
215
212
|
getContractModule(params) {
|
|
216
213
|
return this.dataCall(types_1.RPCMethod.GetContractModule, params);
|
|
217
214
|
}
|
package/dist/esm/daemon/rpc.js
CHANGED
|
@@ -187,9 +187,6 @@ export class RPC extends HttpRPC {
|
|
|
187
187
|
getContractRegisteredExecutionsAtTopoheight(params) {
|
|
188
188
|
return this.request(RPCMethod.GetContractRegisteredExecutionsAtTopoheight, params);
|
|
189
189
|
}
|
|
190
|
-
getContractOutputs(params) {
|
|
191
|
-
return this.request(RPCMethod.GetContractOutputs, params);
|
|
192
|
-
}
|
|
193
190
|
getContractModule(params) {
|
|
194
191
|
return this.request(RPCMethod.GetContractModule, params);
|
|
195
192
|
}
|
package/dist/esm/daemon/types.js
CHANGED
|
@@ -75,7 +75,6 @@ export var RPCMethod;
|
|
|
75
75
|
RPCMethod["GetContractLogs"] = "get_contract_logs";
|
|
76
76
|
RPCMethod["GetContractScheduledExecutionsAtTopoheight"] = "get_contract_scheduled_executions_at_topoheight";
|
|
77
77
|
RPCMethod["GetContractRegisteredExecutionsAtTopoheight"] = "get_contract_registered_executions_at_topoheight";
|
|
78
|
-
RPCMethod["GetContractOutputs"] = "get_contract_outputs";
|
|
79
78
|
RPCMethod["GetContractModule"] = "get_contract_module";
|
|
80
79
|
RPCMethod["GetContractData"] = "get_contract_data";
|
|
81
80
|
RPCMethod["GetContractDataAtTopoheight"] = "get_contract_data_at_topoheight";
|
|
@@ -206,9 +206,6 @@ export class DaemonMethods {
|
|
|
206
206
|
getContractRegisteredExecutionsAtTopoheight(params) {
|
|
207
207
|
return this.dataCall(RPCMethod.GetContractRegisteredExecutionsAtTopoheight, params);
|
|
208
208
|
}
|
|
209
|
-
getContractOutputs(params) {
|
|
210
|
-
return this.dataCall(RPCMethod.GetContractOutputs, params);
|
|
211
|
-
}
|
|
212
209
|
getContractModule(params) {
|
|
213
210
|
return this.dataCall(RPCMethod.GetContractModule, params);
|
|
214
211
|
}
|
|
@@ -63,7 +63,6 @@ export declare class RPC extends HttpRPC {
|
|
|
63
63
|
getContractLogs(params: types.GetContractLogsParams): Promise<types.ContractLog[]>;
|
|
64
64
|
getContractScheduledExecutionsAtTopoheight(params: types.GetContractScheduledExecutionsAtTopoheightParams): Promise<types.ScheduledExecution[]>;
|
|
65
65
|
getContractRegisteredExecutionsAtTopoheight(params: types.GetContractScheduledExecutionsAtTopoheightParams): Promise<[number, string][]>;
|
|
66
|
-
getContractOutputs(params: types.GetContractOutputsParams): Promise<types.ContractOutputs>;
|
|
67
66
|
getContractModule(params: types.GetContractModuleParams): Promise<types.GetContractModuleResult>;
|
|
68
67
|
getContractData(params: types.GetContractDataParams): Promise<unknown>;
|
|
69
68
|
getContractDataAtTopoheight(params: types.GetContractDataAtTopoheightParams): Promise<unknown>;
|
|
@@ -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;
|
|
@@ -505,10 +506,6 @@ export interface HasMultisigParams {
|
|
|
505
506
|
address: string;
|
|
506
507
|
topoheight?: number;
|
|
507
508
|
}
|
|
508
|
-
export interface GetContractOutputsParams {
|
|
509
|
-
address: string;
|
|
510
|
-
topoheight: number;
|
|
511
|
-
}
|
|
512
509
|
export interface GetContractModuleParams {
|
|
513
510
|
contract: string;
|
|
514
511
|
}
|
|
@@ -550,7 +547,11 @@ export interface Module {
|
|
|
550
547
|
}
|
|
551
548
|
export interface GetContractModuleResult {
|
|
552
549
|
previous_topoheight: number | null;
|
|
553
|
-
|
|
550
|
+
topoheight: number;
|
|
551
|
+
data: {
|
|
552
|
+
module: Module | null;
|
|
553
|
+
version: string;
|
|
554
|
+
};
|
|
554
555
|
}
|
|
555
556
|
export interface GetContractDataResult {
|
|
556
557
|
previous_topoheight: number | null;
|
|
@@ -735,10 +736,6 @@ export interface ContractLogScheduledExecution {
|
|
|
735
736
|
};
|
|
736
737
|
}
|
|
737
738
|
export type ContractLog = ContractLogRefundGas | ContractLogTransfer | ContractLogTransferContract | ContractLogMint | ContractLogBurn | ContractLogNewAsset | ContractLogExitCode | ContractLogRefundDeposits | ContractLogGasInjection | ContractLogScheduledExecution;
|
|
738
|
-
export interface ContractOutputs {
|
|
739
|
-
caller: string;
|
|
740
|
-
outputs: ContractLog[];
|
|
741
|
-
}
|
|
742
739
|
export interface PredicatedBaseFeeResult {
|
|
743
740
|
fee_per_kb: number;
|
|
744
741
|
predicated_fee_per_kb: number;
|
|
@@ -813,7 +810,6 @@ export declare enum RPCMethod {
|
|
|
813
810
|
GetContractLogs = "get_contract_logs",
|
|
814
811
|
GetContractScheduledExecutionsAtTopoheight = "get_contract_scheduled_executions_at_topoheight",
|
|
815
812
|
GetContractRegisteredExecutionsAtTopoheight = "get_contract_registered_executions_at_topoheight",
|
|
816
|
-
GetContractOutputs = "get_contract_outputs",
|
|
817
813
|
GetContractModule = "get_contract_module",
|
|
818
814
|
GetContractData = "get_contract_data",
|
|
819
815
|
GetContractDataAtTopoheight = "get_contract_data_at_topoheight",
|
|
@@ -161,7 +161,6 @@ export declare class DaemonMethods {
|
|
|
161
161
|
getContractLogs(params: types.GetContractLogsParams): Promise<types.ContractLog[]>;
|
|
162
162
|
getContractScheduledExecutionsAtTopoheight(params: types.GetContractScheduledExecutionsAtTopoheightParams): Promise<types.ScheduledExecution[]>;
|
|
163
163
|
getContractRegisteredExecutionsAtTopoheight(params: types.GetContractScheduledExecutionsAtTopoheightParams): Promise<[number, string][]>;
|
|
164
|
-
getContractOutputs(params: types.GetContractOutputsParams): Promise<types.ContractOutputs>;
|
|
165
164
|
getContractModule(params: types.GetContractModuleParams): Promise<types.GetContractModuleResult>;
|
|
166
165
|
getContractData(params: types.GetContractDataParams): Promise<unknown>;
|
|
167
166
|
getContractDataAtTopoheight(params: types.GetContractDataAtTopoheightParams): Promise<unknown>;
|
package/package.json
CHANGED