当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript js.BigNumber.toString方法代码示例

本文整理汇总了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()
   ]);
 }
开发者ID:8001800,项目名称:spankbank,代码行数:9,代码来源:SpankBank.ts

示例2: getDidClaimBooty

 public getDidClaimBooty(
   stakerAddress: BigNumber | string,
   period: BigNumber | number
 ): Promise<boolean> {
   return promisify(this.rawWeb3Contract.getDidClaimBooty, [
     stakerAddress.toString(),
     period.toString()
   ]);
 }
开发者ID:8001800,项目名称:spankbank,代码行数:9,代码来源:SpankBank.ts

示例3: allowanceTx

 public allowanceTx(
   owner: BigNumber | string,
   spender: BigNumber | string
 ): DeferredTransactionWrapper<ITxParams> {
   return new DeferredTransactionWrapper<ITxParams>(this, "allowance", [
     owner.toString(),
     spender.toString()
   ]);
 }
开发者ID:8001800,项目名称:spankbank,代码行数:9,代码来源:ERC20.ts

示例4: mintTx

 public mintTx(
   _to: BigNumber | string,
   _amount: BigNumber | number
 ): DeferredTransactionWrapper<ITxParams> {
   return new DeferredTransactionWrapper<ITxParams>(this, "mint", [
     _to.toString(),
     _amount.toString()
   ]);
 }
开发者ID:8001800,项目名称:spankbank,代码行数:9,代码来源:MintableToken.ts

示例5: allowance

 public allowance(
   _owner: BigNumber | string,
   _spender: BigNumber | string
 ): Promise<BigNumber> {
   return promisify(this.rawWeb3Contract.allowance, [
     _owner.toString(),
     _spender.toString()
   ]);
 }
开发者ID:8001800,项目名称:spankbank,代码行数:9,代码来源:Token.ts

示例6: transferTx

 public transferTx(
   _to: BigNumber | string,
   _value: BigNumber | number
 ): DeferredTransactionWrapper<ITxParams> {
   return new DeferredTransactionWrapper<ITxParams>(this, "transfer", [
     _to.toString(),
     _value.toString()
   ]);
 }
开发者ID:8001800,项目名称:spankbank,代码行数:9,代码来源:Token.ts

示例7: approveTx

 public approveTx(
   _spender: BigNumber | string,
   _value: BigNumber | number
 ): DeferredTransactionWrapper<ITxParams> {
   return new DeferredTransactionWrapper<ITxParams>(this, "approve", [
     _spender.toString(),
     _value.toString()
   ]);
 }
开发者ID:8001800,项目名称:spankbank,代码行数:9,代码来源:Token.ts

示例8: increaseApprovalTx

 public increaseApprovalTx(
   _spender: BigNumber | string,
   _addedValue: BigNumber | number
 ): DeferredTransactionWrapper<ITxParams> {
   return new DeferredTransactionWrapper<ITxParams>(this, "increaseApproval", [
     _spender.toString(),
     _addedValue.toString()
   ]);
 }
开发者ID:8001800,项目名称:spankbank,代码行数:9,代码来源:MintableToken.ts

示例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())
   ]);
 }
开发者ID:8001800,项目名称:spankbank,代码行数:11,代码来源:HumanStandardToken.ts

示例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()
   ]);
 }
开发者ID:8001800,项目名称:spankbank,代码行数:11,代码来源:ERC20.ts


注:本文中的bignumber.js.BigNumber.toString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。