@reef-knot/wallet-adapter-anchorage-digital 1.0.0-alpha.1

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.
@@ -0,0 +1,51 @@
1
+ import * as React from "react";
2
+ import { memo } from "react";
3
+
4
+ //#region src/icons/anchorageDigital.svg
5
+ var _g, _defs;
6
+ function _extends() {
7
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
8
+ for (var e = 1; e < arguments.length; e++) {
9
+ var t = arguments[e];
10
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
11
+ }
12
+ return n;
13
+ }, _extends.apply(null, arguments);
14
+ }
15
+ var Memo = /* @__PURE__ */ memo(function SvgAnchorageDigital(props) {
16
+ return /* @__PURE__ */ React.createElement("svg", _extends({
17
+ width: 48,
18
+ height: 48,
19
+ viewBox: "0 0 48 48",
20
+ fill: "none",
21
+ xmlns: "http://www.w3.org/2000/svg"
22
+ }, props), _g || (_g = /* @__PURE__ */ React.createElement("g", { clipPath: "url(#clip0_16953_3268)" }, /* @__PURE__ */ React.createElement("path", {
23
+ d: "M48 0H0V48H48V0Z",
24
+ fill: "black"
25
+ }), /* @__PURE__ */ React.createElement("g", { clipPath: "url(#clip1_16953_3268)" }, /* @__PURE__ */ React.createElement("path", {
26
+ d: "M17.027 14.4648L23.9999 18.9304L30.9729 14.4648L23.9999 10L17.027 14.4648Z",
27
+ fill: "white"
28
+ }), /* @__PURE__ */ React.createElement("path", {
29
+ d: "M17.027 33.5345L23.9999 38L30.9729 33.5345L23.9999 29.0696L17.027 33.5345Z",
30
+ fill: "white"
31
+ }), /* @__PURE__ */ React.createElement("path", {
32
+ d: "M7.09985 27.1798L14.0721 31.6453L21.0451 27.1798L14.0721 22.715L7.09985 27.1798Z",
33
+ fill: "white"
34
+ }), /* @__PURE__ */ React.createElement("path", {
35
+ d: "M26.955 27.1798L33.9279 31.6453L40.9002 27.1798L33.9279 22.715L26.955 27.1798Z",
36
+ fill: "white"
37
+ })))), _defs || (_defs = /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("clipPath", { id: "clip0_16953_3268" }, /* @__PURE__ */ React.createElement("rect", {
38
+ width: 48,
39
+ height: 48,
40
+ rx: 24,
41
+ fill: "white"
42
+ })), /* @__PURE__ */ React.createElement("clipPath", { id: "clip1_16953_3268" }, /* @__PURE__ */ React.createElement("rect", {
43
+ width: 33.8687,
44
+ height: 28,
45
+ fill: "white",
46
+ transform: "translate(7.06567 10)"
47
+ })))));
48
+ });
49
+
50
+ //#endregion
51
+ export { Memo as default };
@@ -0,0 +1,2 @@
1
+ export { default as WalletIcon } from './anchorageDigital.svg';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1 @@
1
+ import Memo from "./anchorageDigital.js";
@@ -0,0 +1,6 @@
1
+ import type { WalletAdapterType } from '@reef-knot/types';
2
+ export declare const id = "anchorageDigital";
3
+ export declare const name = "Anchorage Digital";
4
+ export declare const rdns = "com.anchorage.connect";
5
+ export declare const AnchorageDigital: WalletAdapterType;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAY1D,eAAO,MAAM,EAAE,qBAAqB,CAAC;AACrC,eAAO,MAAM,IAAI,sBAAsB,CAAC;AACxC,eAAO,MAAM,IAAI,0BAA0B,CAAC;AAE5C,eAAO,MAAM,gBAAgB,EAAE,iBAY7B,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ import Memo from "./icons/anchorageDigital.js";
2
+ import "./icons/index.js";
3
+ import { injected } from "wagmi/connectors";
4
+ import { getTargetEIP6963, isProviderExistsEIP6963 } from "@reef-knot/wallets-helpers";
5
+
6
+ //#region src/index.ts
7
+ const id = "anchorageDigital";
8
+ const name = "Anchorage Digital";
9
+ const rdns = "com.anchorage.connect";
10
+ const AnchorageDigital = ({ providersStore }) => ({
11
+ walletId: id,
12
+ walletName: name,
13
+ type: injected.type,
14
+ icon: Memo,
15
+ detector: () => isProviderExistsEIP6963(providersStore, rdns),
16
+ downloadURLs: { default: "https://www.anchorage.com/" },
17
+ createConnectorFn: injected({ target: getTargetEIP6963(providersStore, rdns) })
18
+ });
19
+
20
+ //#endregion
21
+ export { AnchorageDigital, id, name, rdns };
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@reef-knot/wallet-adapter-anchorage-digital",
3
+ "version": "1.0.0-alpha.1",
4
+ "main": "dist/index.js",
5
+ "types": "dist/index.d.ts",
6
+ "exports": {
7
+ ".": "./dist/index.js"
8
+ },
9
+ "typesVersions": {
10
+ "*": {
11
+ ".": [
12
+ "dist/index.d.ts"
13
+ ]
14
+ }
15
+ },
16
+ "type": "module",
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "license": "MIT",
21
+ "homepage": "https://github.com/lidofinance/reef-knot",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/lidofinance/reef-knot.git",
25
+ "directory": "packages/wallets/anchorage-digital"
26
+ },
27
+ "bugs": {
28
+ "url": "https://github.com/lidofinance/reef-knot/issues"
29
+ },
30
+ "publishConfig": {
31
+ "registry": "https://registry.npmjs.org/",
32
+ "access": "public"
33
+ },
34
+ "scripts": {
35
+ "build": "yarn run -T tsdown && yarn run -T tsc --noEmit false --noEmitOnError false --emitDeclarationOnly --outDir dist || true",
36
+ "dev": "yarn run -T tsdown --watch",
37
+ "lint": "eslint --ext ts,tsx,js,mjs ."
38
+ },
39
+ "devDependencies": {
40
+ "@reef-knot/types": "5.0.0-alpha.2",
41
+ "@reef-knot/wallets-helpers": "3.0.0-alpha.2",
42
+ "build-config": "*",
43
+ "eslint-config-custom": "*"
44
+ },
45
+ "peerDependencies": {
46
+ "@reef-knot/types": "5.0.0-alpha.2",
47
+ "@reef-knot/wallets-helpers": "3.0.0-alpha.2",
48
+ "wagmi": ">=3.3"
49
+ }
50
+ }