Home Reference Source

Function

Static Public Summary
public

abiPolyfill(): {"registry": *, "registryExtras": *, "githubhint": *, "operations": *, "badgereg": *, "tokenreg": *, "badge": *, "erc20token": *}

Deprecated.

public
public

Capitalizes the first letter of a string

public

cleanup(value: *, type: string, api: *): *

public

combineValue(v: *): *

public

composeTransaction(sender: *, call: *, index: *, era: *, checkpoint: *, senderAccount: *, compact: *): *

public

createBonds(Options: {api: ParityApi}): Bonds

public

defDenom(v: BigNumber, d: string): Value

Add missing denominator to the value

public

denominationMultiplier(denominator: string): BigNumber

Returns a BigNumber multiplier for give string denominator

public

formatBalance(balance: string | BigNumber): string

Display balance into human-readable format with denomnator

public

formatBlockNumber(blockNumber: string | number | BigNumber): string

Format block number into human-readable representation.

public

formatToExponential(v: number | BigNumber, {number|: *): string

Format value without denominator

public

formatValue(n: Value): string

Formats a value with denominator

public

Format value without denominator

public
public

interpretRender(s: *, defaultDenom: number): *

public
public

isNotOwned(addr: *)

public

isNullData(a: *): *

public

isOwned(addr: *)

public
public

post(tx: *): *

public

pretty(expr: *): *

public

removeSigningPrefix(message: *): *

public

secretStore(storage: *): *

public

setNodeUri(u: *)

public

sha3(h: *)

public

singleton(f: F): function(): F

Wrap f in a function that ensures it's called at most once. The value returned from f is memoized and returned for all subsequent calls.

public
public

splitValue(a: number | BigNumber): Value

Split value into base and denominator

public

Static Public

public abiPolyfill(): {"registry": *, "registryExtras": *, "githubhint": *, "operations": *, "badgereg": *, "tokenreg": *, "badge": *, "erc20token": *} source

import {abiPolyfill} from './packages/oo7-parity/src/abis/index.js'

Deprecated.

Return:

{"registry": *, "registryExtras": *, "githubhint": *, "operations": *, "badgereg": *, "tokenreg": *, "badge": *, "erc20token": *}

public addressBook(): * source

Return:

*

public capitalizeFirstLetter(s: string): string source

import {capitalizeFirstLetter} from './packages/oo7-parity/src/utils/index.js'

Capitalizes the first letter of a string

Params:

NameTypeAttributeDescription
s string

Return:

string

public cleanup(value: *, type: string, api: *): * source

Params:

NameTypeAttributeDescription
value *
type string
  • optional
  • default: bytes32
api *
  • optional

Return:

*

public combineValue(v: *): * source

import {combineValue} from './packages/oo7-parity/src/utils/index.js'

Params:

NameTypeAttributeDescription
v *

Return:

*

public composeTransaction(sender: *, call: *, index: *, era: *, checkpoint: *, senderAccount: *, compact: *): * source

import {composeTransaction} from './packages/oo7-substrate/src/transact.js'

Params:

NameTypeAttributeDescription
sender *
call *
index *
era *
checkpoint *
senderAccount *
compact *

Return:

*

public createBonds(Options: {api: ParityApi}): Bonds source

import {createBonds} from './packages/oo7-parity/src/index.js'

Params:

NameTypeAttributeDescription
Options {api: ParityApi}

object

Return:

Bonds

public defDenom(v: BigNumber, d: string): Value source

Add missing denominator to the value

Params:

NameTypeAttributeDescription
v BigNumber

value

d string

denominator

Return:

Value

public denominationMultiplier(denominator: string): BigNumber source

import {denominationMultiplier} from './packages/oo7-parity/src/utils/index.js'

Returns a BigNumber multiplier for give string denominator

Params:

NameTypeAttributeDescription
denominator string

denominator (wei, eth, finney, Gwei, etc)

Return:

BigNumber

multiplier

public formatBalance(balance: string | BigNumber): string source

import {formatBalance} from './packages/oo7-parity/src/utils/index.js'

Display balance into human-readable format with denomnator

Params:

NameTypeAttributeDescription
balance string | BigNumber

Return:

string

public formatBlockNumber(blockNumber: string | number | BigNumber): string source

import {formatBlockNumber} from './packages/oo7-parity/src/utils/index.js'

Format block number into human-readable representation.

Params:

NameTypeAttributeDescription
blockNumber string | number | BigNumber

Return:

string

public formatToExponential(v: number | BigNumber, {number|: *): string source

import {formatToExponential} from './packages/oo7-parity/src/utils/index.js'

Format value without denominator

Params:

NameTypeAttributeDescription
v number | BigNumber
{number| *

exponent

Return:

string

public formatValue(n: Value): string source

import {formatValue} from './packages/oo7-parity/src/utils/index.js'

Formats a value with denominator

Params:

NameTypeAttributeDescription
n Value

value with denominator

Return:

string

public formatValueNoDenom(v: Value): string source

import {formatValueNoDenom} from './packages/oo7-parity/src/utils/index.js'

Format value without denominator

Params:

NameTypeAttributeDescription
v Value

Return:

string

public interpretQuantity(s: *): * source

import {interpretQuantity} from './packages/oo7-parity/src/utils/index.js'

Params:

NameTypeAttributeDescription
s *

Return:

*

public interpretRender(s: *, defaultDenom: number): * source

import {interpretRender} from './packages/oo7-parity/src/utils/index.js'

Params:

NameTypeAttributeDescription
s *
defaultDenom number
  • optional
  • default: 6

Return:

*

public isAddressValid(h: *) source

import {isAddressValid} from './packages/oo7-parity/src/utils/index.js'

Params:

NameTypeAttributeDescription
h *

public isNotOwned(addr: *) source

import {isNotOwned} from './packages/oo7-parity/src/index.js'

Params:

NameTypeAttributeDescription
addr *

public isNullData(a: *): * source

import {isNullData} from './packages/oo7-parity/src/utils/index.js'

Params:

NameTypeAttributeDescription
a *

Return:

*

public isOwned(addr: *) source

import {isOwned} from './packages/oo7-parity/src/index.js'

Params:

NameTypeAttributeDescription
addr *

public nodeService(): * source

Return:

*

public post(tx: *): * source

Params:

NameTypeAttributeDescription
tx *

Return:

*

public pretty(expr: *): * source

Params:

NameTypeAttributeDescription
expr *

Return:

*

public removeSigningPrefix(message: *): * source

import {removeSigningPrefix} from './packages/oo7-parity/src/utils/index.js'

Params:

NameTypeAttributeDescription
message *

Return:

*

public secretStore(storage: *): * source

Params:

NameTypeAttributeDescription
storage *

Return:

*

public setNodeUri(u: *) source

Params:

NameTypeAttributeDescription
u *

public sha3(h: *) source

Params:

NameTypeAttributeDescription
h *

public singleton(f: F): function(): F source

Wrap f in a function that ensures it's called at most once. The value returned from f is memoized and returned for all subsequent calls.

Params:

NameTypeAttributeDescription
f F

Return:

function(): F

public splitSignature(sig: *): undefined[] source

import {splitSignature} from './packages/oo7-parity/src/utils/index.js'

Params:

NameTypeAttributeDescription
sig *

Return:

undefined[]

public splitValue(a: number | BigNumber): Value source

import {splitValue} from './packages/oo7-parity/src/utils/index.js'

Split value into base and denominator

Params:

NameTypeAttributeDescription
a number | BigNumber

Return:

Value

public toChecksumAddress(h: *) source

import {toChecksumAddress} from './packages/oo7-parity/src/utils/index.js'

Params:

NameTypeAttributeDescription
h *