@wormhole-foundation/sdk-solana-core 0.6.1 → 0.6.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.
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/postMessageLayout.d.ts +2 -0
- package/dist/cjs/postMessageLayout.d.ts.map +1 -1
- package/dist/cjs/postMessageLayout.js +5 -1
- package/dist/cjs/postMessageLayout.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/postMessageLayout.d.ts +2 -0
- package/dist/esm/postMessageLayout.d.ts.map +1 -1
- package/dist/esm/postMessageLayout.js +4 -1
- package/dist/esm/postMessageLayout.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,cAAc,wBAAwB,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -34,4 +34,5 @@ const core_js_1 = require("./core.js");
|
|
|
34
34
|
__exportStar(require("./core.js"), exports);
|
|
35
35
|
__exportStar(require("./types.js"), exports);
|
|
36
36
|
exports.utils = __importStar(require("./utils/index.js"));
|
|
37
|
+
__exportStar(require("./postMessageLayout.js"), exports);
|
|
37
38
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAA4D;AAC5D,kEAAoE;AACpE,uCAA+C;AAE/C,IAAA,8BAAgB,EAAC,sBAAS,EAAE,cAAc,EAAE,4BAAkB,CAAC,CAAC;AAEhE,4CAA0B;AAC1B,6CAA2B;AAC3B,0DAA0C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAA4D;AAC5D,kEAAoE;AACpE,uCAA+C;AAE/C,IAAA,8BAAgB,EAAC,sBAAS,EAAE,cAAc,EAAE,4BAAkB,CAAC,CAAC;AAEhE,4CAA0B;AAC1B,6CAA2B;AAC3B,0DAA0C;AAC1C,yDAAuC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LayoutToType } from '@wormhole-foundation/sdk-connect';
|
|
1
2
|
/** Binary layout for postMessage account */
|
|
2
3
|
export declare const postMessageLayout: readonly [{
|
|
3
4
|
readonly name: "discriminator";
|
|
@@ -62,4 +63,5 @@ export declare const postMessageLayout: readonly [{
|
|
|
62
63
|
readonly name: "payload";
|
|
63
64
|
readonly binary: "bytes";
|
|
64
65
|
}];
|
|
66
|
+
export declare function deserializePostMessage(data: Uint8Array): LayoutToType<typeof postMessageLayout>;
|
|
65
67
|
//# sourceMappingURL=postMessageLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postMessageLayout.d.ts","sourceRoot":"","sources":["../../src/postMessageLayout.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"postMessageLayout.d.ts","sourceRoot":"","sources":["../../src/postMessageLayout.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EAGb,MAAM,kCAAkC,CAAC;AAE1C,4CAA4C;AAC5C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaH,CAAC;AAE5B,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,UAAU,GACf,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAExC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.postMessageLayout = void 0;
|
|
3
|
+
exports.deserializePostMessage = exports.postMessageLayout = void 0;
|
|
4
4
|
const sdk_connect_1 = require("@wormhole-foundation/sdk-connect");
|
|
5
5
|
/** Binary layout for postMessage account */
|
|
6
6
|
exports.postMessageLayout = [
|
|
@@ -17,4 +17,8 @@ exports.postMessageLayout = [
|
|
|
17
17
|
{ name: 'payloadLength', binary: 'uint', size: 4, endianness: 'little' },
|
|
18
18
|
{ name: 'payload', binary: 'bytes' },
|
|
19
19
|
];
|
|
20
|
+
function deserializePostMessage(data) {
|
|
21
|
+
return (0, sdk_connect_1.deserializeLayout)(exports.postMessageLayout, data);
|
|
22
|
+
}
|
|
23
|
+
exports.deserializePostMessage = deserializePostMessage;
|
|
20
24
|
//# sourceMappingURL=postMessageLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postMessageLayout.js","sourceRoot":"","sources":["../../src/postMessageLayout.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"postMessageLayout.js","sourceRoot":"","sources":["../../src/postMessageLayout.ts"],"names":[],"mappings":";;;AACA,kEAI0C;AAE1C,4CAA4C;AAC/B,QAAA,iBAAiB,GAAG;IAC/B,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE;IACnD,EAA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.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,cAAc,wBAAwB,CAAC"}
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,gBAAgB,CAAC,SAAS,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAC;AAEhE,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,gBAAgB,CAAC,SAAS,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAC;AAEhE,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LayoutToType } from '@wormhole-foundation/sdk-connect';
|
|
1
2
|
/** Binary layout for postMessage account */
|
|
2
3
|
export declare const postMessageLayout: readonly [{
|
|
3
4
|
readonly name: "discriminator";
|
|
@@ -62,4 +63,5 @@ export declare const postMessageLayout: readonly [{
|
|
|
62
63
|
readonly name: "payload";
|
|
63
64
|
readonly binary: "bytes";
|
|
64
65
|
}];
|
|
66
|
+
export declare function deserializePostMessage(data: Uint8Array): LayoutToType<typeof postMessageLayout>;
|
|
65
67
|
//# sourceMappingURL=postMessageLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postMessageLayout.d.ts","sourceRoot":"","sources":["../../src/postMessageLayout.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"postMessageLayout.d.ts","sourceRoot":"","sources":["../../src/postMessageLayout.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EAGb,MAAM,kCAAkC,CAAC;AAE1C,4CAA4C;AAC5C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaH,CAAC;AAE5B,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,UAAU,GACf,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAExC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { layoutItems } from '@wormhole-foundation/sdk-connect';
|
|
1
|
+
import { deserializeLayout, layoutItems, } from '@wormhole-foundation/sdk-connect';
|
|
2
2
|
/** Binary layout for postMessage account */
|
|
3
3
|
export const postMessageLayout = [
|
|
4
4
|
{ name: 'discriminator', binary: 'bytes', size: 4 },
|
|
@@ -14,4 +14,7 @@ export const postMessageLayout = [
|
|
|
14
14
|
{ name: 'payloadLength', binary: 'uint', size: 4, endianness: 'little' },
|
|
15
15
|
{ name: 'payload', binary: 'bytes' },
|
|
16
16
|
];
|
|
17
|
+
export function deserializePostMessage(data) {
|
|
18
|
+
return deserializeLayout(postMessageLayout, data);
|
|
19
|
+
}
|
|
17
20
|
//# sourceMappingURL=postMessageLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postMessageLayout.js","sourceRoot":"","sources":["../../src/postMessageLayout.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"postMessageLayout.js","sourceRoot":"","sources":["../../src/postMessageLayout.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EACjB,WAAW,GACZ,MAAM,kCAAkC,CAAC;AAE1C,4CAA4C;AAC5C,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE;IACnD,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE;IAC3E,EAAE,IAAI,EAAE,kBAAkB,EAAE,GAAG,WAAW,CAAC,oBAAoB,EAAE;IACjE,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE;IACxE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;IACxC,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE;IACpE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE;IAChE,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE;IACnE,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE;IACvE,EAAE,IAAI,EAAE,gBAAgB,EAAE,GAAG,WAAW,CAAC,oBAAoB,EAAE;IAC/D,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE;IACxE,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE;CACX,CAAC;AAE5B,MAAM,UAAU,sBAAsB,CACpC,IAAgB;IAEhB,OAAO,iBAAiB,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wormhole-foundation/sdk-solana-core",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/wormhole-foundation/connect-sdk.git"
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"prettier": "prettier --write ./src"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@wormhole-foundation/sdk-connect": "0.6.
|
|
49
|
-
"@wormhole-foundation/sdk-solana": "0.6.
|
|
48
|
+
"@wormhole-foundation/sdk-connect": "0.6.2",
|
|
49
|
+
"@wormhole-foundation/sdk-solana": "0.6.2",
|
|
50
50
|
"@coral-xyz/borsh": "0.29.0",
|
|
51
51
|
"@coral-xyz/anchor": "0.29.0",
|
|
52
52
|
"@solana/web3.js": "1.91.7"
|