New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aptos-labs/wallet-standard

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aptos-labs/wallet-standard - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

dist/esm/chunk-SREWK2LY.mjs

11

dist/common/index.d.ts

@@ -1,2 +0,2 @@

import { WalletAccount, WalletWithFeatures, IdentifierRecord, StandardDisconnectMethod, Wallet } from '@wallet-standard/core';
import { WalletAccount, WalletWithFeatures, IdentifierRecord, StandardDisconnectMethod, Wallet, WalletsEventsListeners } from '@wallet-standard/core';
export * from '@wallet-standard/core';

@@ -318,4 +318,11 @@ import { Account, Network, AnyRawTransaction, PendingTransactionResponse, Signature, AccountAuthenticator } from '@aptos-labs/ts-sdk';

declare function isWalletWithRequiredFeatureSet<AdditionalFeatures extends Wallet['features']>(wallet: Wallet, additionalFeatures?: (keyof AdditionalFeatures)[]): wallet is WalletWithFeatures<MinimallyRequiredFeatures & AdditionalFeatures>;
declare function getAptosWallets(): AptosWallet[];
/**
* Helper function to get only Aptos wallets
* @returns Aptos compatible wallets and `on` event to listen to wallets register event
*/
declare function getAptosWallets(): {
aptosWallets: AptosWallet[];
on: <E extends keyof WalletsEventsListeners>(event: E, listener: WalletsEventsListeners[E]) => () => void;
};
export { APTOS_CHAINS, APTOS_DEVNET_CHAIN, APTOS_LOCALNET_CHAIN, APTOS_MAINNET_CHAIN, APTOS_TESTNET_CHAIN, AccountInfo, AptoGetsAccountOutput, AptosAccountVariant, AptosAdapter, AptosChain, AptosChangeNetworkFeature, AptosChangeNetworkInput, AptosChangeNetworkMethod, AptosChangeNetworkNamespace, AptosChangeNetworkOutput, AptosChangeNetworkVersion, AptosConnectFeature, AptosConnectInput, AptosConnectMethod, AptosConnectNamespace, AptosConnectOutput, AptosConnectVersion, AptosDisconnectFeature, AptosDisconnectMethod, AptosDisconnectNamespace, AptosDisconnectVersion, AptosFeatures, AptosGetAccountFeature, AptosGetAccountMethod, AptosGetAccountNamespace, AptosGetAccountVersion, AptosGetNetworkFeature, AptosGetNetworkMethod, AptosGetNetworkNamespace, AptosGetNetworkOutput, AptosGetNetworkVersion, AptosOnAccountChangeFeature, AptosOnAccountChangeInput, AptosOnAccountChangeMethod, AptosOnAccountChangeNamespace, AptosOnAccountChangeVersion, AptosOnNetworkChangeFeature, AptosOnNetworkChangeInput, AptosOnNetworkChangeMethod, AptosOnNetworkChangeNamespace, AptosOnNetworkChangeVersion, AptosSignAndSubmitTransactionFeature, AptosSignAndSubmitTransactionInput, AptosSignAndSubmitTransactionMethod, AptosSignAndSubmitTransactionNamespace, AptosSignAndSubmitTransactionOutput, AptosSignAndSubmitTransactionVersion, AptosSignMessageFeature, AptosSignMessageInput, AptosSignMessageMethod, AptosSignMessageNamespace, AptosSignMessageOutput, AptosSignMessageVersion, AptosSignTransactionFeature, AptosSignTransactionMethod, AptosSignTransactionNamespace, AptosSignTransactionOutput, AptosSignTransactionVersion, AptosWallet, AptosWalletAccount, ChainsId, MinimallyRequiredFeatures, NetworkInfo, TransactionHash, UserApproval, UserRejection, UserResponse, WalletWithAptosFeatures, WalletWithRequiredFeatures, getAptosWallets, isWalletWithRequiredFeatureSet };

2

dist/common/index.js

@@ -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(o,n=[]){return[...u,...n].every(e=>e in o.features)}function h(){let{get:o}=_core.getWallets.call(void 0, ),n=o(),e=[];return n.map(s=>{m(s)&&e.push(s)}),e}var y="aptos:signAndSubmitTransaction";var w="aptos:signMessage";var k="aptos:account";var O="aptos:connect";var I="aptos:network";var R="aptos:onAccountChange";var P="aptos:onNetworkChange";var v="aptos:changeNetwork";var _="aptos:disconnect";var U="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 = v; exports.AptosConnectNamespace = O; exports.AptosDisconnectNamespace = _; exports.AptosGetAccountNamespace = k; exports.AptosGetNetworkNamespace = I; exports.AptosOnAccountChangeNamespace = R; exports.AptosOnNetworkChangeNamespace = P; exports.AptosSignAndSubmitTransactionNamespace = y; exports.AptosSignMessageNamespace = w; exports.AptosSignTransactionNamespace = U; exports.getAptosWallets = h; 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: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;
//# sourceMappingURL=index.js.map
{
"name": "@aptos-labs/wallet-standard",
"description": "Aptos wallet standard",
"version": "0.0.3",
"version": "0.0.4",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/aptos-labs/wallet-standard",

// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0
import { Wallet, WalletWithFeatures, getWallets } from '@wallet-standard/core'
import {
Wallet,
WalletWithFeatures,
WalletsEventsListeners,
getWallets
} from '@wallet-standard/core'

@@ -32,4 +37,14 @@ import { MinimallyRequiredFeatures } from './features'

export function getAptosWallets(): AptosWallet[] {
const { get } = getWallets()
/**
* Helper function to get only Aptos wallets
* @returns Aptos compatible wallets and `on` event to listen to wallets register event
*/
export function getAptosWallets(): {
aptosWallets: AptosWallet[]
on: <E extends keyof WalletsEventsListeners>(
event: E,
listener: WalletsEventsListeners[E]
) => () => void
} {
const { get, on } = getWallets()

@@ -48,3 +63,3 @@ const wallets = get()

return aptosWallets as AptosWallet[]
return { aptosWallets: aptosWallets as AptosWallet[], on }
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc