@frakt-protocol/frakt-sdk
Version:
Frakt SDK for interacting with frakt.xyz protocols
21 lines (20 loc) • 1.08 kB
TypeScript
/// <reference types="bn.js" />
import * as anchor from '@project-serum/anchor';
export { AllAccounts, CollectionInfoView, LiquidityPoolView, DepositView, LoanView, } from './../contract_model/accounts';
import { Keypair, PublicKey, Transaction } from '@solana/web3.js';
export declare function initializeCollectionInfo({ programId, provider, liquidityPool, admin, creatorAddress, pricingLookupAddress, loanToValue, collaterizationRate, royaltyAddress, royaltyFeeTime, royaltyFeePrice, expirationTime, isPriceBased, sendTxn, }: {
programId: PublicKey;
provider: anchor.Provider;
liquidityPool: PublicKey;
admin: PublicKey;
creatorAddress: PublicKey;
pricingLookupAddress: PublicKey;
loanToValue: number | anchor.BN;
collaterizationRate: number | anchor.BN;
royaltyAddress: PublicKey;
royaltyFeeTime: number | anchor.BN;
royaltyFeePrice: number | anchor.BN;
expirationTime: number | anchor.BN;
isPriceBased: boolean;
sendTxn: (transaction: Transaction, signers: Keypair[]) => Promise<void>;
}): Promise<anchor.web3.PublicKey>;