@kodiak-finance/orderly-wallet-connector-privy 2.8.15-rc.0 → 2.8.16-rc.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.
- package/package.json +9 -9
- package/dist/index.d.mts +0 -112
- package/dist/index.d.ts +0 -112
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kodiak-finance/orderly-wallet-connector-privy",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.16-rc.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"viem": "^2.29.2",
|
|
27
27
|
"wagmi": "^2.14.11",
|
|
28
28
|
"zustand": "^4.5.5",
|
|
29
|
-
"@kodiak-finance/orderly-core": "2.8.
|
|
30
|
-
"@kodiak-finance/orderly-hooks": "2.8.
|
|
31
|
-
"@kodiak-finance/orderly-
|
|
32
|
-
"@kodiak-finance/orderly-
|
|
33
|
-
"@kodiak-finance/orderly-
|
|
34
|
-
"@kodiak-finance/orderly-
|
|
35
|
-
"@kodiak-finance/orderly-
|
|
29
|
+
"@kodiak-finance/orderly-core": "2.8.16-rc.0",
|
|
30
|
+
"@kodiak-finance/orderly-hooks": "2.8.16-rc.0",
|
|
31
|
+
"@kodiak-finance/orderly-ui": "2.8.16-rc.0",
|
|
32
|
+
"@kodiak-finance/orderly-types": "2.8.16-rc.0",
|
|
33
|
+
"@kodiak-finance/orderly-i18n": "2.8.16-rc.0",
|
|
34
|
+
"@kodiak-finance/orderly-ui-connector": "2.8.16-rc.0",
|
|
35
|
+
"@kodiak-finance/orderly-utils": "2.8.16-rc.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/react": "^18.2.38",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"react": "^18.2.0",
|
|
41
41
|
"react-dom": "^18.2.0",
|
|
42
42
|
"tsup": "^7.1.0",
|
|
43
|
-
"tsconfig": "0.11.
|
|
43
|
+
"tsconfig": "0.11.15-rc.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=18"
|
package/dist/index.d.mts
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { WalletState, Chains } from '@kodiak-finance/orderly-hooks';
|
|
3
|
-
import { PrivyClientConfig } from '@privy-io/react-auth';
|
|
4
|
-
import { Adapter, WalletError, WalletAdapterNetwork, WalletAdapter } from '@solana/wallet-adapter-base';
|
|
5
|
-
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import * as WagmiExport from 'wagmi';
|
|
7
|
-
import { CreateConnectorFn, Storage, Connector } from 'wagmi';
|
|
8
|
-
import { ChainNamespace } from '@kodiak-finance/orderly-types';
|
|
9
|
-
import * as viemExport from 'viem';
|
|
10
|
-
import * as WagmiConnectorsExport from 'wagmi/connectors';
|
|
11
|
-
|
|
12
|
-
type SolanaInitialProps = PropsWithChildren<{
|
|
13
|
-
network?: WalletAdapterNetwork;
|
|
14
|
-
endPoint?: string;
|
|
15
|
-
mainnetRpc?: string;
|
|
16
|
-
devnetRpc?: string;
|
|
17
|
-
wallets?: Adapter[];
|
|
18
|
-
onError?: (error: WalletError, adapter?: Adapter) => void;
|
|
19
|
-
}>;
|
|
20
|
-
declare enum Network {
|
|
21
|
-
mainnet = "mainnet",
|
|
22
|
-
testnet = "testnet"
|
|
23
|
-
}
|
|
24
|
-
declare enum WalletType {
|
|
25
|
-
EVM = "EVM",
|
|
26
|
-
SOL = "SOL",
|
|
27
|
-
ABSTRACT = "Abstract"
|
|
28
|
-
}
|
|
29
|
-
declare enum WalletConnectType {
|
|
30
|
-
EVM = "EVM",
|
|
31
|
-
SOL = "SOL",
|
|
32
|
-
PRIVY = "privy",
|
|
33
|
-
ABSTRACT = "Abstract"
|
|
34
|
-
}
|
|
35
|
-
interface ConnectProps {
|
|
36
|
-
walletType: WalletConnectType;
|
|
37
|
-
extraType?: string;
|
|
38
|
-
connector?: Connector;
|
|
39
|
-
walletAdapter?: WalletAdapter;
|
|
40
|
-
}
|
|
41
|
-
interface InitPrivy {
|
|
42
|
-
appid: string;
|
|
43
|
-
config?: {
|
|
44
|
-
appearance: Omit<PrivyClientConfig["appearance"], "walletChainType" | "walletList">;
|
|
45
|
-
loginMethods?: PrivyClientConfig["loginMethods"];
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
interface InitWagmi {
|
|
49
|
-
connectors?: CreateConnectorFn[];
|
|
50
|
-
storage?: Storage;
|
|
51
|
-
}
|
|
52
|
-
interface InitSolana {
|
|
53
|
-
mainnetRpc?: string;
|
|
54
|
-
devnetRpc?: string;
|
|
55
|
-
wallets: Adapter[];
|
|
56
|
-
onError: (error: WalletError, adapter?: Adapter) => void;
|
|
57
|
-
}
|
|
58
|
-
interface InitAbstract {
|
|
59
|
-
queryClient?: QueryClient;
|
|
60
|
-
}
|
|
61
|
-
declare const SolanaChains: Map<WalletAdapterNetwork, number>;
|
|
62
|
-
declare const SolanaChainsMap: Map<WalletAdapterNetwork | Network, number>;
|
|
63
|
-
declare const AbstractChainsMap: Map<Network, number>;
|
|
64
|
-
interface ConnectorWalletType {
|
|
65
|
-
disableWagmi?: boolean;
|
|
66
|
-
disablePrivy?: boolean;
|
|
67
|
-
disableSolana?: boolean;
|
|
68
|
-
disableAGW?: boolean;
|
|
69
|
-
}
|
|
70
|
-
interface WalletChainTypeConfig {
|
|
71
|
-
hasEvm: boolean;
|
|
72
|
-
hasSol: boolean;
|
|
73
|
-
hasAbstract: boolean;
|
|
74
|
-
}
|
|
75
|
-
declare enum WalletChainTypeEnum {
|
|
76
|
-
onlyEVM = "onlyEVM",
|
|
77
|
-
onlySOL = "onlySOL",
|
|
78
|
-
EVM_SOL = "EVM_SOL"
|
|
79
|
-
}
|
|
80
|
-
type WalletChainType = WalletChainTypeEnum;
|
|
81
|
-
type IWalletState = WalletState & {
|
|
82
|
-
chain?: {
|
|
83
|
-
namespace: ChainNamespace;
|
|
84
|
-
id: number;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
interface WalletConnectorPrivyProps extends PropsWithChildren {
|
|
89
|
-
privyConfig?: InitPrivy;
|
|
90
|
-
wagmiConfig?: InitWagmi;
|
|
91
|
-
solanaConfig?: InitSolana;
|
|
92
|
-
abstractConfig?: InitAbstract;
|
|
93
|
-
network: Network;
|
|
94
|
-
customChains?: Chains;
|
|
95
|
-
termsOfUse?: string;
|
|
96
|
-
headerProps?: {
|
|
97
|
-
mobile: React.ReactNode;
|
|
98
|
-
};
|
|
99
|
-
enableSwapDeposit?: boolean;
|
|
100
|
-
}
|
|
101
|
-
declare function WalletConnectorPrivyProvider(props: WalletConnectorPrivyProps): React.JSX.Element | null;
|
|
102
|
-
|
|
103
|
-
declare function UserCenter(props: any): React.JSX.Element;
|
|
104
|
-
declare const MwebUserCenter: (props: any) => React.JSX.Element;
|
|
105
|
-
|
|
106
|
-
declare const viem: typeof viemExport;
|
|
107
|
-
|
|
108
|
-
declare const wagmiConnectors: typeof WagmiConnectorsExport;
|
|
109
|
-
|
|
110
|
-
declare const wagmi: typeof WagmiExport;
|
|
111
|
-
|
|
112
|
-
export { AbstractChainsMap, type ConnectProps, type ConnectorWalletType, type IWalletState, type InitAbstract, type InitPrivy, type InitSolana, type InitWagmi, MwebUserCenter, Network, SolanaChains, SolanaChainsMap, type SolanaInitialProps, UserCenter, type WalletChainType, type WalletChainTypeConfig, WalletChainTypeEnum, WalletConnectType, WalletConnectorPrivyProvider, WalletType, viem, wagmi, wagmiConnectors };
|
package/dist/index.d.ts
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { WalletState, Chains } from '@kodiak-finance/orderly-hooks';
|
|
3
|
-
import { PrivyClientConfig } from '@privy-io/react-auth';
|
|
4
|
-
import { Adapter, WalletError, WalletAdapterNetwork, WalletAdapter } from '@solana/wallet-adapter-base';
|
|
5
|
-
import { QueryClient } from '@tanstack/react-query';
|
|
6
|
-
import * as WagmiExport from 'wagmi';
|
|
7
|
-
import { CreateConnectorFn, Storage, Connector } from 'wagmi';
|
|
8
|
-
import { ChainNamespace } from '@kodiak-finance/orderly-types';
|
|
9
|
-
import * as viemExport from 'viem';
|
|
10
|
-
import * as WagmiConnectorsExport from 'wagmi/connectors';
|
|
11
|
-
|
|
12
|
-
type SolanaInitialProps = PropsWithChildren<{
|
|
13
|
-
network?: WalletAdapterNetwork;
|
|
14
|
-
endPoint?: string;
|
|
15
|
-
mainnetRpc?: string;
|
|
16
|
-
devnetRpc?: string;
|
|
17
|
-
wallets?: Adapter[];
|
|
18
|
-
onError?: (error: WalletError, adapter?: Adapter) => void;
|
|
19
|
-
}>;
|
|
20
|
-
declare enum Network {
|
|
21
|
-
mainnet = "mainnet",
|
|
22
|
-
testnet = "testnet"
|
|
23
|
-
}
|
|
24
|
-
declare enum WalletType {
|
|
25
|
-
EVM = "EVM",
|
|
26
|
-
SOL = "SOL",
|
|
27
|
-
ABSTRACT = "Abstract"
|
|
28
|
-
}
|
|
29
|
-
declare enum WalletConnectType {
|
|
30
|
-
EVM = "EVM",
|
|
31
|
-
SOL = "SOL",
|
|
32
|
-
PRIVY = "privy",
|
|
33
|
-
ABSTRACT = "Abstract"
|
|
34
|
-
}
|
|
35
|
-
interface ConnectProps {
|
|
36
|
-
walletType: WalletConnectType;
|
|
37
|
-
extraType?: string;
|
|
38
|
-
connector?: Connector;
|
|
39
|
-
walletAdapter?: WalletAdapter;
|
|
40
|
-
}
|
|
41
|
-
interface InitPrivy {
|
|
42
|
-
appid: string;
|
|
43
|
-
config?: {
|
|
44
|
-
appearance: Omit<PrivyClientConfig["appearance"], "walletChainType" | "walletList">;
|
|
45
|
-
loginMethods?: PrivyClientConfig["loginMethods"];
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
interface InitWagmi {
|
|
49
|
-
connectors?: CreateConnectorFn[];
|
|
50
|
-
storage?: Storage;
|
|
51
|
-
}
|
|
52
|
-
interface InitSolana {
|
|
53
|
-
mainnetRpc?: string;
|
|
54
|
-
devnetRpc?: string;
|
|
55
|
-
wallets: Adapter[];
|
|
56
|
-
onError: (error: WalletError, adapter?: Adapter) => void;
|
|
57
|
-
}
|
|
58
|
-
interface InitAbstract {
|
|
59
|
-
queryClient?: QueryClient;
|
|
60
|
-
}
|
|
61
|
-
declare const SolanaChains: Map<WalletAdapterNetwork, number>;
|
|
62
|
-
declare const SolanaChainsMap: Map<WalletAdapterNetwork | Network, number>;
|
|
63
|
-
declare const AbstractChainsMap: Map<Network, number>;
|
|
64
|
-
interface ConnectorWalletType {
|
|
65
|
-
disableWagmi?: boolean;
|
|
66
|
-
disablePrivy?: boolean;
|
|
67
|
-
disableSolana?: boolean;
|
|
68
|
-
disableAGW?: boolean;
|
|
69
|
-
}
|
|
70
|
-
interface WalletChainTypeConfig {
|
|
71
|
-
hasEvm: boolean;
|
|
72
|
-
hasSol: boolean;
|
|
73
|
-
hasAbstract: boolean;
|
|
74
|
-
}
|
|
75
|
-
declare enum WalletChainTypeEnum {
|
|
76
|
-
onlyEVM = "onlyEVM",
|
|
77
|
-
onlySOL = "onlySOL",
|
|
78
|
-
EVM_SOL = "EVM_SOL"
|
|
79
|
-
}
|
|
80
|
-
type WalletChainType = WalletChainTypeEnum;
|
|
81
|
-
type IWalletState = WalletState & {
|
|
82
|
-
chain?: {
|
|
83
|
-
namespace: ChainNamespace;
|
|
84
|
-
id: number;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
interface WalletConnectorPrivyProps extends PropsWithChildren {
|
|
89
|
-
privyConfig?: InitPrivy;
|
|
90
|
-
wagmiConfig?: InitWagmi;
|
|
91
|
-
solanaConfig?: InitSolana;
|
|
92
|
-
abstractConfig?: InitAbstract;
|
|
93
|
-
network: Network;
|
|
94
|
-
customChains?: Chains;
|
|
95
|
-
termsOfUse?: string;
|
|
96
|
-
headerProps?: {
|
|
97
|
-
mobile: React.ReactNode;
|
|
98
|
-
};
|
|
99
|
-
enableSwapDeposit?: boolean;
|
|
100
|
-
}
|
|
101
|
-
declare function WalletConnectorPrivyProvider(props: WalletConnectorPrivyProps): React.JSX.Element | null;
|
|
102
|
-
|
|
103
|
-
declare function UserCenter(props: any): React.JSX.Element;
|
|
104
|
-
declare const MwebUserCenter: (props: any) => React.JSX.Element;
|
|
105
|
-
|
|
106
|
-
declare const viem: typeof viemExport;
|
|
107
|
-
|
|
108
|
-
declare const wagmiConnectors: typeof WagmiConnectorsExport;
|
|
109
|
-
|
|
110
|
-
declare const wagmi: typeof WagmiExport;
|
|
111
|
-
|
|
112
|
-
export { AbstractChainsMap, type ConnectProps, type ConnectorWalletType, type IWalletState, type InitAbstract, type InitPrivy, type InitSolana, type InitWagmi, MwebUserCenter, Network, SolanaChains, SolanaChainsMap, type SolanaInitialProps, UserCenter, type WalletChainType, type WalletChainTypeConfig, WalletChainTypeEnum, WalletConnectType, WalletConnectorPrivyProvider, WalletType, viem, wagmi, wagmiConnectors };
|