axie-ronin-ethers-js-tools
Version:
A set of functions that make it easier for developers to interact with their Axies on the Ronin network and the maketplace.
23 lines (22 loc) • 625 B
TypeScript
import { ethers } from "ethers";
export declare const ORDER_EXPIRATION = 15634800;
export interface ICreateOrderData {
address: string;
axieId: string;
basePrice: string;
endedPrice: string;
startedAt: number;
endedAt: number;
expiredAt: number;
}
export interface ICreateOrderResult {
data?: {
createOrder: {
hash: string;
};
};
errors?: Array<{
message: string;
}>;
}
export default function createMarketplaceOrder(orderData: ICreateOrderData, accessToken: string, signer: ethers.Wallet, skyMavisApiKey?: string): Promise<ICreateOrderResult>;