mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-12 21:10:36 +00:00
b4c0fcfaad
It helps us to keep the index clean and ordered. When some new RPC binding test should be added, we don't need to search for a suitable place for it. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
40 lines
948 B
Go
40 lines
948 B
Go
package structs
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/interop"
|
|
"github.com/nspcc-dev/neo-go/pkg/interop/native/ledger"
|
|
"github.com/nspcc-dev/neo-go/pkg/interop/native/management"
|
|
)
|
|
|
|
type Internal struct {
|
|
Bool bool
|
|
Int int
|
|
Bytes []byte
|
|
String string
|
|
H160 interop.Hash160
|
|
H256 interop.Hash256
|
|
PK interop.PublicKey
|
|
PubKey interop.PublicKey
|
|
Sign interop.Signature
|
|
ArrOfBytes [][]byte
|
|
ArrOfH160 []interop.Hash160
|
|
Map map[int][]interop.PublicKey
|
|
Struct *Internal
|
|
unexportedField int // this one should be exported in the resulting RPC binding.
|
|
}
|
|
|
|
func Contract(mc management.Contract) management.Contract {
|
|
return mc
|
|
}
|
|
|
|
func Block(b *ledger.Block) *ledger.Block {
|
|
return b
|
|
}
|
|
|
|
func Transaction(t *ledger.Transaction) *ledger.Transaction {
|
|
return t
|
|
}
|
|
|
|
func Struct(s *Internal) *Internal {
|
|
return s
|
|
}
|