本文整理汇总了TypeScript中bignumber.js.BigNumber.toString方法的典型用法代码示例。如果您正苦于以下问题:TypeScript js.BigNumber.toString方法的具体用法?TypeScript js.BigNumber.toString怎么用?TypeScript js.BigNumber.toString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类bignumber.js.BigNumber
的用法示例。
在下文中一共展示了js.BigNumber.toString方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: getSpankPoints
public getSpankPoints(
stakerAddress: BigNumber | string,
period: BigNumber | number
): Promise<BigNumber> {
return promisify(this.rawWeb3Contract.getSpankPoints, [
stakerAddress.toString(),
period.toString()
]);
}
示例2: getDidClaimBooty
public getDidClaimBooty(
stakerAddress: BigNumber | string,
period: BigNumber | number
): Promise<boolean> {
return promisify(this.rawWeb3Contract.getDidClaimBooty, [
stakerAddress.toString(),
period.toString()
]);
}
示例3: allowanceTx
public allowanceTx(
owner: BigNumber | string,
spender: BigNumber | string
): DeferredTransactionWrapper<ITxParams> {
return new DeferredTransactionWrapper<ITxParams>(this, "allowance", [
owner.toString(),
spender.toString()
]);
}
示例4: mintTx
public mintTx(
_to: BigNumber | string,
_amount: BigNumber | number
): DeferredTransactionWrapper<ITxParams> {
return new DeferredTransactionWrapper<ITxParams>(this, "mint", [
_to.toString(),
_amount.toString()
]);
}
示例5: allowance
public allowance(
_owner: BigNumber | string,
_spender: BigNumber | string
): Promise<BigNumber> {
return promisify(this.rawWeb3Contract.allowance, [
_owner.toString(),
_spender.toString()
]);
}
示例6: transferTx
public transferTx(
_to: BigNumber | string,
_value: BigNumber | number
): DeferredTransactionWrapper<ITxParams> {
return new DeferredTransactionWrapper<ITxParams>(this, "transfer", [
_to.toString(),
_value.toString()
]);
}
示例7: approveTx
public approveTx(
_spender: BigNumber | string,
_value: BigNumber | number
): DeferredTransactionWrapper<ITxParams> {
return new DeferredTransactionWrapper<ITxParams>(this, "approve", [
_spender.toString(),
_value.toString()
]);
}
示例8: increaseApprovalTx
public increaseApprovalTx(
_spender: BigNumber | string,
_addedValue: BigNumber | number
): DeferredTransactionWrapper<ITxParams> {
return new DeferredTransactionWrapper<ITxParams>(this, "increaseApproval", [
_spender.toString(),
_addedValue.toString()
]);
}
示例9: approveAndCallTx
public approveAndCallTx(
_spender: BigNumber | string,
_value: BigNumber | number,
_extraData: string[]
): DeferredTransactionWrapper<ITxParams> {
return new DeferredTransactionWrapper<ITxParams>(this, "approveAndCall", [
_spender.toString(),
_value.toString(),
_extraData.map(val => val.toString())
]);
}
示例10: transferFromTx
public transferFromTx(
from: BigNumber | string,
to: BigNumber | string,
value: BigNumber | number
): DeferredTransactionWrapper<ITxParams> {
return new DeferredTransactionWrapper<ITxParams>(this, "transferFrom", [
from.toString(),
to.toString(),
value.toString()
]);
}