@white-matrix/binance-wallet

1.0.0 • Public • Published

🚀 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.jsonname修改为walletId,并在chain ide中添加相应的钱包数据

/@white-matrix/binance-wallet/

    Package Sidebar

    Install

    npm i @white-matrix/binance-wallet

    Weekly Downloads

    10

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    341 kB

    Total Files

    22

    Last publish

    Collaborators

    • miles_wang
    • vera_wlz
    • hexi1997
    • sleepyyj
    • chen-yu
    • kilru
    • lucklyric
    • q33357
    • xiadd