node: use new action and module for accountant modify_balance
This commit is contained in:
parent
16418d190d
commit
0f123dedb1
|
@ -148,7 +148,7 @@ func tokenBridgeRegisterChain(req *nodev1.BridgeRegisterChain, timestamp time.Ti
|
|||
|
||||
// tokenBridgeModifyBalance converts a nodev1.TokenBridgeModifyBalance message to its canonical VAA representation.
|
||||
// Returns an error if the data is invalid.
|
||||
func tokenBridgeModifyBalance(req *nodev1.BridgeModifyBalance, timestamp time.Time, guardianSetIndex uint32, nonce uint32, sequence uint64) (*vaa.VAA, error) {
|
||||
func accountantModifyBalance(req *nodev1.AccountantModifyBalance, timestamp time.Time, guardianSetIndex uint32, nonce uint32, sequence uint64) (*vaa.VAA, error) {
|
||||
if req.TargetChainId > math.MaxUint16 {
|
||||
return nil, errors.New("invalid target_chain_id")
|
||||
}
|
||||
|
@ -188,7 +188,7 @@ func tokenBridgeModifyBalance(req *nodev1.BridgeModifyBalance, timestamp time.Ti
|
|||
copy(tokenAdress[:], b)
|
||||
|
||||
v := vaa.CreateGovernanceVAA(timestamp, nonce, sequence, guardianSetIndex,
|
||||
vaa.BodyTokenBridgeModifyBalance{
|
||||
vaa.BodyAccountantModifyBalance{
|
||||
Module: req.Module,
|
||||
TargetChainID: vaa.ChainID(req.TargetChainId),
|
||||
|
||||
|
@ -369,8 +369,8 @@ func (s *nodePrivilegedService) InjectGovernanceVAA(ctx context.Context, req *no
|
|||
v, err = tokenBridgeRegisterChain(payload.BridgeRegisterChain, timestamp, req.CurrentSetIndex, message.Nonce, message.Sequence)
|
||||
case *nodev1.GovernanceMessage_BridgeContractUpgrade:
|
||||
v, err = tokenBridgeUpgradeContract(payload.BridgeContractUpgrade, timestamp, req.CurrentSetIndex, message.Nonce, message.Sequence)
|
||||
case *nodev1.GovernanceMessage_BridgeModifyBalance:
|
||||
v, err = tokenBridgeModifyBalance(payload.BridgeModifyBalance, timestamp, req.CurrentSetIndex, message.Nonce, message.Sequence)
|
||||
case *nodev1.GovernanceMessage_AccountantModifyBalance:
|
||||
v, err = accountantModifyBalance(payload.AccountantModifyBalance, timestamp, req.CurrentSetIndex, message.Nonce, message.Sequence)
|
||||
case *nodev1.GovernanceMessage_WormchainStoreCode:
|
||||
v, err = wormchainStoreCode(payload.WormchainStoreCode, timestamp, req.CurrentSetIndex, message.Nonce, message.Sequence)
|
||||
case *nodev1.GovernanceMessage_WormchainInstantiateContract:
|
||||
|
|
|
@ -53,8 +53,8 @@ func runGovernanceVAAVerify(cmd *cobra.Command, args []string) {
|
|||
v, err = tokenBridgeRegisterChain(payload.BridgeRegisterChain, timestamp, req.CurrentSetIndex, message.Nonce, message.Sequence)
|
||||
case *nodev1.GovernanceMessage_BridgeContractUpgrade:
|
||||
v, err = tokenBridgeUpgradeContract(payload.BridgeContractUpgrade, timestamp, req.CurrentSetIndex, message.Nonce, message.Sequence)
|
||||
case *nodev1.GovernanceMessage_BridgeModifyBalance:
|
||||
v, err = tokenBridgeModifyBalance(payload.BridgeModifyBalance, timestamp, req.CurrentSetIndex, message.Nonce, message.Sequence)
|
||||
case *nodev1.GovernanceMessage_AccountantModifyBalance:
|
||||
v, err = accountantModifyBalance(payload.AccountantModifyBalance, timestamp, req.CurrentSetIndex, message.Nonce, message.Sequence)
|
||||
case *nodev1.GovernanceMessage_WormchainStoreCode:
|
||||
v, err = wormchainStoreCode(payload.WormchainStoreCode, timestamp, req.CurrentSetIndex, message.Nonce, message.Sequence)
|
||||
case *nodev1.GovernanceMessage_WormchainInstantiateContract:
|
||||
|
|
|
@ -155,10 +155,10 @@ type GovernanceMessage struct {
|
|||
// *GovernanceMessage_ContractUpgrade
|
||||
// *GovernanceMessage_BridgeRegisterChain
|
||||
// *GovernanceMessage_BridgeContractUpgrade
|
||||
// *GovernanceMessage_BridgeModifyBalance
|
||||
// *GovernanceMessage_WormchainStoreCode
|
||||
// *GovernanceMessage_WormchainInstantiateContract
|
||||
// *GovernanceMessage_WormchainMigrateContract
|
||||
// *GovernanceMessage_AccountantModifyBalance
|
||||
// *GovernanceMessage_CircleIntegrationUpdateWormholeFinality
|
||||
// *GovernanceMessage_CircleIntegrationRegisterEmitterAndDomain
|
||||
// *GovernanceMessage_CircleIntegrationUpgradeContractImplementation
|
||||
|
@ -246,13 +246,6 @@ func (x *GovernanceMessage) GetBridgeContractUpgrade() *BridgeUpgradeContract {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (x *GovernanceMessage) GetBridgeModifyBalance() *BridgeModifyBalance {
|
||||
if x, ok := x.GetPayload().(*GovernanceMessage_BridgeModifyBalance); ok {
|
||||
return x.BridgeModifyBalance
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GovernanceMessage) GetWormchainStoreCode() *WormchainStoreCode {
|
||||
if x, ok := x.GetPayload().(*GovernanceMessage_WormchainStoreCode); ok {
|
||||
return x.WormchainStoreCode
|
||||
|
@ -274,6 +267,13 @@ func (x *GovernanceMessage) GetWormchainMigrateContract() *WormchainMigrateContr
|
|||
return nil
|
||||
}
|
||||
|
||||
func (x *GovernanceMessage) GetAccountantModifyBalance() *AccountantModifyBalance {
|
||||
if x, ok := x.GetPayload().(*GovernanceMessage_AccountantModifyBalance); ok {
|
||||
return x.AccountantModifyBalance
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GovernanceMessage) GetCircleIntegrationUpdateWormholeFinality() *CircleIntegrationUpdateWormholeFinality {
|
||||
if x, ok := x.GetPayload().(*GovernanceMessage_CircleIntegrationUpdateWormholeFinality); ok {
|
||||
return x.CircleIntegrationUpdateWormholeFinality
|
||||
|
@ -315,10 +315,6 @@ type GovernanceMessage_BridgeContractUpgrade struct {
|
|||
BridgeContractUpgrade *BridgeUpgradeContract `protobuf:"bytes,13,opt,name=bridge_contract_upgrade,json=bridgeContractUpgrade,proto3,oneof"`
|
||||
}
|
||||
|
||||
type GovernanceMessage_BridgeModifyBalance struct {
|
||||
BridgeModifyBalance *BridgeModifyBalance `protobuf:"bytes,17,opt,name=bridge_modify_balance,json=bridgeModifyBalance,proto3,oneof"`
|
||||
}
|
||||
|
||||
type GovernanceMessage_WormchainStoreCode struct {
|
||||
WormchainStoreCode *WormchainStoreCode `protobuf:"bytes,14,opt,name=wormchain_store_code,json=wormchainStoreCode,proto3,oneof"`
|
||||
}
|
||||
|
@ -331,6 +327,11 @@ type GovernanceMessage_WormchainMigrateContract struct {
|
|||
WormchainMigrateContract *WormchainMigrateContract `protobuf:"bytes,16,opt,name=wormchain_migrate_contract,json=wormchainMigrateContract,proto3,oneof"`
|
||||
}
|
||||
|
||||
type GovernanceMessage_AccountantModifyBalance struct {
|
||||
// Global Accountant
|
||||
AccountantModifyBalance *AccountantModifyBalance `protobuf:"bytes,17,opt,name=accountant_modify_balance,json=accountantModifyBalance,proto3,oneof"`
|
||||
}
|
||||
|
||||
type GovernanceMessage_CircleIntegrationUpdateWormholeFinality struct {
|
||||
// Circle Integration
|
||||
CircleIntegrationUpdateWormholeFinality *CircleIntegrationUpdateWormholeFinality `protobuf:"bytes,18,opt,name=circle_integration_update_wormhole_finality,json=circleIntegrationUpdateWormholeFinality,proto3,oneof"`
|
||||
|
@ -352,14 +353,14 @@ func (*GovernanceMessage_BridgeRegisterChain) isGovernanceMessage_Payload() {}
|
|||
|
||||
func (*GovernanceMessage_BridgeContractUpgrade) isGovernanceMessage_Payload() {}
|
||||
|
||||
func (*GovernanceMessage_BridgeModifyBalance) isGovernanceMessage_Payload() {}
|
||||
|
||||
func (*GovernanceMessage_WormchainStoreCode) isGovernanceMessage_Payload() {}
|
||||
|
||||
func (*GovernanceMessage_WormchainInstantiateContract) isGovernanceMessage_Payload() {}
|
||||
|
||||
func (*GovernanceMessage_WormchainMigrateContract) isGovernanceMessage_Payload() {}
|
||||
|
||||
func (*GovernanceMessage_AccountantModifyBalance) isGovernanceMessage_Payload() {}
|
||||
|
||||
func (*GovernanceMessage_CircleIntegrationUpdateWormholeFinality) isGovernanceMessage_Payload() {}
|
||||
|
||||
func (*GovernanceMessage_CircleIntegrationRegisterEmitterAndDomain) isGovernanceMessage_Payload() {}
|
||||
|
@ -589,12 +590,12 @@ func (x *BridgeRegisterChain) GetEmitterAddress() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
type BridgeModifyBalance struct {
|
||||
type AccountantModifyBalance struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// Module identifier of the token or NFT bridge (typically "TokenBridge" or "NFTBridge")
|
||||
// Module identifier of the accountant "GlobalAccountant"
|
||||
Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
|
||||
// ID of the chain to receive this modify.
|
||||
TargetChainId uint32 `protobuf:"varint,2,opt,name=target_chain_id,json=targetChainId,proto3" json:"target_chain_id,omitempty"`
|
||||
|
@ -616,8 +617,8 @@ type BridgeModifyBalance struct {
|
|||
Reason string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason,omitempty"`
|
||||
}
|
||||
|
||||
func (x *BridgeModifyBalance) Reset() {
|
||||
*x = BridgeModifyBalance{}
|
||||
func (x *AccountantModifyBalance) Reset() {
|
||||
*x = AccountantModifyBalance{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_node_v1_node_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
@ -625,13 +626,13 @@ func (x *BridgeModifyBalance) Reset() {
|
|||
}
|
||||
}
|
||||
|
||||
func (x *BridgeModifyBalance) String() string {
|
||||
func (x *AccountantModifyBalance) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*BridgeModifyBalance) ProtoMessage() {}
|
||||
func (*AccountantModifyBalance) ProtoMessage() {}
|
||||
|
||||
func (x *BridgeModifyBalance) ProtoReflect() protoreflect.Message {
|
||||
func (x *AccountantModifyBalance) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_node_v1_node_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
|
@ -643,68 +644,68 @@ func (x *BridgeModifyBalance) ProtoReflect() protoreflect.Message {
|
|||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use BridgeModifyBalance.ProtoReflect.Descriptor instead.
|
||||
func (*BridgeModifyBalance) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use AccountantModifyBalance.ProtoReflect.Descriptor instead.
|
||||
func (*AccountantModifyBalance) Descriptor() ([]byte, []int) {
|
||||
return file_node_v1_node_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *BridgeModifyBalance) GetModule() string {
|
||||
func (x *AccountantModifyBalance) GetModule() string {
|
||||
if x != nil {
|
||||
return x.Module
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *BridgeModifyBalance) GetTargetChainId() uint32 {
|
||||
func (x *AccountantModifyBalance) GetTargetChainId() uint32 {
|
||||
if x != nil {
|
||||
return x.TargetChainId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *BridgeModifyBalance) GetSequence() uint64 {
|
||||
func (x *AccountantModifyBalance) GetSequence() uint64 {
|
||||
if x != nil {
|
||||
return x.Sequence
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *BridgeModifyBalance) GetChainId() uint32 {
|
||||
func (x *AccountantModifyBalance) GetChainId() uint32 {
|
||||
if x != nil {
|
||||
return x.ChainId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *BridgeModifyBalance) GetTokenChain() uint32 {
|
||||
func (x *AccountantModifyBalance) GetTokenChain() uint32 {
|
||||
if x != nil {
|
||||
return x.TokenChain
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *BridgeModifyBalance) GetTokenAddress() string {
|
||||
func (x *AccountantModifyBalance) GetTokenAddress() string {
|
||||
if x != nil {
|
||||
return x.TokenAddress
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *BridgeModifyBalance) GetKind() ModificationKind {
|
||||
func (x *AccountantModifyBalance) GetKind() ModificationKind {
|
||||
if x != nil {
|
||||
return x.Kind
|
||||
}
|
||||
return ModificationKind_MODIFICATION_KIND_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (x *BridgeModifyBalance) GetAmount() string {
|
||||
func (x *AccountantModifyBalance) GetAmount() string {
|
||||
if x != nil {
|
||||
return x.Amount
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *BridgeModifyBalance) GetReason() string {
|
||||
func (x *AccountantModifyBalance) GetReason() string {
|
||||
if x != nil {
|
||||
return x.Reason
|
||||
}
|
||||
|
@ -2221,7 +2222,7 @@ var file_node_v1_node_proto_rawDesc = []byte{
|
|||
0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08,
|
||||
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xd2, 0x09, 0x0a, 0x11, 0x47, 0x6f, 0x76, 0x65, 0x72,
|
||||
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xde, 0x09, 0x0a, 0x11, 0x47, 0x6f, 0x76, 0x65, 0x72,
|
||||
0x6e, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08,
|
||||
0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08,
|
||||
0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63,
|
||||
|
@ -2245,86 +2246,87 @@ var file_node_v1_node_proto_rawDesc = []byte{
|
|||
0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x55, 0x70, 0x67, 0x72,
|
||||
0x61, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x48, 0x00, 0x52, 0x15, 0x62,
|
||||
0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x55, 0x70, 0x67,
|
||||
0x72, 0x61, 0x64, 0x65, 0x12, 0x52, 0x0a, 0x15, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x6d,
|
||||
0x6f, 0x64, 0x69, 0x66, 0x79, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x11, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72,
|
||||
0x69, 0x64, 0x67, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63,
|
||||
0x65, 0x48, 0x00, 0x52, 0x13, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66,
|
||||
0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x14, 0x77, 0x6f, 0x72, 0x6d,
|
||||
0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65,
|
||||
0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31,
|
||||
0x2e, 0x57, 0x6f, 0x72, 0x6d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x43,
|
||||
0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x12, 0x77, 0x6f, 0x72, 0x6d, 0x63, 0x68, 0x61, 0x69, 0x6e,
|
||||
0x53, 0x74, 0x6f, 0x72, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x6d, 0x0a, 0x1e, 0x77, 0x6f, 0x72,
|
||||
0x6d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x69, 0x61,
|
||||
0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x25, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6d,
|
||||
0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x65,
|
||||
0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x48, 0x00, 0x52, 0x1c, 0x77, 0x6f, 0x72, 0x6d,
|
||||
0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x65,
|
||||
0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x61, 0x0a, 0x1a, 0x77, 0x6f, 0x72, 0x6d,
|
||||
0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x6f,
|
||||
0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6e,
|
||||
0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6d, 0x63, 0x68, 0x61, 0x69, 0x6e,
|
||||
0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x48,
|
||||
0x00, 0x52, 0x18, 0x77, 0x6f, 0x72, 0x6d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4d, 0x69, 0x67, 0x72,
|
||||
0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x90, 0x01, 0x0a, 0x2b,
|
||||
0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x77, 0x6f, 0x72, 0x6d, 0x68, 0x6f,
|
||||
0x6c, 0x65, 0x5f, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x12, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x30, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x69, 0x72, 0x63,
|
||||
0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64,
|
||||
0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6d, 0x68, 0x6f, 0x6c, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6c,
|
||||
0x69, 0x74, 0x79, 0x48, 0x00, 0x52, 0x27, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x74,
|
||||
0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f,
|
||||
0x72, 0x6d, 0x68, 0x6f, 0x6c, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x97,
|
||||
0x01, 0x0a, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72,
|
||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x65,
|
||||
0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69,
|
||||
0x6e, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x45, 0x6d, 0x69, 0x74, 0x74,
|
||||
0x65, 0x72, 0x41, 0x6e, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x48, 0x00, 0x52, 0x29, 0x63,
|
||||
0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x45, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x41,
|
||||
0x6e, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0xa5, 0x01, 0x0a, 0x32, 0x63, 0x69, 0x72,
|
||||
0x63, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
|
||||
0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74,
|
||||
0x5f, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
||||
0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f,
|
||||
0x6e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74,
|
||||
0x49, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00,
|
||||
0x52, 0x2e, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61,
|
||||
0x63, 0x74, 0x49, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||
0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x37, 0x0a, 0x1b, 0x49,
|
||||
0x6e, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x56,
|
||||
0x41, 0x41, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69,
|
||||
0x67, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x64, 0x69, 0x67,
|
||||
0x65, 0x73, 0x74, 0x73, 0x22, 0x8e, 0x01, 0x0a, 0x11, 0x47, 0x75, 0x61, 0x72, 0x64, 0x69, 0x61,
|
||||
0x6e, 0x53, 0x65, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x67, 0x75,
|
||||
0x61, 0x72, 0x64, 0x69, 0x61, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e,
|
||||
0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x75, 0x61, 0x72, 0x64, 0x69, 0x61, 0x6e,
|
||||
0x53, 0x65, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x75, 0x61, 0x72, 0x64, 0x69,
|
||||
0x61, 0x6e, 0x52, 0x09, 0x67, 0x75, 0x61, 0x72, 0x64, 0x69, 0x61, 0x6e, 0x73, 0x1a, 0x36, 0x0a,
|
||||
0x08, 0x47, 0x75, 0x61, 0x72, 0x64, 0x69, 0x61, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62,
|
||||
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65,
|
||||
0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x5b, 0x0a, 0x0b, 0x47, 0x75, 0x61, 0x72, 0x64, 0x69, 0x61,
|
||||
0x6e, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x18, 0x75, 0x6e, 0x73, 0x61,
|
||||
0x66, 0x65, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x69, 0x63,
|
||||
0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x75, 0x6e, 0x73, 0x61,
|
||||
0x66, 0x65, 0x44, 0x65, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x69, 0x63, 0x4b,
|
||||
0x65, 0x79, 0x22, 0x71, 0x0a, 0x13, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x67, 0x69,
|
||||
0x73, 0x74, 0x65, 0x72, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64,
|
||||
0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
|
||||
0x65, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f,
|
||||
0x65, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18,
|
||||
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x41, 0x64,
|
||||
0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xb1, 0x02, 0x0a, 0x13, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65,
|
||||
0x72, 0x61, 0x64, 0x65, 0x12, 0x4f, 0x0a, 0x14, 0x77, 0x6f, 0x72, 0x6d, 0x63, 0x68, 0x61, 0x69,
|
||||
0x6e, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x0e, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72,
|
||||
0x6d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x48,
|
||||
0x00, 0x52, 0x12, 0x77, 0x6f, 0x72, 0x6d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x6f, 0x72,
|
||||
0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x6d, 0x0a, 0x1e, 0x77, 0x6f, 0x72, 0x6d, 0x63, 0x68, 0x61,
|
||||
0x69, 0x6e, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x65, 0x5f, 0x63,
|
||||
0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e,
|
||||
0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6d, 0x63, 0x68, 0x61, 0x69,
|
||||
0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74,
|
||||
0x72, 0x61, 0x63, 0x74, 0x48, 0x00, 0x52, 0x1c, 0x77, 0x6f, 0x72, 0x6d, 0x63, 0x68, 0x61, 0x69,
|
||||
0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74,
|
||||
0x72, 0x61, 0x63, 0x74, 0x12, 0x61, 0x0a, 0x1a, 0x77, 0x6f, 0x72, 0x6d, 0x63, 0x68, 0x61, 0x69,
|
||||
0x6e, 0x5f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61,
|
||||
0x63, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4d, 0x69, 0x67, 0x72,
|
||||
0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x48, 0x00, 0x52, 0x18, 0x77,
|
||||
0x6f, 0x72, 0x6d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x43,
|
||||
0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x5e, 0x0a, 0x19, 0x61, 0x63, 0x63, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x61, 0x6e, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x5f, 0x62, 0x61, 0x6c,
|
||||
0x61, 0x6e, 0x63, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6e, 0x6f, 0x64,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x61, 0x6e, 0x74, 0x4d,
|
||||
0x6f, 0x64, 0x69, 0x66, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x17,
|
||||
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x61, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79,
|
||||
0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x90, 0x01, 0x0a, 0x2b, 0x63, 0x69, 0x72, 0x63,
|
||||
0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x77, 0x6f, 0x72, 0x6d, 0x68, 0x6f, 0x6c, 0x65, 0x5f, 0x66,
|
||||
0x69, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e,
|
||||
0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e,
|
||||
0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57,
|
||||
0x6f, 0x72, 0x6d, 0x68, 0x6f, 0x6c, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x48,
|
||||
0x00, 0x52, 0x27, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
||||
0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6d, 0x68, 0x6f,
|
||||
0x6c, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x97, 0x01, 0x0a, 0x2e, 0x63,
|
||||
0x69, 0x72, 0x63, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f,
|
||||
0x6e, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x65, 0x6d, 0x69, 0x74, 0x74,
|
||||
0x65, 0x72, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x13, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x69,
|
||||
0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
|
||||
0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x45, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x41, 0x6e,
|
||||
0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x48, 0x00, 0x52, 0x29, 0x63, 0x69, 0x72, 0x63, 0x6c,
|
||||
0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x67, 0x69,
|
||||
0x73, 0x74, 0x65, 0x72, 0x45, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x44, 0x6f,
|
||||
0x6d, 0x61, 0x69, 0x6e, 0x12, 0xa5, 0x01, 0x0a, 0x32, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x5f,
|
||||
0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x70, 0x67, 0x72,
|
||||
0x61, 0x64, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x6d, 0x70,
|
||||
0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x14, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x37, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x69, 0x72, 0x63,
|
||||
0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x67,
|
||||
0x72, 0x61, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x6d, 0x70, 0x6c,
|
||||
0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x2e, 0x63, 0x69,
|
||||
0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55,
|
||||
0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x6d,
|
||||
0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07,
|
||||
0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x37, 0x0a, 0x1b, 0x49, 0x6e, 0x6a, 0x65, 0x63,
|
||||
0x74, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x41, 0x41, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74,
|
||||
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x73,
|
||||
0x22, 0x8e, 0x01, 0x0a, 0x11, 0x47, 0x75, 0x61, 0x72, 0x64, 0x69, 0x61, 0x6e, 0x53, 0x65, 0x74,
|
||||
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x67, 0x75, 0x61, 0x72, 0x64, 0x69,
|
||||
0x61, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6e, 0x6f, 0x64, 0x65,
|
||||
0x2e, 0x76, 0x31, 0x2e, 0x47, 0x75, 0x61, 0x72, 0x64, 0x69, 0x61, 0x6e, 0x53, 0x65, 0x74, 0x55,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x75, 0x61, 0x72, 0x64, 0x69, 0x61, 0x6e, 0x52, 0x09,
|
||||
0x67, 0x75, 0x61, 0x72, 0x64, 0x69, 0x61, 0x6e, 0x73, 0x1a, 0x36, 0x0a, 0x08, 0x47, 0x75, 0x61,
|
||||
0x72, 0x64, 0x69, 0x61, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a,
|
||||
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
|
||||
0x65, 0x22, 0x5b, 0x0a, 0x0b, 0x47, 0x75, 0x61, 0x72, 0x64, 0x69, 0x61, 0x6e, 0x4b, 0x65, 0x79,
|
||||
0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04,
|
||||
0x64, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x18, 0x75, 0x6e, 0x73, 0x61, 0x66, 0x65, 0x5f, 0x64,
|
||||
0x65, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x75, 0x6e, 0x73, 0x61, 0x66, 0x65, 0x44, 0x65,
|
||||
0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x71,
|
||||
0x0a, 0x13, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72,
|
||||
0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x19, 0x0a,
|
||||
0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
||||
0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6d, 0x69, 0x74,
|
||||
0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x0e, 0x65, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
|
||||
0x73, 0x22, 0xb5, 0x02, 0x0a, 0x17, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x61, 0x6e, 0x74,
|
||||
0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x16, 0x0a,
|
||||
0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d,
|
||||
0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f,
|
||||
|
@ -2604,7 +2606,7 @@ var file_node_v1_node_proto_goTypes = []interface{}{
|
|||
(*GuardianSetUpdate)(nil), // 4: node.v1.GuardianSetUpdate
|
||||
(*GuardianKey)(nil), // 5: node.v1.GuardianKey
|
||||
(*BridgeRegisterChain)(nil), // 6: node.v1.BridgeRegisterChain
|
||||
(*BridgeModifyBalance)(nil), // 7: node.v1.BridgeModifyBalance
|
||||
(*AccountantModifyBalance)(nil), // 7: node.v1.AccountantModifyBalance
|
||||
(*ContractUpgrade)(nil), // 8: node.v1.ContractUpgrade
|
||||
(*BridgeUpgradeContract)(nil), // 9: node.v1.BridgeUpgradeContract
|
||||
(*WormchainStoreCode)(nil), // 10: node.v1.WormchainStoreCode
|
||||
|
@ -2643,15 +2645,15 @@ var file_node_v1_node_proto_depIdxs = []int32{
|
|||
8, // 2: node.v1.GovernanceMessage.contract_upgrade:type_name -> node.v1.ContractUpgrade
|
||||
6, // 3: node.v1.GovernanceMessage.bridge_register_chain:type_name -> node.v1.BridgeRegisterChain
|
||||
9, // 4: node.v1.GovernanceMessage.bridge_contract_upgrade:type_name -> node.v1.BridgeUpgradeContract
|
||||
7, // 5: node.v1.GovernanceMessage.bridge_modify_balance:type_name -> node.v1.BridgeModifyBalance
|
||||
10, // 6: node.v1.GovernanceMessage.wormchain_store_code:type_name -> node.v1.WormchainStoreCode
|
||||
11, // 7: node.v1.GovernanceMessage.wormchain_instantiate_contract:type_name -> node.v1.WormchainInstantiateContract
|
||||
12, // 8: node.v1.GovernanceMessage.wormchain_migrate_contract:type_name -> node.v1.WormchainMigrateContract
|
||||
10, // 5: node.v1.GovernanceMessage.wormchain_store_code:type_name -> node.v1.WormchainStoreCode
|
||||
11, // 6: node.v1.GovernanceMessage.wormchain_instantiate_contract:type_name -> node.v1.WormchainInstantiateContract
|
||||
12, // 7: node.v1.GovernanceMessage.wormchain_migrate_contract:type_name -> node.v1.WormchainMigrateContract
|
||||
7, // 8: node.v1.GovernanceMessage.accountant_modify_balance:type_name -> node.v1.AccountantModifyBalance
|
||||
13, // 9: node.v1.GovernanceMessage.circle_integration_update_wormhole_finality:type_name -> node.v1.CircleIntegrationUpdateWormholeFinality
|
||||
14, // 10: node.v1.GovernanceMessage.circle_integration_register_emitter_and_domain:type_name -> node.v1.CircleIntegrationRegisterEmitterAndDomain
|
||||
15, // 11: node.v1.GovernanceMessage.circle_integration_upgrade_contract_implementation:type_name -> node.v1.CircleIntegrationUpgradeContractImplementation
|
||||
36, // 12: node.v1.GuardianSetUpdate.guardians:type_name -> node.v1.GuardianSetUpdate.Guardian
|
||||
0, // 13: node.v1.BridgeModifyBalance.kind:type_name -> node.v1.ModificationKind
|
||||
0, // 13: node.v1.AccountantModifyBalance.kind:type_name -> node.v1.ModificationKind
|
||||
38, // 14: node.v1.SendObservationRequestRequest.observation_request:type_name -> gossip.v1.ObservationRequest
|
||||
37, // 15: node.v1.DumpRPCsResponse.response:type_name -> node.v1.DumpRPCsResponse.ResponseEntry
|
||||
1, // 16: node.v1.NodePrivilegedService.InjectGovernanceVAA:input_type -> node.v1.InjectGovernanceVAARequest
|
||||
|
@ -2762,7 +2764,7 @@ func file_node_v1_node_proto_init() {
|
|||
}
|
||||
}
|
||||
file_node_v1_node_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*BridgeModifyBalance); i {
|
||||
switch v := v.(*AccountantModifyBalance); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
|
@ -3127,10 +3129,10 @@ func file_node_v1_node_proto_init() {
|
|||
(*GovernanceMessage_ContractUpgrade)(nil),
|
||||
(*GovernanceMessage_BridgeRegisterChain)(nil),
|
||||
(*GovernanceMessage_BridgeContractUpgrade)(nil),
|
||||
(*GovernanceMessage_BridgeModifyBalance)(nil),
|
||||
(*GovernanceMessage_WormchainStoreCode)(nil),
|
||||
(*GovernanceMessage_WormchainInstantiateContract)(nil),
|
||||
(*GovernanceMessage_WormchainMigrateContract)(nil),
|
||||
(*GovernanceMessage_AccountantModifyBalance)(nil),
|
||||
(*GovernanceMessage_CircleIntegrationUpdateWormholeFinality)(nil),
|
||||
(*GovernanceMessage_CircleIntegrationRegisterEmitterAndDomain)(nil),
|
||||
(*GovernanceMessage_CircleIntegrationUpgradeContractImplementation)(nil),
|
||||
|
|
|
@ -86,7 +86,6 @@ message GovernanceMessage {
|
|||
|
||||
BridgeRegisterChain bridge_register_chain = 12;
|
||||
BridgeUpgradeContract bridge_contract_upgrade = 13;
|
||||
BridgeModifyBalance bridge_modify_balance = 17;
|
||||
|
||||
// Wormchain
|
||||
|
||||
|
@ -94,6 +93,9 @@ message GovernanceMessage {
|
|||
WormchainInstantiateContract wormchain_instantiate_contract = 15;
|
||||
WormchainMigrateContract wormchain_migrate_contract = 16;
|
||||
|
||||
// Global Accountant
|
||||
AccountantModifyBalance accountant_modify_balance = 17;
|
||||
|
||||
// Circle Integration
|
||||
CircleIntegrationUpdateWormholeFinality circle_integration_update_wormhole_finality = 18;
|
||||
CircleIntegrationRegisterEmitterAndDomain circle_integration_register_emitter_and_domain = 19;
|
||||
|
@ -146,8 +148,8 @@ enum ModificationKind {
|
|||
MODIFICATION_KIND_SUBTRACT = 2;
|
||||
}
|
||||
|
||||
message BridgeModifyBalance {
|
||||
// Module identifier of the token or NFT bridge (typically "TokenBridge" or "NFTBridge")
|
||||
message AccountantModifyBalance {
|
||||
// Module identifier of the accountant "GlobalAccountant"
|
||||
string module = 1;
|
||||
// ID of the chain to receive this modify.
|
||||
uint32 target_chain_id = 2;
|
||||
|
|
|
@ -35,10 +35,12 @@ var (
|
|||
ActionInstantiateContract GovernanceAction = 2
|
||||
ActionMigrateContract GovernanceAction = 3
|
||||
|
||||
// Accountant goverance actions
|
||||
ActionModifyBalance GovernanceAction = 1
|
||||
|
||||
// Wormhole tokenbridge governance actions
|
||||
ActionRegisterChain GovernanceAction = 1
|
||||
ActionUpgradeTokenBridge GovernanceAction = 2
|
||||
ActionModifyBalance GovernanceAction = 3
|
||||
|
||||
// Circle Integration governance actions
|
||||
CircleIntegrationActionUpdateWormholeFinality GovernanceAction = 1
|
||||
|
@ -74,7 +76,7 @@ type (
|
|||
}
|
||||
|
||||
// BodyTokenBridgeModifyBalance is a governance message to modify accountant balances for the tokenbridge.
|
||||
BodyTokenBridgeModifyBalance struct {
|
||||
BodyAccountantModifyBalance struct {
|
||||
Module string
|
||||
TargetChainID ChainID
|
||||
Sequence uint64
|
||||
|
@ -165,7 +167,7 @@ func (r BodyTokenBridgeUpgradeContract) Serialize() []byte {
|
|||
return serializeBridgeGovernanceVaa(r.Module, ActionUpgradeTokenBridge, r.TargetChainID, r.NewContract[:])
|
||||
}
|
||||
|
||||
func (r BodyTokenBridgeModifyBalance) Serialize() []byte {
|
||||
func (r BodyAccountantModifyBalance) Serialize() []byte {
|
||||
payload := &bytes.Buffer{}
|
||||
MustWrite(payload, binary.BigEndian, r.Sequence)
|
||||
MustWrite(payload, binary.BigEndian, r.ChainId)
|
||||
|
|
Loading…
Reference in New Issue