Skip to content

Commit

Permalink
Adopt mintFee and updates node scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarenaldi committed May 16, 2024
1 parent 7272721 commit 1583121
Show file tree
Hide file tree
Showing 20 changed files with 1,646 additions and 200 deletions.
452 changes: 388 additions & 64 deletions examples/node/abi/PublicActProxy.json

Large diffs are not rendered by default.

140 changes: 139 additions & 1 deletion examples/node/contracts/PublicActProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,34 @@ export declare namespace Types {

export interface PublicActProxyInterface extends utils.Interface {
functions: {
'COLLECT_PUBLICATION_ACTION()': FunctionFragment;
'HUB()': FunctionFragment;
'incrementNonce(uint8)': FunctionFragment;
'name()': FunctionFragment;
'nonces(address)': FunctionFragment;
'publicCollect((uint256,uint256,uint256,uint256[],uint256[],address,bytes))': FunctionFragment;
'publicCollectWithSig((uint256,uint256,uint256,uint256[],uint256[],address,bytes),(address,uint8,bytes32,bytes32,uint256))': FunctionFragment;
'publicFreeAct((uint256,uint256,uint256,uint256[],uint256[],address,bytes))': FunctionFragment;
'publicPaidAct((uint256,uint256,uint256,uint256[],uint256[],address,bytes),address,uint256,address)': FunctionFragment;
'publicPaidActWithSig((uint256,uint256,uint256,uint256[],uint256[],address,bytes),address,uint256,address,(address,uint8,bytes32,bytes32,uint256))': FunctionFragment;
};

getFunction(
nameOrSignatureOrTopic:
| 'COLLECT_PUBLICATION_ACTION'
| 'HUB'
| 'incrementNonce'
| 'name'
| 'nonces'
| 'publicCollect'
| 'publicCollectWithSig'
| 'publicFreeAct',
| 'publicFreeAct'
| 'publicPaidAct'
| 'publicPaidActWithSig',
): FunctionFragment;

encodeFunctionData(functionFragment: 'COLLECT_PUBLICATION_ACTION', values?: undefined): string;
encodeFunctionData(functionFragment: 'HUB', values?: undefined): string;
encodeFunctionData(
functionFragment: 'incrementNonce',
values: [PromiseOrValue<BigNumberish>],
Expand All @@ -107,13 +117,36 @@ export interface PublicActProxyInterface extends utils.Interface {
functionFragment: 'publicFreeAct',
values: [Types.PublicationActionParamsStruct],
): string;
encodeFunctionData(
functionFragment: 'publicPaidAct',
values: [
Types.PublicationActionParamsStruct,
PromiseOrValue<string>,
PromiseOrValue<BigNumberish>,
PromiseOrValue<string>,
],
): string;
encodeFunctionData(
functionFragment: 'publicPaidActWithSig',
values: [
Types.PublicationActionParamsStruct,
PromiseOrValue<string>,
PromiseOrValue<BigNumberish>,
PromiseOrValue<string>,
Types.EIP712SignatureStruct,
],
): string;

decodeFunctionResult(functionFragment: 'COLLECT_PUBLICATION_ACTION', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'HUB', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'incrementNonce', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'name', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'nonces', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'publicCollect', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'publicCollectWithSig', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'publicFreeAct', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'publicPaidAct', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'publicPaidActWithSig', data: BytesLike): Result;

events: {};
}
Expand Down Expand Up @@ -143,6 +176,10 @@ export interface PublicActProxy extends BaseContract {
removeListener: OnEvent<this>;

functions: {
COLLECT_PUBLICATION_ACTION(overrides?: CallOverrides): Promise<[string]>;

HUB(overrides?: CallOverrides): Promise<[string]>;

incrementNonce(
increment: PromiseOrValue<BigNumberish>,
overrides?: Overrides & { from?: PromiseOrValue<string> },
Expand All @@ -167,8 +204,29 @@ export interface PublicActProxy extends BaseContract {
publicationActionParams: Types.PublicationActionParamsStruct,
overrides?: Overrides & { from?: PromiseOrValue<string> },
): Promise<ContractTransaction>;

publicPaidAct(
publicationActionParams: Types.PublicationActionParamsStruct,
currency: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
approveTo: PromiseOrValue<string>,
overrides?: Overrides & { from?: PromiseOrValue<string> },
): Promise<ContractTransaction>;

publicPaidActWithSig(
publicationActionParams: Types.PublicationActionParamsStruct,
currency: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
approveTo: PromiseOrValue<string>,
signature: Types.EIP712SignatureStruct,
overrides?: Overrides & { from?: PromiseOrValue<string> },
): Promise<ContractTransaction>;
};

COLLECT_PUBLICATION_ACTION(overrides?: CallOverrides): Promise<string>;

HUB(overrides?: CallOverrides): Promise<string>;

incrementNonce(
increment: PromiseOrValue<BigNumberish>,
overrides?: Overrides & { from?: PromiseOrValue<string> },
Expand All @@ -194,7 +252,28 @@ export interface PublicActProxy extends BaseContract {
overrides?: Overrides & { from?: PromiseOrValue<string> },
): Promise<ContractTransaction>;

publicPaidAct(
publicationActionParams: Types.PublicationActionParamsStruct,
currency: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
approveTo: PromiseOrValue<string>,
overrides?: Overrides & { from?: PromiseOrValue<string> },
): Promise<ContractTransaction>;

publicPaidActWithSig(
publicationActionParams: Types.PublicationActionParamsStruct,
currency: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
approveTo: PromiseOrValue<string>,
signature: Types.EIP712SignatureStruct,
overrides?: Overrides & { from?: PromiseOrValue<string> },
): Promise<ContractTransaction>;

callStatic: {
COLLECT_PUBLICATION_ACTION(overrides?: CallOverrides): Promise<string>;

HUB(overrides?: CallOverrides): Promise<string>;

incrementNonce(
increment: PromiseOrValue<BigNumberish>,
overrides?: CallOverrides,
Expand All @@ -219,11 +298,32 @@ export interface PublicActProxy extends BaseContract {
publicationActionParams: Types.PublicationActionParamsStruct,
overrides?: CallOverrides,
): Promise<void>;

publicPaidAct(
publicationActionParams: Types.PublicationActionParamsStruct,
currency: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
approveTo: PromiseOrValue<string>,
overrides?: CallOverrides,
): Promise<void>;

publicPaidActWithSig(
publicationActionParams: Types.PublicationActionParamsStruct,
currency: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
approveTo: PromiseOrValue<string>,
signature: Types.EIP712SignatureStruct,
overrides?: CallOverrides,
): Promise<void>;
};

filters: {};

estimateGas: {
COLLECT_PUBLICATION_ACTION(overrides?: CallOverrides): Promise<BigNumber>;

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

incrementNonce(
increment: PromiseOrValue<BigNumberish>,
overrides?: Overrides & { from?: PromiseOrValue<string> },
Expand All @@ -248,9 +348,30 @@ export interface PublicActProxy extends BaseContract {
publicationActionParams: Types.PublicationActionParamsStruct,
overrides?: Overrides & { from?: PromiseOrValue<string> },
): Promise<BigNumber>;

publicPaidAct(
publicationActionParams: Types.PublicationActionParamsStruct,
currency: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
approveTo: PromiseOrValue<string>,
overrides?: Overrides & { from?: PromiseOrValue<string> },
): Promise<BigNumber>;

publicPaidActWithSig(
publicationActionParams: Types.PublicationActionParamsStruct,
currency: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
approveTo: PromiseOrValue<string>,
signature: Types.EIP712SignatureStruct,
overrides?: Overrides & { from?: PromiseOrValue<string> },
): Promise<BigNumber>;
};

populateTransaction: {
COLLECT_PUBLICATION_ACTION(overrides?: CallOverrides): Promise<PopulatedTransaction>;

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

incrementNonce(
increment: PromiseOrValue<BigNumberish>,
overrides?: Overrides & { from?: PromiseOrValue<string> },
Expand Down Expand Up @@ -278,5 +399,22 @@ export interface PublicActProxy extends BaseContract {
publicationActionParams: Types.PublicationActionParamsStruct,
overrides?: Overrides & { from?: PromiseOrValue<string> },
): Promise<PopulatedTransaction>;

publicPaidAct(
publicationActionParams: Types.PublicationActionParamsStruct,
currency: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
approveTo: PromiseOrValue<string>,
overrides?: Overrides & { from?: PromiseOrValue<string> },
): Promise<PopulatedTransaction>;

publicPaidActWithSig(
publicationActionParams: Types.PublicationActionParamsStruct,
currency: PromiseOrValue<string>,
amount: PromiseOrValue<BigNumberish>,
approveTo: PromiseOrValue<string>,
signature: Types.EIP712SignatureStruct,
overrides?: Overrides & { from?: PromiseOrValue<string> },
): Promise<PopulatedTransaction>;
};
}
Loading

0 comments on commit 1583121

Please sign in to comment.