github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/vm/invocations/invocation_tree.go (about)

     1  package invocations
     2  
     3  import (
     4  	"github.com/nspcc-dev/neo-go/pkg/util"
     5  )
     6  
     7  // Tree represents a tree with script hashes; when traversing it,
     8  // you can see how contracts called each other.
     9  type Tree struct {
    10  	Current util.Uint160 `json:"hash"`
    11  	Calls   []*Tree      `json:"call,omitempty"`
    12  }