@kynesyslabs/demosdk 1.8.0 → 1.8.2

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.
@@ -5,9 +5,10 @@ import { DemoScript } from "../demoswork";
5
5
  import { IWeb2Request } from "../web2";
6
6
  import { XMScript } from "../xm";
7
7
  import { GCREdit } from "./GCREdit";
8
- export type TransactionContentData = ["web2Request", IWeb2Request] | ["crosschainOperation", XMScript] | ["demoswork", DemoScript];
8
+ import { INativePayload } from "../native";
9
+ export type TransactionContentData = ["web2Request", IWeb2Request] | ["crosschainOperation", XMScript] | ["native", INativePayload] | ["demoswork", DemoScript];
9
10
  export interface TransactionContent {
10
- type: "web2Request" | "crosschainOperation" | "demoswork" | "genesis";
11
+ type: "web2Request" | "crosschainOperation" | "native" | "demoswork" | "genesis";
11
12
  from: forge.pki.ed25519.BinaryBuffer | forge.pki.PublicKey | ISignature;
12
13
  to: forge.pki.ed25519.BinaryBuffer | forge.pki.PrivateKey | ISignature;
13
14
  amount: number;
@@ -0,0 +1,6 @@
1
+ interface INativeSend {
2
+ nativeOperation: "send";
3
+ args: [string, number];
4
+ }
5
+ export type INativePayload = INativeSend;
6
+ export {};
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // ! Add the native operation types here (start with send)
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=INativePayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"INativePayload.js","sourceRoot":"","sources":["../../../../src/types/native/INativePayload.ts"],"names":[],"mappings":";AAAA,0DAA0D"}
@@ -1,9 +1 @@
1
- export interface INativePayload {
2
- nativeOperation: string;
3
- args: any[];
4
- kwargs: {
5
- [key: string]: any;
6
- };
7
- resolved: boolean;
8
- result: boolean;
9
- }
1
+ export * from "./INativePayload";
@@ -1,3 +1,18 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./INativePayload"), exports);
3
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/native/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/native/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kynesyslabs/demosdk",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "author": "Kynesys Labs",