kamiweb3-sdk
Version:
TypeScript SDK for KAMI721-C, KAMI721-AC, and KAMI1155-C smart contracts
45 lines • 1.75 kB
TypeScript
import { Signer, BigNumberish, BytesLike } from 'ethers';
/**
* Represents a signer capable of signing transactions or a provider for read-only access.
* Can be an ethers Wallet, JsonRpcSigner, etc.
*/
export type SignerOrProvider = Signer | any;
/**
* Structure for defining royalty recipients and their share.
*/
export interface RoyaltyData {
receiver: string;
feeNumerator: BigNumberish;
}
/**
* Structure for ERC2981 royalty info.
*/
export interface RoyaltyInfo {
receiver: string;
royaltyAmount: bigint;
}
/**
* Structure for rental details returned by the contract.
*/
export interface RentalDetails {
renter: string;
startTime: bigint;
endTime: bigint;
rentalPrice: bigint;
active: boolean;
}
/** Default admin role identifier (`bytes32(0)`). */
export declare const DEFAULT_ADMIN_ROLE: BytesLike;
/** Owner role identifier (`keccak256("OWNER_ROLE")`). Typically manages contract settings. */
export declare const OWNER_ROLE: BytesLike;
/** Platform role identifier (`keccak256("PLATFORM_ROLE")`). Typically receives platform fees. */
export declare const PLATFORM_ROLE: BytesLike;
/** Renter role identifier (`keccak256("RENTER_ROLE")`). Granted to users actively renting. */
export declare const RENTER_ROLE: BytesLike;
/** Minter role identifier (`keccak256("MINTER_ROLE")`). Allowed to mint new tokens. */
export declare const MINTER_ROLE: BytesLike;
/** Pauser role identifier (`keccak256("PAUSER_ROLE")`). Allowed to pause/unpause the contract. */
export declare const PAUSER_ROLE: BytesLike;
/** Upgrader role identifier (`keccak256("UPGRADER_ROLE")`). Allowed to upgrade the contract (relevant for UUPS). */
export declare const UPGRADER_ROLE: BytesLike;
//# sourceMappingURL=types.d.ts.map