mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-05-19 13:26:38 +00:00

* added signing authority (dao) to the keeper to enable dao signing checks * added UpdateParam message for the machine module --------- Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
58 lines
1.7 KiB
Protocol Buffer
58 lines
1.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package planetmintgo.machine;
|
|
|
|
import "planetmintgo/machine/machine.proto";
|
|
import "planetmintgo/machine/trust_anchor.proto";
|
|
import "planetmintgo/machine/liquid_asset.proto";
|
|
import "planetmintgo/machine/params.proto";
|
|
import "amino/amino.proto";
|
|
import "gogoproto/gogo.proto";
|
|
import "cosmos_proto/cosmos.proto";
|
|
import "cosmos/msg/v1/msg.proto";
|
|
|
|
option go_package = "github.com/planetmint/planetmint-go/x/machine/types";
|
|
|
|
// Msg defines the Msg service.
|
|
service Msg {
|
|
rpc AttestMachine (MsgAttestMachine ) returns (MsgAttestMachineResponse );
|
|
rpc RegisterTrustAnchor (MsgRegisterTrustAnchor) returns (MsgRegisterTrustAnchorResponse);
|
|
rpc NotarizeLiquidAsset (MsgNotarizeLiquidAsset) returns (MsgNotarizeLiquidAssetResponse);
|
|
rpc UpdateParams (MsgUpdateParams ) returns (MsgUpdateParamsResponse );
|
|
}
|
|
message MsgAttestMachine {
|
|
string creator = 1;
|
|
Machine machine = 2;
|
|
}
|
|
|
|
message MsgAttestMachineResponse {}
|
|
|
|
message MsgRegisterTrustAnchor {
|
|
string creator = 1;
|
|
TrustAnchor trustAnchor = 2;
|
|
}
|
|
|
|
message MsgRegisterTrustAnchorResponse {}
|
|
|
|
message MsgNotarizeLiquidAsset {
|
|
string creator = 1;
|
|
LiquidAsset notarization = 2;
|
|
}
|
|
|
|
message MsgNotarizeLiquidAssetResponse {}
|
|
|
|
message MsgUpdateParams {
|
|
option (cosmos.msg.v1.signer) = "authority";
|
|
|
|
// authority is the address that controls the module (defaults to x/gov unless overwritten).
|
|
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
|
|
// params defines the x/dao parameters to update.
|
|
|
|
// NOTE: All parameters must be supplied.
|
|
Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
|
}
|
|
|
|
message MsgUpdateParamsResponse {}
|
|
|