@kheopskit/core 0.0.4 → 0.0.10

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/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @kheopskit/core
2
2
 
3
+ ## 0.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c7dea32`](https://github.com/kheopskit/kheopskit/commit/c7dea32e2921716cef82b53e1960c3cdb4c8e5ae) Thanks [@0xKheops](https://github.com/0xKheops)! - test changeset
8
+
9
+ ## 0.0.9
10
+
11
+ ### Patch Changes
12
+
13
+ - [`961f6a3`](https://github.com/kheopskit/kheopskit/commit/961f6a371c73d4065e9157c95ca4d996012098e7) Thanks [@0xKheops](https://github.com/0xKheops)! - test changeset
14
+
15
+ ## 0.0.8
16
+
17
+ ### Patch Changes
18
+
19
+ - [`b76185f`](https://github.com/kheopskit/kheopskit/commit/b76185f99a78c5a82a8b9aead65b0708f17b0bd5) Thanks [@0xKheops](https://github.com/0xKheops)! - test changeset
20
+
21
+ ## 0.0.7
22
+
23
+ ### Patch Changes
24
+
25
+ - [`07f8406`](https://github.com/kheopskit/kheopskit/commit/07f8406d3f176e6a8b3b06fe16396bf2b6b1db88) Thanks [@0xKheops](https://github.com/0xKheops)! - test changeset
26
+
27
+ ## 0.0.6
28
+
29
+ ### Patch Changes
30
+
31
+ - [`5319326`](https://github.com/kheopskit/kheopskit/commit/53193262e80fec9e242986f818d7f7b53f92357a) Thanks [@0xKheops](https://github.com/0xKheops)! - test changeset
32
+
33
+ ## 0.0.5
34
+
35
+ ### Patch Changes
36
+
37
+ - [`d865842`](https://github.com/kheopskit/kheopskit/commit/d86584236e51730e82baaa9068604fa7e703e9c2) Thanks [@0xKheops](https://github.com/0xKheops)! - test changeset
38
+
3
39
  ## 0.0.4
4
40
 
5
41
  ### Patch Changes
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@kheopskit/core",
3
- "version": "0.0.4",
3
+ "version": "0.0.10",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
+ "private": false,
8
9
  "main": "dist/index.cjs",
9
10
  "module": "dist/index.mjs",
10
11
  "types": "dist/index.d.ts",
package/dist/index.d.mts DELETED
@@ -1,104 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { AppKit } from '@reown/appkit/core';
3
- import { AppKitNetwork } from '@reown/appkit/networks';
4
- import { Metadata } from '@walletconnect/universal-provider';
5
- import { InjectedExtension, InjectedPolkadotAccount } from 'polkadot-api/pjs-signer';
6
- import { EIP1193Provider, WalletClient, CustomTransport, Account } from 'viem';
7
-
8
- type WalletAccountId = string;
9
-
10
- type WalletId = string;
11
-
12
- type KheopskitConfig = {
13
- autoReconnect: boolean;
14
- platforms: WalletPlatform[];
15
- walletConnect?: {
16
- projectId: string;
17
- metadata: Metadata;
18
- /** Defaults to wss://relay.walletconnect.com */
19
- relayUrl?: string;
20
- /**
21
- * list of CAIP-13 ids of polkadot-sdk chains
22
- * see https://docs.reown.com/advanced/multichain/polkadot/dapp-integration-guide#walletconnect-code%2Fcomponent-setup
23
- */
24
- networks: [AppKitNetwork, ...AppKitNetwork[]];
25
- };
26
- debug: boolean;
27
- };
28
- type PolkadotInjectedWallet = {
29
- id: WalletId;
30
- platform: "polkadot";
31
- type: "injected";
32
- extensionId: string;
33
- extension: InjectedExtension | undefined;
34
- name: string;
35
- icon: string;
36
- isConnected: boolean;
37
- connect: () => Promise<void>;
38
- disconnect: () => void;
39
- };
40
- type PolkadotAppKitWallet = {
41
- id: WalletId;
42
- platform: "polkadot";
43
- type: "appKit";
44
- appKit: AppKit;
45
- name: string;
46
- icon: string;
47
- isConnected: boolean;
48
- connect: () => Promise<void>;
49
- disconnect: () => void;
50
- };
51
- type PolkadotWallet = PolkadotInjectedWallet | PolkadotAppKitWallet;
52
- type EthereumInjectedWallet = {
53
- platform: "ethereum";
54
- type: "injected";
55
- id: WalletId;
56
- providerId: string;
57
- provider: EIP1193Provider;
58
- name: string;
59
- icon: string;
60
- isConnected: boolean;
61
- connect: () => Promise<void>;
62
- disconnect: () => void;
63
- };
64
- type EthereumAppKitWallet = {
65
- platform: "ethereum";
66
- type: "appKit";
67
- id: WalletId;
68
- appKit: AppKit;
69
- name: string;
70
- icon: string;
71
- isConnected: boolean;
72
- connect: () => Promise<void>;
73
- disconnect: () => void;
74
- };
75
- type EthereumWallet = EthereumInjectedWallet | EthereumAppKitWallet;
76
- type Wallet = PolkadotWallet | EthereumWallet;
77
- type WalletPlatform = Wallet["platform"];
78
- type PolkadotAccount = InjectedPolkadotAccount & {
79
- id: WalletAccountId;
80
- platform: "polkadot";
81
- walletName: string;
82
- walletId: string;
83
- };
84
- type EthereumAccount = {
85
- id: WalletAccountId;
86
- platform: "ethereum";
87
- client: WalletClient<CustomTransport, undefined, Account, undefined>;
88
- address: `0x${string}`;
89
- walletName: string;
90
- walletId: string;
91
- isWalletDefault: boolean;
92
- };
93
- type WalletAccount = PolkadotAccount | EthereumAccount;
94
-
95
- type KheopskitState = {
96
- wallets: Wallet[];
97
- accounts: WalletAccount[];
98
- config: KheopskitConfig;
99
- };
100
- declare const getKheopskit$: (config?: Partial<KheopskitConfig>) => Observable<KheopskitState>;
101
-
102
- declare const resolveConfig: (config: Partial<KheopskitConfig> | undefined) => KheopskitConfig;
103
-
104
- export { type EthereumAccount, type EthereumAppKitWallet, type EthereumInjectedWallet, type EthereumWallet, type KheopskitConfig, type KheopskitState, type PolkadotAccount, type PolkadotAppKitWallet, type PolkadotInjectedWallet, type PolkadotWallet, type Wallet, type WalletAccount, type WalletPlatform, getKheopskit$, resolveConfig };
package/dist/index.d.ts DELETED
@@ -1,104 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { AppKit } from '@reown/appkit/core';
3
- import { AppKitNetwork } from '@reown/appkit/networks';
4
- import { Metadata } from '@walletconnect/universal-provider';
5
- import { InjectedExtension, InjectedPolkadotAccount } from 'polkadot-api/pjs-signer';
6
- import { EIP1193Provider, WalletClient, CustomTransport, Account } from 'viem';
7
-
8
- type WalletAccountId = string;
9
-
10
- type WalletId = string;
11
-
12
- type KheopskitConfig = {
13
- autoReconnect: boolean;
14
- platforms: WalletPlatform[];
15
- walletConnect?: {
16
- projectId: string;
17
- metadata: Metadata;
18
- /** Defaults to wss://relay.walletconnect.com */
19
- relayUrl?: string;
20
- /**
21
- * list of CAIP-13 ids of polkadot-sdk chains
22
- * see https://docs.reown.com/advanced/multichain/polkadot/dapp-integration-guide#walletconnect-code%2Fcomponent-setup
23
- */
24
- networks: [AppKitNetwork, ...AppKitNetwork[]];
25
- };
26
- debug: boolean;
27
- };
28
- type PolkadotInjectedWallet = {
29
- id: WalletId;
30
- platform: "polkadot";
31
- type: "injected";
32
- extensionId: string;
33
- extension: InjectedExtension | undefined;
34
- name: string;
35
- icon: string;
36
- isConnected: boolean;
37
- connect: () => Promise<void>;
38
- disconnect: () => void;
39
- };
40
- type PolkadotAppKitWallet = {
41
- id: WalletId;
42
- platform: "polkadot";
43
- type: "appKit";
44
- appKit: AppKit;
45
- name: string;
46
- icon: string;
47
- isConnected: boolean;
48
- connect: () => Promise<void>;
49
- disconnect: () => void;
50
- };
51
- type PolkadotWallet = PolkadotInjectedWallet | PolkadotAppKitWallet;
52
- type EthereumInjectedWallet = {
53
- platform: "ethereum";
54
- type: "injected";
55
- id: WalletId;
56
- providerId: string;
57
- provider: EIP1193Provider;
58
- name: string;
59
- icon: string;
60
- isConnected: boolean;
61
- connect: () => Promise<void>;
62
- disconnect: () => void;
63
- };
64
- type EthereumAppKitWallet = {
65
- platform: "ethereum";
66
- type: "appKit";
67
- id: WalletId;
68
- appKit: AppKit;
69
- name: string;
70
- icon: string;
71
- isConnected: boolean;
72
- connect: () => Promise<void>;
73
- disconnect: () => void;
74
- };
75
- type EthereumWallet = EthereumInjectedWallet | EthereumAppKitWallet;
76
- type Wallet = PolkadotWallet | EthereumWallet;
77
- type WalletPlatform = Wallet["platform"];
78
- type PolkadotAccount = InjectedPolkadotAccount & {
79
- id: WalletAccountId;
80
- platform: "polkadot";
81
- walletName: string;
82
- walletId: string;
83
- };
84
- type EthereumAccount = {
85
- id: WalletAccountId;
86
- platform: "ethereum";
87
- client: WalletClient<CustomTransport, undefined, Account, undefined>;
88
- address: `0x${string}`;
89
- walletName: string;
90
- walletId: string;
91
- isWalletDefault: boolean;
92
- };
93
- type WalletAccount = PolkadotAccount | EthereumAccount;
94
-
95
- type KheopskitState = {
96
- wallets: Wallet[];
97
- accounts: WalletAccount[];
98
- config: KheopskitConfig;
99
- };
100
- declare const getKheopskit$: (config?: Partial<KheopskitConfig>) => Observable<KheopskitState>;
101
-
102
- declare const resolveConfig: (config: Partial<KheopskitConfig> | undefined) => KheopskitConfig;
103
-
104
- export { type EthereumAccount, type EthereumAppKitWallet, type EthereumInjectedWallet, type EthereumWallet, type KheopskitConfig, type KheopskitState, type PolkadotAccount, type PolkadotAppKitWallet, type PolkadotInjectedWallet, type PolkadotWallet, type Wallet, type WalletAccount, type WalletPlatform, getKheopskit$, resolveConfig };