@kynesyslabs/demosdk 1.0.7 → 1.0.8

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.
@@ -1,6 +1,11 @@
1
1
  import * as forge from 'node-forge';
2
2
  import { ISignature } from './ISignature';
3
3
  import { TxFee } from './TxFee';
4
+ import { IWeb2Request } from '../web2';
5
+ import { XMScript } from '../xm';
6
+ export type XMPayload = ["xm", XMScript];
7
+ export type Web2Payload = ["web2", IWeb2Request];
8
+ export type NativePayload = ["native", any];
4
9
  export interface TransactionContent {
5
10
  type: string;
6
11
  from: forge.pki.ed25519.BinaryBuffer | forge.pki.PublicKey | ISignature;
@@ -15,3 +15,4 @@ export { ExecutionResult } from './network/ExecutionResult';
15
15
  export { ISecurityReport, SIComlink, SIResponseRegistry, } from './network/SecurityTypes';
16
16
  export { IPeerConfig } from './peers/Peer';
17
17
  export { IParam, IRawWeb2Request, IWeb2Attestation, IWeb2Payload, IWeb2Request, IWeb2Result, } from './web2';
18
+ export { XMScript, ITask, IOperation, } from './xm';
@@ -0,0 +1,18 @@
1
+ export interface ITask {
2
+ type: string;
3
+ params: any;
4
+ signedPayloads: any[];
5
+ }
6
+ export interface IOperation {
7
+ chain: string;
8
+ subchain: string;
9
+ is_evm: boolean;
10
+ rpc: string;
11
+ task: ITask;
12
+ }
13
+ export interface XMScript {
14
+ operations: {
15
+ [key: string]: IOperation;
16
+ };
17
+ operations_order: string[];
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/xm/index.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kynesyslabs/demosdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "author": "Kynesys Labs",