forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 3
/
visitor.go
23 lines (21 loc) · 889 Bytes
/
visitor.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package txs
// Allow vm to execute custom logic against the underlying transaction types.
type Visitor interface {
AddValidatorTx(*AddValidatorTx) error
AddSubnetValidatorTx(*AddSubnetValidatorTx) error
AddDelegatorTx(*AddDelegatorTx) error
CreateChainTx(*CreateChainTx) error
CreateSubnetTx(*CreateSubnetTx) error
ImportTx(*ImportTx) error
ExportTx(*ExportTx) error
AdvanceTimeTx(*AdvanceTimeTx) error
RewardValidatorTx(*RewardValidatorTx) error
RemoveSubnetValidatorTx(*RemoveSubnetValidatorTx) error
TransformSubnetTx(*TransformSubnetTx) error
AddPermissionlessValidatorTx(*AddPermissionlessValidatorTx) error
AddPermissionlessDelegatorTx(*AddPermissionlessDelegatorTx) error
TransferSubnetOwnershipTx(*TransferSubnetOwnershipTx) error
BaseTx(*BaseTx) error
}