github.com/Night-mk/quorum@v21.1.0+incompatible/extension/types.go (about)

     1  package extension
     2  
     3  import (
     4  	"github.com/ethereum/go-ethereum"
     5  	"github.com/ethereum/go-ethereum/common"
     6  	"github.com/ethereum/go-ethereum/extension/extensionContracts"
     7  )
     8  
     9  var (
    10  	//Log queries
    11  	newExtensionQuery = ethereum.FilterQuery{
    12  		FromBlock: nil,
    13  		ToBlock:   nil,
    14  		Topics:    [][]common.Hash{{common.HexToHash(extensionContracts.NewContractExtensionContractCreatedTopicHash)}},
    15  		Addresses: []common.Address{},
    16  	}
    17  
    18  	finishedExtensionQuery = ethereum.FilterQuery{
    19  		FromBlock: nil,
    20  		ToBlock:   nil,
    21  		Topics:    [][]common.Hash{{common.HexToHash(extensionContracts.ExtensionFinishedTopicHash)}},
    22  		Addresses: []common.Address{},
    23  	}
    24  
    25  	canPerformStateShareQuery = ethereum.FilterQuery{
    26  		FromBlock: nil,
    27  		ToBlock:   nil,
    28  		Topics:    [][]common.Hash{{common.HexToHash(extensionContracts.CanPerformStateShareTopicHash)}},
    29  		Addresses: []common.Address{},
    30  	}
    31  )
    32  
    33  type ExtensionContract struct {
    34  	ContractExtended          common.Address `json:"contractExtended"`
    35  	Initiator                 common.Address `json:"initiator"`
    36  	Recipient                 common.Address `json:"recipient"`
    37  	ManagementContractAddress common.Address `json:"managementContractAddress"`
    38  	RecipientPtmKey           string         `json:"recipientPtmKey"`
    39  	CreationData              []byte         `json:"creationData"`
    40  }