@openocean.finance/wallet 1.10.40 → 1.10.41
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.
|
@@ -8,7 +8,7 @@ declare class SlushWallet extends BaseWallet {
|
|
|
8
8
|
sdk: any;
|
|
9
9
|
installUrl: string;
|
|
10
10
|
requestConnect(): Promise<any>;
|
|
11
|
-
|
|
11
|
+
getSlushWallet(name: string): Promise<any>;
|
|
12
12
|
disconnect(): Promise<any>;
|
|
13
13
|
}
|
|
14
14
|
export default SlushWallet;
|
|
@@ -55,7 +55,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
55
55
|
};
|
|
56
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
57
|
// @ts-ignore
|
|
58
|
-
var
|
|
58
|
+
var slush_svg_1 = __importDefault(require("../assets/slush.svg"));
|
|
59
59
|
var BaseWallet_1 = __importDefault(require("./BaseWallet"));
|
|
60
60
|
var types_1 = require("../types");
|
|
61
61
|
var helper_1 = require("../helper");
|
|
@@ -65,7 +65,7 @@ var SlushWallet = /** @class */ (function (_super) {
|
|
|
65
65
|
function SlushWallet() {
|
|
66
66
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
67
67
|
_this.name = types_1.EnumWalletName.SlushWallet;
|
|
68
|
-
_this.icon =
|
|
68
|
+
_this.icon = slush_svg_1.default;
|
|
69
69
|
_this.supportChains = [types_1.EnumChains.Sui];
|
|
70
70
|
_this.type = types_1.EnumWalletType.Extension;
|
|
71
71
|
_this.sdk = null;
|
|
@@ -78,7 +78,7 @@ var SlushWallet = /** @class */ (function (_super) {
|
|
|
78
78
|
var result, wallet, permissions, accounts, error_1;
|
|
79
79
|
return __generator(this, function (_a) {
|
|
80
80
|
switch (_a.label) {
|
|
81
|
-
case 0: return [4 /*yield*/, this.
|
|
81
|
+
case 0: return [4 /*yield*/, this.getSlushWallet('Slush')];
|
|
82
82
|
case 1:
|
|
83
83
|
result = _a.sent();
|
|
84
84
|
if (!result) {
|
|
@@ -110,7 +110,7 @@ var SlushWallet = /** @class */ (function (_super) {
|
|
|
110
110
|
});
|
|
111
111
|
}); });
|
|
112
112
|
};
|
|
113
|
-
SlushWallet.prototype.
|
|
113
|
+
SlushWallet.prototype.getSlushWallet = function (name) {
|
|
114
114
|
var _this = this;
|
|
115
115
|
return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
116
116
|
var Wallet, result;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="96px" height="96px" viewBox="0 0 96 96" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>slush</title>
|
|
4
|
+
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="slush" fill-rule="nonzero">
|
|
6
|
+
<path d="M48.000018,0 C74.5096537,0 96,21.4903463 96,47.999982 C96,74.5096177 74.5096537,95.999964 48.000018,95.999964 C21.4902862,95.999964 0,74.5096177 0,47.999982 C0,21.4903463 21.4902862,0 48.000018,0 Z" id="Path" fill="#4D3EFF"></path>
|
|
7
|
+
<path d="M41.810283,21.2563108 C53.3231617,18.1713692 66.0211242,20.042895 69.2281628,32.0115129 C70.4931156,36.7325555 69.569495,40.4720993 65.6432303,41.524158 C63.0477565,42.2196392 58.4443589,40.7448952 60.5948866,34.3961163 L62.3470136,29.2228424 C62.8248787,27.8120476 62.3045157,26.6686522 61.5143249,26.3815554 C60.2535544,25.9353951 58.8739248,26.3764287 56.8025915,27.4302412 L29.777446,41.2995263 C27.0761997,42.6647202 26.7493033,44.1064103 27.3229572,45.4492084 C27.9145547,46.8585192 28.9400354,47.2252152 31.1765033,47.0536047 L66.6885433,44.0948077 C70.6598692,43.7433569 73.2359155,45.9037334 74.0911348,49.0953918 C76.5676145,58.3379392 67.0167889,70.8744098 51.777453,74.9578492 C35.8059393,79.2373185 28.0861652,72.2549838 26.019419,64.5418206 C25.0395393,60.8847091 25.3633327,56.23679 29.3562448,55.1669226 C32.5504666,54.3110288 35.2774815,56.5023005 36.0257141,59.2950185 L39.0545314,70.5987807 C39.9097507,73.7904391 42.3515576,74.9177797 45.8278844,71.9195879 L66.1085484,54.4412207 C66.1720928,54.3871202 66.2355024,54.3331547 66.2985072,54.2794589 C68.6549136,52.2731541 70.6233076,50.5972535 69.3331258,48.3748166 C68.470891,46.8895494 67.4513466,46.539043 66.1019376,46.7690712 L65.5075069,46.8555511 L42.4360137,49.4664051 C42.4360137,49.4664051 37.7341289,50.0450509 35.9736373,50.1907579 C34.2131456,50.3367347 34.541661,50.2615877 33.6291033,50.2826343 L29.1916498,50.2935623 C26.2850645,50.3596701 23.7755308,48.181485 23.044972,45.4552796 C19.9449201,33.8854672 30.0978666,24.3945433 41.810283,21.2563108 Z" id="Path" fill="#FFFFFF"></path>
|
|
8
|
+
</g>
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|
package/package.json
CHANGED
package/lib/assets/sui.svg
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="783" height="1000" viewBox="0 0 783 1000" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M626.01 417.062L625.992 417.106C666.789 468.26 691.169 533.051 691.169 603.521C691.169 675.039 666.058 740.709 624.161 792.21L620.553 796.644L619.597 791.009C618.784 786.216 617.827 781.378 616.717 776.5C595.749 684.372 527.433 605.373 414.993 541.408C339.064 498.332 295.602 446.463 284.191 387.53C276.822 349.422 282.301 311.145 292.889 278.359C303.474 245.584 319.22 218.124 332.597 201.592L332.606 201.581L376.345 148.097C384.016 138.718 398.371 138.718 406.042 148.097L626.01 417.062ZM695.192 363.627L695.2 363.607L402.029 5.1334C396.432 -1.71113 385.952 -1.71113 380.354 5.1334L87.1804 363.611L87.1885 363.631L86.2346 364.814C32.285 431.76 0 516.837 0 609.449C0 825.141 175.139 1000 391.192 1000C607.245 1000 782.383 825.141 782.383 609.449C782.383 516.838 750.098 431.761 696.149 364.814L695.192 363.627ZM157.328 415.907L157.34 415.893L183.562 383.828L184.355 389.748C184.983 394.437 185.744 399.15 186.647 403.884C203.614 492.906 264.225 567.135 365.56 624.624C453.645 674.757 504.93 732.405 519.708 795.63C525.873 822.016 526.972 847.976 524.302 870.675L524.136 872.079L522.866 872.7C483.11 892.122 438.418 903.023 391.183 903.023C225.509 903.023 91.1967 768.935 91.1967 603.521C91.1967 532.502 115.956 467.245 157.328 415.907Z" fill="#4CA3FF"/>
|
|
3
|
-
</svg>
|