From 4bd114fe83b65d36cb535242bbc74f8077180d1e Mon Sep 17 00:00:00 2001 From: Marko Kungla Date: Thu, 17 Mar 2022 05:00:55 +0200 Subject: [PATCH] feat: update network tip endpoint epoch no Signed-off-by: Marko Kungla --- asset.go | 2 +- network.go | 4 ++-- testdata/endpoint_network_tip.json.gz | Bin 356 -> 493 bytes 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/asset.go b/asset.go index 2bcd0ea..a2d949e 100644 --- a/asset.go +++ b/asset.go @@ -86,7 +86,7 @@ type ( TokenRegistryMetadata *TokenRegistryMetadata `json:"token_registry_metadata"` // Asset Policy ID (hex). - PolicyID PolicyID `json:"policy_id"` + PolicyID PolicyID `json:"policy_id,omitempty"` // TotalSupply of Asset TotalSupply Lovelace `json:"total_supply"` diff --git a/network.go b/network.go index 85ce3ee..92cd3fe 100644 --- a/network.go +++ b/network.go @@ -34,8 +34,8 @@ type ( // Timestamp for when the block was created BlockTime string `json:"block_time"` - // Epoch number - Epoch int `json:"epoch"` + // EpochNo number + EpochNo int `json:"epoch_no"` // Slot number within Epoch EpochSlot int `json:"epoch_slot"` diff --git a/testdata/endpoint_network_tip.json.gz b/testdata/endpoint_network_tip.json.gz index 8b41a3ae74565268ad47d84e0900608ca19028b6..1c77a2ea45062c6245285bae28861305fa429948 100644 GIT binary patch literal 493 zcmVq^OYA4&=BpznP5Jomc?>z-h1CbV*oAONj)WNh46j1T1RH_^DWUx6$za59b{ zAdkiY1CPIF3=zZ=>@kj{LBQ2&4TmHJM>b&66lnxe6$OJ4rA8l8_gpCqfnSh~o+f@i zP4vJoJZiMj$SHuhh3IF5JNCBs#+#k7$u`F5g2?loiQ_z+Dca{sdMzz+Mf?41O?=Gn z$xz@s;%YKz;~Uu3Uq=D?r&GpTNDA7>S5}cWcE_?)=QAl84cV8@S7~?nQm!8zvg}eu zWZ8@P8~Q)!S+@4lhAsM63ya~=>x_O zbKLSSjieOGx*lhim2Gw{eO47!l@*m}dQo)Q)%7|VfAEi9?vdZPgggEMkzKC7`~-IT zxH~WyNI!zOeF8azO_(TxXqvw4o4#i-Or-8NmO!*cu`K)LsTIxfywYM`)VyrhX?-Wk z0vMnpH6Ewxsy&s@=(1}Qca$NWo?KSCtFcu>rz%-3>L%4?*~;ajDci2bx*OVlp-Z{l jZgr_}Xu3tCRIdwc+Zqmchr_=B009607c+g=@B#n;fY$Q( literal 356 zcmV-q0h|6GiwFP!00000|2&Y*j?^#^gkL4~d@M*HzW3D@@Bu4$lMz$c@1-E}a~uKYn{Yr6s)o6}vPsw}y~bUW?m3oArdJkU@`E@dIK;f<-f z;_-8z55JcW8=k5B8nRu?8dKcefB6CIZ8+`>20y-ldAb4)@f25|z%*6UsJfC2hSl5W zlk;F&rR!FRw^dqh1?J$A%Tjdxzj#>z0}9^GU@9qI=T~1@>o&X27<0ACc9oFBSc?`l z%0}1IFbE=9D{Y0MO54UZs1