github.com/MetalBlockchain/metalgo@v1.11.9/vms/example/xsvm/tx/import.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package tx 5 6 var _ Unsigned = (*Import)(nil) 7 8 type Import struct { 9 // Nonce provides internal chain replay protection 10 Nonce uint64 `serialize:"true" json:"nonce"` 11 MaxFee uint64 `serialize:"true" json:"maxFee"` 12 // Message includes the chainIDs to provide cross chain replay protection 13 Message []byte `serialize:"true" json:"message"` 14 } 15 16 func (i *Import) Visit(v Visitor) error { 17 return v.Import(i) 18 }