@xelis/sdk 0.11.39 → 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.
@@ -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.39",
2
+ "version": "0.11.40",
3
3
  "name": "@xelis/sdk",
4
4
  "description": "Xelis software development kit for JS",
5
5
  "exports": {