@xelis/sdk 0.11.38 → 0.11.40

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.
@@ -636,7 +636,7 @@ export type Access = "all" | "internal" | {
636
636
  export interface Module {
637
637
  chunks: (Chunk | Access)[];
638
638
  constants: any[];
639
- hook_entry_ids: number[];
639
+ hook_chunk_ids: number[];
640
640
  }
641
641
  export interface GetContractModuleResult {
642
642
  previous_topoheight: number | null;
@@ -755,7 +755,7 @@ export interface GetContractScheduledExecutionsAtTopoheightParams {
755
755
  export interface ScheduledExecution {
756
756
  hash: string;
757
757
  contract: string;
758
- entry_id: number;
758
+ chunk_id: number;
759
759
  params: any[];
760
760
  max_gas: number;
761
761
  }
@@ -828,7 +828,34 @@ export interface ContractLogScheduledExecution {
828
828
  kind: "topo_height" | "block_end";
829
829
  };
830
830
  }
831
- export type ContractLog = ContractLogRefundGas | ContractLogTransfer | ContractLogTransferContract | ContractLogMint | ContractLogBurn | ContractLogNewAsset | ContractLogExitCode | ContractLogRefundDeposits | ContractLogGasInjection | ContractLogScheduledExecution;
831
+ export interface ContractLogExitPayload {
832
+ type: "exit_payload";
833
+ value: {
834
+ payload: any;
835
+ };
836
+ }
837
+ export interface ContractLogTransferPayload {
838
+ type: "transfer_payload";
839
+ value: {
840
+ contract: string;
841
+ amount: number;
842
+ asset: string;
843
+ destination: string;
844
+ payload: any;
845
+ };
846
+ }
847
+ export type ExitErrorCode = "INVALID_ENTRY_PAYLOAD_RETURN" | "UNKNOWN_HOOK" | "INVALID_ENTRY" | "MISSING_ENTRY_EXIT_CODE" | "ILLEGAL_STATE" | "DIVISION_BY_ZERO" | "ASSERTION_FAILED" | "OUT_OF_BOUNDS" | "OUT_OF_MEMORY" | "NOT_ENOUGH_GAS" | "GAS_OVERFLOW" | "RUNTIME_ERROR";
848
+ export interface ExitError {
849
+ code: ExitErrorCode;
850
+ message: string;
851
+ }
852
+ export interface ContractLogExitError {
853
+ type: "exit_error";
854
+ value: {
855
+ err: ExitError;
856
+ };
857
+ }
858
+ export type ContractLog = ContractLogRefundGas | ContractLogTransfer | ContractLogTransferContract | ContractLogMint | ContractLogBurn | ContractLogNewAsset | ContractLogExitCode | ContractLogRefundDeposits | ContractLogGasInjection | ContractLogScheduledExecution | ContractLogExitPayload | ContractLogTransferPayload | ContractLogExitError;
832
859
  export interface PredicatedBaseFeeResult {
833
860
  fee_per_kb: number;
834
861
  predicated_fee_per_kb: number;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.11.38",
2
+ "version": "0.11.40",
3
3
  "name": "@xelis/sdk",
4
4
  "description": "Xelis software development kit for JS",
5
5
  "exports": {