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
8
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.9.13
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
8
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
gameNamestring游戏名称如:时时彩
gameIconstring?游戏图标
contractNamestring合约名
contractAddrstring合约地址
withholdAddressstring?代扣地址
dialogVisibleboolean弹框是否可见
onClose() => void点击关闭或遮罩后的回调

FAQs

Package last updated on 08 Aug 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