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