How to use the @0x/contracts-exchange-forwarder.artifacts.Forwarder function in @0x/contracts-exchange-forwarder

To help you get started, we’ve selected a few @0x/contracts-exchange-forwarder 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 / packages / migrations / src / testnet_migrations.ts View on Github external
txDefaults,
        devUtilsArtifacts,
        exchange.address,
    );

    await CoordinatorContract.deployFrom0xArtifactAsync(
        coordinatorArtifacts.Coordinator,
        provider,
        txDefaults,
        coordinatorArtifacts,
        exchange.address,
        chainId,
    );

    const forwarder = await ForwarderContract.deployFrom0xArtifactAsync(
        forwarderArtifacts.Forwarder,
        provider,
        txDefaults,
        forwarderArtifacts,
        exchange.address,
        deployedAddresses.etherToken,
    );
    await forwarder.approveMakerAssetProxy(deployedAddresses.etherToken).awaitTransactionSuccessAsync();
}

@0x/contracts-exchange-forwarder

Smart contract extensions of 0x protocol

Apache-2.0
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis