@reef-knot/wallet-adapter-okx 1.3.1 → 1.4.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/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -5
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ declare global {
|
|
|
11
11
|
okxwallet?: EthereumTypeWagmi;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
export declare const id = "okx";
|
|
15
|
+
export declare const name = "OKX Wallet";
|
|
14
16
|
export declare class OkxConnector extends InjectedConnector {
|
|
15
17
|
readonly id = "okx";
|
|
16
18
|
readonly name = "OKX Wallet";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAI9D,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAU,QAAQ;QAChB,WAAW,CAAC,EAAE,IAAI,CAAC;KACpB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,SAAS,CAAC,EAAE,iBAAiB,CAAC;KAC/B;CACF;AAED,qBAAa,YAAa,SAAQ,iBAAiB;IACjD,QAAQ,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAI9D,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAU,QAAQ;QAChB,WAAW,CAAC,EAAE,IAAI,CAAC;KACpB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,SAAS,CAAC,EAAE,iBAAiB,CAAC;KAC/B;CACF;AAED,eAAO,MAAM,EAAE,QAAQ,CAAC;AACxB,eAAO,MAAM,IAAI,eAAe,CAAC;AAEjC,qBAAa,YAAa,SAAQ,iBAAiB;IACjD,QAAQ,CAAC,EAAE,SAAM;IACjB,QAAQ,CAAC,IAAI,gBAAQ;gBACT,MAAM,EAAE,KAAK,EAAE;CAS5B;AAED,eAAO,MAAM,GAAG,EAAE,iBAchB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,8 @@ import { InjectedConnector } from 'wagmi/connectors/injected';
|
|
|
2
2
|
import Memo from './icons/okx.svg.js';
|
|
3
3
|
import Memo$1 from './icons/okx-inverted.svg.js';
|
|
4
4
|
|
|
5
|
+
const id = 'okx';
|
|
6
|
+
const name = 'OKX Wallet';
|
|
5
7
|
class OkxConnector extends InjectedConnector {
|
|
6
8
|
constructor(chains) {
|
|
7
9
|
super({
|
|
@@ -13,15 +15,15 @@ class OkxConnector extends InjectedConnector {
|
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
17
|
});
|
|
16
|
-
this.id =
|
|
17
|
-
this.name =
|
|
18
|
+
this.id = id;
|
|
19
|
+
this.name = name;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
const Okx = ({
|
|
21
23
|
chains
|
|
22
24
|
}) => ({
|
|
23
|
-
walletName:
|
|
24
|
-
walletId:
|
|
25
|
+
walletName: name,
|
|
26
|
+
walletId: id,
|
|
25
27
|
icon: {
|
|
26
28
|
light: Memo,
|
|
27
29
|
dark: Memo$1
|
|
@@ -36,4 +38,4 @@ const Okx = ({
|
|
|
36
38
|
connector: new OkxConnector(chains)
|
|
37
39
|
});
|
|
38
40
|
|
|
39
|
-
export { Okx, OkxConnector };
|
|
41
|
+
export { Okx, OkxConnector, id, name };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reef-knot/wallet-adapter-okx",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"lint": "eslint --ext ts,tsx,js,mjs ."
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@reef-knot/types": "^1.
|
|
35
|
+
"@reef-knot/types": "^1.6.0",
|
|
36
36
|
"@svgr/rollup": "^6.5.1",
|
|
37
37
|
"eslint-config-custom": "*"
|
|
38
38
|
},
|