UNPKG

@newcoin-foundation/newcoin-sdk

Version:
714 lines (478 loc) 14.9 kB
[@newcoin-foundation/newcoin-sdk](README.md) / Exports # @newcoin-foundation/newcoin-sdk ## Table of contents ### Namespaces - [<internal\>](modules/internal_.md) ### Classes - [NCO\_BlockchainAPI](classes/NCO_BlockchainAPI.md) ### Type Aliases - [NCApproveDaoProposal](modules.md#ncapprovedaoproposal) - [NCCreateCollection](modules.md#nccreatecollection) - [NCCreateDao](modules.md#nccreatedao) - [NCCreateDaoProposal](modules.md#nccreatedaoproposal) - [NCCreateDaoStakeProposal](modules.md#nccreatedaostakeproposal) - [NCCreateDaoUserWhitelistProposal](modules.md#nccreatedaouserwhitelistproposal) - [NCCreatePermission](modules.md#nccreatepermission) - [NCCreatePool](modules.md#nccreatepool) - [NCCreateUser](modules.md#nccreateuser) - [NCDaoProposalVote](modules.md#ncdaoproposalvote) - [NCExecuteDaoProposal](modules.md#ncexecutedaoproposal) - [NCGetAccInfo](modules.md#ncgetaccinfo) - [NCGetDaoProposals](modules.md#ncgetdaoproposals) - [NCGetDaoWhiteList](modules.md#ncgetdaowhitelist) - [NCGetPoolInfo](modules.md#ncgetpoolinfo) - [NCGetVotes](modules.md#ncgetvotes) - [NCInitServices](modules.md#ncinitservices) - [NCInitUrls](modules.md#nciniturls) - [NCKeyPair](modules.md#nckeypair) - [NCLinkPerm](modules.md#nclinkperm) - [NCMintAsset](modules.md#ncmintasset) - [NCNameType](modules.md#ncnametype) - [NCPoolsInfo](modules.md#ncpoolsinfo) - [NCReturnInfo](modules.md#ncreturninfo) - [NCReturnTxs](modules.md#ncreturntxs) - [NCStakeMainDao](modules.md#ncstakemaindao) - [NCStakePool](modules.md#ncstakepool) - [NCTxBal](modules.md#nctxbal) - [NCTxNcoBal](modules.md#nctxncobal) - [NCUnstakePool](modules.md#ncunstakepool) ### Variables - [default\_schema](modules.md#default_schema) - [devnet\_services](modules.md#devnet_services) - [devnet\_urls](modules.md#devnet_urls) ## Type Aliases ### NCApproveDaoProposal Ƭ **NCApproveDaoProposal**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `approver` | `string` | | `approver_prv_key` | `string` | | `dao_id?` | `number` | | `dao_owner?` | `string` | | `proposal_author?` | `string` | | `proposal_id?` | `number` | #### Defined in [types.ts:167](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L167) ___ ### NCCreateCollection Ƭ **NCCreateCollection**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `allow_notify?` | `boolean` | | `burnable?` | `boolean` | | `collection_name?` | `string` | | `max_supply?` | `number` | | `mkt_fee?` | `number` | | `schema_fields?` | [`NCNameType`](modules.md#ncnametype)[] | | `schema_name?` | `string` | | `template_fields?` | [`NCNameType`](modules.md#ncnametype)[] | | `template_name?` | `string` | | `user` | `string` | | `user_prv_active_key` | `string` | | `xferable?` | `boolean` | #### Defined in [types.ts:31](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L31) ___ ### NCCreateDao Ƭ **NCCreateDao**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `author` | `string` | | `author_prv_key` | `string` | | `descr` | `string` | | `token?` | `string` | #### Defined in [types.ts:127](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L127) ___ ### NCCreateDaoProposal Ƭ **NCCreateDaoProposal**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `dao_id?` | `string` | | `dao_owner` | `string` | | `proposer` | `string` | | `proposer_prv_key` | `string` | | `summary` | `string` | | `title` | `string` | | `url` | `string` | | `vote_end` | `string` | | `vote_start` | `string` | #### Defined in [types.ts:134](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L134) ___ ### NCCreateDaoStakeProposal Ƭ **NCCreateDaoStakeProposal**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `dao_id?` | `string` | | `dao_owner` | `string` | | `proposer` | `string` | | `proposer_prv_key` | `string` | | `quantity` | `string` | | `to` | `string` | | `vote_end` | `string` | | `vote_start` | `string` | #### Defined in [types.ts:156](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L156) ___ ### NCCreateDaoUserWhitelistProposal Ƭ **NCCreateDaoUserWhitelistProposal**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `dao_id?` | `string` | | `dao_owner` | `string` | | `proposer` | `string` | | `proposer_prv_key` | `string` | | `user` | `string` | | `vote_end` | `string` | | `vote_start` | `string` | #### Defined in [types.ts:146](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L146) ___ ### NCCreatePermission Ƭ **NCCreatePermission**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `author` | `string` | | `author_prv_active_key` | `string` | | `perm_name` | `string` | | `perm_pub_key` | `string` | #### Defined in [types.ts:46](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L46) ___ ### NCCreatePool Ƭ **NCCreatePool**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `is_deflatable?` | `boolean` | | `is_inflatable?` | `boolean` | | `is_treasury?` | `boolean` | | `owner` | `string` | | `owner_prv_active_key` | `string` | | `ticker?` | `string` | #### Defined in [types.ts:61](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L61) ___ ### NCCreateUser Ƭ **NCCreateUser**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `cpu_amount?` | `string` | | `net_amount?` | `string` | | `newUser` | `string` | | `newacc_pub_active_key` | `string` | | `newacc_pub_owner_key` | `string` | | `payer` | `string` | | `payer_prv_key` | `string` | | `ram_amt?` | `number` | | `xfer?` | `boolean` | #### Defined in [types.ts:19](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L19) ___ ### NCDaoProposalVote Ƭ **NCDaoProposalVote**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `dao_id?` | `string` | | `dao_owner?` | `string` | | `option` | `string` | | `proposal_id` | `string` | | `proposal_type?` | `string` | | `quantity` | `string` | | `voter` | `string` | | `voter_prv_key` | `string` | #### Defined in [types.ts:197](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L197) ___ ### NCExecuteDaoProposal Ƭ **NCExecuteDaoProposal**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `dao_id?` | `number` | | `dao_owner?` | `string` | | `exec` | `string` | | `exec_prv_key` | `string` | | `proposal_author?` | `string` | | `proposal_id?` | `number` | #### Defined in [types.ts:176](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L176) ___ ### NCGetAccInfo Ƭ **NCGetAccInfo**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `contract?` | `string` | | `owner` | `string` | | `token_name?` | `string` | #### Defined in [types.ts:247](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L247) ___ ### NCGetDaoProposals Ƭ **NCGetDaoProposals**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `dao_id?` | `string` | | `dao_owner?` | `string` | | `limit?` | `number` | | `lower_bound?` | `string` | | `proposal_author?` | `string` | | `proposal_id?` | `string` | | `reverse?` | `boolean` | | `upper_bound?` | `string` | #### Defined in [types.ts:186](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L186) ___ ### NCGetDaoWhiteList Ƭ **NCGetDaoWhiteList**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `dao_id?` | `string` | | `dao_owner?` | `string` | | `limit?` | `string` | | `lower_bound?` | `string` | | `reverse?` | `boolean` | | `upper_bound?` | `string` | #### Defined in [types.ts:222](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L222) ___ ### NCGetPoolInfo Ƭ **NCGetPoolInfo**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `code?` | `string` | | `owner?` | `string` | #### Defined in [types.ts:253](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L253) ___ ### NCGetVotes Ƭ **NCGetVotes**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `limit?` | `string` | | `lower_bound?` | `string` | | `reverse?` | `boolean` | | `upper_bound?` | `string` | | `voter` | `string` | #### Defined in [types.ts:214](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L214) ___ ### NCInitServices Ƭ **NCInitServices**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `atomicassets_contract` | `string` | | `daos_contract` | `string` | | `eosio_contract` | `string` | | `maindao_contract` | `string` | | `neftymarket_contract` | `string` | | `staking_contract` | `string` | | `token_contract` | `string` | #### Defined in [index.ts:67](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/index.ts#L67) ___ ### NCInitUrls Ƭ **NCInitUrls**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `atomicassets_url` | `string` | | `hyperion_url` | `string` | | `nodeos_url` | `string` | #### Defined in [index.ts:61](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/index.ts#L61) ___ ### NCKeyPair Ƭ **NCKeyPair**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `prv_key` | `string` | | `pub_key` | `string` | #### Defined in [types.ts:2](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L2) ___ ### NCLinkPerm Ƭ **NCLinkPerm**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `action_owner` | `string` | | `action_to_link` | `string` | | `author` | `string` | | `author_prv_active_key` | `string` | | `perm_to_link` | `string` | #### Defined in [types.ts:53](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L53) ___ ### NCMintAsset Ƭ **NCMintAsset**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `col_name?` | `string` | | `creator` | `string` | | `immutable_data` | [`NCKeyValPair`](modules/internal_.md#nckeyvalpair)[] | | `mutable_data` | [`NCKeyValPair`](modules/internal_.md#nckeyvalpair)[] | | `payer` | `string` | | `payer_prv_key` | `string` | | `sch_name?` | `string` | | `tmpl_id?` | `number` | #### Defined in [types.ts:236](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L236) ___ ### NCNameType Ƭ **NCNameType**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `name` | `string` | | `type` | `string` | #### Defined in [types.ts:7](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L7) ___ ### NCPoolsInfo Ƭ **NCPoolsInfo**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `more` | `boolean` | | `next_key` | `string` | | `rows` | [`NCPoolInfo`](modules/internal_.md#ncpoolinfo)[] | #### Defined in [types.ts:120](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L120) ___ ### NCReturnInfo Ƭ **NCReturnInfo**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `acc_balances?` | `string`[] | #### Defined in [types.ts:290](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L290) ___ ### NCReturnTxs Ƭ **NCReturnTxs**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `TxID?` | `string` | | `TxID_WithdrawVoteDeposit?` | `string` | | `TxID_addToWhiteList?` | `string` | | `TxID_approveDaoProposal?` | `string` | | `TxID_createAcc?` | `string` | | `TxID_createCol?` | `string` | | `TxID_createDao?` | `string` | | `TxID_createDaoProposal?` | `string` | | `TxID_createPerm?` | `string` | | `TxID_createPool?` | `string` | | `TxID_createSch?` | `string` | | `TxID_createTpl?` | `string` | | `TxID_executeDaoProposal?` | `string` | | `TxID_linkPerm?` | `string` | | `TxID_mintAsset?` | `string` | | `TxID_removeFromWhiteList?` | `string` | | `TxID_stakeMainDAO?` | `string` | | `TxID_stakePool?` | `string` | | `TxID_txNcoBalance?` | `string` | | `TxID_unstakeMainDAO?` | `string` | | `TxID_unstakePool?` | `string` | | `TxID_voteDaoProposal?` | `string` | | `TxID_withdrawFromPool?` | `string` | | `dao_id?` | `string` | | `pool_code?` | `string` | | `pool_id?` | `string` | | `proposal_id?` | `number` | #### Defined in [types.ts:258](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L258) ___ ### NCStakeMainDao Ƭ **NCStakeMainDao**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `amt` | `string` | | `payer` | `string` | | `payer_prv_key` | `string` | #### Defined in [types.ts:70](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L70) ___ ### NCStakePool Ƭ **NCStakePool**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `amt` | `string` | | `owner` | `string` | | `payer` | `string` | | `payer_prv_key` | `string` | #### Defined in [types.ts:76](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L76) ___ ### NCTxBal Ƭ **NCTxBal**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `amt` | `string` | | `memo?` | `string` | | `payer` | `string` | | `payer_prv_key` | `string` | | `to` | `string` | #### Defined in [types.ts:98](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L98) ___ ### NCTxNcoBal Ƭ **NCTxNcoBal**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `amt` | `string` | | `memo` | `string` | | `payer` | `string` | | `payer_prv_key` | `string` | | `to` | `string` | #### Defined in [types.ts:90](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L90) ___ ### NCUnstakePool Ƭ **NCUnstakePool**: `Object` #### Type declaration | Name | Type | | :------ | :------ | | `amt` | `string` | | `payer` | `string` | | `payer_prv_key` | `string` | #### Defined in [types.ts:83](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L83) ## Variables ### default\_schema`Const` **default\_schema**: { `name`: `string` = 'name'; `type`: `string` = "string" }[] #### Defined in [types.ts:294](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/types.ts#L294) ___ ### devnet\_services`Const` **devnet\_services**: [`NCInitServices`](modules.md#ncinitservices) #### Defined in [index.ts:84](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/index.ts#L84) ___ ### devnet\_urls`Const` **devnet\_urls**: [`NCInitUrls`](modules.md#nciniturls) #### Defined in [index.ts:77](https://github.com/Newcoin-Foundation/newcoin-sdk/blob/88af4a9/src/index.ts#L77)