PolymathBase
Last updated
Was this helpful?
Last updated
Was this helpful?
Class that wraps the polymathnetwork/contract-wrappers library to add utility functions
PolymathAPI
↳ 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
An instance of the PolymathAPI class.
• contractFactory: ContractFactory
Inherited from void
Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:79
• 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: 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
▸ (): Promise‹string›
• getBalance: function
Inherited from void
Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:100
Get the ETH balance
returns
Balance BigNumber
â–¸ (params
: GetBalanceParams): Promise‹BigNumber›
Parameters:
Name
Type
params
GetBalanceParams
• 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
â–¸ (params
: GetERC20WrapperParams): Promise‹ERC20›
Parameters:
Name
Type
params
GetERC20WrapperParams
• getPolyTokens: function
Inherited from void
Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:85
â–¸ (params
: GetTokensParams): Promise‹PolyResponse›
Parameters:
Name
Type
params
GetTokensParams
• isTestnet: function
Inherited from void
Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:104
Is it Testnet network?
▸ (): Promise‹boolean›
• 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: 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: 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: 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: 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: 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: 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
Inherited from void
Defined in node_modules/@polymathnetwork/contract-wrappers/lib/PolymathAPI.d.ts:78
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
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
Returns: Promise‹any[]›
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
Get all Checkpoints of a Security Token
Parameters:
â–ª __namedParameters: object
Name
Type
Description
securityToken
SecurityToken_3_0_0
instance of the Security Token
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
-
Parameters:
â–ª __namedParameters: object
Name
Type
dividendsModule
ERC20DividendCheckpoint_3_0_0
Fetch list of all Dividends at a certain Checkpoint
Parameters:
â–ª __namedParameters: object
Name
Type
Description
checkpointId
number
checkpoint UUID
dividendsModule
ERC20DividendCheckpoint_3_0_0
-
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
Returns: Promise‹string[]›
â–¸ 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(__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(__namedParameters
: object): Promise‹object›
Parameters:
â–ª __namedParameters: object
Name
Type
role
Returns: Promise‹object›
+ new PolymathBase(params
: ApiConstructorParams):
Returns:
â–¸ getAllDividends(__namedParameters
: object): Promise‹[]›
Defined in
Returns: Promise‹[]›
â–¸ getAttachedModules(__namedParameters
: object, opts?
: ): Promise‹any[]›
Defined in
â–ªOptional
opts:
â–¸ getCheckpoint(__namedParameters
: object): Promise‹›
Defined in
Returns: Promise‹›
â–¸ getCheckpoints(__namedParameters
: object): Promise‹[]›
Defined in
Returns: Promise‹[]›
â–¸ getDividend(__namedParameters
: object): Promise‹›
Defined in
Returns: Promise‹›
â–¸ getDividends(__namedParameters
: object): Promise‹[]›
Defined in
Returns: Promise‹[]›
â–¸ getDividendsByCheckpoint(__namedParameters
: object): Promise‹[]›
Defined in
Returns: Promise‹[]›
â–¸ getModuleAddressesByName(__namedParameters
: object, opts?
: ): Promise‹string[]›
Defined in
â–ªOptional
opts:
Defined in
Defined in
Defined in