@movebridge/core 0.0.1 → 0.1.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.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -5
- package/dist/index.mjs +7 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ import EventEmitter from 'eventemitter3';
|
|
|
7
7
|
/** Supported network types */
|
|
8
8
|
type NetworkType = 'mainnet' | 'testnet';
|
|
9
9
|
/** Supported wallet types for Movement Network */
|
|
10
|
-
type WalletType = '
|
|
10
|
+
type WalletType = 'razor' | 'nightly' | 'okx';
|
|
11
11
|
/** Configuration options for Movement client */
|
|
12
12
|
interface MovementConfig {
|
|
13
13
|
/** Network to connect to */
|
|
@@ -394,7 +394,7 @@ interface ResolvedConfig {
|
|
|
394
394
|
* const balance = await movement.getAccountBalance('0x1');
|
|
395
395
|
*
|
|
396
396
|
* // Connect wallet
|
|
397
|
-
* await movement.wallet.connect('
|
|
397
|
+
* await movement.wallet.connect('razor');
|
|
398
398
|
* ```
|
|
399
399
|
*/
|
|
400
400
|
declare class Movement {
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import EventEmitter from 'eventemitter3';
|
|
|
7
7
|
/** Supported network types */
|
|
8
8
|
type NetworkType = 'mainnet' | 'testnet';
|
|
9
9
|
/** Supported wallet types for Movement Network */
|
|
10
|
-
type WalletType = '
|
|
10
|
+
type WalletType = 'razor' | 'nightly' | 'okx';
|
|
11
11
|
/** Configuration options for Movement client */
|
|
12
12
|
interface MovementConfig {
|
|
13
13
|
/** Network to connect to */
|
|
@@ -394,7 +394,7 @@ interface ResolvedConfig {
|
|
|
394
394
|
* const balance = await movement.getAccountBalance('0x1');
|
|
395
395
|
*
|
|
396
396
|
* // Connect wallet
|
|
397
|
-
* await movement.wallet.connect('
|
|
397
|
+
* await movement.wallet.connect('razor');
|
|
398
398
|
* ```
|
|
399
399
|
*/
|
|
400
400
|
declare class Movement {
|
package/dist/index.js
CHANGED
|
@@ -270,12 +270,14 @@ function wrapError(error, code, context) {
|
|
|
270
270
|
var import_eventemitter3 = __toESM(require("eventemitter3"));
|
|
271
271
|
var import_wallet_standard = require("@aptos-labs/wallet-standard");
|
|
272
272
|
var SUPPORTED_WALLETS = {
|
|
273
|
-
"
|
|
274
|
-
"
|
|
275
|
-
"
|
|
276
|
-
"pontem wallet": "pontem",
|
|
273
|
+
"razor": "razor",
|
|
274
|
+
"razor wallet": "razor",
|
|
275
|
+
"razorwallet": "razor",
|
|
277
276
|
"nightly": "nightly",
|
|
278
|
-
"nightly wallet": "nightly"
|
|
277
|
+
"nightly wallet": "nightly",
|
|
278
|
+
"okx": "okx",
|
|
279
|
+
"okx wallet": "okx",
|
|
280
|
+
"okxwallet": "okx"
|
|
279
281
|
};
|
|
280
282
|
var STORAGE_KEY = "movebridge:lastWallet";
|
|
281
283
|
function toHexString(data) {
|
package/dist/index.mjs
CHANGED
|
@@ -219,12 +219,14 @@ function wrapError(error, code, context) {
|
|
|
219
219
|
import EventEmitter from "eventemitter3";
|
|
220
220
|
import { getAptosWallets } from "@aptos-labs/wallet-standard";
|
|
221
221
|
var SUPPORTED_WALLETS = {
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
"
|
|
225
|
-
"pontem wallet": "pontem",
|
|
222
|
+
"razor": "razor",
|
|
223
|
+
"razor wallet": "razor",
|
|
224
|
+
"razorwallet": "razor",
|
|
226
225
|
"nightly": "nightly",
|
|
227
|
-
"nightly wallet": "nightly"
|
|
226
|
+
"nightly wallet": "nightly",
|
|
227
|
+
"okx": "okx",
|
|
228
|
+
"okx wallet": "okx",
|
|
229
|
+
"okxwallet": "okx"
|
|
228
230
|
};
|
|
229
231
|
var STORAGE_KEY = "movebridge:lastWallet";
|
|
230
232
|
function toHexString(data) {
|
package/package.json
CHANGED