How to use dop - 10 common examples

To help you get started, we’ve selected a few dop examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elevenyellow / coinfy / src / components / views / ImportBTC / ImportAddress.js View on Github external
onSubmit(e) {
        e.preventDefault()
        const collector = collect()
        const address = state.view.address_input
        const asset = createAsset(this.Coin.type, this.Coin.symbol, address)
        setHref(routes.asset({ asset_id: getAssetId(asset) }))
        // setHref(routes.home())
        collector.emit()
    }
github elevenyellow / coinfy / src / components / views / Create / new.js View on Github external
componentWillMount() {
        state.view = {
            step: 0,
            password: '',
            repassword: '',
            words_shuffle_clicked: [],
            word_wrong_selected: false
        }

        this.observer = createObserver(m => this.forceUpdate())
        this.observer.observe(state.view)
        this.observer.observe(state.view.words_shuffle_clicked, 'length')

        const { symbol } = getParamsFromLocation()
        this.words = getRandomMnemonic().split(' ')
        this.words_shuffle = []
        this.Coin = Coins[symbol]

        // binding
        this.onChangePassword = this.onChangePassword.bind(this)
        this.onChangeRepassword = this.onChangeRepassword.bind(this)
        this.onVerifyWord = this.onVerifyWord.bind(this)
        this.onNext = this.onNext.bind(this)
        this.onBack = this.onBack.bind(this)
        this.onPrint = this.onPrint.bind(this)
        this.onClear = this.onClear.bind(this)
github elevenyellow / coinfy / web / src / components / partials / AssetListItem.js View on Github external
componentWillMount() {
        const asset = this.props.asset
        this.observer = createObserver(mutations => this.forceUpdate())
        this.observer.observe(state.location, 'pathname')
        this.observer.observe(state.prices)
        this.observer.observe(state.assets)
        this.observer.observe(asset, 'label')
        this.observer.observe(asset, 'balance')

        // binding
        this.onClick = this.onClick.bind(this)
    }
    componentWillUnmount() {
github elevenyellow / coinfy / src / components / partials / Popups.js View on Github external
componentWillMount() {
        this.observer = createObserver(mutations => this.forceUpdate())
        this.observer.observe(state.popups.closeSession, 'open')
        

        // binding
    }
    componentWillUnmount() {
github elevenyellow / coinfy / src / components / views / BTC / Delete.js View on Github external
componentWillMount() {
        this.observer = createObserver(m => this.forceUpdate())
        this.observer.observe(state.view)

        // Initial state
        state.view = {
            confirmed: false
        }

        // binding
        // this.onChangeEncryption = this.onChangeEncryption.bind(this)
    }
    onConfirm() {
github elevenyellow / coinfy / miscellaneous / removed / ImportPublic.js View on Github external
onSubmit(e) {
        e.preventDefault()
        const collector = collect()
        const address = state.view.address
        const asset = createAsset(BTC.type, BTC.symbol, address)
        setHref(routes.asset(getCoinId(asset)))
        collector.emit()
    }
github elevenyellow / coinfy / miscellaneous / removed / ImportEthereum.js View on Github external
onSubmit(e) {
        e.preventDefault()
        const collector = collect()
        const ethereum_asset_id = state.view.ethereum_asset_id
        const ethereum_asset = state.assets[ethereum_asset_id]
        const address = ethereum_asset.address
        const asset = createAsset(this.Coin.type, this.Coin.symbol, address)
        const asset_id = getCoinId({ symbol: this.Coin.symbol, address })
        copyPrivateKey(ethereum_asset_id, asset_id)
        setHref(routes.asset(asset_id))
        collector.emit()
    }
github elevenyellow / coinfy / src / components / views / CreateETH.js View on Github external
onSubmit(e) {
        e.preventDefault()
        if (this.isFormValid) {
            const collector = collect()
            const address = state.view.address
            const asset = createAsset(ETH.type, ETH.symbol, address)
            setPrivateKey(
                getCoinId({ symbol: ETH.symbol, address }),
                state.view.private_key,
                state.view.password
            )
            setHref(routes.asset(getCoinId(asset)))
            collector.emit()
        }
    }
github elevenyellow / coinfy / src / components / views / CreateBTC.js View on Github external
onSubmit(e) {
        e.preventDefault()
        if (this.isFormValid) {
            const collector = collect()
            const address = state.view.address
            const asset = createAsset(BTC.type, BTC.symbol, address)
            setPrivateKey(
                getCoinId({ symbol: BTC.symbol, address }),
                state.view.private_key,
                state.view.password
            )
            setHref(routes.asset(getCoinId(asset)))
            collector.emit()
        }
    }
github elevenyellow / coinfy / src / components / views / ImportBTC / index.js View on Github external
onChangeTypeImport(e) {
        const collector = collect()
        state.view.type_import = e.target.value
        collector.emit()
    }

dop

Distributed Object Protocol.

MIT
Latest version published 1 year ago

Package Health Score

49 / 100
Full package analysis

Popular dop functions