@swapkit/wallet-core 4.0.27 → 4.0.29
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/dist/types/types.d.ts +10 -0
- package/dist/types/types.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AddChainType, Chain, WalletOption } from "@swapkit/helpers";
|
|
2
|
+
export type ConnectFunction<ConnectParams extends any[], SupportedChains extends Chain[], WalletType extends WalletOption> = (connectParams: {
|
|
3
|
+
addChain: AddChainType;
|
|
4
|
+
walletType: WalletType;
|
|
5
|
+
supportedChains: SupportedChains;
|
|
6
|
+
}) => (...params: ConnectParams) => Promise<boolean>;
|
|
7
|
+
export type CreateFunction<CreateParams extends any[], WalletType extends WalletOption, Wallets extends Record<Chain, any>> = (createParams: {
|
|
8
|
+
walletType: WalletType;
|
|
9
|
+
}) => (...params: CreateParams) => Promise<Wallets> | Wallets;
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE1E,MAAM,MAAM,eAAe,CACzB,aAAa,SAAS,GAAG,EAAE,EAC3B,eAAe,SAAS,KAAK,EAAE,EAC/B,UAAU,SAAS,YAAY,IAC7B,CAAC,aAAa,EAAE;IAClB,QAAQ,EAAE,YAAY,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,EAAE,eAAe,CAAC;CAClC,KAAK,CAAC,GAAG,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAErD,MAAM,MAAM,cAAc,CACxB,YAAY,SAAS,GAAG,EAAE,EAC1B,UAAU,SAAS,YAAY,EAC/B,OAAO,SAAS,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,IAChC,CAAC,YAAY,EAAE;IAAE,UAAU,EAAE,UAAU,CAAA;CAAE,KAAK,CAAC,GAAG,MAAM,EAAE,YAAY,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "swapkit-oss",
|
|
3
|
-
"dependencies": { "@swapkit/helpers": "4.0
|
|
3
|
+
"dependencies": { "@swapkit/helpers": "4.2.0" },
|
|
4
4
|
"description": "SwapKit - Wallet Core",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": { "import": "./dist/index.js", "require": "./dist/index.cjs", "types": "./dist/types/index.d.ts" }
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"type-check:go": "tsgo"
|
|
25
25
|
},
|
|
26
26
|
"type": "module",
|
|
27
|
-
"version": "4.0.
|
|
27
|
+
"version": "4.0.29"
|
|
28
28
|
}
|