@talismn/solana 1.0.2 → 1.0.4

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/README.md CHANGED
@@ -1,3 +1,9 @@
1
1
  # @talismn/solana
2
2
 
3
- Types and utilities for Solana
3
+ Types and utilities for Solana, built on `@solana/kit`:
4
+
5
+ - wallet-standard chain ids (`SOLANA_CHAINS`) and their network ids
6
+ - transaction serialization and deserialization
7
+ - signing with a secret key and signature verification
8
+ - off-chain message serialization
9
+ - human-readable transaction details (`parseTransactionInfo`, `txToHumanJSON`)
package/dist/index.d.mts CHANGED
@@ -11,7 +11,7 @@ export declare const getSolNetworkId: (chain: SolanaChainId) => "solana-devnet"
11
11
  */
12
12
  export declare const serializeOffchainMessage: (message: Uint8Array, signerPublicKey: Uint8Array) => Uint8Array | null;
13
13
  //#endregion
14
- //#region ../../node_modules/.pnpm/@solana+nominal-types@8.2.0_typescript@7.0.2/node_modules/@solana/nominal-types/dist/types/index.d.ts
14
+ //#region ../../node_modules/.pnpm/@solana+nominal-types@8.3.0_typescript@7.0.2/node_modules/@solana/nominal-types/dist/types/index.d.ts
15
15
  type StringEncoding = 'base58' | 'base64';
16
16
  /**
17
17
  * Use this to produce a new type that satisfies the original type, but not the other way around.
@@ -82,7 +82,7 @@ type EncodedString<T extends string, TEncoding extends StringEncoding> = Nominal
82
82
  */
83
83
  type NominalType<TKey extends string, TMarker extends string> = { readonly [K in `__${TKey}:@solana/kit`]: TMarker; };
84
84
  //#endregion
85
- //#region ../../node_modules/.pnpm/@solana+addresses@8.2.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@7.0.2/node_modules/@solana/addresses/dist/types/address.d.ts
85
+ //#region ../../node_modules/.pnpm/@solana+addresses@8.3.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@7.0.2/node_modules/@solana/addresses/dist/types/address.d.ts
86
86
  /**
87
87
  * Represents a string that validates as a Solana address. Functions that require well-formed
88
88
  * addresses should specify their inputs in terms of this type.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/utils/chains.ts","../src/utils/offchainMessage.ts","../../../node_modules/.pnpm/@solana+nominal-types@8.2.0_typescript@7.0.2/node_modules/@solana/nominal-types/dist/types/index.d.ts","../../../node_modules/.pnpm/@solana+addresses@8.2.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@7.0.2/node_modules/@solana/addresses/dist/types/address.d.ts","../src/utils/transaction.ts","../src/utils/serialization.ts","../src/utils/signing.ts"],"x_google_ignoreList":[2,3],"mappings":";;qBAAa;YAOD,wBAAwB;qBAEvB,kBAAe,OAAW;;;;;;;qBCoC1B,2BAAwB,SAC1B,YAAU,iBACF,eAChB;;;KCzBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiDO,MAAM,GAAG,6BAA6B,qBAAqB,cAAc;;;;;;;;;;;;;;;;;;;KAoCzE,cAAc,kBAAkB,kBAAkB,kBAAkB,8BAA8B,aAAa;;;;;;;;;;;;;;;;;;;;;KAqB/G,YAAY,qBAAqB,sCAC/B,UAAU,qBAAqB;;;;;;;;;;KCzHjC,QAAQ,oCAAoC,MAAM,cAAc;;;;;;;YCChE,iBAAiB;YAEjB;EACV;;EAEA;;EAEA;;EAEA;;;;;;EAMA;;;;;EAKA;;qBAGW,uBAAoB,IAAQ,mBAAiB;;;qBCR7C,uBAAoB,OAAW,eAAa;qBAG5C,qBAAkB,IAAQ,mBAAiB;;qBAI3C,uBAAoB,IAAQ;qBAG5B,yBAAsB,wBAA0B;;qBAIhD,qBAAkB,IAAQ,yCAAc,6BAAA;;;;;;;;;qBASxC,+BAA4B,OAAW;;qBAUvC,mBAAgB,IAAQ,mBAAiB;qBAGzC,6BAAwB,UAAA,WAAA,sBAAA,cAAA;EAOnC;EACA;EACA;EACA,cAAc;EACd;MACE;;;;;;qBAkBS,0BAAuB,IAAQ,gBAAc,sBAAsB;qBAenE,gBAAa,aAAiB;EAavC;EACA;EACA,UAfuC;EAgBvC;EACA;EAEA;IAEwC;;;;EAIxC;;eAVQ;;;;;;;;;;;;;;;;;qBC/GC,6BAA0B,IACjC,gBAAc,iBACH,WACJ,eACV;;;;;;qBAeU,kCAA+B,IACtC,gBAAc,oBAEjB;;;;;;qBAaU,+BAA4B,IACnC,gBAAc,WACP,YAAU,6BAEpB"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/utils/chains.ts","../src/utils/offchainMessage.ts","../../../node_modules/.pnpm/@solana+nominal-types@8.3.0_typescript@7.0.2/node_modules/@solana/nominal-types/dist/types/index.d.ts","../../../node_modules/.pnpm/@solana+addresses@8.3.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@7.0.2/node_modules/@solana/addresses/dist/types/address.d.ts","../src/utils/transaction.ts","../src/utils/serialization.ts","../src/utils/signing.ts"],"x_google_ignoreList":[2,3],"mappings":";;qBAAa;YAOD,wBAAwB;qBAEvB,kBAAe,OAAW;;;;;;;qBCoC1B,2BAAwB,SAC1B,YAAU,iBACF,eAChB;;;KCzBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiDO,MAAM,GAAG,6BAA6B,qBAAqB,cAAc;;;;;;;;;;;;;;;;;;;KAoCzE,cAAc,kBAAkB,kBAAkB,kBAAkB,8BAA8B,aAAa;;;;;;;;;;;;;;;;;;;;;KAqB/G,YAAY,qBAAqB,sCAC/B,UAAU,qBAAqB;;;;;;;;;;KCzHjC,QAAQ,oCAAoC,MAAM,cAAc;;;;;;;YCChE,iBAAiB;YAEjB;EACV;;EAEA;;EAEA;;EAEA;;;;;;EAMA;;;;;EAKA;;qBAGW,uBAAoB,IAAQ,mBAAiB;;;qBCR7C,uBAAoB,OAAW,eAAa;qBAG5C,qBAAkB,IAAQ,mBAAiB;;qBAI3C,uBAAoB,IAAQ;qBAG5B,yBAAsB,wBAA0B;;qBAIhD,qBAAkB,IAAQ,yCAAc,6BAAA;;;;;;;;;qBASxC,+BAA4B,OAAW;;qBAUvC,mBAAgB,IAAQ,mBAAiB;qBAGzC,6BAAwB,UAAA,WAAA,sBAAA,cAAA;EAOnC;EACA;EACA;EACA,cAAc;EACd;MACE;;;;;;qBAkBS,0BAAuB,IAAQ,gBAAc,sBAAsB;qBAenE,gBAAa,aAAiB;EAavC;EACA;EACA,UAfuC;EAgBvC;EACA;EAEA;IAEwC;;;;EAIxC;;eAVQ;;;;;;;;;;;;;;;;;qBC/GC,6BAA0B,IACjC,gBAAc,iBACH,WACJ,eACV;;;;;;qBAeU,kCAA+B,IACtC,gBAAc,oBAEjB;;;;;;qBAaU,+BAA4B,IACnC,gBAAc,WACP,YAAU,6BAEpB"}
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export declare const getSolNetworkId: (chain: SolanaChainId) => "solana-devnet"
11
11
  */
12
12
  export declare const serializeOffchainMessage: (message: Uint8Array, signerPublicKey: Uint8Array) => Uint8Array | null;
13
13
  //#endregion
14
- //#region ../../node_modules/.pnpm/@solana+nominal-types@8.2.0_typescript@7.0.2/node_modules/@solana/nominal-types/dist/types/index.d.ts
14
+ //#region ../../node_modules/.pnpm/@solana+nominal-types@8.3.0_typescript@7.0.2/node_modules/@solana/nominal-types/dist/types/index.d.ts
15
15
  type StringEncoding = 'base58' | 'base64';
16
16
  /**
17
17
  * Use this to produce a new type that satisfies the original type, but not the other way around.
@@ -82,7 +82,7 @@ type EncodedString<T extends string, TEncoding extends StringEncoding> = Nominal
82
82
  */
83
83
  type NominalType<TKey extends string, TMarker extends string> = { readonly [K in `__${TKey}:@solana/kit`]: TMarker; };
84
84
  //#endregion
85
- //#region ../../node_modules/.pnpm/@solana+addresses@8.2.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@7.0.2/node_modules/@solana/addresses/dist/types/address.d.ts
85
+ //#region ../../node_modules/.pnpm/@solana+addresses@8.3.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@7.0.2/node_modules/@solana/addresses/dist/types/address.d.ts
86
86
  /**
87
87
  * Represents a string that validates as a Solana address. Functions that require well-formed
88
88
  * addresses should specify their inputs in terms of this type.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/utils/chains.ts","../src/utils/offchainMessage.ts","../../../node_modules/.pnpm/@solana+nominal-types@8.2.0_typescript@7.0.2/node_modules/@solana/nominal-types/dist/types/index.d.ts","../../../node_modules/.pnpm/@solana+addresses@8.2.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@7.0.2/node_modules/@solana/addresses/dist/types/address.d.ts","../src/utils/transaction.ts","../src/utils/serialization.ts","../src/utils/signing.ts"],"x_google_ignoreList":[2,3],"mappings":";;qBAAa;YAOD,wBAAwB;qBAEvB,kBAAe,OAAW;;;;;;;qBCoC1B,2BAAwB,SAC1B,YAAU,iBACF,eAChB;;;KCzBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiDO,MAAM,GAAG,6BAA6B,qBAAqB,cAAc;;;;;;;;;;;;;;;;;;;KAoCzE,cAAc,kBAAkB,kBAAkB,kBAAkB,8BAA8B,aAAa;;;;;;;;;;;;;;;;;;;;;KAqB/G,YAAY,qBAAqB,sCAC/B,UAAU,qBAAqB;;;;;;;;;;KCzHjC,QAAQ,oCAAoC,MAAM,cAAc;;;;;;;YCChE,iBAAiB;YAEjB;EACV;;EAEA;;EAEA;;EAEA;;;;;;EAMA;;;;;EAKA;;qBAGW,uBAAoB,IAAQ,mBAAiB;;;qBCR7C,uBAAoB,OAAW,eAAa;qBAG5C,qBAAkB,IAAQ,mBAAiB;;qBAI3C,uBAAoB,IAAQ;qBAG5B,yBAAsB,wBAA0B;;qBAIhD,qBAAkB,IAAQ,yCAAc,6BAAA;;;;;;;;;qBASxC,+BAA4B,OAAW;;qBAUvC,mBAAgB,IAAQ,mBAAiB;qBAGzC,6BAAwB,UAAA,WAAA,sBAAA,cAAA;EAOnC;EACA;EACA;EACA,cAAc;EACd;MACE;;;;;;qBAkBS,0BAAuB,IAAQ,gBAAc,sBAAsB;qBAenE,gBAAa,aAAiB;EAavC;EACA;EACA,UAfuC;EAgBvC;EACA;EAEA;IAEwC;;;;EAIxC;;eAVQ;;;;;;;;;;;;;;;;;qBC/GC,6BAA0B,IACjC,gBAAc,iBACH,WACJ,eACV;;;;;;qBAeU,kCAA+B,IACtC,gBAAc,oBAEjB;;;;;;qBAaU,+BAA4B,IACnC,gBAAc,WACP,YAAU,6BAEpB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/utils/chains.ts","../src/utils/offchainMessage.ts","../../../node_modules/.pnpm/@solana+nominal-types@8.3.0_typescript@7.0.2/node_modules/@solana/nominal-types/dist/types/index.d.ts","../../../node_modules/.pnpm/@solana+addresses@8.3.0_fastestsmallesttextencoderdecoder@1.0.22_typescript@7.0.2/node_modules/@solana/addresses/dist/types/address.d.ts","../src/utils/transaction.ts","../src/utils/serialization.ts","../src/utils/signing.ts"],"x_google_ignoreList":[2,3],"mappings":";;qBAAa;YAOD,wBAAwB;qBAEvB,kBAAe,OAAW;;;;;;;qBCoC1B,2BAAwB,SAC1B,YAAU,iBACF,eAChB;;;KCzBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiDO,MAAM,GAAG,6BAA6B,qBAAqB,cAAc;;;;;;;;;;;;;;;;;;;KAoCzE,cAAc,kBAAkB,kBAAkB,kBAAkB,8BAA8B,aAAa;;;;;;;;;;;;;;;;;;;;;KAqB/G,YAAY,qBAAqB,sCAC/B,UAAU,qBAAqB;;;;;;;;;;KCzHjC,QAAQ,oCAAoC,MAAM,cAAc;;;;;;;YCChE,iBAAiB;YAEjB;EACV;;EAEA;;EAEA;;EAEA;;;;;;EAMA;;;;;EAKA;;qBAGW,uBAAoB,IAAQ,mBAAiB;;;qBCR7C,uBAAoB,OAAW,eAAa;qBAG5C,qBAAkB,IAAQ,mBAAiB;;qBAI3C,uBAAoB,IAAQ;qBAG5B,yBAAsB,wBAA0B;;qBAIhD,qBAAkB,IAAQ,yCAAc,6BAAA;;;;;;;;;qBASxC,+BAA4B,OAAW;;qBAUvC,mBAAgB,IAAQ,mBAAiB;qBAGzC,6BAAwB,UAAA,WAAA,sBAAA,cAAA;EAOnC;EACA;EACA;EACA,cAAc;EACd;MACE;;;;;;qBAkBS,0BAAuB,IAAQ,gBAAc,sBAAsB;qBAenE,gBAAa,aAAiB;EAavC;EACA;EACA,UAfuC;EAgBvC;EACA;EAEA;IAEwC;;;;EAIxC;;eAVQ;;;;;;;;;;;;;;;;;qBC/GC,6BAA0B,IACjC,gBAAc,iBACH,WACJ,eACV;;;;;;qBAeU,kCAA+B,IACtC,gBAAc,oBAEjB;;;;;;qBAaU,+BAA4B,IACnC,gBAAc,WACP,YAAU,6BAEpB"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@talismn/solana",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
+ "description": "Types and utilities for Solana, built on @solana/kit",
4
5
  "author": "Talisman",
5
6
  "homepage": "https://talisman.xyz",
6
7
  "license": "SEE LICENSE IN LICENSE",
@@ -21,8 +22,8 @@
21
22
  "node": ">=20"
22
23
  },
23
24
  "dependencies": {
24
- "@solana/kit": "8.2.0",
25
- "@talismn/crypto": "1.1.0"
25
+ "@solana/kit": "8.3.0",
26
+ "@talismn/crypto": "1.1.1"
26
27
  },
27
28
  "devDependencies": {
28
29
  "@talismn/tsconfig": "0.0.4",