Files
p2pix-smart-contracts/test/utils/interfaces.ts
arthur 9cc62efb8a fix_lint (#11)
Co-authored-by: Arthur Abeilice <afa7789@gmail.com>
Reviewed-on: https://git.p2pix.co/doiim/p2pix-smart-contracts/pulls/11
Co-authored-by: arthur <abeilice@kosmos.org>
Co-committed-by: arthur <abeilice@kosmos.org>
2026-05-29 20:09:12 +00:00

75 lines
1.1 KiB
TypeScript

import {
MockToken,
Multicall,
P2PIX,
Reputation,
} from "../../src/types";
// exported interfaces
export interface Deploys {
signers: string[];
p2pix: string;
token: string;
}
export interface DepositArgs {
pixTarget: string;
allowlistRoot: string;
token: string;
amount: bigint;
valid: boolean;
}
export interface LockArgs {
seller: string;
token: string;
amount: bigint;
merkleProof: string[];
expiredLocks: bigint[];
}
export interface ReleaseArgs {
lockID: bigint;
pixTimestamp: string;
signature: string;
}
export interface Lock {
counter: bigint;
expirationBlock: bigint;
pixTarget: string;
amount: bigint;
token: string;
buyerAddress: string;
seller: string;
}
export interface Call {
target: string;
callData: string;
}
export interface Result {
success: boolean;
returnData: string;
}
export interface P2pixFixture {
p2pix: P2PIX;
erc20: MockToken;
proof: string[];
merkleRoot: string;
}
export interface RepFixture {
reputation: Reputation;
}
export interface MtcFixture {
multicall: Multicall;
}
export type P2PixAndReputation = P2pixFixture &
RepFixture &
MtcFixture;