@soundsright/chain
Version:
soundsright contracts
64 lines (63 loc) • 1.6 kB
TypeScript
export declare enum PayType {
ETH = 0,
ERC20 = 1
}
export declare enum Erc20AssetType {
WETH = 0,
USDT = 1,
USDC = 2,
DAI = 3
}
export declare type Part = {
account: string;
value: number;
};
export declare type SignDomain = {
name?: string;
version?: string;
chainId?: number;
verifyingContract?: string;
};
export declare type SignFieldTypeDefine = {
name: string;
type: string;
};
export declare type SignMessageTypes = {
[x: string]: Array<SignFieldTypeDefine>;
};
export declare type SignMessageValue = {
[x: string]: any;
};
export declare type SkuInfoV1 = {
[x: string]: any;
};
export declare type ContractWriteMethodOverrides = {
gasPrice?: number;
gasLimit?: number;
value?: number | string;
nonce?: number | string;
};
export declare class TransactionError extends Error {
constructor(error: Error);
}
export declare type SwitchChainData = {
targetChainId: number;
oldChainId: number;
};
export declare type CheckChainOptions = {
beforeSwitchChain?: (e: SwitchChainData) => Promise<void> | void;
switchChainSuccess?: (e: SwitchChainData) => void;
switchChainFailed?: (e: Error & SwitchChainData) => void;
};
export declare type CreateArtistParams = {
signature: string;
name: string;
symbol: string;
contractURI: string;
defaultSigner: string;
platformSigner: string;
platformFeeRecipient: string;
platformFeeValue: string;
fansFeeRecipient: string;
fansFeeValue: string;
};