How to use the @0x/contracts-erc1155.artifacts.ERC1155 function in @0x/contracts-erc1155

To help you get started, we’ve selected a few @0x/contracts-erc1155 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 0xProject / 0x-monorepo / contracts / integrations / src / deployment_mananger.ts View on Github external
const erc20 = await ERC20TokenContract.deployFrom0xArtifactAsync(
            ERC20Artifacts.ERC20Token,
            environment.provider,
            txDefaults,
            ERC20Artifacts,
        );

        const erc721 = await ERC721TokenContract.deployFrom0xArtifactAsync(
            ERC721Artifacts.ERC721Token,
            environment.provider,
            txDefaults,
            ERC721Artifacts,
        );

        const erc1155 = await ERC1155Contract.deployFrom0xArtifactAsync(
            ERC1155Artifacts.ERC1155,
            environment.provider,
            txDefaults,
            ERC1155Artifacts,
        );

        const weth = await WETH9Contract.deployFrom0xArtifactAsync(
            ERC20Artifacts.WETH9,
            environment.provider,
            txDefaults,
            ERC20Artifacts,
        );

        const zrx = await ZRXTokenContract.deployFrom0xArtifactAsync(
            ERC20Artifacts.ZRXToken,
            environment.provider,
            txDefaults,