Skip to content

Commit

Permalink
Adapted serix tags
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Nov 8, 2023
1 parent 67b3465 commit d677c23
Show file tree
Hide file tree
Showing 12 changed files with 102 additions and 102 deletions.
14 changes: 7 additions & 7 deletions components/debugapi/debug_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ type (
}

Validator struct {
AccountID iotago.AccountID `serix:"0,mapKey=accountId"`
SeatIndex uint8 `serix:"1,mapKey=seatIndex"`
PoolStake iotago.BaseToken `serix:"2,mapKey=poolStake"`
ValidatorStake iotago.BaseToken `serix:"3,mapKey=validatorStake"`
FixedCost iotago.Mana `serix:"4,mapKey=fixedCost"`
AccountID iotago.AccountID `serix:""`
SeatIndex uint8 `serix:""`
PoolStake iotago.BaseToken `serix:""`
ValidatorStake iotago.BaseToken `serix:""`
FixedCost iotago.Mana `serix:""`
}

ValidatorsSummaryResponse struct {
ValidatorSeats []*Validator `serix:"0,lengthPrefixType=uint8,mapKey=validatorSeats"`
ActiveSeats []uint32 `serix:"1,lengthPrefixType=uint8,mapKey=activeSeats"`
ValidatorSeats []*Validator `serix:"lenPrefix=uint8"`
ActiveSeats []uint32 `serix:"lenPrefix=uint8"`
}

BlockChangesResponse struct {
Expand Down
2 changes: 1 addition & 1 deletion components/protocol/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type dependencies struct {
}

type jsonProtocolParameters struct {
ProtocolParameters []iotago.ProtocolParameters `serix:"0,mapKey=protocolParameters"`
ProtocolParameters []iotago.ProtocolParameters `serix:""`
}

func readProtocolParameters() []iotago.ProtocolParameters {
Expand Down
18 changes: 9 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ require (
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
github.com/iotaledger/hive.go/ads v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/app v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/constraints v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108070813-497ebfef8258
github.com/iotaledger/hive.go/crypto v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/constraints v0.0.0-20231108162616-bab25251edc4
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108162616-bab25251edc4
github.com/iotaledger/hive.go/crypto v0.0.0-20231108162616-bab25251edc4
github.com/iotaledger/hive.go/ds v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108162616-bab25251edc4
github.com/iotaledger/hive.go/kvstore v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/lo v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/lo v0.0.0-20231108162616-bab25251edc4
github.com/iotaledger/hive.go/logger v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/runtime v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108070813-497ebfef8258
github.com/iotaledger/hive.go/stringify v0.0.0-20231108070813-497ebfef8258
github.com/iotaledger/hive.go/runtime v0.0.0-20231108162616-bab25251edc4
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108162616-bab25251edc4
github.com/iotaledger/hive.go/stringify v0.0.0-20231108162616-bab25251edc4
github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231108104504-1445f545de82
github.com/iotaledger/inx/go v1.0.0-rc.2.0.20231108104322-f301c3573998
github.com/iotaledger/iota.go/v4 v4.0.0-20231108103955-bf75d703d8aa
github.com/iotaledger/iota.go/v4 v4.0.0-20231108163058-11a75294e3ce
github.com/labstack/echo/v4 v4.11.2
github.com/labstack/gommon v0.4.0
github.com/libp2p/go-libp2p v0.32.0
Expand Down
36 changes: 18 additions & 18 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -279,36 +279,36 @@ github.com/iotaledger/hive.go/ads v0.0.0-20231108070813-497ebfef8258 h1:wPNHVm76
github.com/iotaledger/hive.go/ads v0.0.0-20231108070813-497ebfef8258/go.mod h1:gbUvr01B5ha530GnNm8K2OsHXOd2BtzBYOMxyTX3iDg=
github.com/iotaledger/hive.go/app v0.0.0-20231108070813-497ebfef8258 h1:akc8HhwdRq8DiRAQQXv/UQm0qbA9ZunT/mVmFX7fYZw=
github.com/iotaledger/hive.go/app v0.0.0-20231108070813-497ebfef8258/go.mod h1:+riYmeLApkLlj4+EpuJpEJAsj/KGfD7cqLGy7oTsPOM=
github.com/iotaledger/hive.go/constraints v0.0.0-20231108070813-497ebfef8258 h1:pFOt744BV5Y96Igek0H2CiSkRi6+OfsKv0upAKl5Pyc=
github.com/iotaledger/hive.go/constraints v0.0.0-20231108070813-497ebfef8258/go.mod h1:dOBOM2s4se3HcWefPe8sQLUalGXJ8yVXw58oK8jke3s=
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108070813-497ebfef8258 h1:gtLCfc5S7Kv5IYlm729yQ2cwLGv8bjU1u+dp7zJQhfw=
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108070813-497ebfef8258/go.mod h1:CdixkrB7VdQzEDlVuwsxPtsiJL/WXrQgz3PELIqlLko=
github.com/iotaledger/hive.go/crypto v0.0.0-20231108070813-497ebfef8258 h1:cGNEoS/zrmqhISWwa/Yfro2yqHI2QXeinv7O1qBq2B4=
github.com/iotaledger/hive.go/crypto v0.0.0-20231108070813-497ebfef8258/go.mod h1:OQ9EVTTQT1mkO/16BgwSIyQlAhEg+Cptud/yutevWsI=
github.com/iotaledger/hive.go/constraints v0.0.0-20231108162616-bab25251edc4 h1:v9fYr6bAPzunA1FQwYa0SthpUCc4+b5oFivpLg3quQk=
github.com/iotaledger/hive.go/constraints v0.0.0-20231108162616-bab25251edc4/go.mod h1:dOBOM2s4se3HcWefPe8sQLUalGXJ8yVXw58oK8jke3s=
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108162616-bab25251edc4 h1:AaMdcUpeAragQXoiw/JUeqOpoZHF6AwO5SchkDz5/1E=
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108162616-bab25251edc4/go.mod h1:CdixkrB7VdQzEDlVuwsxPtsiJL/WXrQgz3PELIqlLko=
github.com/iotaledger/hive.go/crypto v0.0.0-20231108162616-bab25251edc4 h1:FfzAlmgc+ugZlcE/JWO2TtL/uEFT/V7+h3lz2WAzSWI=
github.com/iotaledger/hive.go/crypto v0.0.0-20231108162616-bab25251edc4/go.mod h1:OQ9EVTTQT1mkO/16BgwSIyQlAhEg+Cptud/yutevWsI=
github.com/iotaledger/hive.go/ds v0.0.0-20231108070813-497ebfef8258 h1:WASEdf1LmtiUH13xDLDKgDrCjTXbhRSzMaYK7sg5xYY=
github.com/iotaledger/hive.go/ds v0.0.0-20231108070813-497ebfef8258/go.mod h1:JE8cbZSvzbB5TrwXibg6M0B7ck35YxF30ItHBzQRlgc=
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108070813-497ebfef8258 h1:iwYDLiTYzUXQxMhge/F+gqEhQApLjyrH40MmTUrXp5Q=
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108070813-497ebfef8258/go.mod h1:HcE8B5lP96enc/OALTb2/rIIi+yOLouRoHOKRclKmC8=
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108162616-bab25251edc4 h1:gcDpRANXwAUhMG7mV9+HZ1v+xOAa1JX9iTC1Li6VFI0=
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108162616-bab25251edc4/go.mod h1:HcE8B5lP96enc/OALTb2/rIIi+yOLouRoHOKRclKmC8=
github.com/iotaledger/hive.go/kvstore v0.0.0-20231108070813-497ebfef8258 h1:CmNAIm53EybssTv4zqihNwUbcxm9LQaCK53xPXTsJAk=
github.com/iotaledger/hive.go/kvstore v0.0.0-20231108070813-497ebfef8258/go.mod h1:ytfKoHr/nF8u0y0G4mamfG0yjFtJiJVk0kgjnPOtsSY=
github.com/iotaledger/hive.go/lo v0.0.0-20231108070813-497ebfef8258 h1:C0T7uC+FCqd21J+GUuctmMOWGjRQ+LiKXuaaPqvEEq0=
github.com/iotaledger/hive.go/lo v0.0.0-20231108070813-497ebfef8258/go.mod h1:6Ee7i6b4tuTHuRYnPP8VUb0wr9XFI5qlqtnttBd9jRg=
github.com/iotaledger/hive.go/lo v0.0.0-20231108162616-bab25251edc4 h1:coSKLUOZkhYmdB5ifiYGnYhVnt0oJfLgTWz79kM2hys=
github.com/iotaledger/hive.go/lo v0.0.0-20231108162616-bab25251edc4/go.mod h1:6Ee7i6b4tuTHuRYnPP8VUb0wr9XFI5qlqtnttBd9jRg=
github.com/iotaledger/hive.go/log v0.0.0-20231108070813-497ebfef8258 h1:FMsVixGSddscSU42/jZGn3T/FC3uK9AZ+hyD8NmaIRs=
github.com/iotaledger/hive.go/log v0.0.0-20231108070813-497ebfef8258/go.mod h1:vzO4/wRkEJDEZb/9fD10oKU9k1bj4qLir2Uhl5U1FkM=
github.com/iotaledger/hive.go/logger v0.0.0-20231108070813-497ebfef8258 h1:R95wmni0W5VTYoxFq9nK27Tu68T10J5eZSVtxNqedA4=
github.com/iotaledger/hive.go/logger v0.0.0-20231108070813-497ebfef8258/go.mod h1:w1psHM2MuKsen1WdsPKrpqElYH7ZOQ+YdQIgJZg4HTo=
github.com/iotaledger/hive.go/runtime v0.0.0-20231108070813-497ebfef8258 h1:g8p/vhtNgN1SmC4fJmL7rtfRra/LKYbqiTSLyWc+gT8=
github.com/iotaledger/hive.go/runtime v0.0.0-20231108070813-497ebfef8258/go.mod h1:DrZPvUvLarK8C2qb+3H2vdypp/MuhpQmB3iMJbDCr/Q=
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108070813-497ebfef8258 h1:VO4uxLxVluS1dxAyvbVK65mVEnvxdLed4T3+KNHUwXE=
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108070813-497ebfef8258/go.mod h1:FoH3T6yKlZJp8xm8K+zsQiibSynp32v21CpWx8xkek8=
github.com/iotaledger/hive.go/stringify v0.0.0-20231108070813-497ebfef8258 h1:d1aQLfpjjpDr/yUTt8BhZTYjnNj5kyyAvMKDOAQrl8o=
github.com/iotaledger/hive.go/stringify v0.0.0-20231108070813-497ebfef8258/go.mod h1:FTo/UWzNYgnQ082GI9QVM9HFDERqf9rw9RivNpqrnTs=
github.com/iotaledger/hive.go/runtime v0.0.0-20231108162616-bab25251edc4 h1:m5BtU3Qjls+bW3D+3wOwJPqM2AXehbbp3Pc+nkCBvoc=
github.com/iotaledger/hive.go/runtime v0.0.0-20231108162616-bab25251edc4/go.mod h1:DrZPvUvLarK8C2qb+3H2vdypp/MuhpQmB3iMJbDCr/Q=
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108162616-bab25251edc4 h1:KsLHCoGHUA3Gjs8Qh+4cbAJbsO2Bfgm/Hqwx3gJXFfc=
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108162616-bab25251edc4/go.mod h1:FoH3T6yKlZJp8xm8K+zsQiibSynp32v21CpWx8xkek8=
github.com/iotaledger/hive.go/stringify v0.0.0-20231108162616-bab25251edc4 h1:xl2Og80WiBt90QjKaZxOflXHPcuikV0HVFy/wSB0l6E=
github.com/iotaledger/hive.go/stringify v0.0.0-20231108162616-bab25251edc4/go.mod h1:FTo/UWzNYgnQ082GI9QVM9HFDERqf9rw9RivNpqrnTs=
github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231108104504-1445f545de82 h1:FdM1lxUKgENO3oOlF5blVqmjER44mLIHGpavyUOY5JI=
github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231108104504-1445f545de82/go.mod h1:HVxkGPraMDTRudfG9AFN7Ga9gijp6skXB9TKNBc4KgI=
github.com/iotaledger/inx/go v1.0.0-rc.2.0.20231108104322-f301c3573998 h1:KkC0SaWrjSMg897r2DDosJYALFfLadFST3Fvoaxg7hw=
github.com/iotaledger/inx/go v1.0.0-rc.2.0.20231108104322-f301c3573998/go.mod h1:c+lBG3vgt2rgXHeOncK8hMllMwihTAtVbu790NslW2w=
github.com/iotaledger/iota.go/v4 v4.0.0-20231108103955-bf75d703d8aa h1:A2nadmSbmn62f6wtrqvv/TCCF2sDiiwyDnl6brbRo1E=
github.com/iotaledger/iota.go/v4 v4.0.0-20231108103955-bf75d703d8aa/go.mod h1:8iDORW4/e4NztyAGqjW07uSMjbhs7snbxw+81IWOczY=
github.com/iotaledger/iota.go/v4 v4.0.0-20231108163058-11a75294e3ce h1:6CKxw74zE4aKHs3wjbmkLdSUAJgJ5TjMl2111Hl91Zc=
github.com/iotaledger/iota.go/v4 v4.0.0-20231108163058-11a75294e3ce/go.mod h1:Bg7BOs2wO5gw1KQwD0OedG3C2gG6Xls2VGicK9mpLLg=
github.com/ipfs/boxo v0.13.1 h1:nQ5oQzcMZR3oL41REJDcTbrvDvuZh3J9ckc9+ILeRQI=
github.com/ipfs/boxo v0.13.1/go.mod h1:btrtHy0lmO1ODMECbbEY1pxNtrLilvKSYLoGQt1yYCk=
github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s=
Expand Down
8 changes: 4 additions & 4 deletions pkg/model/signaled_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
)

type SignaledBlock struct {
ID iotago.BlockID `serix:"0"`
IssuingTime time.Time `serix:"1"`
HighestSupportedVersion iotago.Version `serix:"2"`
ProtocolParametersHash iotago.Identifier `serix:"3"`
ID iotago.BlockID `serix:""`
IssuingTime time.Time `serix:""`
HighestSupportedVersion iotago.Version `serix:""`
ProtocolParametersHash iotago.Identifier `serix:""`
}

func NewSignaledBlock(blockID iotago.BlockID, block *iotago.Block, validationBlock *iotago.ValidationBlockBody) *SignaledBlock {
Expand Down
4 changes: 2 additions & 2 deletions pkg/model/version_and_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
const VersionAndHashSize = iotago.VersionLength + iotago.IdentifierLength

type VersionAndHash struct {
Version iotago.Version `serix:"0"`
Hash iotago.Identifier `serix:"1"`
Version iotago.Version `serix:""`
Hash iotago.Identifier `serix:""`
}

func (v VersionAndHash) Bytes() ([]byte, error) {
Expand Down
8 changes: 4 additions & 4 deletions pkg/network/protocols/core/warp_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
)

type WarpSyncPayload struct {
BlockIDsBySlotCommitmentID map[iotago.CommitmentID]iotago.BlockIDs `serix:"0,lengthPrefixType=uint32"`
TangleMerkleProof *merklehasher.Proof[iotago.Identifier] `serix:"1"`
TransactionIDs iotago.TransactionIDs `serix:"2"`
MutationsMerkleProof *merklehasher.Proof[iotago.Identifier] `serix:"3"`
BlockIDsBySlotCommitmentID map[iotago.CommitmentID]iotago.BlockIDs `serix:",lenPrefix=uint32"`
TangleMerkleProof *merklehasher.Proof[iotago.Identifier] `serix:""`
TransactionIDs iotago.TransactionIDs `serix:""`
MutationsMerkleProof *merklehasher.Proof[iotago.Identifier] `serix:""`
}

func (p *Protocol) SendWarpSyncRequest(id iotago.CommitmentID, to ...peer.ID) {
Expand Down
6 changes: 3 additions & 3 deletions pkg/protocol/engine/accounts/mana.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

// Mana is the stored and potential mana value of an account collected on the UTXO layer - used by the Scheduler.
type Mana struct {
value iotago.Mana `serix:"0"`
excessBaseTokens iotago.BaseToken `serix:"1"`
updateTime iotago.SlotIndex `serix:"2"`
value iotago.Mana `serix:""`
excessBaseTokens iotago.BaseToken `serix:""`
updateTime iotago.SlotIndex `serix:""`

mutex syncutils.RWMutex
}
Expand Down
18 changes: 9 additions & 9 deletions tools/gendoc/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,21 @@ require (
github.com/iancoleman/orderedmap v0.3.0 // indirect
github.com/iotaledger/grocksdb v1.7.5-0.20230220105546-5162e18885c7 // indirect
github.com/iotaledger/hive.go/ads v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/constraints v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/crypto v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/constraints v0.0.0-20231108162616-bab25251edc4 // indirect
github.com/iotaledger/hive.go/core v1.0.0-rc.3.0.20231108162616-bab25251edc4 // indirect
github.com/iotaledger/hive.go/crypto v0.0.0-20231108162616-bab25251edc4 // indirect
github.com/iotaledger/hive.go/ds v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/ierrors v0.0.0-20231108162616-bab25251edc4 // indirect
github.com/iotaledger/hive.go/kvstore v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/lo v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/lo v0.0.0-20231108162616-bab25251edc4 // indirect
github.com/iotaledger/hive.go/log v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/logger v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/runtime v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/stringify v0.0.0-20231108070813-497ebfef8258 // indirect
github.com/iotaledger/hive.go/runtime v0.0.0-20231108162616-bab25251edc4 // indirect
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20231108162616-bab25251edc4 // indirect
github.com/iotaledger/hive.go/stringify v0.0.0-20231108162616-bab25251edc4 // indirect
github.com/iotaledger/inx-app v1.0.0-rc.3.0.20231108104504-1445f545de82 // indirect
github.com/iotaledger/inx/go v1.0.0-rc.2.0.20231108104322-f301c3573998 // indirect
github.com/iotaledger/iota.go/v4 v4.0.0-20231108103955-bf75d703d8aa // indirect
github.com/iotaledger/iota.go/v4 v4.0.0-20231108163058-11a75294e3ce // indirect
github.com/ipfs/boxo v0.13.1 // indirect
github.com/ipfs/go-cid v0.4.1 // indirect
github.com/ipfs/go-datastore v0.6.0 // indirect
Expand Down
Loading

0 comments on commit d677c23

Please sign in to comment.