@openocean.finance/wallet 1.8.4 → 1.8.5

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/lib/Chains.js CHANGED
@@ -476,6 +476,15 @@ var chainObj = {
476
476
  popularToken: ["RBTC", "RUSDT", "RIF"],
477
477
  rpcUrls: ["https://public-node.rsk.co"]
478
478
  },
479
+ "sei": {
480
+ compiler: 'EVM',
481
+ chainName: "Sei Network",
482
+ chainId: 1329,
483
+ blockExplorerUrl: "https://seitrace.com/tx/",
484
+ nativeCurrency: { name: "SEI", symbol: "SEI", decimals: 18, address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" },
485
+ popularToken: ["SEI"],
486
+ rpcUrls: ["https://evm-rpc.sei-apis.com"]
487
+ },
479
488
  };
480
489
  var Chains = /** @class */ (function () {
481
490
  function Chains() {
@@ -88,7 +88,8 @@ var CoinbaseWallet = /** @class */ (function (_super) {
88
88
  types_1.EnumChains.Mantle,
89
89
  types_1.EnumChains.Manta,
90
90
  types_1.EnumChains.Mode,
91
- types_1.EnumChains.Rootstock
91
+ types_1.EnumChains.Rootstock,
92
+ types_1.EnumChains.Sei
92
93
  ];
93
94
  _this.type = types_1.EnumWalletType.Extension;
94
95
  _this.sdk = null;
@@ -0,0 +1,13 @@
1
+ import { EnumChains, EnumWalletName, EnumWalletType } from "../types";
2
+ import BaseWallet from "./BaseWallet";
3
+ import Web3 from 'web3';
4
+ declare class CompassWallet extends BaseWallet {
5
+ name: EnumWalletName;
6
+ icon: any;
7
+ supportChains: EnumChains[];
8
+ type: EnumWalletType;
9
+ sdk: Web3 | null;
10
+ installUrl: string;
11
+ requestConnect(chainId?: number): Promise<string>;
12
+ }
13
+ export default CompassWallet;
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
53
+ var __importDefault = (this && this.__importDefault) || function (mod) {
54
+ return (mod && mod.__esModule) ? mod : { "default": mod };
55
+ };
56
+ Object.defineProperty(exports, "__esModule", { value: true });
57
+ /**
58
+ * @name CompassWallet
59
+ * @author openocean
60
+ * @date 2024/6/11
61
+ * @desc
62
+ */
63
+ // @ts-ignore
64
+ var compass_svg_1 = __importDefault(require("../assets/compass.svg"));
65
+ var types_1 = require("../types");
66
+ var BaseWallet_1 = __importDefault(require("./BaseWallet"));
67
+ var web3_1 = __importDefault(require("web3"));
68
+ var CompassWallet = /** @class */ (function (_super) {
69
+ __extends(CompassWallet, _super);
70
+ function CompassWallet() {
71
+ var _this = _super !== null && _super.apply(this, arguments) || this;
72
+ _this.name = types_1.EnumWalletName.CompassWallet;
73
+ _this.icon = compass_svg_1.default;
74
+ _this.supportChains = [
75
+ types_1.EnumChains.ETH,
76
+ types_1.EnumChains.BSC,
77
+ types_1.EnumChains.Polygon,
78
+ types_1.EnumChains.XDai,
79
+ types_1.EnumChains.Fantom,
80
+ types_1.EnumChains.Avalanche,
81
+ types_1.EnumChains.Arbitrum,
82
+ types_1.EnumChains.Optimism,
83
+ types_1.EnumChains.Metis,
84
+ types_1.EnumChains.Sei
85
+ ];
86
+ _this.type = types_1.EnumWalletType.Extension;
87
+ _this.sdk = null;
88
+ _this.installUrl = "https://chromewebstore.google.com/detail/compass-wallet-for-sei/anokgmphncpekkhclmingpimjmcooifb";
89
+ return _this;
90
+ }
91
+ CompassWallet.prototype.requestConnect = function (chainId) {
92
+ return __awaiter(this, void 0, void 0, function () {
93
+ var address, currentChainId;
94
+ return __generator(this, function (_a) {
95
+ switch (_a.label) {
96
+ case 0:
97
+ if (!window.compassEvm) {
98
+ throw new Error(types_1.EnumErrors.NotCompassWallet);
99
+ }
100
+ this.sdk = new web3_1.default(window.compassEvm);
101
+ return [4 /*yield*/, this.sdk.eth.requestAccounts()];
102
+ case 1:
103
+ address = (_a.sent())[0];
104
+ return [4 /*yield*/, this.sdk.eth.getChainId()];
105
+ case 2:
106
+ currentChainId = _a.sent();
107
+ if (chainId && currentChainId !== chainId) {
108
+ throw new Error(types_1.EnumErrors.ChainIdNotMath);
109
+ }
110
+ this.address = address;
111
+ this.chainId = currentChainId;
112
+ return [2 /*return*/, address];
113
+ }
114
+ });
115
+ });
116
+ };
117
+ return CompassWallet;
118
+ }(BaseWallet_1.default));
119
+ exports.default = CompassWallet;
@@ -110,7 +110,8 @@ var MetaMask = /** @class */ (function (_super) {
110
110
  types_1.EnumChains.Mode,
111
111
  types_1.EnumChains.PulseChain,
112
112
  types_1.EnumChains.MerlinChain,
113
- types_1.EnumChains.Rootstock
113
+ types_1.EnumChains.Rootstock,
114
+ types_1.EnumChains.Sei
114
115
  ];
115
116
  _this.type = types_1.EnumWalletType.Extension;
116
117
  _this.sdk = null;
@@ -91,7 +91,8 @@ var OKXWallet = /** @class */ (function (_super) {
91
91
  types_1.EnumChains.Manta,
92
92
  types_1.EnumChains.X1,
93
93
  types_1.EnumChains.Mode,
94
- types_1.EnumChains.Rootstock
94
+ types_1.EnumChains.Rootstock,
95
+ types_1.EnumChains.Sei
95
96
  ];
96
97
  _this.type = types_1.EnumWalletType.Extension;
97
98
  _this.sdk = null;
@@ -106,7 +106,8 @@ var WalletConnect = /** @class */ (function (_super) {
106
106
  types_1.EnumChains.Mode,
107
107
  types_1.EnumChains.PulseChain,
108
108
  types_1.EnumChains.MerlinChain,
109
- types_1.EnumChains.Rootstock
109
+ types_1.EnumChains.Rootstock,
110
+ types_1.EnumChains.Sei
110
111
  ];
111
112
  _this.type = types_1.EnumWalletType.WalletConnect;
112
113
  _this.sdk = null;
@@ -53,6 +53,7 @@ var Fewcha_1 = __importDefault(require("./Fewcha"));
53
53
  var BlockWallet_1 = __importDefault(require("./BlockWallet"));
54
54
  var HaHaWallet_1 = __importDefault(require("./HaHaWallet"));
55
55
  var ZerionWallet_1 = __importDefault(require("./ZerionWallet"));
56
+ var CompassWallet_1 = __importDefault(require("./CompassWallet"));
56
57
  var WalletObj = {
57
58
  MetaMask: new MetaMask_1.default(),
58
59
  BscWallet: new BscWallet_1.default(),
@@ -102,6 +103,7 @@ var WalletObj = {
102
103
  Fewcha: new Fewcha_1.default(),
103
104
  BlockWallet: new BlockWallet_1.default(),
104
105
  BraveWallet: new BraveWallet_1.default(),
106
+ CompassWallet: new CompassWallet_1.default(),
105
107
  };
106
108
  var Wallets = /** @class */ (function () {
107
109
  function Wallets() {
@@ -0,0 +1,45 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 765 765" fill="none">
2
+ <g clip-path="url(#clip0_7_204)">
3
+ <rect width="765" height="765" rx="382.5" fill="#0D233D"/>
4
+ <path d="M408.307 252.71C408.307 266.963 396.753 278.517 382.5 278.517C368.248 278.517 356.693 266.963 356.693 252.71C356.693 238.458 368.248 226.903 382.5 226.903C396.753 226.903 408.307 238.458 408.307 252.71Z" fill="white"/>
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M458.165 142.428C425.4 82.7043 339.601 82.7042 306.836 142.428L260.556 226.785C252.655 241.188 240.806 253.037 226.402 260.939L142.045 307.218C82.3216 339.983 82.3215 425.782 142.045 458.547L226.402 504.827C240.806 512.729 252.655 524.577 260.556 538.981L306.836 623.338C339.601 683.061 425.4 683.062 458.165 623.338L504.444 538.981C512.346 524.577 524.195 512.729 538.598 504.827L622.955 458.547C682.679 425.782 682.679 339.984 622.955 307.218L538.598 260.939C524.195 253.037 512.346 241.188 504.444 226.785L458.165 142.428ZM423.489 204.542C409.357 166.352 355.341 166.352 341.209 204.542L311.153 285.767C306.71 297.775 297.243 307.241 285.236 311.684L204.011 341.74C165.82 355.872 165.82 409.888 204.011 424.02L285.236 454.076C297.243 458.519 306.71 467.986 311.153 479.993L341.209 561.218C355.341 599.409 409.357 599.409 423.489 561.218L453.545 479.993C457.988 467.986 467.455 458.519 479.462 454.076L560.687 424.02C598.878 409.888 598.878 355.872 560.687 341.74L479.462 311.684C467.455 307.241 457.988 297.775 453.545 285.767L423.489 204.542Z" fill="white"/>
6
+ <g filter="url(#filter0_f_7_204)">
7
+ <path d="M742.626 -17.1332C738.962 -13.4384 728.474 -17.8992 719.199 -27.0967C709.925 -36.2943 705.377 -46.7455 709.042 -50.4403C712.706 -54.1351 723.195 -49.6743 732.469 -40.4767C741.743 -31.2792 746.291 -20.828 742.626 -17.1332Z" fill="#2279E4"/>
8
+ <path d="M742.626 -17.1332C738.962 -13.4384 728.474 -17.8992 719.199 -27.0967C709.925 -36.2943 705.377 -46.7455 709.042 -50.4403C712.706 -54.1351 723.195 -49.6743 732.469 -40.4767C741.743 -31.2792 746.291 -20.828 742.626 -17.1332Z" fill="#2279E4"/>
9
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M803.421 -13.5482C797.456 -50.1744 741.627 -105.542 704.952 -111.203L653.151 -119.2C644.306 -120.565 633.55 -125.14 622.146 -132.386L555.357 -174.826C508.072 -204.873 486.013 -182.631 516.452 -135.597L559.445 -69.1622C566.785 -57.819 571.449 -47.1012 572.888 -38.2681L581.314 13.4651C587.28 50.0913 643.109 105.459 679.783 111.12L731.585 119.117C740.429 120.482 751.186 125.057 762.589 132.303L829.378 174.743C876.664 204.79 898.722 182.548 868.284 135.514L825.291 69.0791C817.95 57.7359 813.286 47.0181 811.848 38.185L803.421 -13.5482ZM764.889 -19.8227C765.512 -38.8426 730.364 -73.7003 711.35 -72.9195L670.91 -71.2588C664.932 -71.0133 656.338 -74.6683 647.383 -81.2648L586.803 -125.889C558.319 -146.871 544.432 -132.868 565.649 -104.559L610.775 -44.3519C617.446 -35.4518 621.172 -26.8886 620.976 -20.9088L619.651 19.5432C619.028 38.563 654.176 73.4207 673.191 72.6399L713.63 70.9792C719.608 70.7337 728.202 74.3887 737.157 80.9853L797.737 125.61C826.221 146.591 840.108 132.589 818.891 104.28L773.765 44.0724C767.094 35.1723 763.368 26.609 763.564 20.6293L764.889 -19.8227Z" fill="#2279E4"/>
10
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M803.421 -13.5482C797.456 -50.1744 741.627 -105.542 704.952 -111.203L653.151 -119.2C644.306 -120.565 633.55 -125.14 622.146 -132.386L555.357 -174.826C508.072 -204.873 486.013 -182.631 516.452 -135.597L559.445 -69.1622C566.785 -57.819 571.449 -47.1012 572.888 -38.2681L581.314 13.4651C587.28 50.0913 643.109 105.459 679.783 111.12L731.585 119.117C740.429 120.482 751.186 125.057 762.589 132.303L829.378 174.743C876.664 204.79 898.722 182.548 868.284 135.514L825.291 69.0791C817.95 57.7359 813.286 47.0181 811.848 38.185L803.421 -13.5482ZM764.889 -19.8227C765.512 -38.8426 730.364 -73.7003 711.35 -72.9195L670.91 -71.2588C664.932 -71.0133 656.338 -74.6683 647.383 -81.2648L586.803 -125.889C558.319 -146.871 544.432 -132.868 565.649 -104.559L610.775 -44.3519C617.446 -35.4518 621.172 -26.8886 620.976 -20.9088L619.651 19.5432C619.028 38.563 654.176 73.4207 673.191 72.6399L713.63 70.9792C719.608 70.7337 728.202 74.3887 737.157 80.9853L797.737 125.61C826.221 146.591 840.108 132.589 818.891 104.28L773.765 44.0724C767.094 35.1723 763.368 26.609 763.564 20.6293L764.889 -19.8227Z" fill="#2279E4"/>
11
+ </g>
12
+ <g filter="url(#filter1_f_7_204)">
13
+ <path d="M742.626 -17.1332C738.962 -13.4384 728.474 -17.8992 719.199 -27.0967C709.925 -36.2943 705.377 -46.7455 709.042 -50.4403C712.706 -54.1351 723.195 -49.6743 732.469 -40.4767C741.743 -31.2792 746.291 -20.828 742.626 -17.1332Z" fill="#2279E4"/>
14
+ <path d="M742.626 -17.1332C738.962 -13.4384 728.474 -17.8992 719.199 -27.0967C709.925 -36.2943 705.377 -46.7455 709.042 -50.4403C712.706 -54.1351 723.195 -49.6743 732.469 -40.4767C741.743 -31.2792 746.291 -20.828 742.626 -17.1332Z" fill="#2279E4"/>
15
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M803.421 -13.5482C797.456 -50.1744 741.627 -105.542 704.952 -111.203L653.151 -119.2C644.306 -120.565 633.55 -125.14 622.146 -132.386L555.357 -174.826C508.072 -204.873 486.013 -182.631 516.452 -135.597L559.445 -69.1622C566.785 -57.819 571.449 -47.1012 572.888 -38.2681L581.314 13.4651C587.28 50.0913 643.109 105.459 679.783 111.12L731.585 119.117C740.429 120.482 751.186 125.057 762.589 132.303L829.378 174.743C876.664 204.79 898.722 182.548 868.284 135.514L825.291 69.0791C817.95 57.7359 813.286 47.0181 811.848 38.185L803.421 -13.5482ZM764.889 -19.8227C765.512 -38.8426 730.364 -73.7003 711.35 -72.9195L670.91 -71.2588C664.932 -71.0133 656.338 -74.6683 647.383 -81.2648L586.803 -125.889C558.319 -146.871 544.432 -132.868 565.649 -104.559L610.775 -44.3519C617.446 -35.4518 621.172 -26.8886 620.976 -20.9088L619.651 19.5432C619.028 38.563 654.176 73.4207 673.191 72.6399L713.63 70.9792C719.608 70.7337 728.202 74.3887 737.157 80.9853L797.737 125.61C826.221 146.591 840.108 132.589 818.891 104.28L773.765 44.0724C767.094 35.1723 763.368 26.609 763.564 20.6293L764.889 -19.8227Z" fill="#2279E4"/>
16
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M803.421 -13.5482C797.456 -50.1744 741.627 -105.542 704.952 -111.203L653.151 -119.2C644.306 -120.565 633.55 -125.14 622.146 -132.386L555.357 -174.826C508.072 -204.873 486.013 -182.631 516.452 -135.597L559.445 -69.1622C566.785 -57.819 571.449 -47.1012 572.888 -38.2681L581.314 13.4651C587.28 50.0913 643.109 105.459 679.783 111.12L731.585 119.117C740.429 120.482 751.186 125.057 762.589 132.303L829.378 174.743C876.664 204.79 898.722 182.548 868.284 135.514L825.291 69.0791C817.95 57.7359 813.286 47.0181 811.848 38.185L803.421 -13.5482ZM764.889 -19.8227C765.512 -38.8426 730.364 -73.7003 711.35 -72.9195L670.91 -71.2588C664.932 -71.0133 656.338 -74.6683 647.383 -81.2648L586.803 -125.889C558.319 -146.871 544.432 -132.868 565.649 -104.559L610.775 -44.3519C617.446 -35.4518 621.172 -26.8886 620.976 -20.9088L619.651 19.5432C619.028 38.563 654.176 73.4207 673.191 72.6399L713.63 70.9792C719.608 70.7337 728.202 74.3887 737.157 80.9853L797.737 125.61C826.221 146.591 840.108 132.589 818.891 104.28L773.765 44.0724C767.094 35.1723 763.368 26.609 763.564 20.6293L764.889 -19.8227Z" fill="#2279E4"/>
17
+ </g>
18
+ <g filter="url(#filter2_f_7_204)">
19
+ <path d="M742.626 -17.1332C738.962 -13.4384 728.474 -17.8992 719.199 -27.0967C709.925 -36.2943 705.377 -46.7455 709.042 -50.4403C712.706 -54.1351 723.195 -49.6743 732.469 -40.4767C741.743 -31.2792 746.291 -20.828 742.626 -17.1332Z" fill="#2279E4"/>
20
+ <path d="M742.626 -17.1332C738.962 -13.4384 728.474 -17.8992 719.199 -27.0967C709.925 -36.2943 705.377 -46.7455 709.042 -50.4403C712.706 -54.1351 723.195 -49.6743 732.469 -40.4767C741.743 -31.2792 746.291 -20.828 742.626 -17.1332Z" fill="#2279E4"/>
21
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M803.421 -13.5482C797.456 -50.1744 741.627 -105.542 704.952 -111.203L653.151 -119.2C644.306 -120.565 633.55 -125.14 622.146 -132.386L555.357 -174.826C508.072 -204.873 486.013 -182.631 516.452 -135.597L559.445 -69.1622C566.785 -57.819 571.449 -47.1012 572.888 -38.2681L581.314 13.4651C587.28 50.0913 643.109 105.459 679.783 111.12L731.585 119.117C740.429 120.482 751.186 125.057 762.589 132.303L829.378 174.743C876.664 204.79 898.722 182.548 868.284 135.514L825.291 69.0791C817.95 57.7359 813.286 47.0181 811.848 38.185L803.421 -13.5482ZM764.889 -19.8227C765.512 -38.8426 730.364 -73.7003 711.35 -72.9195L670.91 -71.2588C664.932 -71.0133 656.338 -74.6683 647.383 -81.2648L586.803 -125.889C558.319 -146.871 544.432 -132.868 565.649 -104.559L610.775 -44.3519C617.446 -35.4518 621.172 -26.8886 620.976 -20.9088L619.651 19.5432C619.028 38.563 654.176 73.4207 673.191 72.6399L713.63 70.9792C719.608 70.7337 728.202 74.3887 737.157 80.9853L797.737 125.61C826.221 146.591 840.108 132.589 818.891 104.28L773.765 44.0724C767.094 35.1723 763.368 26.609 763.564 20.6293L764.889 -19.8227Z" fill="#2279E4"/>
22
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M803.421 -13.5482C797.456 -50.1744 741.627 -105.542 704.952 -111.203L653.151 -119.2C644.306 -120.565 633.55 -125.14 622.146 -132.386L555.357 -174.826C508.072 -204.873 486.013 -182.631 516.452 -135.597L559.445 -69.1622C566.785 -57.819 571.449 -47.1012 572.888 -38.2681L581.314 13.4651C587.28 50.0913 643.109 105.459 679.783 111.12L731.585 119.117C740.429 120.482 751.186 125.057 762.589 132.303L829.378 174.743C876.664 204.79 898.722 182.548 868.284 135.514L825.291 69.0791C817.95 57.7359 813.286 47.0181 811.848 38.185L803.421 -13.5482ZM764.889 -19.8227C765.512 -38.8426 730.364 -73.7003 711.35 -72.9195L670.91 -71.2588C664.932 -71.0133 656.338 -74.6683 647.383 -81.2648L586.803 -125.889C558.319 -146.871 544.432 -132.868 565.649 -104.559L610.775 -44.3519C617.446 -35.4518 621.172 -26.8886 620.976 -20.9088L619.651 19.5432C619.028 38.563 654.176 73.4207 673.191 72.6399L713.63 70.9792C719.608 70.7337 728.202 74.3887 737.157 80.9853L797.737 125.61C826.221 146.591 840.108 132.589 818.891 104.28L773.765 44.0724C767.094 35.1723 763.368 26.609 763.564 20.6293L764.889 -19.8227Z" fill="#2279E4"/>
23
+ </g>
24
+ </g>
25
+ <defs>
26
+ <filter id="filter0_f_7_204" x="-32.629" y="-723.606" width="1449.99" height="1447.13" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
27
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
28
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
29
+ <feGaussianBlur stdDeviation="267.545" result="effect1_foregroundBlur_7_204"/>
30
+ </filter>
31
+ <filter id="filter1_f_7_204" x="-32.629" y="-723.606" width="1449.99" height="1447.13" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
32
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
33
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
34
+ <feGaussianBlur stdDeviation="267.545" result="effect1_foregroundBlur_7_204"/>
35
+ </filter>
36
+ <filter id="filter2_f_7_204" x="-32.629" y="-723.606" width="1449.99" height="1447.13" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
37
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
38
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
39
+ <feGaussianBlur stdDeviation="267.545" result="effect1_foregroundBlur_7_204"/>
40
+ </filter>
41
+ <clipPath id="clip0_7_204">
42
+ <rect width="765" height="765" rx="382.5" fill="white"/>
43
+ </clipPath>
44
+ </defs>
45
+ </svg>
package/lib/index.d.ts CHANGED
@@ -45,8 +45,9 @@ import Krystal from './Wallets/Krystal';
45
45
  import Risewallet from './Wallets/Risewallet';
46
46
  import Fewcha from './Wallets/Fewcha';
47
47
  import ZerionWallet from './Wallets/ZerionWallet';
48
+ import CompassWallet from './Wallets/CompassWallet';
48
49
  import { EnumChains, EnumWalletName } from "./types";
49
50
  import { getSidName, tryWalletConnect, ReqConnectWalletVo } from "./TryWalletConnect";
50
51
  import { chainsObj, Chains, Chain } from "./Chains";
51
52
  import { walletsObj, Wallets } from "./Wallets/index";
52
- export { chainsObj, Chains, Chain, walletsObj, Wallets, ReqConnectWalletVo, tryWalletConnect, getSidName, EnumChains, EnumWalletName, BaseWallet, MetaMask, BscWallet, Cyano, TronLink, Sollet, SolletIo, OntoMobile, WalletConnect, MathWallet, OntoWallet, SafePalWallet, TokenPocket, TrustWallet, Coin98, Phantom, TerraStation, CoinbaseWallet, CloverWallet, XDEFIWallet, SolflareWallet, OKXWallet, KeplrWallet, BraveWallet, CryptoCom, BitgetWallet, GnosisSafeWallet, PetraWallet, MartianWallet, PontemWallet, UnstoppableDomains, MyNearWallet, MeteorWallet, SenderWallet, LedgerWallet, LedgerEmbedWallet, PlenaWallet, Krystal, Risewallet, Fewcha, ZerionWallet, };
53
+ export { chainsObj, Chains, Chain, walletsObj, Wallets, ReqConnectWalletVo, tryWalletConnect, getSidName, EnumChains, EnumWalletName, BaseWallet, MetaMask, BscWallet, Cyano, TronLink, Sollet, SolletIo, OntoMobile, WalletConnect, MathWallet, OntoWallet, SafePalWallet, TokenPocket, TrustWallet, Coin98, Phantom, TerraStation, CoinbaseWallet, CloverWallet, XDEFIWallet, SolflareWallet, OKXWallet, KeplrWallet, BraveWallet, CryptoCom, BitgetWallet, GnosisSafeWallet, PetraWallet, MartianWallet, PontemWallet, UnstoppableDomains, MyNearWallet, MeteorWallet, SenderWallet, LedgerWallet, LedgerEmbedWallet, PlenaWallet, Krystal, Risewallet, Fewcha, ZerionWallet, CompassWallet, };
package/lib/index.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ZerionWallet = exports.Fewcha = exports.Risewallet = exports.Krystal = exports.PlenaWallet = exports.LedgerEmbedWallet = exports.LedgerWallet = exports.SenderWallet = exports.MeteorWallet = exports.MyNearWallet = exports.UnstoppableDomains = exports.PontemWallet = exports.MartianWallet = exports.PetraWallet = exports.GnosisSafeWallet = exports.BitgetWallet = exports.CryptoCom = exports.BraveWallet = exports.KeplrWallet = exports.OKXWallet = exports.SolflareWallet = exports.XDEFIWallet = exports.CloverWallet = exports.CoinbaseWallet = exports.TerraStation = exports.Phantom = exports.Coin98 = exports.TrustWallet = exports.TokenPocket = exports.SafePalWallet = exports.OntoWallet = exports.MathWallet = exports.WalletConnect = exports.OntoMobile = exports.SolletIo = exports.Sollet = exports.TronLink = exports.Cyano = exports.BscWallet = exports.MetaMask = exports.BaseWallet = exports.EnumWalletName = exports.EnumChains = exports.getSidName = exports.tryWalletConnect = exports.Wallets = exports.walletsObj = exports.Chains = exports.chainsObj = void 0;
6
+ exports.CompassWallet = exports.ZerionWallet = exports.Fewcha = exports.Risewallet = exports.Krystal = exports.PlenaWallet = exports.LedgerEmbedWallet = exports.LedgerWallet = exports.SenderWallet = exports.MeteorWallet = exports.MyNearWallet = exports.UnstoppableDomains = exports.PontemWallet = exports.MartianWallet = exports.PetraWallet = exports.GnosisSafeWallet = exports.BitgetWallet = exports.CryptoCom = exports.BraveWallet = exports.KeplrWallet = exports.OKXWallet = exports.SolflareWallet = exports.XDEFIWallet = exports.CloverWallet = exports.CoinbaseWallet = exports.TerraStation = exports.Phantom = exports.Coin98 = exports.TrustWallet = exports.TokenPocket = exports.SafePalWallet = exports.OntoWallet = exports.MathWallet = exports.WalletConnect = exports.OntoMobile = exports.SolletIo = exports.Sollet = exports.TronLink = exports.Cyano = exports.BscWallet = exports.MetaMask = exports.BaseWallet = exports.EnumWalletName = exports.EnumChains = exports.getSidName = exports.tryWalletConnect = exports.Wallets = exports.walletsObj = exports.Chains = exports.chainsObj = void 0;
7
7
  /**
8
8
  * wallets-manager entry
9
9
  * @author openocean
@@ -96,6 +96,8 @@ var Fewcha_1 = __importDefault(require("./Wallets/Fewcha"));
96
96
  exports.Fewcha = Fewcha_1.default;
97
97
  var ZerionWallet_1 = __importDefault(require("./Wallets/ZerionWallet"));
98
98
  exports.ZerionWallet = ZerionWallet_1.default;
99
+ var CompassWallet_1 = __importDefault(require("./Wallets/CompassWallet"));
100
+ exports.CompassWallet = CompassWallet_1.default;
99
101
  var types_1 = require("./types");
100
102
  Object.defineProperty(exports, "EnumChains", { enumerable: true, get: function () { return types_1.EnumChains; } });
101
103
  Object.defineProperty(exports, "EnumWalletName", { enumerable: true, get: function () { return types_1.EnumWalletName; } });
package/lib/types.d.ts CHANGED
@@ -57,7 +57,8 @@ export declare enum EnumChains {
57
57
  Mode = "mode",
58
58
  PulseChain = "pulse",
59
59
  MerlinChain = "merlin",
60
- Rootstock = "rootstock"
60
+ Rootstock = "rootstock",
61
+ Sei = "sei"
61
62
  }
62
63
  export declare enum EnumWalletType {
63
64
  Extension = "Extension",
@@ -115,7 +116,8 @@ export declare enum EnumWalletName {
115
116
  Fewcha = "Fewcha",
116
117
  BlockWallet = "BlockWallet",
117
118
  HaHaWallet = "HaHa Wallet",
118
- ZerionWallet = "Zerion Wallet"
119
+ ZerionWallet = "Zerion Wallet",
120
+ CompassWallet = "Compass Wallet"
119
121
  }
120
122
  export declare enum EnumErrors {
121
123
  NotMetamask = "40001",
@@ -162,7 +164,8 @@ export declare enum EnumErrors {
162
164
  NoRisewallet = "40044",
163
165
  NoFewcha = "40045",
164
166
  NoBlockWallet = "40046",
165
- NotZerion = "40047"
167
+ NotZerion = "40047",
168
+ NotCompassWallet = "40048"
166
169
  }
167
170
  export interface ConnectResult {
168
171
  chain: EnumChains;
package/lib/types.js CHANGED
@@ -58,6 +58,7 @@ var EnumChains;
58
58
  EnumChains["PulseChain"] = "pulse";
59
59
  EnumChains["MerlinChain"] = "merlin";
60
60
  EnumChains["Rootstock"] = "rootstock";
61
+ EnumChains["Sei"] = "sei";
61
62
  })(EnumChains = exports.EnumChains || (exports.EnumChains = {}));
62
63
  var EnumWalletType;
63
64
  (function (EnumWalletType) {
@@ -118,6 +119,7 @@ var EnumWalletName;
118
119
  EnumWalletName["BlockWallet"] = "BlockWallet";
119
120
  EnumWalletName["HaHaWallet"] = "HaHa Wallet";
120
121
  EnumWalletName["ZerionWallet"] = "Zerion Wallet";
122
+ EnumWalletName["CompassWallet"] = "Compass Wallet";
121
123
  })(EnumWalletName = exports.EnumWalletName || (exports.EnumWalletName = {}));
122
124
  var EnumErrors;
123
125
  (function (EnumErrors) {
@@ -166,4 +168,5 @@ var EnumErrors;
166
168
  EnumErrors["NoFewcha"] = "40045";
167
169
  EnumErrors["NoBlockWallet"] = "40046";
168
170
  EnumErrors["NotZerion"] = "40047";
171
+ EnumErrors["NotCompassWallet"] = "40048";
169
172
  })(EnumErrors = exports.EnumErrors || (exports.EnumErrors = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/wallet",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
4
4
  "description": "A multi-chain wallets manager",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {