Skip to content

Commit 9f273f8

Browse files
committed
feat: Add NodeV3OptOutMetadataUpdated event and related error codes to Go client
1 parent a3d2498 commit 9f273f8

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

clients/tfchain-client-go/events.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,13 @@ type TwinAdminRemoved struct {
350350
Topics []types.Hash
351351
}
352352

353+
type NodeV3OptOutMetadataUpdated struct {
354+
Phase types.Phase
355+
NodeID types.U32 `json:"node_id"`
356+
Metadata types.OptionBytes `json:"metadata"`
357+
Topics []types.Hash
358+
}
359+
353360
type EventSchedulerCallUnavailable struct {
354361
Phase types.Phase
355362
Task types.TaskAddress
@@ -489,6 +496,7 @@ type EventRecords struct {
489496
TfgridModule_NodeV3BillingOptedOut []NodeV3BillingOptedOut //nolint:stylecheck,golint
490497
TfgridModule_TwinAdminAdded []TwinAdminAdded //nolint:stylecheck,golint
491498
TfgridModule_TwinAdminRemoved []TwinAdminRemoved //nolint:stylecheck,golint
499+
TfgridModule_NodeV3OptOutMetadataUpdated []NodeV3OptOutMetadataUpdated //nolint:stylecheck,golint
492500

493501
// burn module events
494502
BurningModule_BurnTransactionCreated []BurnTransactionCreated //nolint:stylecheck,golint

clients/tfchain-client-go/utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ var tfgridModuleErrors = []string{
257257
"AlreadyTwinAdmin",
258258
"NotTwinAdmin",
259259
"TwinAdminListFull",
260+
"NodeNotOptedOutOfV3Billing",
261+
"NodeV3OptOutMetadataTooLong",
260262
}
261263

262264
// https://github.com/threefoldtech/tfchain/blob/development/substrate-node/pallets/pallet-tft-bridge/src/lib.rs#L152

0 commit comments

Comments
 (0)