API Reference
beta
beta
  • Introduction
  • Globals
  • External Modules
    • Context
    • Context
    • ConstructorParams
    • Factories
    • Polymath
    • Polymath
    • AddressParams
    • Connect
    • ConnectParams
    • GetSecurityToken
    • PolymathNetworkNodeParams
    • PolymathNetworkParams
    • SymbolParams
    • PolymathBase
    • PolymathBase
    • BaseCheckpoint
    • BaseDividend
    • GetAttachedModulesOpts
    • GetAttachedModulesParams
    • GetModuleAddressesByNameOpts
    • GetModuleAddressesByNameParams
    • GetModuleFactoryAddressArgs
    • PolymathError
    • PolymathError
    • PostTransactionResolver
    • Wallet
    • Args
    • browserUtils
    • BrowserSupport
    • Ethereum
    • ExtendedWindow
    • InjectedWeb3
    • Web3VersionAPI
    • WindowWithEthereum
    • WindowWithWeb3
    • entities/Checkpoint
    • Checkpoint
    • Params
    • UniqueIdentifiers
    • entities/DividendDistribution
    • DividendDistribution
    • Params
    • UniqueIdentifiers
    • entities/Entity
    • Entity
    • entities/Erc20TokenBalance
    • Erc20TokenBalance
    • Params
    • UniqueIdentifiers
    • entities/Investment
    • Investment
    • Params
    • UniqueIdentifiers
    • entities/PolyTransaction
    • Event
    • PolyTransaction
    • entities/SecurityToken/Controller
    • Controller
    • entities/SecurityToken/Dividends
    • Dividends
    • GetDistributionParams
    • entities/SecurityToken/Documents
    • Documents
    • Document
    • entities/SecurityToken/Features
    • Features
    • Enable
    • EnableErc20DividendsOpts
    • EnablePercentageOwnershipRestrictionsOpts
    • EnableTokenholderCountRestrictionsOpts
    • FeatureStatuses
    • entities/SecurityToken/Issuance/Issuance
    • Issuance
    • entities/SecurityToken/Issuance/Offerings
    • Offerings
    • GetStoMethod
    • GetStoParams
    • LaunchTieredStoCustomCurrencyBothNoStableCoinParams
    • LaunchTieredStoCustomCurrencyBothParams
    • LaunchTieredStoCustomCurrencyEthNoStableCoinParams
    • LaunchTieredStoCustomCurrencyEthParams
    • LaunchTieredStoCustomCurrencyPolyNoStableCoinParams
    • LaunchTieredStoCustomCurrencyPolyParams
    • LaunchTieredStoMethod
    • LaunchTieredStoNoCustomCurrencyNoStableCoinParams
    • LaunchTieredStoNoCustomCurrencyParams
    • LaunchTieredStoParams
    • entities/SecurityToken/Issuance/index
    • entities/SecurityToken/Permissions
    • Permissions
    • entities/SecurityToken/SecurityToken
    • SecurityToken
    • Params
    • UniqueIdentifiers
    • entities/SecurityToken/SubModule
    • SubModule
    • entities/SecurityToken/Tokenholders
    • Tokenholders
    • GetCheckpointParams
    • entities/SecurityToken/Transfers/Restrictions/CountRestrictions
    • CountRestrictions
    • entities/SecurityToken/Transfers/Restrictions/PercentageRestrictions
    • PercentageRestrictions
    • ModifyExemptionsMethod
    • PercentageIssuanceParams
    • PercentageWhitelistParams
    • entities/SecurityToken/Transfers/Restrictions/Restrictions
    • Restrictions
    • entities/SecurityToken/Transfers/Restrictions/index
    • entities/SecurityToken/Transfers/Transfers
    • Transfers
    • entities/SecurityToken/Transfers/index
    • entities/SecurityToken/index
    • entities/SecurityTokenReservation
    • SecurityTokenReservation
    • Params
    • UniqueIdentifiers
    • entities/SimpleSto
    • SimpleSto
    • Params
    • entities/Sto
    • Sto
    • Params
    • UniqueIdentifiers
    • entities/TaxWithholding
    • TaxWithholding
    • Params
    • UniqueIdentifiers
    • entities/TieredSto
    • TieredSto
    • Params
    • Tier
    • entities/Tokenholder
    • Tokenholder
    • Params
    • UniqueIdentifiers
    • entities/TransactionQueue
    • Events
    • TransactionQueue
    • entities/Wallet
    • Wallet
    • Params
    • UniqueIdentifiers
    • entities/factories/CheckpointFactory
    • entities/factories/DividendDistributionFactory
    • entities/factories/Erc20TokenBalanceFactory
    • Erc20TokenBalanceFactory
    • entities/factories/Factory
    • Factory
    • EntityClass
    • entities/factories/InvestmentFactory
    • InvestmentFactory
    • entities/factories/SecurityTokenFactory
    • entities/factories/SecurityTokenReservationFactory
    • entities/factories/SimpleStoFactory
    • SimpleStoFactory
    • entities/factories/TaxWithholdingFactory
    • TaxWithholdingFactory
    • entities/factories/TieredStoFactory
    • TieredStoFactory
    • entities/factories/TokenholderFactory
    • TokenholderFactory
    • entities/factories/WalletFactory
    • WalletFactory
    • entities/factories/index
    • entities/index
    • index
    • procedures/ApproveErc20
    • ApproveErc20
    • procedures/AssignSecurityTokenRole
    • AssignSecurityTokenRole
    • procedures/AssignStoRole
    • AssignStoRole
    • procedures/ControllerRedeem
    • ControllerRedeem
    • procedures/ControllerTransfer
    • ControllerTransfer
    • procedures/CreateCheckpoint
    • CreateCheckpoint
    • procedures/CreateDividendDistribution
    • CreateDividendDistribution
    • procedures/CreateSecurityToken
    • CreateSecurityToken
    • procedures/DisableController
    • DisableController
    • procedures/DisableFeature
    • DisableFeature
    • procedures/EnableCountTransferManager
    • EnableCountTransferManager
    • procedures/EnableDividendManager
    • EnableDividendManager
    • procedures/EnableGeneralPermissionManager
    • EnableGeneralPermissionManager
    • procedures/EnableGeneralTransferManager
    • EnableGeneralTransferManager
    • procedures/EnablePercentageTransferManager
    • EnablePercentageTransferManager
    • procedures/FinalizeSto
    • FinalizeSto
    • procedures/FreezeIssuance
    • FreezeIssuance
    • procedures/InvestInSimpleSto
    • InvestInSimpleSto
    • procedures/InvestInTieredSto
    • InvestInTieredSto
    • procedures/IssueTokens
    • IssueTokens
    • procedures/LaunchSimpleSto
    • LaunchSimpleSto
    • procedures/LaunchTieredSto
    • LaunchTieredSto
    • procedures/ModifyDividendsDefaultExclusionList
    • ModifyDividendsDefaultExclusionList
    • procedures/ModifyMaxHolderCount
    • ModifyMaxHolderCount
    • procedures/ModifyMaxHolderPercentage
    • ModifyMaxHolderPercentage
    • procedures/ModifyPercentageExemptions
    • ModifyPercentageExemptions
    • procedures/ModifyTieredStoData
    • ModifyTieredStoData
    • procedures/ModifyTokenholderData
    • ModifyTokenholderData
    • procedures/Procedure
    • ProcedureClass
    • procedures/PullDividendPayment
    • PullDividendPayment
    • procedures/PushDividendPayment
    • PushDividendPayment
    • procedures/ReclaimFunds
    • ReclaimFunds
    • procedures/RemoveDocument
    • RemoveDocument
    • procedures/ReserveSecurityToken
    • ReserveSecurityToken
    • procedures/RevokeKyc
    • RevokeKyc
    • procedures/SetController
    • SetController
    • procedures/SetDividendsWallet
    • SetDividendsWallet
    • procedures/SetDocument
    • SetDocument
    • procedures/SignDisableControllerAck
    • SignDisableControllerAck
    • procedures/SignFreezeIssuanceAck
    • SignFreezeIssuanceAck
    • procedures/SignTransferData
    • SignTransferData
    • procedures/ToggleAllowBeneficialInvestments
    • ToggleAllowBeneficialInvestments
    • procedures/ToggleAllowPreIssuing
    • ToggleAllowPreIssuing
    • procedures/ToggleFreezeTransfers
    • ToggleFreezeTransfers
    • procedures/TogglePauseSto
    • TogglePauseSto
    • procedures/TransferErc20
    • TransferErc20
    • procedures/TransferOwnership
    • TransferOwnership
    • procedures/TransferReservationOwnership
    • TransferReservationOwnership
    • procedures/TransferSecurityTokens
    • TransferSecurityTokens
    • procedures/UpdateDividendsTaxWithholdingList
    • UpdateDividendsTaxWithholdingList
    • procedures/WithdrawTaxes
    • WithdrawTaxes
    • procedures/index
    • types/index
    • ErrorCode
    • Feature
    • PolyTransactionTag
    • ProcedureType
    • SecurityTokenRole
    • StoRole
    • StoType
    • TransactionSpeed
    • TransactionStatus
    • TransferStatusCode
    • ApproveErc20ProcedureArgs
    • AssignSecurityTokenRoleProcedureArgs
    • AssignStoRoleProcedureArgs
    • ControllerRedeemProcedureArgs
    • ControllerTransferProcedureArgs
    • CreateCheckpointProcedureArgs
    • CreateDividendDistributionProcedureArgs
    • CreateSecurityTokenProcedureArgs
    • CustomCurrency
    • DisableControllerProcedureArgs
    • DisableFeatureProcedureArgs
    • DividendTokenholderStatus
    • EnableCountTransferManagerProcedureArgs
    • EnableDividendManagerProcedureArgs
    • EnableGeneralPermissionManagerProcedureArgs
    • EnableGeneralTransferManagerProcedureArgs
    • EnablePercentageTransferManagerProcedureArgs
    • Fees
    • FinalizeStoProcedureArgs
    • FreezeIssuanceProcedureArgs
    • FutureLowLevelMethod
    • InvestInSimpleStoProcedureArgs
    • InvestInTieredStoBaseProcedureArgs
    • InvestWithStableCoinArgs
    • IssuanceDataEntry
    • IssueTokensProcedureArgs
    • LaunchSimpleStoProcedureArgs
    • LaunchTieredStoProcedureArgs
    • ModifyDividendsDefaultExclusionListProcedureArgs
    • ModifyMaxHolderCountProcedureArgs
    • ModifyMaxHolderPercentageProcedureArgs
    • ModifyPercentageExemptionsProcedureArgs
    • ModifyTieredStoDataProcedureArgs
    • ModifyTokenholderDataProcedureArgs
    • PercentageWhitelistEntry
    • Pojo
    • PullDividendPaymentProcedureArgs
    • PushDividendPaymentProcedureArgs
    • ReclaimFundsProcedureArgs
    • RemoveDocumentProcedureArgs
    • ReserveSecurityTokenProcedureArgs
    • RevokeKycProcedureArgs
    • SetControllerProcedureArgs
    • SetDividendsWalletProcedureArgs
    • SetDocumentProcedureArgs
    • SignDisableControllerAckProcedureArgs
    • SignFreezeIssuanceAckProcedureArgs
    • SignTransferDataProcedureArgs
    • StoTier
    • TaxWithholdingEntry
    • ToggleAllowBeneficialInvestmentsProcedureArgs
    • ToggleAllowPreIssuingProcedureArgs
    • ToggleFreezeTransfersProcedureArgs
    • TogglePauseStoProcedureArgs
    • TokenholderBalance
    • TokenholderDataEntry
    • TransactionSpec
    • TransferErc20ProcedureArgs
    • TransferOwnershipProcedureArgs
    • TransferReservationOwnershipProcedureArgs
    • TransferSecurityTokensProcedureArgs
    • UpdateDividendsTaxWithholdingListProcedureArgs
    • WithdrawTaxesProcedureArgs
    • utils/constants
    • utils/index
    • FindCappedStoPauseParams
    • FindCappedStoPreMintAllowedParams
    • FindCheckpointCreatedParams
    • FindControllerTransferParams
    • FindErc20DividendClaimedParams
    • FindErc20DividendDepositedParams
    • FindErc20DividendReclaimedParams
    • FindErc20SetWalletParams
    • FindErc20SetWithholdingParams
    • FindEthDividendClaimedParams
    • FindEthDividendReclaimedParams
    • FindEthSetWalletParams
    • FindEthSetWithholdingParams
    • FindEtherDividendDepositedParams
    • FindEventParams
    • FindEvents
    • FindModifyInvestorFlagParams
    • FindModifyKycDataParams
    • FindModuleAddedParams
    • FindNewSecurityTokenParams
    • FindTickerRegisteredParams
    • FindTieredStoPauseParams
    • FindTieredStoPreMintAllowedParams
  • Classes
    • Context
    • Polymath
    • PolymathBase
    • PolymathError
    • Checkpoint
    • DividendDistribution
    • Entity
    • Erc20TokenBalance
    • Investment
    • PolyTransaction
    • Controller
    • Dividends
    • Documents
    • Features
    • Issuance
    • Offerings
    • Permissions
    • SecurityToken
    • SubModule
    • Tokenholders
    • CountRestrictions
    • PercentageRestrictions
    • Restrictions
    • Transfers
    • SecurityTokenReservation
    • SimpleSto
    • Sto
    • TaxWithholding
    • TieredSto
    • Tokenholder
    • TransactionQueue
    • Wallet
    • Erc20TokenBalanceFactory
    • Factory
    • InvestmentFactory
    • SimpleStoFactory
    • TaxWithholdingFactory
    • TieredStoFactory
    • TokenholderFactory
    • WalletFactory
    • ApproveErc20
    • AssignSecurityTokenRole
    • AssignStoRole
    • ControllerRedeem
    • ControllerTransfer
    • CreateCheckpoint
    • CreateDividendDistribution
    • CreateSecurityToken
    • DisableController
    • DisableFeature
    • EnableCountTransferManager
    • EnableDividendManager
    • EnableGeneralPermissionManager
    • EnableGeneralTransferManager
    • EnablePercentageTransferManager
    • FinalizeSto
    • FreezeIssuance
    • InvestInSimpleSto
    • InvestInTieredSto
    • IssueTokens
    • LaunchSimpleSto
    • LaunchTieredSto
    • ModifyDividendsDefaultExclusionList
    • ModifyMaxHolderCount
    • ModifyMaxHolderPercentage
    • ModifyPercentageExemptions
    • ModifyTieredStoData
    • ModifyTokenholderData
    • PullDividendPayment
    • PushDividendPayment
    • ReclaimFunds
    • RemoveDocument
    • ReserveSecurityToken
    • RevokeKyc
    • SetController
    • SetDividendsWallet
    • SetDocument
    • SignDisableControllerAck
    • SignFreezeIssuanceAck
    • SignTransferData
    • ToggleAllowBeneficialInvestments
    • ToggleAllowPreIssuing
    • ToggleFreezeTransfers
    • TogglePauseSto
    • TransferErc20
    • TransferOwnership
    • TransferReservationOwnership
    • TransferSecurityTokens
    • UpdateDividendsTaxWithholdingList
    • WithdrawTaxes
  • Enums
    • BrowserSupport
    • Event
    • Events
    • ErrorCode
    • Feature
    • PolyTransactionTag
    • ProcedureType
    • SecurityTokenRole
    • StoRole
    • StoType
    • TransactionSpeed
    • TransactionStatus
    • TransferStatusCode
  • Interfaces
    • ConstructorParams
    • Factories
    • AddressParams
    • Connect
    • ConnectParams
    • GetSecurityToken
    • PolymathNetworkNodeParams
    • PolymathNetworkParams
    • SymbolParams
    • BaseCheckpoint
    • BaseDividend
    • GetAttachedModulesOpts
    • GetAttachedModulesParams
    • GetModuleAddressesByNameOpts
    • GetModuleAddressesByNameParams
    • GetModuleFactoryAddressArgs
    • Args
    • Ethereum
    • ExtendedWindow
    • InjectedWeb3
    • Web3VersionAPI
    • WindowWithEthereum
    • WindowWithWeb3
    • Params
    • UniqueIdentifiers
    • Params
    • UniqueIdentifiers
    • Params
    • UniqueIdentifiers
    • Params
    • UniqueIdentifiers
    • GetDistributionParams
    • Document
    • Enable
    • EnableErc20DividendsOpts
    • EnablePercentageOwnershipRestrictionsOpts
    • EnableTokenholderCountRestrictionsOpts
    • FeatureStatuses
    • GetStoMethod
    • GetStoParams
    • LaunchTieredStoCustomCurrencyBothNoStableCoinParams
    • LaunchTieredStoCustomCurrencyBothParams
    • LaunchTieredStoCustomCurrencyEthNoStableCoinParams
    • LaunchTieredStoCustomCurrencyEthParams
    • LaunchTieredStoCustomCurrencyPolyNoStableCoinParams
    • LaunchTieredStoCustomCurrencyPolyParams
    • LaunchTieredStoMethod
    • LaunchTieredStoNoCustomCurrencyNoStableCoinParams
    • LaunchTieredStoNoCustomCurrencyParams
    • LaunchTieredStoParams
    • Params
    • UniqueIdentifiers
    • GetCheckpointParams
    • ModifyExemptionsMethod
    • PercentageIssuanceParams
    • PercentageWhitelistParams
    • Params
    • UniqueIdentifiers
    • Params
    • Params
    • UniqueIdentifiers
    • Params
    • UniqueIdentifiers
    • Params
    • Tier
    • Params
    • UniqueIdentifiers
    • Params
    • UniqueIdentifiers
    • EntityClass
    • ProcedureClass
    • ApproveErc20ProcedureArgs
    • AssignSecurityTokenRoleProcedureArgs
    • AssignStoRoleProcedureArgs
    • ControllerRedeemProcedureArgs
    • ControllerTransferProcedureArgs
    • CreateCheckpointProcedureArgs
    • CreateDividendDistributionProcedureArgs
    • CreateSecurityTokenProcedureArgs
    • CustomCurrency
    • DisableControllerProcedureArgs
    • DisableFeatureProcedureArgs
    • DividendTokenholderStatus
    • EnableCountTransferManagerProcedureArgs
    • EnableDividendManagerProcedureArgs
    • EnableGeneralPermissionManagerProcedureArgs
    • EnableGeneralTransferManagerProcedureArgs
    • EnablePercentageTransferManagerProcedureArgs
    • Fees
    • FinalizeStoProcedureArgs
    • FreezeIssuanceProcedureArgs
    • FutureLowLevelMethod
    • InvestInSimpleStoProcedureArgs
    • InvestInTieredStoBaseProcedureArgs
    • InvestWithStableCoinArgs
    • IssuanceDataEntry
    • IssueTokensProcedureArgs
    • LaunchSimpleStoProcedureArgs
    • LaunchTieredStoProcedureArgs
    • ModifyDividendsDefaultExclusionListProcedureArgs
    • ModifyMaxHolderCountProcedureArgs
    • ModifyMaxHolderPercentageProcedureArgs
    • ModifyPercentageExemptionsProcedureArgs
    • ModifyTieredStoDataProcedureArgs
    • ModifyTokenholderDataProcedureArgs
    • PercentageWhitelistEntry
    • Pojo
    • PullDividendPaymentProcedureArgs
    • PushDividendPaymentProcedureArgs
    • ReclaimFundsProcedureArgs
    • RemoveDocumentProcedureArgs
    • ReserveSecurityTokenProcedureArgs
    • RevokeKycProcedureArgs
    • SetControllerProcedureArgs
    • SetDividendsWalletProcedureArgs
    • SetDocumentProcedureArgs
    • SignDisableControllerAckProcedureArgs
    • SignFreezeIssuanceAckProcedureArgs
    • SignTransferDataProcedureArgs
    • StoTier
    • TaxWithholdingEntry
    • ToggleAllowBeneficialInvestmentsProcedureArgs
    • ToggleAllowPreIssuingProcedureArgs
    • ToggleFreezeTransfersProcedureArgs
    • TogglePauseStoProcedureArgs
    • TokenholderBalance
    • TokenholderDataEntry
    • TransactionSpec
    • TransferErc20ProcedureArgs
    • TransferOwnershipProcedureArgs
    • TransferReservationOwnershipProcedureArgs
    • TransferSecurityTokensProcedureArgs
    • UpdateDividendsTaxWithholdingListProcedureArgs
    • WithdrawTaxesProcedureArgs
    • FindCappedStoPauseParams
    • FindCappedStoPreMintAllowedParams
    • FindCheckpointCreatedParams
    • FindControllerTransferParams
    • FindErc20DividendClaimedParams
    • FindErc20DividendDepositedParams
    • FindErc20DividendReclaimedParams
    • FindErc20SetWalletParams
    • FindErc20SetWithholdingParams
    • FindEthDividendClaimedParams
    • FindEthDividendReclaimedParams
    • FindEthSetWalletParams
    • FindEthSetWithholdingParams
    • FindEtherDividendDepositedParams
    • FindEventParams
    • FindEvents
    • FindModifyInvestorFlagParams
    • FindModifyKycDataParams
    • FindModuleAddedParams
    • FindNewSecurityTokenParams
    • FindTickerRegisteredParams
    • FindTieredStoPauseParams
    • FindTieredStoPreMintAllowedParams
Powered by GitBook
On this page
  • Hierarchy
  • Index
  • Constructors
  • Properties
  • Methods
  • Constructors
  • constructor
  • Properties
  • contractFactory
  • featureRegistry
  • getAccount
  • getBalance
  • getERC20TokenWrapper
  • getPolyTokens
  • isTestnet
  • moduleFactory
  • moduleRegistry
  • polyToken
  • polyTokenFaucet
  • polymathRegistry
  • securityTokenRegistry
  • tokenFactory
  • web3Wrapper
  • Methods
  • getAllDividends
  • getAttachedModules
  • getCheckpoint
  • getCheckpoints
  • getDividend
  • getDividends
  • getDividendsByCheckpoint
  • getModuleAddressesByName
  • getModuleFactoryAddress
  • getTreasuryWallet
  • roleToPermission

Was this helpful?

  1. External Modules

PolymathBase

Class that wraps the polymathnetwork/contract-wrappers library to add utility functions

Hierarchy

  • PolymathAPI

    ↳ PolymathBase

Index

Constructors

  • constructor

Properties

  • contractFactory

  • featureRegistry

  • getAccount

  • getBalance

  • getERC20TokenWrapper

  • getPolyTokens

  • isTestnet

  • moduleFactory

  • moduleRegistry

  • polyToken

  • polyTokenFaucet

  • polymathRegistry

  • securityTokenRegistry

  • tokenFactory

  • web3Wrapper

Methods

  • getAllDividends

  • getAttachedModules

  • getCheckpoint

  • getCheckpoints

  • getDividend

  • getDividends

  • getDividendsByCheckpoint

  • getModuleAddressesByName

  • getModuleFactoryAddress

  • getTreasuryWallet

  • roleToPermission

Constructors

constructor

+ new PolymathBase(params: ApiConstructorParams): PolymathBase

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:79

Instantiates a new PolymathAPI instance.

Parameters:

Name

Type

params

ApiConstructorParams

Returns: PolymathBase

An instance of the PolymathAPI class.

Properties

contractFactory

• contractFactory: ContractFactory

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:79

featureRegistry

• featureRegistry: FeatureRegistryWrapper

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:62

An instance of the FeatureRegistryWrapper class containing methods for interacting with FeatureRegistry smart contract.

getAccount

• getAccount: function

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:95

Get the account currently used by PolymathAPI

returns Address string

Type declaration:

▸ (): Promise‹string›

getBalance

• getBalance: function

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:100

Get the ETH balance

returns Balance BigNumber

Type declaration:

▸ (params: GetBalanceParams): Promise‹BigNumber›

Parameters:

Name

Type

params

GetBalanceParams

getERC20TokenWrapper

• getERC20TokenWrapper: function

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:90

Get a wrapped token from an address

returns TokenWrapper ERC20

Type declaration:

▸ (params: GetERC20WrapperParams): Promise‹ERC20›

Parameters:

Name

Type

params

GetERC20WrapperParams

getPolyTokens

• getPolyTokens: function

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:85

Type declaration:

▸ (params: GetTokensParams): Promise‹PolyResponse›

Parameters:

Name

Type

params

GetTokensParams

isTestnet

• isTestnet: function

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:104

Is it Testnet network?

Type declaration:

▸ (): Promise‹boolean›

moduleFactory

• moduleFactory: ModuleWrapperFactory

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:72

An instance of the ModuleWrapperFactory class to get different module wrapper instances to interact with SecurityToken smart contracts

moduleRegistry

• moduleRegistry: ModuleRegistryWrapper

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:57

An instance of the ModuleRegistryWrapper class containing methods for interacting with ModuleRegistry smart contract.

polyToken

• polyToken: PolyTokenWrapper

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:52

An instance of the PolyTokenWrapper class containing methods for interacting with PolyToken smart contract.

polyTokenFaucet

• polyTokenFaucet: PolyTokenFaucetWrapper

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:77

An instance of the PolyTokenFaucetWrapper class containing methods for interacting with PolyTokenFaucet smart contract.

polymathRegistry

• polymathRegistry: PolymathRegistryWrapper

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:42

An instance of the PolymathRegistryWrapper class containing methods for interacting with PolymathRegistry smart contract.

securityTokenRegistry

• securityTokenRegistry: SecurityTokenRegistryWrapper

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:47

An instance of the SecurityTokenRegistryWrapper class containing methods for interacting with SecurityTokenRegistry smart contract.

tokenFactory

• tokenFactory: TokenWrapperFactory

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:67

An instance of the TokenWrapperFactory class to get TokenWrapper instances to interact with SecurityToken or ERC20 smart contracts

web3Wrapper

• web3Wrapper: Web3Wrapper

Inherited from void

Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:78

Methods

getAllDividends

▸ getAllDividends(__namedParameters: object): Promise‹BaseDividend[]›

Auxiliary function to fetch all dividend distributions

Parameters:

▪ __namedParameters: object

Name

Type

Description

checkpointId

undefined | number

checkpoint UUID

securityTokenSymbol

string

symbol of the Security Token

Returns: Promise‹BaseDividend[]›

getAttachedModules

▸ getAttachedModules(__namedParameters: object, opts?: GetAttachedModulesOpts): Promise‹any[]›

Fetch all Modules of a certain type attached to a Security Token

Parameters:

▪ __namedParameters: object

Name

Type

Description

moduleName

ModuleName

name of the Module

symbol

string

symbol of the Security Token

▪Optional opts: GetAttachedModulesOpts

Returns: Promise‹any[]›

getCheckpoint

▸ getCheckpoint(__namedParameters: object): Promise‹BaseCheckpoint›

Get data associated to a Checkpoint

Parameters:

▪ __namedParameters: object

Name

Type

Description

checkpointId

number

checkpoint UUID

securityToken

SecurityToken_3_0_0

instance of the Security Token

Returns: Promise‹BaseCheckpoint›

getCheckpoints

▸ getCheckpoints(__namedParameters: object): Promise‹BaseCheckpoint[]›

Get all Checkpoints of a Security Token

Parameters:

▪ __namedParameters: object

Name

Type

Description

securityToken

SecurityToken_3_0_0

instance of the Security Token

Returns: Promise‹BaseCheckpoint[]›

getDividend

▸ getDividend(__namedParameters: object): Promise‹BaseDividend›

Get data associated to a specific Dividend Distribution

Parameters:

▪ __namedParameters: object

Name

Type

Description

dividendIndex

number

index of the Dividend

dividendsModule

ERC20DividendCheckpoint_3_0_0

-

Returns: Promise‹BaseDividend›

getDividends

▸ getDividends(__namedParameters: object): Promise‹BaseDividend[]›

Parameters:

▪ __namedParameters: object

Name

Type

dividendsModule

ERC20DividendCheckpoint_3_0_0

Returns: Promise‹BaseDividend[]›

getDividendsByCheckpoint

▸ getDividendsByCheckpoint(__namedParameters: object): Promise‹BaseDividend[]›

Fetch list of all Dividends at a certain Checkpoint

Parameters:

▪ __namedParameters: object

Name

Type

Description

checkpointId

number

checkpoint UUID

dividendsModule

ERC20DividendCheckpoint_3_0_0

-

Returns: Promise‹BaseDividend[]›

getModuleAddressesByName

▸ getModuleAddressesByName(__namedParameters: object, opts?: GetModuleAddressesByNameOpts): Promise‹string[]›

Fetch addresses of all Modules of a certain type attached to a Security Token

Parameters:

▪ __namedParameters: object

Name

Type

Description

moduleName

ModuleName

name of the Module

symbol

string

symbol of the Security Token

▪Optional opts: GetModuleAddressesByNameOpts

Returns: Promise‹string[]›

getModuleFactoryAddress

▸ getModuleFactoryAddress(__namedParameters: object): Promise‹string›

Fetch the address of a specified Module Factory

Parameters:

▪ __namedParameters: object

Name

Type

Description

moduleName

ModuleName

name of the Module corresponding to the Module Factory

tokenAddress

string

address of the Security Token

Returns: Promise‹string›

getTreasuryWallet

▸ getTreasuryWallet(__namedParameters: object): Promise‹string›

Fetch a Module's Treasury Wallet

Parameters:

▪ __namedParameters: object

Name

Type

module

GeneralPermissionManager_3_0_0 | GeneralPermissionManager_3_1_0 | CountTransferManager_3_0_0 | GeneralTransferManager_3_0_0 | GeneralTransferManager_3_1_0 | ManualApprovalTransferManager_3_0_0 | PercentageTransferManager_3_0_0 | VolumeRestrictionTransferManager_3_0_0 | BlacklistTransferManager_3_0_0 | LockUpTransferManager_3_0_0 | RestrictedPartialSaleTransferManager_3_1_0 | CappedSTO_3_0_0 | CappedSTO_3_1_0 | USDTieredSTO_3_0_0 | USDTieredSTO_3_1_0 | ERC20DividendCheckpoint_3_0_0 | VestingEscrowWallet_3_0_0 | VestingEscrowWallet_3_1_0 | EtherDividendCheckpoint_3_0_0

Returns: Promise‹string›

roleToPermission

▸ roleToPermission(__namedParameters: object): Promise‹object›

Parameters:

▪ __namedParameters: object

Name

Type

role

Returns: Promise‹object›

PreviousPolymathBaseNextBaseCheckpoint

Last updated 5 years ago

Was this helpful?

Defined in

Defined in

Defined in

Defined in

Defined in

Defined in

Defined in

Defined in

Defined in

Defined in

Defined in

src/PolymathBase.ts:888
src/PolymathBase.ts:523
src/PolymathBase.ts:697
src/PolymathBase.ts:722
src/PolymathBase.ts:783
src/PolymathBase.ts:868
src/PolymathBase.ts:849
src/PolymathBase.ts:485
src/PolymathBase.ts:362
src/PolymathBase.ts:425
src/PolymathBase.ts:923
SecurityTokenRole