🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@white-matrix/binance-wallet

Package Overview
Dependencies
Maintainers
7
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@white-matrix/binance-wallet

My webpack project

latest
npmnpm
Version
1.0.0
Version published
Maintainers
7
Created
Source

🚀 Welcome to your new awesome project!

This project has been created using webpack scaffold, you can now run

npm run compile

or

yarn compile

to bundle your application

注册 wallet

    const registerWallet = ctx.registerWallet({
        walletId: string,
        walletProvider: any,
        init: () => Promise<void | Error>,
        fetchNetWork: () => Promise<string>,
        fetchAccount: () => Promise<Wallet.IWalletAccount[]>,
        deploy: (
            data: Wallet.IDeployContractActionData
        ) => Observable<IEvent<EEventType>>,
        interact: (
            data: Wallet.IInteractContractActionData
        ) => Observable<IEvent<EEventType>>,
            })

    ctx.subscriptions.push(registerWallet);

    const config: PluginConfigurations = {
        pluginId: 'BinanceWallet',
        version: '0.0.1',
        type: PluginType.server,
        projectIds: [],
        active: true,
        description: {
            title: 'Binance Wallet Service',
            icon: '#CommentSolid',
            description: 'binance wallet service'
        }
    }

打包 wallet

将package.json的name修改为walletId,并在chain ide中添加相应的钱包数据

FAQs

Package last updated on 14 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts