How to use the requestnetworkartifacts.getAllArtifactsForNetwork 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 / servicesCore / requestCore-service.ts View on Github external
public getAllCoreInstance(): any[] {
        const result: any[] = [];
        const allArtifacts = requestArtifacts.getAllArtifactsForNetwork(this.web3Single.networkName);
        for ( const key in allArtifacts ) {
            if (key.slice(0, 2) === '0x' && allArtifacts[key].split('/')[0] === 'RequestCore') {
                result.push( this.web3Single.getContractInstance(key) );
            }
        }
        return result;
    }

requestnetworkartifacts

Artifacts for Request Network Ethereum contracts

MIT
Latest version published 5 years ago

Package Health Score

64 / 100
Full package analysis