update contract

This commit is contained in:
Danil Kovtonyuk 2022-02-08 21:45:56 +10:00
parent 3dce6947a9
commit e060df18f7
5 changed files with 97 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "pool-relayer",
"version": "0.0.3",
"version": "0.0.4",
"description": "Relayer for Tornado.cash Nova privacy solution. https://tornado.cash",
"author": "tornado.cash",
"license": "MIT",

View File

@ -151,6 +151,19 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MIN_EXT_AMOUNT_LIMIT",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "ROOT_HISTORY_SIZE",
@ -604,6 +617,11 @@
"internalType": "bool",
"name": "isL1Withdrawal",
"type": "bool"
},
{
"internalType": "uint256",
"name": "l1Fee",
"type": "uint256"
}
],
"internalType": "struct TornadoPool.ExtData",
@ -759,6 +777,11 @@
"internalType": "bool",
"name": "isL1Withdrawal",
"type": "bool"
},
{
"internalType": "uint256",
"name": "l1Fee",
"type": "uint256"
}
],
"internalType": "struct TornadoPool.ExtData",
@ -901,6 +924,11 @@
"internalType": "bool",
"name": "isL1Withdrawal",
"type": "bool"
},
{
"internalType": "uint256",
"name": "l1Fee",
"type": "uint256"
}
],
"internalType": "struct TornadoPool.ExtData",

View File

@ -24,6 +24,7 @@ interface TornadoPoolInterface extends ethers.utils.Interface {
"FIELD_SIZE()": FunctionFragment;
"MAX_EXT_AMOUNT()": FunctionFragment;
"MAX_FEE()": FunctionFragment;
"MIN_EXT_AMOUNT_LIMIT()": FunctionFragment;
"ROOT_HISTORY_SIZE()": FunctionFragment;
"ZERO_VALUE()": FunctionFragment;
"ambBridge()": FunctionFragment;
@ -72,6 +73,10 @@ interface TornadoPoolInterface extends ethers.utils.Interface {
values?: undefined
): string;
encodeFunctionData(functionFragment: "MAX_FEE", values?: undefined): string;
encodeFunctionData(
functionFragment: "MIN_EXT_AMOUNT_LIMIT",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "ROOT_HISTORY_SIZE",
values?: undefined
@ -169,6 +174,7 @@ interface TornadoPoolInterface extends ethers.utils.Interface {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
}
]
): string;
@ -201,6 +207,7 @@ interface TornadoPoolInterface extends ethers.utils.Interface {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
}
]
): string;
@ -229,6 +236,7 @@ interface TornadoPoolInterface extends ethers.utils.Interface {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
}
]
): string;
@ -258,6 +266,10 @@ interface TornadoPoolInterface extends ethers.utils.Interface {
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "MAX_FEE", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "MIN_EXT_AMOUNT_LIMIT",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "ROOT_HISTORY_SIZE",
data: BytesLike
@ -414,6 +426,8 @@ export class TornadoPool extends BaseContract {
MAX_FEE(overrides?: CallOverrides): Promise<[BigNumber]>;
MIN_EXT_AMOUNT_LIMIT(overrides?: CallOverrides): Promise<[BigNumber]>;
ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<[number]>;
ZERO_VALUE(overrides?: CallOverrides): Promise<[BigNumber]>;
@ -514,6 +528,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
@ -545,6 +560,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
@ -577,6 +593,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
@ -606,6 +623,8 @@ export class TornadoPool extends BaseContract {
MAX_FEE(overrides?: CallOverrides): Promise<BigNumber>;
MIN_EXT_AMOUNT_LIMIT(overrides?: CallOverrides): Promise<BigNumber>;
ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<number>;
ZERO_VALUE(overrides?: CallOverrides): Promise<BigNumber>;
@ -700,6 +719,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
@ -731,6 +751,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
@ -763,6 +784,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
@ -792,6 +814,8 @@ export class TornadoPool extends BaseContract {
MAX_FEE(overrides?: CallOverrides): Promise<BigNumber>;
MIN_EXT_AMOUNT_LIMIT(overrides?: CallOverrides): Promise<BigNumber>;
ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<number>;
ZERO_VALUE(overrides?: CallOverrides): Promise<BigNumber>;
@ -887,6 +911,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: CallOverrides
): Promise<void>;
@ -918,6 +943,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: CallOverrides
): Promise<void>;
@ -950,6 +976,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: CallOverrides
): Promise<void>;
@ -1000,6 +1027,8 @@ export class TornadoPool extends BaseContract {
MAX_FEE(overrides?: CallOverrides): Promise<BigNumber>;
MIN_EXT_AMOUNT_LIMIT(overrides?: CallOverrides): Promise<BigNumber>;
ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<BigNumber>;
ZERO_VALUE(overrides?: CallOverrides): Promise<BigNumber>;
@ -1100,6 +1129,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
@ -1131,6 +1161,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
@ -1163,6 +1194,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
@ -1193,6 +1225,10 @@ export class TornadoPool extends BaseContract {
MAX_FEE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
MIN_EXT_AMOUNT_LIMIT(
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
ZERO_VALUE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
@ -1297,6 +1333,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
@ -1328,6 +1365,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
@ -1363,6 +1401,7 @@ export class TornadoPool extends BaseContract {
encryptedOutput1: BytesLike;
encryptedOutput2: BytesLike;
isL1Withdrawal: boolean;
l1Fee: BigNumberish;
},
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;

View File

@ -159,6 +159,19 @@ const _abi = [
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "MIN_EXT_AMOUNT_LIMIT",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "ROOT_HISTORY_SIZE",
@ -613,6 +626,11 @@ const _abi = [
name: "isL1Withdrawal",
type: "bool",
},
{
internalType: "uint256",
name: "l1Fee",
type: "uint256",
},
],
internalType: "struct TornadoPool.ExtData",
name: "_extData",
@ -768,6 +786,11 @@ const _abi = [
name: "isL1Withdrawal",
type: "bool",
},
{
internalType: "uint256",
name: "l1Fee",
type: "uint256",
},
],
internalType: "struct TornadoPool.ExtData",
name: "_extData",
@ -910,6 +933,11 @@ const _abi = [
name: "isL1Withdrawal",
type: "bool",
},
{
internalType: "uint256",
name: "l1Fee",
type: "uint256",
},
],
internalType: "struct TornadoPool.ExtData",
name: "_extData",

View File

@ -37,6 +37,7 @@ const transactionSchema = {
recipient: addressType,
relayer: addressType,
isL1Withdrawal: booleanType,
l1Fee: bytes32Type,
},
},
args: {