Skip to content

Commit

Permalink
Update contract address and types (#2274)
Browse files Browse the repository at this point in the history
* update types

* update contract-address
  • Loading branch information
ap-justin authored Jul 25, 2023
1 parent bf175b1 commit 9c1bd98
Show file tree
Hide file tree
Showing 15 changed files with 1,237 additions and 249 deletions.
4 changes: 2 additions & 2 deletions src/constants/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const mainnet:Contracts = {
const testnet:Contracts = {
registrar: "0xe1215B3e150dd298d787D41a4879959D30Dc3939",
"index-fund": "0xf6B32b4a0371050321fC01672FDfad76aF55603f",
"multisig/ap": "0xeA2B4CD932f5Cecea867D8794206c5D51A13a516",
"multisig/review": "0x3769916a8c97FFf1C48DE49b03181578576aFdF1",
"multisig/ap": "0x9034E5Bb0e03c985952C3506363Fe936c4A799f5",
"multisig/review": "0xbF338a5f1030c9c3c7d729214A0299201149146C",
accounts: "0xE2e48880d780c4Fa36655EC9014DBbdA1164C0cA",
"gift-card": "0x47e49a7700c9D79412bb47385eD349106d4941F9",
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,20 @@ export declare namespace AccountMessages {

export interface AccountsDonationMatchInterface extends utils.Interface {
functions: {
"depositDonationMatchErC20(uint32,address,uint256)": FunctionFragment;
"depositDonationMatchERC20(uint32,address,uint256)": FunctionFragment;
"setupDonationMatch(uint32,(uint8,(address,address,uint24)))": FunctionFragment;
"withdrawDonationMatchErC20(uint32,address,uint256)": FunctionFragment;
"withdrawDonationMatchERC20(uint32,address,uint256)": FunctionFragment;
};

getFunction(
nameOrSignatureOrTopic:
| "depositDonationMatchErC20"
| "depositDonationMatchERC20"
| "setupDonationMatch"
| "withdrawDonationMatchErC20"
| "withdrawDonationMatchERC20"
): FunctionFragment;

encodeFunctionData(
functionFragment: "depositDonationMatchErC20",
functionFragment: "depositDonationMatchERC20",
values: [
PromiseOrValue<BigNumberish>,
PromiseOrValue<string>,
Expand All @@ -111,7 +111,7 @@ export interface AccountsDonationMatchInterface extends utils.Interface {
values: [PromiseOrValue<BigNumberish>, AccountMessages.DonationMatchStruct]
): string;
encodeFunctionData(
functionFragment: "withdrawDonationMatchErC20",
functionFragment: "withdrawDonationMatchERC20",
values: [
PromiseOrValue<BigNumberish>,
PromiseOrValue<string>,
Expand All @@ -120,15 +120,15 @@ export interface AccountsDonationMatchInterface extends utils.Interface {
): string;

decodeFunctionResult(
functionFragment: "depositDonationMatchErC20",
functionFragment: "depositDonationMatchERC20",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setupDonationMatch",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "withdrawDonationMatchErC20",
functionFragment: "withdrawDonationMatchERC20",
data: BytesLike
): Result;

Expand Down Expand Up @@ -427,7 +427,7 @@ export interface AccountsDonationMatch extends BaseContract {
removeListener: OnEvent<this>;

functions: {
depositDonationMatchErC20(
depositDonationMatchERC20(
id: PromiseOrValue<BigNumberish>,
token: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
Expand All @@ -440,15 +440,15 @@ export interface AccountsDonationMatch extends BaseContract {
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<ContractTransaction>;

withdrawDonationMatchErC20(
withdrawDonationMatchERC20(
id: PromiseOrValue<BigNumberish>,
recipient: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<ContractTransaction>;
};

depositDonationMatchErC20(
depositDonationMatchERC20(
id: PromiseOrValue<BigNumberish>,
token: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
Expand All @@ -461,15 +461,15 @@ export interface AccountsDonationMatch extends BaseContract {
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<ContractTransaction>;

withdrawDonationMatchErC20(
withdrawDonationMatchERC20(
id: PromiseOrValue<BigNumberish>,
recipient: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<ContractTransaction>;

callStatic: {
depositDonationMatchErC20(
depositDonationMatchERC20(
id: PromiseOrValue<BigNumberish>,
token: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
Expand All @@ -482,7 +482,7 @@ export interface AccountsDonationMatch extends BaseContract {
overrides?: CallOverrides
): Promise<void>;

withdrawDonationMatchErC20(
withdrawDonationMatchERC20(
id: PromiseOrValue<BigNumberish>,
recipient: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
Expand Down Expand Up @@ -654,7 +654,7 @@ export interface AccountsDonationMatch extends BaseContract {
};

estimateGas: {
depositDonationMatchErC20(
depositDonationMatchERC20(
id: PromiseOrValue<BigNumberish>,
token: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
Expand All @@ -667,7 +667,7 @@ export interface AccountsDonationMatch extends BaseContract {
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<BigNumber>;

withdrawDonationMatchErC20(
withdrawDonationMatchERC20(
id: PromiseOrValue<BigNumberish>,
recipient: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
Expand All @@ -676,7 +676,7 @@ export interface AccountsDonationMatch extends BaseContract {
};

populateTransaction: {
depositDonationMatchErC20(
depositDonationMatchERC20(
id: PromiseOrValue<BigNumberish>,
token: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
Expand All @@ -689,7 +689,7 @@ export interface AccountsDonationMatch extends BaseContract {
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<PopulatedTransaction>;

withdrawDonationMatchErC20(
withdrawDonationMatchERC20(
id: PromiseOrValue<BigNumberish>,
recipient: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,34 +149,28 @@ export declare namespace AccountMessages {
export type ConfigResponseStruct = {
owner: PromiseOrValue<string>;
version: PromiseOrValue<string>;
networkName: PromiseOrValue<string>;
registrarContract: PromiseOrValue<string>;
nextAccountId: PromiseOrValue<BigNumberish>;
maxGeneralCategoryId: PromiseOrValue<BigNumberish>;
subDao: PromiseOrValue<string>;
gateway: PromiseOrValue<string>;
gasReceiver: PromiseOrValue<string>;
earlyLockedWithdrawFee: LibAccounts.FeeSettingStruct;
};

export type ConfigResponseStructOutput = [
string,
string,
string,
string,
BigNumber,
BigNumber,
string,
string,
string,
LibAccounts.FeeSettingStructOutput
] & {
owner: string;
version: string;
networkName: string;
registrarContract: string;
nextAccountId: BigNumber;
maxGeneralCategoryId: BigNumber;
subDao: string;
gateway: string;
gasReceiver: string;
earlyLockedWithdrawFee: LibAccounts.FeeSettingStructOutput;
};

Expand Down
Loading

0 comments on commit 9c1bd98

Please sign in to comment.