@aptos-labs/wallet-standard
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -92,4 +92,3 @@ import { WalletAccount, WalletWithFeatures, IdentifierRecord, StandardDisconnectMethod, Wallet, WalletsEventsListeners } from '@wallet-standard/core'; | ||
prefix: 'APTOS'; | ||
signature: Signature | Signature[]; | ||
bitmap?: Uint8Array; | ||
signature: Signature; | ||
}; | ||
@@ -268,3 +267,3 @@ | ||
*/ | ||
type AptosFeatures = AptosConnectFeature & AptosGetAccountFeature & AptosGetNetworkFeature & AptosOnAccountChangeFeature & AptosOnNetworkChangeFeature & AptosSignAndSubmitTransactionFeature & AptosSignMessageFeature & AptosSignTransactionFeature & Partial<AptosChangeNetworkFeature> & Partial<AptosOpenInMobileAppFeature> & AptosDisconnectFeature; | ||
type AptosFeatures = AptosConnectFeature & AptosGetAccountFeature & AptosGetNetworkFeature & AptosOnAccountChangeFeature & AptosOnNetworkChangeFeature & AptosSignMessageFeature & AptosSignTransactionFeature & Partial<AptosChangeNetworkFeature> & Partial<AptosOpenInMobileAppFeature> & Partial<AptosSignAndSubmitTransactionFeature> & AptosDisconnectFeature; | ||
/** | ||
@@ -271,0 +270,0 @@ * Represents a wallet with all Aptos features. |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _createStarExport(obj) { Object.keys(obj) .filter((key) => key !== "default" && key !== "__esModule") .forEach((key) => { if (exports.hasOwnProperty(key)) { return; } Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]}); }); }var _core = require('@wallet-standard/core'); _createStarExport(_core);var r=(t=>(t[t.Ed25519=0]="Ed25519",t[t.MultiEd25519=1]="MultiEd25519",t[t.SingleKey=2]="SingleKey",t[t.MultiKey=3]="MultiKey",t))(r||{});var p="aptos:devnet",a= exports.APTOS_TESTNET_CHAIN ="aptos:testnet",i= exports.APTOS_LOCALNET_CHAIN ="aptos:localnet",c= exports.APTOS_MAINNET_CHAIN ="aptos:mainnet",x= exports.APTOS_CHAINS =[p,a,i,c];var u=["aptos:account","aptos:connect","aptos:disconnect","aptos:network","aptos:onAccountChange","aptos:onNetworkChange","aptos:signAndSubmitTransaction","aptos:signMessage","aptos:signTransaction"];function m(e,o=[]){return[...u,...o].every(n=>n in e.features)}function y(){let{get:e,on:o}=_core.getWallets.call(void 0, ),n=e(),s=[];return n.map(t=>{m(t)&&s.push(t)}),{aptosWallets:s,on:o}}var w="aptos:signAndSubmitTransaction";var k="aptos:signMessage";var O="aptos:account";var I="aptos:connect";var R="aptos:network";var P="aptos:onAccountChange";var v="aptos:onNetworkChange";var _="aptos:changeNetwork";var U="aptos:disconnect";var H="aptos:signTransaction";exports.APTOS_CHAINS = x; exports.APTOS_DEVNET_CHAIN = p; exports.APTOS_LOCALNET_CHAIN = i; exports.APTOS_MAINNET_CHAIN = c; exports.APTOS_TESTNET_CHAIN = a; exports.AptosAccountVariant = r; exports.AptosChangeNetworkNamespace = _; exports.AptosConnectNamespace = I; exports.AptosDisconnectNamespace = U; exports.AptosGetAccountNamespace = O; exports.AptosGetNetworkNamespace = R; exports.AptosOnAccountChangeNamespace = P; exports.AptosOnNetworkChangeNamespace = v; exports.AptosSignAndSubmitTransactionNamespace = w; exports.AptosSignMessageNamespace = k; exports.AptosSignTransactionNamespace = H; exports.getAptosWallets = y; exports.isWalletWithRequiredFeatureSet = m; | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _createStarExport(obj) { Object.keys(obj) .filter((key) => key !== "default" && key !== "__esModule") .forEach((key) => { if (exports.hasOwnProperty(key)) { return; } Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]}); }); }var _core = require('@wallet-standard/core'); _createStarExport(_core);var r=(t=>(t[t.Ed25519=0]="Ed25519",t[t.MultiEd25519=1]="MultiEd25519",t[t.SingleKey=2]="SingleKey",t[t.MultiKey=3]="MultiKey",t))(r||{});var p="aptos:devnet",a= exports.APTOS_TESTNET_CHAIN ="aptos:testnet",i= exports.APTOS_LOCALNET_CHAIN ="aptos:localnet",c= exports.APTOS_MAINNET_CHAIN ="aptos:mainnet",x= exports.APTOS_CHAINS =[p,a,i,c];var u=["aptos:account","aptos:connect","aptos:disconnect","aptos:network","aptos:onAccountChange","aptos:onNetworkChange","aptos:signMessage","aptos:signTransaction"];function m(e,o=[]){return[...u,...o].every(n=>n in e.features)}function y(){let{get:e,on:o}=_core.getWallets.call(void 0, ),n=e(),s=[];return n.map(t=>{m(t)&&s.push(t)}),{aptosWallets:s,on:o}}var w="aptos:signAndSubmitTransaction";var k="aptos:signMessage";var O="aptos:account";var I="aptos:connect";var R="aptos:network";var b="aptos:onAccountChange";var v="aptos:onNetworkChange";var _="aptos:changeNetwork";var D="aptos:disconnect";var H="aptos:signTransaction";exports.APTOS_CHAINS = x; exports.APTOS_DEVNET_CHAIN = p; exports.APTOS_LOCALNET_CHAIN = i; exports.APTOS_MAINNET_CHAIN = c; exports.APTOS_TESTNET_CHAIN = a; exports.AptosAccountVariant = r; exports.AptosChangeNetworkNamespace = _; exports.AptosConnectNamespace = I; exports.AptosDisconnectNamespace = D; exports.AptosGetAccountNamespace = O; exports.AptosGetNetworkNamespace = R; exports.AptosOnAccountChangeNamespace = b; exports.AptosOnNetworkChangeNamespace = v; exports.AptosSignAndSubmitTransactionNamespace = w; exports.AptosSignMessageNamespace = k; exports.AptosSignTransactionNamespace = H; exports.getAptosWallets = y; exports.isWalletWithRequiredFeatureSet = m; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@aptos-labs/wallet-standard", | ||
"description": "Aptos wallet standard", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/aptos-labs/wallet-standard", |
@@ -23,3 +23,2 @@ // Copyright © Aptos Foundation | ||
'aptos:onNetworkChange', | ||
'aptos:signAndSubmitTransaction', | ||
'aptos:signMessage', | ||
@@ -26,0 +25,0 @@ 'aptos:signTransaction' |
@@ -44,4 +44,3 @@ // Copyright © Aptos Foundation | ||
prefix: 'APTOS' | ||
signature: Signature | Signature[] | ||
bitmap?: Uint8Array | ||
signature: Signature | ||
} |
@@ -26,3 +26,2 @@ // Copyright © Aptos Foundation | ||
AptosOnNetworkChangeFeature & | ||
AptosSignAndSubmitTransactionFeature & | ||
AptosSignMessageFeature & | ||
@@ -34,2 +33,4 @@ AptosSignTransactionFeature & | ||
Partial<AptosOpenInMobileAppFeature> & | ||
//AptosSignAndSubmitTransactionFeature is optional | ||
Partial<AptosSignAndSubmitTransactionFeature> & | ||
AptosDisconnectFeature | ||
@@ -36,0 +37,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
91917
835