@coin-voyage/crypto 0.0.3 → 0.0.5

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.
@@ -1,2 +1,2 @@
1
- import { CreateConfigParameters } from "wagmi";
2
- export declare const DEFAULT_CHAINS: CreateConfigParameters["chains"];
1
+ import { Chain } from "viem/chains";
2
+ export declare const DEFAULT_CHAINS: readonly [Chain, ...Chain[]];
@@ -1 +1 @@
1
- {"version":3,"file":"chain.js","sourceRoot":"","sources":["../../../src/lib/config/chain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAGzF,MAAM,CAAC,MAAM,cAAc,GAAqC;IAC5D,OAAO;IACP,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,GAAG;CACJ,CAAA"}
1
+ {"version":3,"file":"chain.js","sourceRoot":"","sources":["../../../src/lib/config/chain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAS,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEhG,MAAM,CAAC,MAAM,cAAc,GAAiC;IAC1D,OAAO;IACP,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,GAAG;CACJ,CAAA"}
@@ -1,2 +1,2 @@
1
- import { SignInMessage } from "../../types";
1
+ import { SignInMessage } from "../../types/sign-in-with";
2
2
  export declare const toMessage: (message: SignInMessage, accountName: string) => string;
@@ -1,5 +1,5 @@
1
1
  import type { PropsWithChildren } from "react";
2
- import { WalletConfiguration } from "../types";
2
+ import { WalletConfiguration } from "../types/wallet";
3
3
  export declare function SolanaBaseProvider({ children, config }: PropsWithChildren<{
4
4
  config?: WalletConfiguration["solana"];
5
5
  }>): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import type { PropsWithChildren } from "react";
2
- import { WalletConfiguration } from "../types";
2
+ import { WalletConfiguration } from "../types/wallet";
3
3
  export declare function SuiBaseProvider({ children, config }: PropsWithChildren<{
4
4
  config?: WalletConfiguration["sui"];
5
5
  }>): import("react/jsx-runtime").JSX.Element;
@@ -8,3 +8,13 @@ export interface SignInWith {
8
8
  }) => void;
9
9
  callbackUrl?: string;
10
10
  }
11
+ export type SignInMessage = {
12
+ address: string;
13
+ domain: string;
14
+ statement: string;
15
+ uri: string;
16
+ version: string;
17
+ expirationTime?: string;
18
+ issuedAt?: string;
19
+ nonce: string;
20
+ };
@@ -1,5 +1,21 @@
1
1
  import type { ChainType } from "@coin-voyage/shared/common";
2
+ import { WalletProviderProps as SuiWalletProviderProps } from "@mysten/dapp-kit";
3
+ import { WalletProviderProps } from "@solana/wallet-adapter-react";
4
+ import { DefaultWagmiConfigProps } from "../evm/create-default-evm-config";
5
+ import { DefaultBigmiConfigProps } from "../utxo/create-default-bigmi-config";
2
6
  import type { WalletConnector } from "./wallet-connector";
7
+ export type WalletConfiguration = {
8
+ evm?: DefaultWagmiConfigProps;
9
+ utxo?: DefaultBigmiConfigProps;
10
+ solana?: {
11
+ rpcUrl?: string;
12
+ walletConfiguration?: WalletProviderProps;
13
+ };
14
+ sui?: {
15
+ rpcUrl?: string;
16
+ walletConfiguration?: SuiWalletProviderProps;
17
+ };
18
+ };
3
19
  export type ChainTypeWalletConnector = {
4
20
  connector: WalletConnector;
5
21
  chainType: ChainType;
package/package.json CHANGED
@@ -1,21 +1,18 @@
1
1
  {
2
2
  "name": "@coin-voyage/crypto",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "exports": {
7
- ".": "./dist/index.ts",
8
- "./hooks": "./dist/hooks/index.ts",
9
- "./lib": "./dist/lib/**/*.ts",
10
- "./types": "./dist/types/index.ts",
11
- "./evm": "./dist/evm/*.ts",
12
- "./utxo": "./dist/utxo/*.ts",
13
- "./solana": "./dist/solana/*.ts",
14
- "./sui": "./dist/sui/*.ts",
15
- "./*": [
16
- "./dist/*.ts",
17
- "./dist/*.tsx"
18
- ]
7
+ "./lib/config/*": "./dist/lib/config/*.js",
8
+ "./lib/connectors/*": "./dist/lib/connectors/*.js",
9
+ "./lib/utils/*": "./dist/lib/utils/*.js",
10
+ "./evm/*": "./dist/evm/*.js",
11
+ "./utxo/*": "./dist/utxo/*.js",
12
+ "./solana/*": "./dist/solana/*.js",
13
+ "./sui/*": "./dist/sui/*.js",
14
+ "./types/*": "./dist/types/*.js",
15
+ "./hooks": "./dist/hooks/index.js"
19
16
  },
20
17
  "files": [
21
18
  "dist"
@@ -44,7 +41,7 @@
44
41
  "@solana/wallet-adapter-base": "0.9.23",
45
42
  "viem": "2.22.9",
46
43
  "wagmi": "2.14.8",
47
- "@coin-voyage/shared": "0.0.3"
44
+ "@coin-voyage/shared": "0.0.5"
48
45
  },
49
46
  "devDependencies": {
50
47
  "@types/elliptic": "6.4.18"
@@ -1,26 +0,0 @@
1
- import { WalletProviderProps as SuiWalletProviderProps } from "@mysten/dapp-kit";
2
- import { WalletProviderProps } from "@solana/wallet-adapter-react";
3
- import { DefaultWagmiConfigProps } from "../evm/create-default-evm-config";
4
- import { DefaultBigmiConfigProps } from "../utxo/create-default-bigmi-config";
5
- export type WalletConfiguration = {
6
- evm?: DefaultWagmiConfigProps;
7
- utxo?: DefaultBigmiConfigProps;
8
- solana?: {
9
- rpcUrl?: string;
10
- walletConfiguration?: WalletProviderProps;
11
- };
12
- sui?: {
13
- rpcUrl?: string;
14
- walletConfiguration?: SuiWalletProviderProps;
15
- };
16
- };
17
- export type SignInMessage = {
18
- address: string;
19
- domain: string;
20
- statement: string;
21
- uri: string;
22
- version: string;
23
- expirationTime?: string;
24
- issuedAt?: string;
25
- nonce: string;
26
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}