Skip to content

Commit 814dde3

Browse files
committed
Update to v5.9.3
1 parent 8204459 commit 814dde3

File tree

8 files changed

+55
-50
lines changed

8 files changed

+55
-50
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.9.1
1+
5.9.3

docs/content/api/openapi.yaml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ info:
77
license:
88
name: GPL 3.0
99
url: http://www.gnu.org/licenses/
10-
version: 5.9.1
10+
version: 5.9.3
1111
description: >
1212
A REST layer over the TrueBlocks chifra command line. With `chifra daemon`, you can
1313
run this on your own machine, and make calls to `localhost`.
@@ -3586,46 +3586,50 @@ components:
35863586
description: "an ERC-20 token approval granting spending permission from owner to spender"
35873587
type: object
35883588
properties:
3589+
allowance:
3590+
type: string
3591+
format: wei
3592+
description: "the amount of tokens approved for spending"
35893593
blockNumber:
35903594
type: number
35913595
format: blknum
3592-
description: "the block number at which this call was made"
3596+
description: "the current block number when the report was generated"
35933597
timestamp:
35943598
type: number
35953599
format: timestamp
3596-
description: "the timestamp of the block for this call"
3600+
description: "the current timestamp when the report was generated"
35973601
date:
35983602
type: string
35993603
format: datetime
36003604
description: "the timestamp as a date (calculated)"
3601-
address:
3605+
owner:
36023606
type: string
36033607
format: address
36043608
description: "the address of the owner of the token (the approver)"
3605-
addressName:
3606-
type: string
3607-
format: string
3608-
description: "the name of the holder, if available"
36093609
spender:
36103610
type: string
36113611
format: address
36123612
description: "the address being granted approval to spend tokens"
3613-
spenderName:
3614-
type: string
3615-
format: string
3616-
description: "the name of the spender, if available"
3617-
amount:
3618-
type: string
3619-
format: wei
3620-
description: "the amount of tokens approved for spending"
36213613
token:
36223614
type: string
36233615
format: address
36243616
description: "the address of the ERC-20 token being approved"
3625-
tokenName:
3626-
type: string
3627-
format: string
3628-
description: "the name of the token, if available"
3617+
lastAppBlock:
3618+
type: number
3619+
format: blknum
3620+
description: "the block number of the last approval event"
3621+
lastAppTs:
3622+
type: number
3623+
format: timestamp
3624+
description: "the timestamp of the last approval event"
3625+
lastAppTxID:
3626+
type: number
3627+
format: txnum
3628+
description: "the transaction index of the last approval event"
3629+
lastAppLogID:
3630+
type: number
3631+
format: lognum
3632+
description: "the log index of the last approval event"
36293633
appearanceTable:
36303634
description: "an appearance table for an address"
36313635
type: object

docs/content/data-model/accounts.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -266,18 +266,19 @@ The following commands produce and manage Approvals:
266266

267267
Approvals consist of the following fields:
268268

269-
| Field | Description | Type |
270-
| ----------- | ---------------------------------------------------- | --------- |
271-
| blockNumber | the block number at which this call was made | blknum |
272-
| timestamp | the timestamp of the block for this call | timestamp |
273-
| date | the timestamp as a date (calculated) | datetime |
274-
| address | the address of the owner of the token (the approver) | address |
275-
| addressName | the name of the holder, if available | string |
276-
| spender | the address being granted approval to spend tokens | address |
277-
| spenderName | the name of the spender, if available | string |
278-
| amount | the amount of tokens approved for spending | wei |
279-
| token | the address of the ERC-20 token being approved | address |
280-
| tokenName | the name of the token, if available | string |
269+
| Field | Description | Type |
270+
| ------------ | ------------------------------------------------------ | --------- |
271+
| allowance | the amount of tokens approved for spending | wei |
272+
| blockNumber | the current block number when the report was generated | blknum |
273+
| timestamp | the current timestamp when the report was generated | timestamp |
274+
| date | the timestamp as a date (calculated) | datetime |
275+
| owner | the address of the owner of the token (the approver) | address |
276+
| spender | the address being granted approval to spend tokens | address |
277+
| token | the address of the ERC-20 token being approved | address |
278+
| lastAppBlock | the block number of the last approval event | blknum |
279+
| lastAppTs | the timestamp of the last approval event | timestamp |
280+
| lastAppTxID | the transaction index of the last approval event | txnum |
281+
| lastAppLogID | the log index of the last approval event | lognum |
281282

282283
## AppearanceTable
283284

sdk

src/apps/chifra/pkg/types/types_approval.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ import (
2020
type Approval struct {
2121
Allowance base.Wei `json:"allowance"`
2222
BlockNumber base.Blknum `json:"blockNumber"`
23+
LastAppBlock base.Blknum `json:"lastAppBlock"`
24+
LastAppLogID base.Lognum `json:"lastAppLogID"`
25+
LastAppTs base.Timestamp `json:"lastAppTs"`
26+
LastAppTxID base.Txnum `json:"lastAppTxID"`
2327
Owner base.Address `json:"owner"`
2428
Spender base.Address `json:"spender"`
2529
Timestamp base.Timestamp `json:"timestamp"`
2630
Token base.Address `json:"token"`
27-
LastAppBlock base.Blknum `json:"lastAppBlock"`
28-
LastAppTs base.Timestamp `json:"lastAppTs"`
29-
LastAppLogID base.Lognum `json:"lastAppLogID"`
30-
LastAppTxID base.Txnum `json:"lastAppTxID"`
3131
// EXISTING_CODE
3232
// EXISTING_CODE
3333
}
@@ -60,7 +60,6 @@ func (s *Approval) Model(chain, format string, verbose bool, extraOpts map[strin
6060
"lastAppTs": s.LastAppTs,
6161
"lastAppDate": base.FormattedDate(s.LastAppTs),
6262
}
63-
// EXISTING_CODE
6463

6564
order = []string{
6665
"blockNumber",

src/apps/chifra/pkg/version/string.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
package version
99

10-
const LibraryVersion = "GHC-TrueBlocks//5.9.1"
10+
const LibraryVersion = "GHC-TrueBlocks//5.9.3"
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name , type , strDefault, attributes, docOrder, description
2-
blockNumber , blknum , , , 1, the block number at which this call was made
3-
timestamp , timestamp, , , 2, the timestamp of the block for this call
4-
date , datetime , , calc , 3, the timestamp as a date
5-
address , address , , , 4, the address of the owner of the token (the approver)
6-
addressName , string , , , 5, the name of the holder, if available
2+
allowance , wei , , , 1, the amount of tokens approved for spending
3+
blockNumber , blknum , , , 2, the current block number when the report was generated
4+
timestamp , timestamp, , , 3, the current timestamp when the report was generated
5+
date , datetime , , calc , 4, the timestamp as a date
6+
owner , address , , , 5, the address of the owner of the token (the approver)
77
spender , address , , , 6, the address being granted approval to spend tokens
8-
spenderName , string , , , 7, the name of the spender, if available
9-
amount , wei , , , 8, the amount of tokens approved for spending
10-
token , address , , , 9, the address of the ERC-20 token being approved
11-
tokenName , string , , , 10, the name of the token, if available
8+
token , address , , , 7, the address of the ERC-20 token being approved
9+
lastAppBlock, blknum , , , 8, the block number of the last approval event
10+
lastAppTs , timestamp, , , 9, the timestamp of the last approval event
11+
lastAppTxID , txnum , , , 10, the transaction index of the last approval event
12+
lastAppLogID, lognum , , , 11, the log index of the last approval event
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
chifra names --version
2-
names version GHC-TrueBlocks//5.9.1
2+
names version GHC-TrueBlocks//5.9.3

0 commit comments

Comments
 (0)