Upgrade EAC libs to v1.0.0-beta.3. (#1714)
This commit is contained in:
parent
8c7d89f22b
commit
f06186e883
|
@ -8,11 +8,10 @@ interface ABIFunc<T, K = void> {
|
|||
|
||||
type address = any;
|
||||
type uint256 = any;
|
||||
type bytes = any;
|
||||
|
||||
interface IRequestFactory {
|
||||
validateRequestParams: ABIFunc<
|
||||
{ _addressArgs: address[]; _uintArgs: uint256[]; _callData: bytes; _endowment: uint256 },
|
||||
{ _addressArgs: address[]; _uintArgs: uint256[]; _endowment: uint256 },
|
||||
{ paramsValidity: boolean[] }
|
||||
>;
|
||||
}
|
||||
|
@ -29,10 +28,6 @@ const requestFactoryAbi = [
|
|||
name: '_uintArgs',
|
||||
type: 'uint256[12]'
|
||||
},
|
||||
{
|
||||
name: '_callData',
|
||||
type: 'bytes'
|
||||
},
|
||||
{
|
||||
name: '_endowment',
|
||||
type: 'uint256'
|
||||
|
|
|
@ -26,9 +26,9 @@ export const EAC_SCHEDULING_CONFIG = {
|
|||
|
||||
export const EAC_ADDRESSES = {
|
||||
KOVAN: {
|
||||
blockScheduler: '0x1afc19a7e642761ba2b55d2a45b32c7ef08269d1',
|
||||
requestFactory: '0x496e2b6089bde77293a994469b08e9f266d87adb',
|
||||
timestampScheduler: '0xc6370807f0164bdf10a66c08d0dab1028dbe80a3'
|
||||
blockScheduler: '0x394ce9fe06c72f18e5a845842974f0c1224b1ff5',
|
||||
requestFactory: '0x98c128b3d8a0ac240f7b7dd4969ea0ad54f9d330',
|
||||
timestampScheduler: '0x31bbbf5180f2bd9c213e2e1d91a439677243268a'
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -163,7 +163,6 @@ export const parseSchedulingParametersValidity = (isValid: boolean[]) => {
|
|||
|
||||
export const getValidateRequestParamsData = (
|
||||
toAddress: string,
|
||||
callData = '',
|
||||
callGas: Wei,
|
||||
callValue: ICurrentValue['value'],
|
||||
windowSize: BN | null,
|
||||
|
@ -200,7 +199,6 @@ export const getValidateRequestParamsData = (
|
|||
gasPrice,
|
||||
requiredDeposit
|
||||
],
|
||||
_callData: callData,
|
||||
_endowment: endowment
|
||||
});
|
||||
};
|
||||
|
|
|
@ -156,7 +156,6 @@ export const getValidateScheduleParamsCallPayload = (
|
|||
const deposit = getScheduleDeposit(state);
|
||||
const scheduleTimestamp = getScheduleTimestamp(state);
|
||||
const windowSize = getWindowSize(state);
|
||||
const callData = getData(state);
|
||||
const scheduleTimezone = getScheduleTimezone(state);
|
||||
const windowStart = getWindowStart(state);
|
||||
|
||||
|
@ -189,7 +188,6 @@ export const getValidateScheduleParamsCallPayload = (
|
|||
|
||||
const data = getValidateRequestParamsData(
|
||||
bufferToHex(currentTo.value),
|
||||
callData.value ? bufferToHex(callData.value) : '',
|
||||
callGasLimit,
|
||||
currentValue.value,
|
||||
windowSizeBlockToMin(windowSize.value, scheduleType.value),
|
||||
|
|
Loading…
Reference in New Issue