Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Added swapAll abi (#2576)
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadV91 authored Mar 23, 2022
1 parent ee2f53d commit c31d925
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/custom/abis/types/VCow.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
PopulatedTransaction,
BaseContract,
ContractTransaction,
Overrides,
PayableOverrides,
CallOverrides,
} from "ethers";
Expand All @@ -31,6 +32,7 @@ interface VCowInterface extends ethers.utils.Interface {
"nativeTokenPrice()": FunctionFragment;
"swappableBalanceOf(address)": FunctionFragment;
"balanceOf(address)": FunctionFragment;
"swapAll()": FunctionFragment;
};

encodeFunctionData(
Expand Down Expand Up @@ -79,6 +81,7 @@ interface VCowInterface extends ethers.utils.Interface {
values: [string]
): string;
encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
encodeFunctionData(functionFragment: "swapAll", values?: undefined): string;

decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "claimMany", data: BytesLike): Result;
Expand All @@ -99,6 +102,7 @@ interface VCowInterface extends ethers.utils.Interface {
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "swapAll", data: BytesLike): Result;

events: {
"Claimed(uint256,uint8,address,uint256,uint256)": EventFragment;
Expand Down Expand Up @@ -203,6 +207,10 @@ export class VCow extends BaseContract {
): Promise<[BigNumber]>;

balanceOf(user: string, overrides?: CallOverrides): Promise<[BigNumber]>;

swapAll(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
};

claim(
Expand Down Expand Up @@ -245,6 +253,10 @@ export class VCow extends BaseContract {

balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;

swapAll(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;

callStatic: {
claim(
index: BigNumberish,
Expand Down Expand Up @@ -285,6 +297,8 @@ export class VCow extends BaseContract {
): Promise<BigNumber>;

balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;

swapAll(overrides?: CallOverrides): Promise<BigNumber>;
};

filters: {
Expand Down Expand Up @@ -366,6 +380,10 @@ export class VCow extends BaseContract {
): Promise<BigNumber>;

balanceOf(user: string, overrides?: CallOverrides): Promise<BigNumber>;

swapAll(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
};

populateTransaction: {
Expand Down Expand Up @@ -416,5 +434,9 @@ export class VCow extends BaseContract {
user: string,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;

swapAll(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
};
}
13 changes: 13 additions & 0 deletions src/custom/abis/types/factories/VCow__factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,19 @@ const _abi = [
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "swapAll",
outputs: [
{
internalType: "uint256",
name: "swappedBalance",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
];

export class VCow__factory {
Expand Down
13 changes: 13 additions & 0 deletions src/custom/abis/vCow.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,5 +238,18 @@
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "swapAll",
"outputs": [
{
"internalType": "uint256",
"name": "swappedBalance",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]

0 comments on commit c31d925

Please sign in to comment.