Function
Static Public Summary | ||
public |
abiPolyfill(): {"registry": *, "registryExtras": *, "githubhint": *, "operations": *, "badgereg": *, "tokenreg": *, "badge": *, "erc20token": *} Deprecated. |
|
public |
addressBook(): * |
|
public |
Capitalizes the first letter of a string |
|
public |
|
|
public |
combineValue(v: *): * |
|
public |
composeTransaction(sender: *, call: *, index: *, era: *, checkpoint: *, senderAccount: *, compact: *): * |
|
public |
createBonds(Options: {api: ParityApi}): Bonds |
|
public |
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 |
formatValueNoDenom(v: Value): string Format value without denominator |
|
public |
interpretQuantity(s: *): * |
|
public |
interpretRender(s: *, defaultDenom: number): * |
|
public |
isAddressValid(h: *) |
|
public |
isNotOwned(addr: *) |
|
public |
isNullData(a: *): * |
|
public |
isOwned(addr: *) |
|
public |
nodeService(): * |
|
public |
post(tx: *): * |
|
public |
pretty(expr: *): * |
|
public |
removeSigningPrefix(message: *): * |
|
public |
secretStore(storage: *): * |
|
public |
setNodeUri(u: *) |
|
public |
sha3(h: *) |
|
public |
Wrap |
|
public |
splitSignature(sig: *): undefined[] |
|
public |
splitValue(a: number | BigNumber): Value Split value into base and denominator |
|
public |
toChecksumAddress(h: *) |
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
import {addressBook} from './packages/oo7-substrate/src/addressBook.js'
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:
Name | Type | Attribute | Description |
s | string |
public cleanup(value: *, type: string, api: *): * source
import {cleanup} from './packages/oo7-parity/src/utils/index.js'
Params:
Name | Type | Attribute | Description |
value | * | ||
type | string |
|
|
api | * |
|
Return:
* |
public combineValue(v: *): * source
import {combineValue} from './packages/oo7-parity/src/utils/index.js'
Params:
Name | Type | Attribute | Description |
v | * |
Return:
* |
public composeTransaction(sender: *, call: *, index: *, era: *, checkpoint: *, senderAccount: *, compact: *): * source
import {composeTransaction} from './packages/oo7-substrate/src/transact.js'
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
Options | {api: ParityApi} | object |
public defDenom(v: BigNumber, d: string): Value source
import {defDenom} from './packages/oo7-parity/src/utils/index.js'
Add missing denominator to the value
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
balance | string | BigNumber |
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.
public formatToExponential(v: number | BigNumber, {number|: *): string source
import {formatToExponential} from './packages/oo7-parity/src/utils/index.js'
Format value without denominator
Params:
Name | Type | Attribute | Description |
v | number | BigNumber | ||
{number| | * | exponent |
public formatValue(n: Value): string source
import {formatValue} from './packages/oo7-parity/src/utils/index.js'
Formats a value with denominator
Params:
Name | Type | Attribute | Description |
n | Value | value with denominator |
public formatValueNoDenom(v: Value): string source
import {formatValueNoDenom} from './packages/oo7-parity/src/utils/index.js'
Format value without denominator
Params:
Name | Type | Attribute | Description |
v | Value |
public interpretQuantity(s: *): * source
import {interpretQuantity} from './packages/oo7-parity/src/utils/index.js'
Params:
Name | Type | Attribute | Description |
s | * |
Return:
* |
public interpretRender(s: *, defaultDenom: number): * source
import {interpretRender} from './packages/oo7-parity/src/utils/index.js'
Params:
Name | Type | Attribute | Description |
s | * | ||
defaultDenom | number |
|
Return:
* |
public isAddressValid(h: *) source
import {isAddressValid} from './packages/oo7-parity/src/utils/index.js'
Params:
Name | Type | Attribute | Description |
h | * |
public isNotOwned(addr: *) source
import {isNotOwned} from './packages/oo7-parity/src/index.js'
Params:
Name | Type | Attribute | Description |
addr | * |
public isNullData(a: *): * source
import {isNullData} from './packages/oo7-parity/src/utils/index.js'
Params:
Name | Type | Attribute | Description |
a | * |
Return:
* |
public isOwned(addr: *) source
import {isOwned} from './packages/oo7-parity/src/index.js'
Params:
Name | Type | Attribute | Description |
addr | * |
public nodeService(): * source
import {nodeService} from './packages/oo7-substrate/src/nodeService.js'
Return:
* |
public post(tx: *): * source
import {post} from './packages/oo7-substrate/src/transact.js'
Params:
Name | Type | Attribute | Description |
tx | * |
Return:
* |
public pretty(expr: *): * source
import {pretty} from './packages/oo7-substrate/src/pretty.js'
Params:
Name | Type | Attribute | Description |
expr | * |
Return:
* |
public removeSigningPrefix(message: *): * source
import {removeSigningPrefix} from './packages/oo7-parity/src/utils/index.js'
Params:
Name | Type | Attribute | Description |
message | * |
Return:
* |
public secretStore(storage: *): * source
import {secretStore} from './packages/oo7-substrate/src/secretStore.js'
Params:
Name | Type | Attribute | Description |
storage | * |
Return:
* |
public setNodeUri(u: *) source
import {setNodeUri} from './packages/oo7-substrate/src/nodeService.js'
Params:
Name | Type | Attribute | Description |
u | * |
public sha3(h: *) source
import {sha3} from './packages/oo7-parity/src/utils/index.js'
Params:
Name | Type | Attribute | Description |
h | * |
public singleton(f: F): function(): F source
import {singleton} from './packages/oo7-parity/src/utils/index.js'
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:
Name | Type | Attribute | Description |
f | F |
public splitSignature(sig: *): undefined[] source
import {splitSignature} from './packages/oo7-parity/src/utils/index.js'
Params:
Name | Type | Attribute | Description |
sig | * |
public splitValue(a: number | BigNumber): Value source
import {splitValue} from './packages/oo7-parity/src/utils/index.js'
Split value into base and denominator
Params:
Name | Type | Attribute | Description |
a | number | BigNumber |
Return:
Value |
public toChecksumAddress(h: *) source
import {toChecksumAddress} from './packages/oo7-parity/src/utils/index.js'
Params:
Name | Type | Attribute | Description |
h | * |