@shapeshiftoss/hdwallet-gridplus 1.62.4-gridplus.alpha.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/CHANGELOG.md +11 -0
- package/LICENSE.md +21 -0
- package/dist/adapter.d.ts +19 -0
- package/dist/adapter.d.ts.map +1 -0
- package/dist/adapter.js +129 -0
- package/dist/adapter.js.map +1 -0
- package/dist/bitcoin.d.ts +7 -0
- package/dist/bitcoin.d.ts.map +1 -0
- package/dist/bitcoin.js +619 -0
- package/dist/bitcoin.js.map +1 -0
- package/dist/constants.d.ts +18 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +51 -0
- package/dist/constants.js.map +1 -0
- package/dist/cosmos.d.ts +7 -0
- package/dist/cosmos.d.ts.map +1 -0
- package/dist/cosmos.js +156 -0
- package/dist/cosmos.js.map +1 -0
- package/dist/ethereum.d.ts +7 -0
- package/dist/ethereum.d.ts.map +1 -0
- package/dist/ethereum.js +294 -0
- package/dist/ethereum.js.map +1 -0
- package/dist/gridplus.d.ts +112 -0
- package/dist/gridplus.d.ts.map +1 -0
- package/dist/gridplus.js +574 -0
- package/dist/gridplus.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/mayachain.d.ts +7 -0
- package/dist/mayachain.d.ts.map +1 -0
- package/dist/mayachain.js +163 -0
- package/dist/mayachain.js.map +1 -0
- package/dist/solana.d.ts +5 -0
- package/dist/solana.d.ts.map +1 -0
- package/dist/solana.js +120 -0
- package/dist/solana.js.map +1 -0
- package/dist/thorchain.d.ts +5 -0
- package/dist/thorchain.d.ts.map +1 -0
- package/dist/thorchain.js +143 -0
- package/dist/thorchain.js.map +1 -0
- package/dist/transport.d.ts +28 -0
- package/dist/transport.d.ts.map +1 -0
- package/dist/transport.js +148 -0
- package/dist/transport.js.map +1 -0
- package/dist/utils.d.ts +17 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +117 -0
- package/dist/utils.js.map +1 -0
- package/package.json +38 -0
- package/package.json.bak +38 -0
- package/src/adapter.ts +109 -0
- package/src/bitcoin.ts +711 -0
- package/src/constants.ts +52 -0
- package/src/cosmos.ts +132 -0
- package/src/ethereum.ts +305 -0
- package/src/gridplus.ts +550 -0
- package/src/index.ts +3 -0
- package/src/mayachain.ts +150 -0
- package/src/solana.ts +97 -0
- package/src/thorchain.ts +125 -0
- package/src/transport.ts +131 -0
- package/src/utils.ts +101 -0
- package/tsconfig.json +10 -0
- package/tsconfig.tsbuildinfo +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [1.62.4-alpha.77](https://github.com/shapeshift/hdwallet/compare/v1.62.4-alpha.75...v1.62.4-alpha.77) (2025-10-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* use fetchAddresses for all UTXO coins in btcGetAddress ([d35fd23](https://github.com/shapeshift/hdwallet/commit/d35fd231afa61c3c81cd5e48a7f2ec982652c38c))
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 ShapeShift
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as core from "@shapeshiftoss/hdwallet-core";
|
|
2
|
+
import { GridPlusHDWallet } from "./gridplus";
|
|
3
|
+
import { GridPlusTransport } from "./transport";
|
|
4
|
+
export declare class GridPlusAdapter {
|
|
5
|
+
keyring: core.Keyring;
|
|
6
|
+
private activeTransports;
|
|
7
|
+
constructor(keyring: core.Keyring);
|
|
8
|
+
static useKeyring(keyring: core.Keyring): GridPlusAdapter;
|
|
9
|
+
connectDevice(deviceId: string, password?: string, existingSessionId?: string): Promise<{
|
|
10
|
+
transport: GridPlusTransport;
|
|
11
|
+
isPaired: boolean;
|
|
12
|
+
sessionId: string;
|
|
13
|
+
}>;
|
|
14
|
+
pairConnectedDevice(deviceId: string, pairingCode: string): Promise<GridPlusHDWallet>;
|
|
15
|
+
pairDevice(deviceId: string, password?: string, pairingCode?: string, existingSessionId?: string): Promise<GridPlusHDWallet>;
|
|
16
|
+
initialize(deviceId: string, password?: string): Promise<number>;
|
|
17
|
+
get(deviceId: string): GridPlusHDWallet;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,qBAAa,eAAe;IAC1B,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;IACtB,OAAO,CAAC,gBAAgB,CAA6C;gBAEzD,OAAO,EAAE,IAAI,CAAC,OAAO;WAInB,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO;IAIjC,aAAa,CACxB,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,EACjB,iBAAiB,CAAC,EAAE,MAAM,GACzB,OAAO,CAAC;QAAE,SAAS,EAAE,iBAAiB,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAiBrE,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAyBrF,UAAU,CACrB,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,MAAM,EACpB,iBAAiB,CAAC,EAAE,MAAM,GACzB,OAAO,CAAC,gBAAgB,CAAC;IAgCf,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKtE,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB;CAG/C"}
|
package/dist/adapter.js
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.GridPlusAdapter = void 0;
|
|
36
|
+
const core = __importStar(require("@shapeshiftoss/hdwallet-core"));
|
|
37
|
+
const gridplus_1 = require("./gridplus");
|
|
38
|
+
const transport_1 = require("./transport");
|
|
39
|
+
class GridPlusAdapter {
|
|
40
|
+
constructor(keyring) {
|
|
41
|
+
this.activeTransports = new Map();
|
|
42
|
+
this.keyring = keyring;
|
|
43
|
+
}
|
|
44
|
+
static useKeyring(keyring) {
|
|
45
|
+
return new GridPlusAdapter(keyring);
|
|
46
|
+
}
|
|
47
|
+
connectDevice(deviceId, password, existingSessionId) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
const transport = (() => {
|
|
50
|
+
const existing = this.activeTransports.get(deviceId);
|
|
51
|
+
if (existing)
|
|
52
|
+
return existing;
|
|
53
|
+
const newTransport = new transport_1.GridPlusTransport({
|
|
54
|
+
deviceId,
|
|
55
|
+
password: password || "shapeshift-default",
|
|
56
|
+
});
|
|
57
|
+
this.activeTransports.set(deviceId, newTransport);
|
|
58
|
+
return newTransport;
|
|
59
|
+
})();
|
|
60
|
+
const { isPaired, sessionId } = yield transport.setup(deviceId, password, existingSessionId);
|
|
61
|
+
return { transport, isPaired, sessionId };
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
pairConnectedDevice(deviceId, pairingCode) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const transport = this.activeTransports.get(deviceId);
|
|
67
|
+
if (!transport) {
|
|
68
|
+
throw new Error("Device not connected. Call connectDevice first.");
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
const pairingSuccess = yield transport.pair(pairingCode);
|
|
72
|
+
if (!pairingSuccess) {
|
|
73
|
+
throw new Error("Pairing failed. Please check the 8-character code displayed on your Lattice device.");
|
|
74
|
+
}
|
|
75
|
+
const wallet = new gridplus_1.GridPlusHDWallet(transport);
|
|
76
|
+
wallet.setActiveWalletId(deviceId);
|
|
77
|
+
yield wallet.initialize();
|
|
78
|
+
this.keyring.add(wallet, deviceId);
|
|
79
|
+
this.activeTransports.delete(deviceId);
|
|
80
|
+
return wallet;
|
|
81
|
+
}
|
|
82
|
+
catch (error) {
|
|
83
|
+
throw new Error(`GridPlus pairing failed: ${error instanceof Error ? error.message : "Unknown error"}`);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
pairDevice(deviceId, password, pairingCode, existingSessionId) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const existingWallet = this.keyring.get(deviceId);
|
|
90
|
+
if (existingWallet) {
|
|
91
|
+
// Reset Client activeWallets state and fetch fresh UIDs from currently inserted SafeCard
|
|
92
|
+
yield existingWallet.transport.setup(deviceId, password, existingSessionId);
|
|
93
|
+
// Ensure the wallet has the correct active walletId set
|
|
94
|
+
existingWallet.setActiveWalletId(deviceId);
|
|
95
|
+
// Reinitialize to clear cached addresses when reconnecting (e.g., SafeCard swap)
|
|
96
|
+
yield existingWallet.initialize();
|
|
97
|
+
return existingWallet;
|
|
98
|
+
}
|
|
99
|
+
const { isPaired } = yield this.connectDevice(deviceId, password, existingSessionId);
|
|
100
|
+
if (!isPaired) {
|
|
101
|
+
if (pairingCode) {
|
|
102
|
+
return yield this.pairConnectedDevice(deviceId, pairingCode);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
throw new Error("PAIRING_REQUIRED");
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
// Already paired - create wallet directly
|
|
109
|
+
const transport = this.activeTransports.get(deviceId);
|
|
110
|
+
const wallet = new gridplus_1.GridPlusHDWallet(transport);
|
|
111
|
+
wallet.setActiveWalletId(deviceId);
|
|
112
|
+
yield wallet.initialize();
|
|
113
|
+
this.keyring.add(wallet, deviceId);
|
|
114
|
+
this.activeTransports.delete(deviceId);
|
|
115
|
+
return wallet;
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
initialize(deviceId, password) {
|
|
119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
+
yield this.pairDevice(deviceId, password);
|
|
121
|
+
return Object.keys(this.keyring.wallets).length;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
get(deviceId) {
|
|
125
|
+
return core.mustBeDefined(this.keyring.get(deviceId));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.GridPlusAdapter = GridPlusAdapter;
|
|
129
|
+
//# sourceMappingURL=adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAAqD;AAErD,yCAA8C;AAC9C,2CAAgD;AAEhD,MAAa,eAAe;IAI1B,YAAY,OAAqB;QAFzB,qBAAgB,GAAmC,IAAI,GAAG,EAAE,CAAC;QAGnE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,OAAqB;QAC5C,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;IAEY,aAAa,CACxB,QAAgB,EAChB,QAAiB,EACjB,iBAA0B;;YAE1B,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE;gBACtB,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBACrD,IAAI,QAAQ;oBAAE,OAAO,QAAQ,CAAC;gBAE9B,MAAM,YAAY,GAAG,IAAI,6BAAiB,CAAC;oBACzC,QAAQ;oBACR,QAAQ,EAAE,QAAQ,IAAI,oBAAoB;iBAC3C,CAAC,CAAC;gBACH,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;gBAClD,OAAO,YAAY,CAAC;YACtB,CAAC,CAAC,EAAE,CAAC;YAEL,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,SAAS,CAAC,KAAK,CAAC,QAAQ,EA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C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC;QAClD,CAAC;KAAA;IAEM,GAAG,CAAC,QAAgB;QACzB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAmB,QAAQ,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AAvGD,0CAuGC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as core from "@shapeshiftoss/hdwallet-core";
|
|
2
|
+
import { Client } from "gridplus-sdk";
|
|
3
|
+
export declare const btcGetAccountPaths: (msg: core.BTCGetAccountPaths) => Array<core.BTCAccountPath>;
|
|
4
|
+
export declare function btcGetAddress(client: Client, msg: core.BTCGetAddress): Promise<string | null>;
|
|
5
|
+
export declare function btcSignTx(client: Client, msg: core.BTCSignTx): Promise<core.BTCSignedTx | null>;
|
|
6
|
+
export declare const btcNextAccountPath: (msg: core.BTCAccountPath) => core.BTCAccountPath | undefined;
|
|
7
|
+
//# sourceMappingURL=bitcoin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bitcoin.d.ts","sourceRoot":"","sources":["../src/bitcoin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,8BAA8B,CAAC;AAKrD,OAAO,EAAE,MAAM,EAAa,MAAM,cAAc,CAAC;AAkDjD,eAAO,MAAM,kBAAkB,QAAS,IAAI,CAAC,kBAAkB,KAAG,KAAK,CAAC,IAAI,CAAC,cAAc,CAwB1F,CAAC;AAEF,wBAAsB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA4BnG;AAED,wBAAsB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,CA2kBrG;AAED,eAAO,MAAM,kBAAkB,QAAS,IAAI,CAAC,cAAc,KAAG,IAAI,CAAC,cAAc,GAAG,SAQnF,CAAC"}
|