@solana/offchain-messages 0.0.0 → 5.1.0-canary-20251203213248
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/LICENSE +20 -0
- package/README.md +14 -0
- package/dist/index.browser.cjs +828 -0
- package/dist/index.browser.cjs.map +1 -0
- package/dist/index.browser.mjs +788 -0
- package/dist/index.browser.mjs.map +1 -0
- package/dist/index.native.mjs +788 -0
- package/dist/index.native.mjs.map +1 -0
- package/dist/index.node.cjs +828 -0
- package/dist/index.node.cjs.map +1 -0
- package/dist/index.node.mjs +788 -0
- package/dist/index.node.mjs.map +1 -0
- package/dist/types/application-domain.d.ts +93 -0
- package/dist/types/application-domain.d.ts.map +1 -0
- package/dist/types/codecs/application-domain.d.ts +54 -0
- package/dist/types/codecs/application-domain.d.ts.map +1 -0
- package/dist/types/codecs/content.d.ts +6 -0
- package/dist/types/codecs/content.d.ts.map +1 -0
- package/dist/types/codecs/envelope.d.ts +31 -0
- package/dist/types/codecs/envelope.d.ts.map +1 -0
- package/dist/types/codecs/message-v0.d.ts +33 -0
- package/dist/types/codecs/message-v0.d.ts.map +1 -0
- package/dist/types/codecs/message-v1.d.ts +33 -0
- package/dist/types/codecs/message-v1.d.ts.map +1 -0
- package/dist/types/codecs/message.d.ts +43 -0
- package/dist/types/codecs/message.d.ts.map +1 -0
- package/dist/types/codecs/preamble-common.d.ts +12 -0
- package/dist/types/codecs/preamble-common.d.ts.map +1 -0
- package/dist/types/codecs/preamble-v0.d.ts +6 -0
- package/dist/types/codecs/preamble-v0.d.ts.map +1 -0
- package/dist/types/codecs/preamble-v1.d.ts +6 -0
- package/dist/types/codecs/preamble-v1.d.ts.map +1 -0
- package/dist/types/codecs/signatures.d.ts +4 -0
- package/dist/types/codecs/signatures.d.ts.map +1 -0
- package/dist/types/codecs/signing-domain.d.ts +5 -0
- package/dist/types/codecs/signing-domain.d.ts.map +1 -0
- package/dist/types/content.d.ts +234 -0
- package/dist/types/content.d.ts.map +1 -0
- package/dist/types/envelope-common.d.ts +9 -0
- package/dist/types/envelope-common.d.ts.map +1 -0
- package/dist/types/envelope-v0.d.ts +11 -0
- package/dist/types/envelope-v0.d.ts.map +1 -0
- package/dist/types/envelope-v1.d.ts +11 -0
- package/dist/types/envelope-v1.d.ts.map +1 -0
- package/dist/types/envelope.d.ts +29 -0
- package/dist/types/envelope.d.ts.map +1 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/message-v0.d.ts +75 -0
- package/dist/types/message-v0.d.ts.map +1 -0
- package/dist/types/message-v1.d.ts +7 -0
- package/dist/types/message-v1.d.ts.map +1 -0
- package/dist/types/message.d.ts +7 -0
- package/dist/types/message.d.ts.map +1 -0
- package/dist/types/preamble-v0.d.ts +10 -0
- package/dist/types/preamble-v0.d.ts.map +1 -0
- package/dist/types/preamble-v1.d.ts +5 -0
- package/dist/types/preamble-v1.d.ts.map +1 -0
- package/dist/types/signatures.d.ts +138 -0
- package/dist/types/signatures.d.ts.map +1 -0
- package/dist/types/version.d.ts +2 -0
- package/dist/types/version.d.ts.map +1 -0
- package/package.json +85 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signatures.d.ts","sourceRoot":"","sources":["../../src/signatures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAoD,MAAM,mBAAmB,CAAC;AAS9F,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG,WAAW,CAAC,mCAAmC,EAAE,aAAa,CAAC,CAAC;AAEjH;;GAEG;AACH,MAAM,MAAM,wBAAwB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,CAAC;IAC9E,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC9B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,sCAAsC,CACnD,UAAU,SAAS,wBAAwB,GAAG,wBAAwB;IAEtE,mBAAmB,EAAE,SAAS,UAAU,EAAE,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,oCAAoC,CAAC,wBAAwB,SAAS,uBAAuB,EAC/G,QAAQ,EAAE,aAAa,EAAE,EACzB,uBAAuB,EAAE,wBAAwB,GAClD,OAAO,CAAC,wBAAwB,CAAC,CAsDnC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,2BAA2B,CAAC,wBAAwB,SAAS,uBAAuB,EACtG,QAAQ,EAAE,aAAa,EAAE,EACzB,uBAAuB,EAAE,wBAAwB,GAClD,OAAO,CAAC,kCAAkC,GAAG,wBAAwB,CAAC,CAKxE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oCAAoC,CAAC,SAAS,SAAS,uBAAuB,EAC1F,eAAe,EAAE,SAAS,GAC3B,eAAe,IAAI,kCAAkC,GAAG,SAAS,CAEnE;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,0CAA0C,CAAC,SAAS,SAAS,uBAAuB,EAChG,eAAe,EAAE,SAAS,GAC3B,OAAO,CAAC,eAAe,IAAI,kCAAkC,GAAG,SAAS,CAa3E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,6BAA6B,CAAC,uBAAuB,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyBnH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,CAAC,GAAG,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,90 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/offchain-messages",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "5.1.0-canary-20251203213248",
|
|
4
|
+
"description": "Helpers for encoding and decoding messages according to the offchain message specification",
|
|
5
|
+
"homepage": "https://www.solanakit.com/api#solanaoffchain-messages",
|
|
6
|
+
"exports": {
|
|
7
|
+
"edge-light": {
|
|
8
|
+
"import": "./dist/index.node.mjs",
|
|
9
|
+
"require": "./dist/index.node.cjs"
|
|
10
|
+
},
|
|
11
|
+
"workerd": {
|
|
12
|
+
"import": "./dist/index.node.mjs",
|
|
13
|
+
"require": "./dist/index.node.cjs"
|
|
14
|
+
},
|
|
15
|
+
"browser": {
|
|
16
|
+
"import": "./dist/index.browser.mjs",
|
|
17
|
+
"require": "./dist/index.browser.cjs"
|
|
18
|
+
},
|
|
19
|
+
"node": {
|
|
20
|
+
"import": "./dist/index.node.mjs",
|
|
21
|
+
"require": "./dist/index.node.cjs"
|
|
22
|
+
},
|
|
23
|
+
"react-native": "./dist/index.native.mjs",
|
|
24
|
+
"types": "./dist/types/index.d.ts"
|
|
25
|
+
},
|
|
26
|
+
"browser": {
|
|
27
|
+
"./dist/index.node.cjs": "./dist/index.browser.cjs",
|
|
28
|
+
"./dist/index.node.mjs": "./dist/index.browser.mjs"
|
|
29
|
+
},
|
|
30
|
+
"main": "./dist/index.node.cjs",
|
|
31
|
+
"module": "./dist/index.node.mjs",
|
|
32
|
+
"react-native": "./dist/index.native.mjs",
|
|
33
|
+
"types": "./dist/types/index.d.ts",
|
|
7
34
|
"type": "commonjs",
|
|
8
|
-
"
|
|
35
|
+
"files": [
|
|
36
|
+
"./dist/"
|
|
37
|
+
],
|
|
38
|
+
"sideEffects": false,
|
|
39
|
+
"keywords": [
|
|
40
|
+
"blockchain",
|
|
41
|
+
"solana",
|
|
42
|
+
"web3"
|
|
43
|
+
],
|
|
44
|
+
"author": "Solana Labs Maintainers <maintainers@solanalabs.com>",
|
|
45
|
+
"license": "MIT",
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "https://github.com/anza-xyz/kit"
|
|
49
|
+
},
|
|
50
|
+
"bugs": {
|
|
51
|
+
"url": "https://github.com/anza-xyz/kit/issues"
|
|
52
|
+
},
|
|
53
|
+
"browserslist": [
|
|
54
|
+
"supports bigint and not dead",
|
|
55
|
+
"maintained node versions"
|
|
56
|
+
],
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@solana/addresses": "5.1.0-canary-20251203213248",
|
|
59
|
+
"@solana/codecs-core": "5.1.0-canary-20251203213248",
|
|
60
|
+
"@solana/codecs-data-structures": "5.1.0-canary-20251203213248",
|
|
61
|
+
"@solana/codecs-numbers": "5.1.0-canary-20251203213248",
|
|
62
|
+
"@solana/codecs-strings": "5.1.0-canary-20251203213248",
|
|
63
|
+
"@solana/errors": "5.1.0-canary-20251203213248",
|
|
64
|
+
"@solana/nominal-types": "5.1.0-canary-20251203213248",
|
|
65
|
+
"@solana/keys": "5.1.0-canary-20251203213248"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"typescript": ">=5.3.3"
|
|
69
|
+
},
|
|
70
|
+
"engines": {
|
|
71
|
+
"node": ">=20.18.0"
|
|
72
|
+
},
|
|
9
73
|
"scripts": {
|
|
10
|
-
"
|
|
74
|
+
"compile:docs": "typedoc",
|
|
75
|
+
"compile:js": "tsup --config build-scripts/tsup.config.package.ts",
|
|
76
|
+
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
|
|
77
|
+
"dev": "NODE_OPTIONS=\"--localstorage-file=/tmp/node-localstorage-$(head /dev/urandom | tr -dc a-zA-Z0-9 | head -c 8)\" jest -c ../../node_modules/@solana/test-config/jest-dev.config.ts --rootDir . --watch",
|
|
78
|
+
"publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || (pnpm publish --tag ${PUBLISH_TAG:-canary} --access public --no-git-checks && (([ -n \"${GITHUB_OUTPUT:-}\" ] && echo 'published=true' >> \"$GITHUB_OUTPUT\") || true) && (([ \"$PUBLISH_TAG\" != \"canary\" ] && ../build-scripts/maybe-tag-latest.ts $npm_package_name@$npm_package_version) || true))",
|
|
79
|
+
"publish-packages": "pnpm prepublishOnly && pnpm publish-impl",
|
|
80
|
+
"style:fix": "pnpm eslint --fix src && pnpm prettier --log-level warn --ignore-unknown --write ./*",
|
|
81
|
+
"test:lint": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
|
|
82
|
+
"test:prettier": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
|
|
83
|
+
"test:treeshakability:browser": "agadoo dist/index.browser.mjs",
|
|
84
|
+
"test:treeshakability:native": "agadoo dist/index.native.mjs",
|
|
85
|
+
"test:treeshakability:node": "agadoo dist/index.node.mjs",
|
|
86
|
+
"test:typecheck": "tsc --noEmit",
|
|
87
|
+
"test:unit:browser": "NODE_OPTIONS=\"--localstorage-file=/tmp/node-localstorage-$(head /dev/urandom | tr -dc a-zA-Z0-9 | head -c 8)\" TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-unit.config.browser.ts --rootDir . --silent",
|
|
88
|
+
"test:unit:node": "NODE_OPTIONS=\"--localstorage-file=/tmp/node-localstorage-$(head /dev/urandom | tr -dc a-zA-Z0-9 | head -c 8)\" TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-unit.config.node.ts --rootDir . --silent"
|
|
11
89
|
}
|
|
12
|
-
}
|
|
90
|
+
}
|