Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: temp sdai #568

Closed
wants to merge 66 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
89b8eca
feat: added tests
JoaquinBattilana Aug 22, 2023
4545849
feat: added test for stable debt
JoaquinBattilana Aug 22, 2023
28189af
Merge branch 'master' into feat/repay-bundle
grothem Sep 6, 2023
9a9b693
fix: bad merge
grothem Sep 6, 2023
30c68cc
feat: added encoded tx data
JoaquinBattilana Sep 15, 2023
718b1e3
feat: added test for signed repay with l2 pool
JoaquinBattilana Sep 15, 2023
529ca8b
feat: -1 handle
JoaquinBattilana Sep 15, 2023
8d191bf
feat: added test for repay with max input (-1)
JoaquinBattilana Sep 15, 2023
2e22958
Merge branch 'master' into feat/repay-bundle
JoaquinBattilana Oct 17, 2023
f5b8cfb
feat: added encode functions for using optimized path
grothem Oct 24, 2023
46fe68f
fix: rate mode and max repay
grothem Oct 24, 2023
0efe719
test: repay amount and interest rate mode
grothem Oct 24, 2023
c7a4453
feat: sdai token wrapper
grothem Aug 31, 2023
e9c9a46
test: sdai wrapper
grothem Aug 31, 2023
ab88fdf
fix: sdai token preview
grothem Aug 31, 2023
3858435
test: coverage
grothem Sep 1, 2023
3eefd88
feat: updated typings
grothem Oct 25, 2023
08ab6cd
fix: compile errors
grothem Oct 25, 2023
a629bd5
feat: generic token wrapping service
grothem Oct 25, 2023
7dfe344
fix: export
grothem Oct 25, 2023
3c5fc7b
fix: explicit return types
grothem Oct 25, 2023
d137084
Merge branch 'master' into feat/sdai-wrapper
grothem Nov 22, 2023
c8b03e9
fix: cleanup
grothem Nov 22, 2023
3cdeddd
feat: type generation for new contreacts gov v3
JoaquinBattilana Dec 8, 2023
6e236ad
feat: gov data helpers
grothem Dec 8, 2023
dffafc6
fix: export
grothem Dec 8, 2023
40a6b88
fix: typings
grothem Dec 8, 2023
d87da87
fix: rename
grothem Dec 8, 2023
d78bb15
fix: types
grothem Dec 8, 2023
749ebcf
fix: types
grothem Dec 8, 2023
1b37837
feat: helper methods
grothem Dec 8, 2023
91bcd5a
fix: types
grothem Dec 8, 2023
fda96ff
feat: voting machine data helper
grothem Dec 11, 2023
644ea70
fix: build
grothem Dec 11, 2023
40e2352
feat: gov core
grothem Dec 11, 2023
1433358
fix: export
grothem Dec 11, 2023
d0266e1
feat: update reps
grothem Dec 13, 2023
e8b6223
feat: aave v3 token
grothem Dec 19, 2023
69530bf
fix: specify block number
grothem Dec 19, 2023
ddd2484
feat: payloads data service
grothem Dec 20, 2023
0513918
fix: export
grothem Dec 20, 2023
7ec0959
feat: meta delegation
grothem Dec 21, 2023
7ec04b0
feat: token delegate
grothem Dec 21, 2023
182191f
fix: export
grothem Dec 22, 2023
2022bac
feat: deleted export
JoaquinBattilana Dec 26, 2023
000dc6b
feat: added getPowers
JoaquinBattilana Dec 29, 2023
a36249a
feat: added delegateedata
JoaquinBattilana Dec 31, 2023
98720b3
feat: get eip712 domain
grothem Jan 2, 2024
8760e6b
fix: staked token v3
grothem Jan 2, 2024
666caa6
fix: staking test
grothem Jan 2, 2024
a59b646
fix: staked token types
grothem Jan 3, 2024
83b4ed7
fix: abi
grothem Jan 3, 2024
b6faacd
fix: domain
grothem Jan 3, 2024
40ce955
fix: domain
grothem Jan 3, 2024
5cb0783
fix: domain
grothem Jan 3, 2024
3a3b9e4
fix: message
grothem Jan 3, 2024
297f7e8
fix: test
grothem Jan 3, 2024
d705d88
fix: sig
grothem Jan 3, 2024
c91f1f0
fix: sig
grothem Jan 3, 2024
81a235b
feat: Feat/gov v3 cleanup (#567)
foodaka Jan 3, 2024
26b82bf
fix: gas limits
grothem Jan 3, 2024
680837d
fix: imports
grothem Jan 3, 2024
706cc81
fix: gas limits
grothem Jan 4, 2024
d4472ca
fix: remove empty file
grothem Jan 5, 2024
f51b244
Merge branch 'feat/gov-v3' into feat/temp-sdai
grothem Jan 5, 2024
c6f4512
Merge branch 'master' into feat/temp-sdai
grothem Feb 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 12 additions & 34 deletions packages/contract-helpers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,72 +1,50 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 1.24.0 (2024-02-05)


### Features

* abpt v2 migration ([#573](https://github.com/aave/aave-utilities/issues/573)) ([75bb4c0](https://github.com/aave/aave-utilities/commit/75bb4c038ea10b8faf42630a7fb580e7317623b8))




- abpt v2 migration ([#573](https://github.com/aave/aave-utilities/issues/573))
([75bb4c0](https://github.com/aave/aave-utilities/commit/75bb4c038ea10b8faf42630a7fb580e7317623b8))

## 1.23.1 (2024-01-24)

**Note:** Version bump only for package @aave/contract-helpers





# 1.23.0 (2024-01-19)


### Features

* add bnb ([#571](https://github.com/aave/aave-utilities/issues/571)) ([5b92d16](https://github.com/aave/aave-utilities/commit/5b92d16a39dfb47e0cae95fd3480863b8f9afc75))




- add bnb ([#571](https://github.com/aave/aave-utilities/issues/571))
([5b92d16](https://github.com/aave/aave-utilities/commit/5b92d16a39dfb47e0cae95fd3480863b8f9afc75))

# 1.22.0 (2024-01-18)


### Features

* gov v3 ([#564](https://github.com/aave/aave-utilities/issues/564)) ([335588e](https://github.com/aave/aave-utilities/commit/335588e2e04056b631a47b1ede50594baebd158e)), closes [#567](https://github.com/aave/aave-utilities/issues/567)




- gov v3 ([#564](https://github.com/aave/aave-utilities/issues/564))
([335588e](https://github.com/aave/aave-utilities/commit/335588e2e04056b631a47b1ede50594baebd158e)),
closes [#567](https://github.com/aave/aave-utilities/issues/567)

## 1.21.1 (2023-11-21)

**Note:** Version bump only for package @aave/contract-helpers





# Change Log

All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 1.21.0 (2023-10-04)


### Features

* updated debt switch interface ([#559](https://github.com/aave/aave-utilities/issues/559)) ([b108c62](https://github.com/aave/aave-utilities/commit/b108c620cf0e3e446840c166b660695ebd66563b))




- updated debt switch interface
([#559](https://github.com/aave/aave-utilities/issues/559))
([b108c62](https://github.com/aave/aave-utilities/commit/b108c620cf0e3e446840c166b660695ebd66563b))

# 1.20.0 (2023-08-22)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import type {
PopulatedTransaction,
Signer,
utils,
} from "ethers";
import type { FunctionFragment, Result } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
} from 'ethers';
import type { FunctionFragment, Result } from '@ethersproject/abi';
import type { Listener, Provider } from '@ethersproject/providers';
import type {
TypedEventFilter,
TypedEvent,
TypedListener,
OnEvent,
} from "./common";
} from './common';

export declare namespace IGovernanceCore {
export type VotingConfigStruct = {
Expand All @@ -33,7 +33,7 @@ export declare namespace IGovernanceCore {
number,
BigNumber,
BigNumber,
BigNumber
BigNumber,
] & {
coolDownBeforeVotingStart: number;
votingDuration: number;
Expand Down Expand Up @@ -75,7 +75,7 @@ export declare namespace IGovernanceCore {
BigNumber,
BigNumber,
BigNumber,
PayloadsControllerUtils.PayloadStructOutput[]
PayloadsControllerUtils.PayloadStructOutput[],
] & {
state: number;
accessLevel: number;
Expand Down Expand Up @@ -103,7 +103,7 @@ export declare namespace IGovernanceDataHelper {

export type VotingConfigStructOutput = [
number,
IGovernanceCore.VotingConfigStructOutput
IGovernanceCore.VotingConfigStructOutput,
] & { accessLevel: number; config: IGovernanceCore.VotingConfigStructOutput };

export type ConstantsStruct = {
Expand All @@ -119,7 +119,7 @@ export declare namespace IGovernanceDataHelper {
BigNumber,
BigNumber,
BigNumber,
BigNumber
BigNumber,
] & {
votingConfigs: IGovernanceDataHelper.VotingConfigStructOutput[];
precisionDivider: BigNumber;
Expand All @@ -137,7 +137,7 @@ export declare namespace IGovernanceDataHelper {
export type ProposalStructOutput = [
BigNumber,
BigNumber,
IGovernanceCore.ProposalStructOutput
IGovernanceCore.ProposalStructOutput,
] & {
id: BigNumber;
votingChainId: BigNumber;
Expand Down Expand Up @@ -183,42 +183,42 @@ export declare namespace PayloadsControllerUtils {

export interface GovernanceDataHelperInterface extends utils.Interface {
functions: {
"getConstants(address,uint8[])": FunctionFragment;
"getProposalsData(address,uint256,uint256,uint256)": FunctionFragment;
"getRepresentationData(address,address,uint256[])": FunctionFragment;
'getConstants(address,uint8[])': FunctionFragment;
'getProposalsData(address,uint256,uint256,uint256)': FunctionFragment;
'getRepresentationData(address,address,uint256[])': FunctionFragment;
};

getFunction(
nameOrSignatureOrTopic:
| "getConstants"
| "getProposalsData"
| "getRepresentationData"
| 'getConstants'
| 'getProposalsData'
| 'getRepresentationData',
): FunctionFragment;

encodeFunctionData(
functionFragment: "getConstants",
values: [string, BigNumberish[]]
functionFragment: 'getConstants',
values: [string, BigNumberish[]],
): string;
encodeFunctionData(
functionFragment: "getProposalsData",
values: [string, BigNumberish, BigNumberish, BigNumberish]
functionFragment: 'getProposalsData',
values: [string, BigNumberish, BigNumberish, BigNumberish],
): string;
encodeFunctionData(
functionFragment: "getRepresentationData",
values: [string, string, BigNumberish[]]
functionFragment: 'getRepresentationData',
values: [string, string, BigNumberish[]],
): string;

decodeFunctionResult(
functionFragment: "getConstants",
data: BytesLike
functionFragment: 'getConstants',
data: BytesLike,
): Result;
decodeFunctionResult(
functionFragment: "getProposalsData",
data: BytesLike
functionFragment: 'getProposalsData',
data: BytesLike,
): Result;
decodeFunctionResult(
functionFragment: "getRepresentationData",
data: BytesLike
functionFragment: 'getRepresentationData',
data: BytesLike,
): Result;

events: {};
Expand All @@ -234,15 +234,15 @@ export interface GovernanceDataHelper extends BaseContract {
queryFilter<TEvent extends TypedEvent>(
event: TypedEventFilter<TEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
toBlock?: string | number | undefined,
): Promise<Array<TEvent>>;

listeners<TEvent extends TypedEvent>(
eventFilter?: TypedEventFilter<TEvent>
eventFilter?: TypedEventFilter<TEvent>,
): Array<TypedListener<TEvent>>;
listeners(eventName?: string): Array<Listener>;
removeAllListeners<TEvent extends TypedEvent>(
eventFilter: TypedEventFilter<TEvent>
eventFilter: TypedEventFilter<TEvent>,
): this;
removeAllListeners(eventName?: string): this;
off: OnEvent<this>;
Expand All @@ -254,80 +254,80 @@ export interface GovernanceDataHelper extends BaseContract {
getConstants(
govCore: string,
accessLevels: BigNumberish[],
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<[IGovernanceDataHelper.ConstantsStructOutput]>;

getProposalsData(
govCore: string,
from: BigNumberish,
to: BigNumberish,
pageSize: BigNumberish,
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<[IGovernanceDataHelper.ProposalStructOutput[]]>;

getRepresentationData(
govCore: string,
wallet: string,
chainIds: BigNumberish[],
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<
[
IGovernanceDataHelper.RepresentativesStructOutput[],
IGovernanceDataHelper.RepresentedStructOutput[]
IGovernanceDataHelper.RepresentedStructOutput[],
]
>;
};

getConstants(
govCore: string,
accessLevels: BigNumberish[],
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<IGovernanceDataHelper.ConstantsStructOutput>;

getProposalsData(
govCore: string,
from: BigNumberish,
to: BigNumberish,
pageSize: BigNumberish,
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<IGovernanceDataHelper.ProposalStructOutput[]>;

getRepresentationData(
govCore: string,
wallet: string,
chainIds: BigNumberish[],
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<
[
IGovernanceDataHelper.RepresentativesStructOutput[],
IGovernanceDataHelper.RepresentedStructOutput[]
IGovernanceDataHelper.RepresentedStructOutput[],
]
>;

callStatic: {
getConstants(
govCore: string,
accessLevels: BigNumberish[],
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<IGovernanceDataHelper.ConstantsStructOutput>;

getProposalsData(
govCore: string,
from: BigNumberish,
to: BigNumberish,
pageSize: BigNumberish,
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<IGovernanceDataHelper.ProposalStructOutput[]>;

getRepresentationData(
govCore: string,
wallet: string,
chainIds: BigNumberish[],
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<
[
IGovernanceDataHelper.RepresentativesStructOutput[],
IGovernanceDataHelper.RepresentedStructOutput[]
IGovernanceDataHelper.RepresentedStructOutput[],
]
>;
};
Expand All @@ -338,45 +338,45 @@ export interface GovernanceDataHelper extends BaseContract {
getConstants(
govCore: string,
accessLevels: BigNumberish[],
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<BigNumber>;

getProposalsData(
govCore: string,
from: BigNumberish,
to: BigNumberish,
pageSize: BigNumberish,
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<BigNumber>;

getRepresentationData(
govCore: string,
wallet: string,
chainIds: BigNumberish[],
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<BigNumber>;
};

populateTransaction: {
getConstants(
govCore: string,
accessLevels: BigNumberish[],
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<PopulatedTransaction>;

getProposalsData(
govCore: string,
from: BigNumberish,
to: BigNumberish,
pageSize: BigNumberish,
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<PopulatedTransaction>;

getRepresentationData(
govCore: string,
wallet: string,
chainIds: BigNumberish[],
overrides?: CallOverrides
overrides?: CallOverrides,
): Promise<PopulatedTransaction>;
};
}
Loading
Loading