增加操作记录上的一些注释

This commit is contained in:
zhl 2023-01-29 16:15:54 +08:00
parent 7c9501d36e
commit 7490b8012b

View File

@ -32,7 +32,7 @@ class TranRecordClass extends BaseModule {
public tokenId: string
// 对于ERC721, 该值永远为'1'
@prop({ default: '1' })
public amount: string
public value: string
@prop()
public gas: string
@ -41,7 +41,13 @@ class TranRecordClass extends BaseModule {
@prop()
public data: string
/**
*
* 0: 默认,
* 1: 已获取receipt, getTransactionReceipt获取状态
* 2: 已确认, 6
* 10: 错误
*/
@prop({ default: 0 })
public status: number
@ -61,7 +67,7 @@ class TranRecordClass extends BaseModule {
blockHash: this.blockHash,
from: this.from,
to: this.to,
amount: this.amount,
value: this.value,
tokenId: this.tokenId,
gas: this.gas,
gasPrice: this.gasPrice,