import { NCO_account_API } from "./L1/accounts"; import { NCO_daos_API } from "./L1/daos"; import { NCO_submit_API } from "./L1/submit"; import { NCO_pools_API } from "./L1/pools"; import { NCO_assets_API } from "./L1/assets"; import { NCO_read_API } from "./L1/reader"; import { NCO_tx_API } from "./L1/transfers"; import { NCO_utils_API } from "./utils"; import { NCKeyPair, NCCreateUser, NCCreateCollection, NCCreatePool, NCStakePool, NCUnstakePool, NCStakeMainDao, NCBuyRam, NCCreateDao, NCGetDaoWhiteList, NCCreateDaoProposal, NCCreateDaoUserWhitelistProposal, NCCreateDaoStakeProposal, NCApproveDaoProposal, NCExecuteDaoProposal, NCGetVotes, NCGetDaoProposals, NCDaoProposalVote, NCDaoWithdrawVoteDeposit, NCCreatePermission, NCGetAccInfo, NCGetPoolInfo, NCLinkPerm, NCPoolsInfo, NCNameType, NCSwapNCOtoCC, NCReturnTxs, NCReturnInfo, NCTxBal, NCTxNcoBal, NCKeyValPair, NCMintBadge } from "./types"; import { NCMintAsset, NCMintNftToRoot, NCMintLink, NCMintFile, NCMintLike, NCChangeFile, NCModifyAsset, NCMintProfile } from "./types"; import { default_nft_schema, file_schema, link_schema, profile_schema } from "./schemas"; export { NCKeyPair, NCKeyValPair, NCCreateUser, NCCreateCollection, NCBuyRam, NCCreatePool, NCStakePool, NCUnstakePool, NCStakeMainDao, NCCreateDao, NCGetDaoWhiteList, NCCreateDaoProposal, NCCreateDaoUserWhitelistProposal, NCCreateDaoStakeProposal, NCApproveDaoProposal, NCExecuteDaoProposal, NCGetVotes, NCGetDaoProposals, NCDaoProposalVote, NCDaoWithdrawVoteDeposit, NCMintAsset, NCMintLink, NCMintFile, NCCreatePermission, NCGetAccInfo, NCGetPoolInfo, NCLinkPerm, NCPoolsInfo, NCNameType, NCReturnTxs, NCReturnInfo, NCTxBal, NCTxNcoBal, NCChangeFile, NCModifyAsset, NCMintProfile, devnet_services, devnet_urls }; export { default_nft_schema, link_schema, file_schema, profile_schema }; import { NCClaimNftsParams, NCClaimWinBidParams, NCCreateAuctionParams, NCEditAuctionParams, NCEraseAuctionParams, NCPlaceBidParams } from "./neftymarket/types"; import { NCInit, NCInitUrls, NCInitServices, devnet_urls, devnet_services } from "./system"; /** * The primary tool to interact with [https://newcoin.org](newcoin.org). * * This is an early alpha. * * See [https://docs.newcoin.org/](https://docs.newcoin.org/) for an overview of the newcoin ecosystem. */ export declare class NCO_BlockchainAPI { private urls; private services; private debug; static defaults: { devnet_services: NCInitServices; devnet_urls: NCInitUrls; devnet_urls_prod: NCInitUrls; }; static dev_init_arg: NCInit; daos: NCO_daos_API; pools: NCO_pools_API; utils: NCO_utils_API; accounts: NCO_account_API; assets: NCO_assets_API; reader: NCO_read_API; submitter: NCO_submit_API; txer: NCO_tx_API; private sdkGen; /** * Init the api * @name newcoin-api * @param urls * @param services * @returns a Newcoin API instance */ constructor(n: NCInit); createUser(inpt: NCCreateUser): Promise; /** * Create default collection for the account and schemes * @param name, key * @returns Create Collection and template transactions' ids */ createRootCollection(name: string, key: string): Promise; /** * Bind collection to root collection * @param inpt: NCAddCollection * @returns Create NFT in the root collection referring to */ createLikeTemplate(name: string, key: string): Promise; mintLike(inpt: NCMintLike): Promise; createBadgeTemplate(name: string, key: string, col?: string, sch?: string): Promise; mintBadge(inpt: NCMintBadge): Promise; static private const STATUS_LIST; mintProfile(inpt: NCMintProfile): Promise; /** * Create File * @param inpt: NCMintFile * @returns Create file transaction id */ createFile(inpt: NCMintFile): Promise; changeFile(inpt: NCChangeFile): Promise; /** * */ mintNftToRoot(inpt: NCMintNftToRoot): Promise; swapNcoToCreatorCoin(inpt: NCSwapNCOtoCC): Promise; /** * Get pool info * @param * @returns Tx data */ getPoolInfo(payload: NCGetPoolInfo): Promise; private getActionParams; private submitAuctionTx; /** * Create a new auction with the specified parameters * @returns create auction transaction id */ createAuction(params: NCCreateAuctionParams, key: string): Promise; /** * Place a new bid into an active auction * @returns bid transaction id */ placeAuctionBid(params: NCPlaceBidParams, key: string): Promise; /** * Claim NFTs whenever you win an auction * @returns claim transaction id */ claimNftsFromAuction(params: NCClaimNftsParams, key: string): Promise; /** * Claim the winning bid as the seller of an auction * @returns claim transaction id */ claimAuctionWinBid(params: NCClaimWinBidParams, key: string): Promise; /** * Erase an auction as long as it has no bids * @returns delete transaction id */ eraseAuction(params: NCEraseAuctionParams, key: string): Promise; /** * Edit an auction with the specified parameters, internally it erases the existing one * and creates a new one with the specified parameters. * @returns transaction id */ editAuction(params: NCEditAuctionParams, key: string): Promise; createKeyPair(): Promise; createAccount(inpt: NCCreateUser): Promise; buyRam(inpt: NCBuyRam): Promise; createPermission(inpt: NCCreatePermission): Promise; linkPermission(inpt: NCLinkPerm): Promise; createCollection(inpt: NCCreateCollection): Promise; mintAsset(inpt: NCMintAsset): Promise; modifyAsset(inpt: NCModifyAsset): Promise; stakeMainDAO(inpt: NCStakeMainDao): Promise; instUnstakeMainDAO(inpt: NCStakeMainDao): Promise; dldUnstakeMainDAO(inpt: NCStakeMainDao): Promise; createPool(inpt: NCCreatePool): Promise; stakePool(inpt: NCStakePool): Promise; unstakePool(inpt: NCUnstakePool): Promise; createDao(inpt: NCCreateDao): Promise; createDaoProposal(inpt: NCCreateDaoProposal): Promise; createDaoUserWhitelistProposal(inpt: NCCreateDaoUserWhitelistProposal): Promise; createDaoStakeProposal(inpt: NCCreateDaoStakeProposal): Promise; approveDaoProposal(inpt: NCApproveDaoProposal): Promise; approveDaoWhitelistProposal(inpt: NCApproveDaoProposal): Promise; approveDaoStakeProposal(inpt: NCApproveDaoProposal): Promise; executeDaoProposal(inpt: NCExecuteDaoProposal): Promise; executeDaoWhitelistProposal(inpt: NCExecuteDaoProposal): Promise; executeDaoStakeProposal(inpt: NCExecuteDaoProposal): Promise; voteOnProposal(inpt: NCDaoProposalVote): Promise; withdrawVoteDeposit(inpt: NCDaoWithdrawVoteDeposit): Promise; submitTx(actions: any[], public_keys: string[], private_keys: string[]): Promise; txNCOBalance(inpt: NCTxBal): Promise; txGNCOBalance(inpt: NCTxBal): Promise; getAccountBalance(inpt: NCGetAccInfo): Promise; normmalizeUserName(name: string, r: string): Promise; }