How to use the requestnetworkartifacts.getContractNameForAddress function in requestnetworkartifacts

To help you get started, we’ve selected a few requestnetworkartifacts 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 RequestNetwork / requestNetwork / packages / requestNetwork.js / src / utils / currency.ts View on Github external
// Test token on rinkeby
            'RequestERC20-centralbank': Types.Currency.REQ,

            'RequestERC20-knc': Types.Currency.KNC,
            'RequestERC20-dgx': Types.Currency.DGX,
            'RequestERC20-dai': Types.Currency.DAI,
            'RequestERC20-omg': Types.Currency.OMG,
            'RequestERC20-kin': Types.Currency.KIN,
            'RequestERC20-zrx': Types.Currency.ZRX,
            'RequestERC20-bat': Types.Currency.BAT,
            'RequestERC20-bnb': Types.Currency.BNB,
            'RequestERC20-link': Types.Currency.LINK,
        };

        const currencyContractName = requestArtifacts.getContractNameForAddress(address.toLowerCase());
        return currencyMapping[currencyContractName];
    },

requestnetworkartifacts

Artifacts for Request Network Ethereum contracts

MIT
Latest version published 5 years ago

Package Health Score

64 / 100
Full package analysis