Fixed linter errors
This commit is contained in:
parent
26ee4d626c
commit
0aadb789a5
@ -77,7 +77,7 @@ export class {{contractName}}Contract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce((accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }), {});
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{ [contractName: string]: ContractAbi }>((accumulator, [key, value]) => ({...{[key]: value.compilerOutput.abi}}),{});
|
||||||
return {{contractName}}Contract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly, {{> params inputs=ctor.inputs}});
|
return {{contractName}}Contract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly, {{> params inputs=ctor.inputs}});
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -2113,10 +2113,9 @@ export class AssetProxyOwnerContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return AssetProxyOwnerContract.deployAsync(
|
return AssetProxyOwnerContract.deployAsync(
|
||||||
bytecode,
|
bytecode,
|
||||||
abi,
|
abi,
|
||||||
|
@ -629,10 +629,9 @@ export class CoordinatorContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return CoordinatorContract.deployAsync(
|
return CoordinatorContract.deployAsync(
|
||||||
bytecode,
|
bytecode,
|
||||||
abi,
|
abi,
|
||||||
|
@ -218,10 +218,9 @@ export class CoordinatorRegistryContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return CoordinatorRegistryContract.deployAsync(
|
return CoordinatorRegistryContract.deployAsync(
|
||||||
bytecode,
|
bytecode,
|
||||||
abi,
|
abi,
|
||||||
|
@ -1132,10 +1132,9 @@ export class DummyERC20TokenContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return DummyERC20TokenContract.deployAsync(
|
return DummyERC20TokenContract.deployAsync(
|
||||||
bytecode,
|
bytecode,
|
||||||
abi,
|
abi,
|
||||||
|
@ -1460,10 +1460,9 @@ export class DummyERC721TokenContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return DummyERC721TokenContract.deployAsync(
|
return DummyERC721TokenContract.deployAsync(
|
||||||
bytecode,
|
bytecode,
|
||||||
abi,
|
abi,
|
||||||
|
@ -553,10 +553,9 @@ export class DutchAuctionContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return DutchAuctionContract.deployAsync(
|
return DutchAuctionContract.deployAsync(
|
||||||
bytecode,
|
bytecode,
|
||||||
abi,
|
abi,
|
||||||
|
@ -717,10 +717,9 @@ export class ERC20ProxyContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return ERC20ProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return ERC20ProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -605,10 +605,9 @@ export class ERC20TokenContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return ERC20TokenContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return ERC20TokenContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -717,10 +717,9 @@ export class ERC721ProxyContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return ERC721ProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return ERC721ProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -998,10 +998,9 @@ export class ERC721TokenContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return ERC721TokenContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return ERC721TokenContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -88,10 +88,9 @@ export class EthBalanceCheckerContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return EthBalanceCheckerContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return EthBalanceCheckerContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -4582,10 +4582,9 @@ export class ExchangeContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return ExchangeContract.deployAsync(
|
return ExchangeContract.deployAsync(
|
||||||
bytecode,
|
bytecode,
|
||||||
abi,
|
abi,
|
||||||
|
@ -1057,10 +1057,9 @@ export class ForwarderContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return ForwarderContract.deployAsync(
|
return ForwarderContract.deployAsync(
|
||||||
bytecode,
|
bytecode,
|
||||||
abi,
|
abi,
|
||||||
|
@ -722,10 +722,9 @@ export class IAssetProxyContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return IAssetProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return IAssetProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -102,10 +102,9 @@ export class IValidatorContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return IValidatorContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return IValidatorContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -94,10 +94,9 @@ export class IWalletContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return IWalletContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return IWalletContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -914,10 +914,9 @@ export class MultiAssetProxyContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return MultiAssetProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return MultiAssetProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -633,10 +633,9 @@ export class OrderValidatorContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return OrderValidatorContract.deployAsync(
|
return OrderValidatorContract.deployAsync(
|
||||||
bytecode,
|
bytecode,
|
||||||
abi,
|
abi,
|
||||||
|
@ -910,10 +910,9 @@ export class WETH9Contract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return WETH9Contract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return WETH9Contract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -719,10 +719,9 @@ export class ZRXTokenContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return ZRXTokenContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return ZRXTokenContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -1035,10 +1035,9 @@ export class AbiGenDummyContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return AbiGenDummyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return AbiGenDummyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -44,10 +44,9 @@ export class LibDummyContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return LibDummyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return LibDummyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
@ -124,10 +124,9 @@ export class TestLibDummyContract extends BaseContract {
|
|||||||
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
const provider = providerUtils.standardizeOrThrow(supportedProvider);
|
||||||
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
const bytecode = artifact.compilerOutput.evm.bytecode.object;
|
||||||
const abi = artifact.compilerOutput.abi;
|
const abi = artifact.compilerOutput.abi;
|
||||||
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce(
|
const logDecodeDependenciesAbiOnly = Object.entries(logDecodeDependencies).reduce<{
|
||||||
(accumulator, [key, value]) => Object.assign(accumulator, { [key]: value.compilerOutput.abi }),
|
[contractName: string]: ContractAbi;
|
||||||
{},
|
}>((accumulator, [key, value]) => ({ ...{ [key]: value.compilerOutput.abi } }), {});
|
||||||
);
|
|
||||||
return TestLibDummyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
return TestLibDummyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly);
|
||||||
}
|
}
|
||||||
public static async deployAsync(
|
public static async deployAsync(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user