github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/cli/smartcontract/testdata/rpcbindings/structs/structs.go (about) 1 package structs 2 3 import ( 4 "github.com/nspcc-dev/neo-go/pkg/interop" 5 "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger" 6 "github.com/nspcc-dev/neo-go/pkg/interop/native/management" 7 ) 8 9 type Internal struct { 10 Bool bool 11 Int int 12 Bytes []byte 13 String string 14 H160 interop.Hash160 15 H256 interop.Hash256 16 PK interop.PublicKey 17 PubKey interop.PublicKey 18 Sign interop.Signature 19 ArrOfBytes [][]byte 20 ArrOfH160 []interop.Hash160 21 Map map[int][]interop.PublicKey 22 Struct *Internal 23 unexportedField int // this one should be exported in the resulting RPC binding. 24 } 25 26 func Contract(mc management.Contract) management.Contract { 27 return mc 28 } 29 30 func Block(b *ledger.Block) *ledger.Block { 31 return b 32 } 33 34 func Transaction(t *ledger.Transaction) *ledger.Transaction { 35 return t 36 } 37 38 func Struct(s *Internal) *Internal { 39 return s 40 }