chore: add OtcOrder feature to fullMigrateAsync (#350)
This commit is contained in:
parent
fce3664258
commit
89817428ed
@ -5,6 +5,10 @@
|
|||||||
{
|
{
|
||||||
"note": "Register transformERC20() and remove transformERC20Staging()",
|
"note": "Register transformERC20() and remove transformERC20Staging()",
|
||||||
"pr": 355
|
"pr": 355
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"note": "Add OtcOrders to FullMigration",
|
||||||
|
"pr": 350
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -25,6 +25,7 @@ import "../features/interfaces/IOwnableFeature.sol";
|
|||||||
import "../features/TransformERC20Feature.sol";
|
import "../features/TransformERC20Feature.sol";
|
||||||
import "../features/MetaTransactionsFeature.sol";
|
import "../features/MetaTransactionsFeature.sol";
|
||||||
import "../features/NativeOrdersFeature.sol";
|
import "../features/NativeOrdersFeature.sol";
|
||||||
|
import "../features/OtcOrdersFeature.sol";
|
||||||
import "./InitialMigration.sol";
|
import "./InitialMigration.sol";
|
||||||
|
|
||||||
|
|
||||||
@ -40,6 +41,7 @@ contract FullMigration {
|
|||||||
TransformERC20Feature transformERC20;
|
TransformERC20Feature transformERC20;
|
||||||
MetaTransactionsFeature metaTransactions;
|
MetaTransactionsFeature metaTransactions;
|
||||||
NativeOrdersFeature nativeOrders;
|
NativeOrdersFeature nativeOrders;
|
||||||
|
OtcOrdersFeature otcOrders;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @dev Parameters needed to initialize features.
|
/// @dev Parameters needed to initialize features.
|
||||||
@ -173,5 +175,16 @@ contract FullMigration {
|
|||||||
address(this)
|
address(this)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
// OtcOrdersFeature
|
||||||
|
{
|
||||||
|
// Register the feature.
|
||||||
|
ownable.migrate(
|
||||||
|
address(features.otcOrders),
|
||||||
|
abi.encodeWithSelector(
|
||||||
|
OtcOrdersFeature.migrate.selector
|
||||||
|
),
|
||||||
|
address(this)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ import {
|
|||||||
IZeroExContract,
|
IZeroExContract,
|
||||||
MetaTransactionsFeatureContract,
|
MetaTransactionsFeatureContract,
|
||||||
NativeOrdersFeatureContract,
|
NativeOrdersFeatureContract,
|
||||||
|
OtcOrdersFeatureContract,
|
||||||
OwnableFeatureContract,
|
OwnableFeatureContract,
|
||||||
SimpleFunctionRegistryFeatureContract,
|
SimpleFunctionRegistryFeatureContract,
|
||||||
TransformERC20FeatureContract,
|
TransformERC20FeatureContract,
|
||||||
@ -113,6 +114,7 @@ export interface FullFeatures extends BootstrapFeatures {
|
|||||||
transformERC20: string;
|
transformERC20: string;
|
||||||
metaTransactions: string;
|
metaTransactions: string;
|
||||||
nativeOrders: string;
|
nativeOrders: string;
|
||||||
|
otcOrders: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -123,6 +125,7 @@ export interface FullFeatureArtifacts extends BootstrapFeatureArtifacts {
|
|||||||
metaTransactions: SimpleContractArtifact;
|
metaTransactions: SimpleContractArtifact;
|
||||||
nativeOrders: SimpleContractArtifact;
|
nativeOrders: SimpleContractArtifact;
|
||||||
feeCollectorController: SimpleContractArtifact;
|
feeCollectorController: SimpleContractArtifact;
|
||||||
|
otcOrders: SimpleContractArtifact;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -155,6 +158,7 @@ const DEFAULT_FULL_FEATURES_ARTIFACTS = {
|
|||||||
metaTransactions: artifacts.MetaTransactionsFeature,
|
metaTransactions: artifacts.MetaTransactionsFeature,
|
||||||
nativeOrders: artifacts.NativeOrdersFeature,
|
nativeOrders: artifacts.NativeOrdersFeature,
|
||||||
feeCollectorController: artifacts.FeeCollectorController,
|
feeCollectorController: artifacts.FeeCollectorController,
|
||||||
|
otcOrders: artifacts.OtcOrdersFeature,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -222,6 +226,18 @@ export async function deployFullFeaturesAsync(
|
|||||||
_config.protocolFeeMultiplier,
|
_config.protocolFeeMultiplier,
|
||||||
)
|
)
|
||||||
).address,
|
).address,
|
||||||
|
otcOrders:
|
||||||
|
features.otcOrders ||
|
||||||
|
(
|
||||||
|
await OtcOrdersFeatureContract.deployFrom0xArtifactAsync(
|
||||||
|
_featureArtifacts.otcOrders,
|
||||||
|
provider,
|
||||||
|
txDefaults,
|
||||||
|
artifacts,
|
||||||
|
_config.zeroExAddress,
|
||||||
|
_config.wethAddress,
|
||||||
|
)
|
||||||
|
).address,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -244,11 +244,11 @@
|
|||||||
"exchangeProxyLiquidityProviderSandbox": "0x0000000000000000000000000000000000000000",
|
"exchangeProxyLiquidityProviderSandbox": "0x0000000000000000000000000000000000000000",
|
||||||
"zrxTreasury": "0x0000000000000000000000000000000000000000",
|
"zrxTreasury": "0x0000000000000000000000000000000000000000",
|
||||||
"transformers": {
|
"transformers": {
|
||||||
"wethTransformer": "0xc6b0d3c45a6b5092808196cb00df5c357d55e1d5",
|
"wethTransformer": "0x7209185959d7227fb77274e1e88151d7c4c368d3",
|
||||||
"payTakerTransformer": "0x7209185959d7227fb77274e1e88151d7c4c368d3",
|
"payTakerTransformer": "0x3f16ca81691dab9184cb4606c361d73c4fd2510a",
|
||||||
"affiliateFeeTransformer": "0x3f16ca81691dab9184cb4606c361d73c4fd2510a",
|
"affiliateFeeTransformer": "0x99356167edba8fbdc36959e3f5d0c43d1ba9c6db",
|
||||||
"fillQuoteTransformer": "0x99356167edba8fbdc36959e3f5d0c43d1ba9c6db",
|
"fillQuoteTransformer": "0x45b3a72221e571017c0f0ec42189e11d149d0ace",
|
||||||
"positiveSlippageFeeTransformer": "0x45b3a72221e571017c0f0ec42189e11d149d0ace"
|
"positiveSlippageFeeTransformer": "0xdd66c23e07b4d6925b6089b5fe6fc9e62941afe8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"137": {
|
"137": {
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"version": "8.1.10",
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"note": "Add OtcOrders to fullMigrateAsync",
|
||||||
|
"pr": 350
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"timestamp": 1634668033,
|
"timestamp": 1634668033,
|
||||||
"version": "8.1.9",
|
"version": "8.1.9",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user