@wormhole-foundation/sdk-definitions 0.5.3 → 0.6.0

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.
@@ -0,0 +1,9 @@
1
+ export declare const boolItem: {
2
+ readonly binary: "uint";
3
+ readonly size: 1;
4
+ readonly custom: {
5
+ to: (encoded: number) => boolean;
6
+ from: (val: boolean) => number;
7
+ };
8
+ };
9
+ //# sourceMappingURL=boolean.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../../src/layout-items/boolean.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;sBAIH,MAAM,KAAG,OAAO;oBAClB,OAAO,KAAG,MAAM;;CAEG,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.boolItem = void 0;
4
+ exports.boolItem = {
5
+ binary: "uint",
6
+ size: 1,
7
+ custom: {
8
+ to: (encoded) => encoded > 0,
9
+ from: (val) => (val ? 1 : 0),
10
+ },
11
+ };
12
+ //# sourceMappingURL=boolean.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean.js","sourceRoot":"","sources":["../../../src/layout-items/boolean.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,CAAC;IACP,MAAM,EAAE;QACN,EAAE,EAAE,CAAC,OAAe,EAAW,EAAE,CAAC,OAAO,GAAG,CAAC;QAC7C,IAAI,EAAE,CAAC,GAAY,EAAU,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACF;CACZ,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./amount.js";
2
+ export * from "./boolean.js";
2
3
  export * from "./chain.js";
3
4
  export * from "./circle.js";
4
5
  export * from "./guardianSet.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layout-items/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layout-items/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC"}
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./amount.js"), exports);
18
+ __exportStar(require("./boolean.js"), exports);
18
19
  __exportStar(require("./chain.js"), exports);
19
20
  __exportStar(require("./circle.js"), exports);
20
21
  __exportStar(require("./guardianSet.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layout-items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,8CAA4B;AAC5B,mDAAiC;AACjC,iDAA+B;AAC/B,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layout-items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,mDAAiC;AACjC,iDAA+B;AAC/B,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC"}
@@ -0,0 +1,9 @@
1
+ export declare const boolItem: {
2
+ readonly binary: "uint";
3
+ readonly size: 1;
4
+ readonly custom: {
5
+ to: (encoded: number) => boolean;
6
+ from: (val: boolean) => number;
7
+ };
8
+ };
9
+ //# sourceMappingURL=boolean.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../../src/layout-items/boolean.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;sBAIH,MAAM,KAAG,OAAO;oBAClB,OAAO,KAAG,MAAM;;CAEG,CAAC"}
@@ -0,0 +1,9 @@
1
+ export const boolItem = {
2
+ binary: "uint",
3
+ size: 1,
4
+ custom: {
5
+ to: (encoded) => encoded > 0,
6
+ from: (val) => (val ? 1 : 0),
7
+ },
8
+ };
9
+ //# sourceMappingURL=boolean.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean.js","sourceRoot":"","sources":["../../../src/layout-items/boolean.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,CAAC;IACP,MAAM,EAAE;QACN,EAAE,EAAE,CAAC,OAAe,EAAW,EAAE,CAAC,OAAO,GAAG,CAAC;QAC7C,IAAI,EAAE,CAAC,GAAY,EAAU,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACF;CACZ,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./amount.js";
2
+ export * from "./boolean.js";
2
3
  export * from "./chain.js";
3
4
  export * from "./circle.js";
4
5
  export * from "./guardianSet.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layout-items/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layout-items/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./amount.js";
2
+ export * from "./boolean.js";
2
3
  export * from "./chain.js";
3
4
  export * from "./circle.js";
4
5
  export * from "./guardianSet.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layout-items/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layout-items/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wormhole-foundation/sdk-definitions",
3
- "version": "0.5.3",
3
+ "version": "0.6.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/wormhole-foundation/connect-sdk.git"
@@ -66,7 +66,7 @@
66
66
  "dependencies": {
67
67
  "@noble/hashes": "^1.3.1",
68
68
  "@noble/curves": "^1.4.0",
69
- "@wormhole-foundation/sdk-base": "0.5.3"
69
+ "@wormhole-foundation/sdk-base": "0.6.0"
70
70
  },
71
71
  "type": "module"
72
72
  }