Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@33cn/game-cashier-react

Package Overview
Dependencies
Maintainers
9
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@33cn/game-cashier-react

比特元Dapp 收银台插件react 版。 ## Installation

  • 1.11.6
  • beta
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-94.48%
Maintainers
9
Weekly downloads
 
Created
Source

@33cn/game-cashier-react

比特元Dapp 收银台插件react 版。

Installation

yarn add @33cn/game-cashier-react

or

npm install @33cn/game-cashier-react -save

Usage

import * as React from 'react';
import Cashier from '@33cn/game-cashier-react';
import icontest from './icon-test.png'

interface IState {
  visible: boolean
}

export class App extends React.Component<{}, IState> {

  constructor(props: {}) {
    super(props)

    this.state = {
      visible: true
    }

    this.onClose = this.onClose.bind(this)
  }

  public render() {
    return (
      <div className="App">
        <Cashier
          gameName="幸运数字"
          gameIcon={icontest}
          contractName="user.p.fzmtest.user.wasm.dice2"
          contractAddr="15TnAePL2XqTC2QGNyNi3UQWbntpDBtui8"
          dialogVisible={this.state.visible}
          onClose={this.onClose}
        />
      </div>
    );
  }
  public onClose() {
    this.setState({visible: false})
  }
}

Props

nametypedescription
coinNamestring币种名字
gameNodeURLstring游戏节点
gameNamestring游戏名称如:时时彩
gameIconstring?游戏图标
gameBalancenumber游戏余额
coinsBalancenumber主链BTY余额
contractNamestring合约名
contractAddrstring合约地址
needWithholdstring是否需要代扣
exercerNamestring?交易组签名执行器
noNeedParaboolean?是否不需要跨链
restingOrderAddressstring?挂单的用户地址
dialogVisibleboolean弹框是否可见
onClose() => void点击关闭或遮罩后的回调
onNewTransactionSend() => void交易发送后的回调函数
pathstring?打开页面时的默认路径
disableRechargeboolean?是否禁止充值功能
disableWithdrawboolean?是否禁止提现功能

FAQs

Package last updated on 30 Dec 2019

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

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