- isAssetAmount(v): v is {
amount: (() => BigNumber);
decimal: number;
div: ((value, decimal?) => { type: Denomination.Asset; amount: () => BigNumber; plus: (value: Value | ..., decimal?: number | undefined) => ...; minus: (value: Value | ..., decimal?: number | undefined) => ...; ... 7 more ...; decimal: number; });
eq: ((value) => boolean);
gt: ((value) => boolean);
gte: ((value) => boolean);
lt: ((value) => boolean);
lte: ((value) => boolean);
minus: ((value, decimal?) => { type: Denomination.Asset; amount: () => BigNumber; plus: (value: Value | ..., decimal?: number | undefined) => ...; minus: (value: Value | ..., decimal?: number | undefined) => ...; ... 7 more ...; decimal: number; });
plus: ((value, decimal?) => { type: Denomination.Asset; amount: () => BigNumber; plus: (value: Value | ..., decimal?: number | undefined) => ...; minus: (value: Value | ..., decimal?: number | undefined) => ...; ... 7 more ...; decimal: number; });
times: ((value, decimal?) => { type: Denomination.Asset; amount: () => BigNumber; plus: (value: Value | ..., decimal?: number | undefined) => ...; minus: (value: Value | ..., decimal?: number | undefined) => ...; ... 7 more ...; decimal: number; });
type: Asset;
} Returns v is {
amount: (() => BigNumber);
decimal: number;
div: ((value, decimal?) => { type: Denomination.Asset; amount: () => BigNumber; plus: (value: Value | ..., decimal?: number | undefined) => ...; minus: (value: Value | ..., decimal?: number | undefined) => ...; ... 7 more ...; decimal: number; });
eq: ((value) => boolean);
gt: ((value) => boolean);
gte: ((value) => boolean);
lt: ((value) => boolean);
lte: ((value) => boolean);
minus: ((value, decimal?) => { type: Denomination.Asset; amount: () => BigNumber; plus: (value: Value | ..., decimal?: number | undefined) => ...; minus: (value: Value | ..., decimal?: number | undefined) => ...; ... 7 more ...; decimal: number; });
plus: ((value, decimal?) => { type: Denomination.Asset; amount: () => BigNumber; plus: (value: Value | ..., decimal?: number | undefined) => ...; minus: (value: Value | ..., decimal?: number | undefined) => ...; ... 7 more ...; decimal: number; });
times: ((value, decimal?) => { type: Denomination.Asset; amount: () => BigNumber; plus: (value: Value | ..., decimal?: number | undefined) => ...; minus: (value: Value | ..., decimal?: number | undefined) => ...; ... 7 more ...; decimal: number; });
type: Asset;
}
true
or false
.
Guard to check whether value is an amount of asset or not