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

Donations #41

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
261 changes: 261 additions & 0 deletions packages/hardhat/Donation.sol/DonationMultiSig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumber,
BigNumberish,
BytesLike,
CallOverrides,
ContractTransaction,
Overrides,
PopulatedTransaction,
Signer,
utils,
} from "ethers";
import type {
FunctionFragment,
Result,
EventFragment,
} from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
TypedEventFilter,
TypedEvent,
TypedListener,
OnEvent,
PromiseOrValue,
} from "../../common";

export interface DonationMultiSigInterface extends utils.Interface {
functions: {
"approveContributor(address)": FunctionFragment;
"contributors(uint256)": FunctionFragment;
"proposeContributor(address,uint32)": FunctionFragment;
"totalWeight()": FunctionFragment;
"weights(uint256)": FunctionFragment;
};

getFunction(
nameOrSignatureOrTopic:
| "approveContributor"
| "contributors"
| "proposeContributor"
| "totalWeight"
| "weights"
): FunctionFragment;

encodeFunctionData(
functionFragment: "approveContributor",
values: [PromiseOrValue<string>]
): string;
encodeFunctionData(
functionFragment: "contributors",
values: [PromiseOrValue<BigNumberish>]
): string;
encodeFunctionData(
functionFragment: "proposeContributor",
values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
): string;
encodeFunctionData(
functionFragment: "totalWeight",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "weights",
values: [PromiseOrValue<BigNumberish>]
): string;

decodeFunctionResult(
functionFragment: "approveContributor",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "contributors",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "proposeContributor",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "totalWeight",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "weights", data: BytesLike): Result;

events: {
"Donation(address,uint256)": EventFragment;
};

getEvent(nameOrSignatureOrTopic: "Donation"): EventFragment;
}

export interface DonationEventObject {
sender: string;
amount: BigNumber;
}
export type DonationEvent = TypedEvent<
[string, BigNumber],
DonationEventObject
>;

export type DonationEventFilter = TypedEventFilter<DonationEvent>;

export interface DonationMultiSig extends BaseContract {
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;

interface: DonationMultiSigInterface;

queryFilter<TEvent extends TypedEvent>(
event: TypedEventFilter<TEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TEvent>>;

listeners<TEvent extends TypedEvent>(
eventFilter?: TypedEventFilter<TEvent>
): Array<TypedListener<TEvent>>;
listeners(eventName?: string): Array<Listener>;
removeAllListeners<TEvent extends TypedEvent>(
eventFilter: TypedEventFilter<TEvent>
): this;
removeAllListeners(eventName?: string): this;
off: OnEvent<this>;
on: OnEvent<this>;
once: OnEvent<this>;
removeListener: OnEvent<this>;

functions: {
approveContributor(
newContributor: PromiseOrValue<string>,
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<ContractTransaction>;

contributors(
arg0: PromiseOrValue<BigNumberish>,
overrides?: CallOverrides
): Promise<[string]>;

proposeContributor(
newContributor: PromiseOrValue<string>,
weight: PromiseOrValue<BigNumberish>,
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<ContractTransaction>;

totalWeight(overrides?: CallOverrides): Promise<[BigNumber]>;

weights(
arg0: PromiseOrValue<BigNumberish>,
overrides?: CallOverrides
): Promise<[number]>;
};

approveContributor(
newContributor: PromiseOrValue<string>,
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<ContractTransaction>;

contributors(
arg0: PromiseOrValue<BigNumberish>,
overrides?: CallOverrides
): Promise<string>;

proposeContributor(
newContributor: PromiseOrValue<string>,
weight: PromiseOrValue<BigNumberish>,
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<ContractTransaction>;

totalWeight(overrides?: CallOverrides): Promise<BigNumber>;

weights(
arg0: PromiseOrValue<BigNumberish>,
overrides?: CallOverrides
): Promise<number>;

callStatic: {
approveContributor(
newContributor: PromiseOrValue<string>,
overrides?: CallOverrides
): Promise<void>;

contributors(
arg0: PromiseOrValue<BigNumberish>,
overrides?: CallOverrides
): Promise<string>;

proposeContributor(
newContributor: PromiseOrValue<string>,
weight: PromiseOrValue<BigNumberish>,
overrides?: CallOverrides
): Promise<void>;

totalWeight(overrides?: CallOverrides): Promise<BigNumber>;

weights(
arg0: PromiseOrValue<BigNumberish>,
overrides?: CallOverrides
): Promise<number>;
};

filters: {
"Donation(address,uint256)"(
sender?: null,
amount?: null
): DonationEventFilter;
Donation(sender?: null, amount?: null): DonationEventFilter;
};

estimateGas: {
approveContributor(
newContributor: PromiseOrValue<string>,
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<BigNumber>;

contributors(
arg0: PromiseOrValue<BigNumberish>,
overrides?: CallOverrides
): Promise<BigNumber>;

proposeContributor(
newContributor: PromiseOrValue<string>,
weight: PromiseOrValue<BigNumberish>,
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<BigNumber>;

totalWeight(overrides?: CallOverrides): Promise<BigNumber>;

weights(
arg0: PromiseOrValue<BigNumberish>,
overrides?: CallOverrides
): Promise<BigNumber>;
};

populateTransaction: {
approveContributor(
newContributor: PromiseOrValue<string>,
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<PopulatedTransaction>;

contributors(
arg0: PromiseOrValue<BigNumberish>,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;

proposeContributor(
newContributor: PromiseOrValue<string>,
weight: PromiseOrValue<BigNumberish>,
overrides?: Overrides & { from?: PromiseOrValue<string> }
): Promise<PopulatedTransaction>;

totalWeight(overrides?: CallOverrides): Promise<PopulatedTransaction>;

weights(
arg0: PromiseOrValue<BigNumberish>,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
};
}
Loading