mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
added PreviousAppHash to the x/dao params. Thus enabling notarzation of the app hash of a previous chain state
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
55b7065744
commit
ce38030755
6
docs/static/openapi.yml
vendored
6
docs/static/openapi.yml
vendored
@ -47048,6 +47048,8 @@ paths:
|
|||||||
tx_gas_limit:
|
tx_gas_limit:
|
||||||
type: string
|
type: string
|
||||||
format: uint64
|
format: uint64
|
||||||
|
previous_app_hash:
|
||||||
|
type: string
|
||||||
description: >-
|
description: >-
|
||||||
QueryParamsResponse is response type for the Query/Params RPC
|
QueryParamsResponse is response type for the Query/Params RPC
|
||||||
method.
|
method.
|
||||||
@ -76717,6 +76719,8 @@ definitions:
|
|||||||
tx_gas_limit:
|
tx_gas_limit:
|
||||||
type: string
|
type: string
|
||||||
format: uint64
|
format: uint64
|
||||||
|
previous_app_hash:
|
||||||
|
type: string
|
||||||
description: Params defines the parameters for the module.
|
description: Params defines the parameters for the module.
|
||||||
planetmintgo.dao.QueryAllRedeemClaimResponse:
|
planetmintgo.dao.QueryAllRedeemClaimResponse:
|
||||||
type: object
|
type: object
|
||||||
@ -76992,6 +76996,8 @@ definitions:
|
|||||||
tx_gas_limit:
|
tx_gas_limit:
|
||||||
type: string
|
type: string
|
||||||
format: uint64
|
format: uint64
|
||||||
|
previous_app_hash:
|
||||||
|
type: string
|
||||||
description: QueryParamsResponse is response type for the Query/Params RPC method.
|
description: QueryParamsResponse is response type for the Query/Params RPC method.
|
||||||
planetmintgo.dao.QueryRedeemClaimByLiquidTxHashResponse:
|
planetmintgo.dao.QueryRedeemClaimByLiquidTxHashResponse:
|
||||||
type: object
|
type: object
|
||||||
|
@ -25,4 +25,5 @@ message Params {
|
|||||||
int64 mqtt_response_timeout = 14;
|
int64 mqtt_response_timeout = 14;
|
||||||
string claim_address = 15;
|
string claim_address = 15;
|
||||||
uint64 tx_gas_limit = 16;
|
uint64 tx_gas_limit = 16;
|
||||||
|
string previous_app_hash = 17;
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ func NewParams(mintAddress string, tokenDenom string, stagedDenom string,
|
|||||||
claimDenom string, reissuanceAsset string, reissuanceEpochs int64, popEpochs int64,
|
claimDenom string, reissuanceAsset string, reissuanceEpochs int64, popEpochs int64,
|
||||||
distributionOffset int64, distributionAddressEarlyInv string, distributionAddressInvestor string,
|
distributionOffset int64, distributionAddressEarlyInv string, distributionAddressInvestor string,
|
||||||
distributionAddressStrategic string, distributionAddressDao string, distributionAddressPop string,
|
distributionAddressStrategic string, distributionAddressDao string, distributionAddressPop string,
|
||||||
mqttResponseTimeout int64, claimAddress string, txGasLimit uint64) Params {
|
mqttResponseTimeout int64, claimAddress string, txGasLimit uint64, previousAppHash string) Params {
|
||||||
return Params{
|
return Params{
|
||||||
MintAddress: mintAddress,
|
MintAddress: mintAddress,
|
||||||
TokenDenom: tokenDenom,
|
TokenDenom: tokenDenom,
|
||||||
@ -42,6 +42,7 @@ func NewParams(mintAddress string, tokenDenom string, stagedDenom string,
|
|||||||
MqttResponseTimeout: mqttResponseTimeout,
|
MqttResponseTimeout: mqttResponseTimeout,
|
||||||
ClaimAddress: claimAddress,
|
ClaimAddress: claimAddress,
|
||||||
TxGasLimit: txGasLimit,
|
TxGasLimit: txGasLimit,
|
||||||
|
PreviousAppHash: previousAppHash,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,7 +64,8 @@ func DefaultParams() Params {
|
|||||||
"vjTvXCFSReRsZ7grdsAreRR12KuKpDw8idueQJK9Yh1BYS7ggAqgvCxCgwh13KGK6M52y37HUmvr4GdD",
|
"vjTvXCFSReRsZ7grdsAreRR12KuKpDw8idueQJK9Yh1BYS7ggAqgvCxCgwh13KGK6M52y37HUmvr4GdD",
|
||||||
2000,
|
2000,
|
||||||
"plmnt1w5dww335zhh98pzv783hqre355ck3u4w4hjxcx",
|
"plmnt1w5dww335zhh98pzv783hqre355ck3u4w4hjxcx",
|
||||||
200000)
|
200000,
|
||||||
|
"")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParamSetPairs get the params.ParamSet
|
// ParamSetPairs get the params.ParamSet
|
||||||
|
@ -41,6 +41,7 @@ type Params struct {
|
|||||||
MqttResponseTimeout int64 `protobuf:"varint,14,opt,name=mqtt_response_timeout,json=mqttResponseTimeout,proto3" json:"mqtt_response_timeout,omitempty"`
|
MqttResponseTimeout int64 `protobuf:"varint,14,opt,name=mqtt_response_timeout,json=mqttResponseTimeout,proto3" json:"mqtt_response_timeout,omitempty"`
|
||||||
ClaimAddress string `protobuf:"bytes,15,opt,name=claim_address,json=claimAddress,proto3" json:"claim_address,omitempty"`
|
ClaimAddress string `protobuf:"bytes,15,opt,name=claim_address,json=claimAddress,proto3" json:"claim_address,omitempty"`
|
||||||
TxGasLimit uint64 `protobuf:"varint,16,opt,name=tx_gas_limit,json=txGasLimit,proto3" json:"tx_gas_limit,omitempty"`
|
TxGasLimit uint64 `protobuf:"varint,16,opt,name=tx_gas_limit,json=txGasLimit,proto3" json:"tx_gas_limit,omitempty"`
|
||||||
|
PreviousAppHash string `protobuf:"bytes,17,opt,name=previous_app_hash,json=previousAppHash,proto3" json:"previous_app_hash,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Params) Reset() { *m = Params{} }
|
func (m *Params) Reset() { *m = Params{} }
|
||||||
@ -187,6 +188,13 @@ func (m *Params) GetTxGasLimit() uint64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *Params) GetPreviousAppHash() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.PreviousAppHash
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*Params)(nil), "planetmintgo.dao.Params")
|
proto.RegisterType((*Params)(nil), "planetmintgo.dao.Params")
|
||||||
}
|
}
|
||||||
@ -194,38 +202,40 @@ func init() {
|
|||||||
func init() { proto.RegisterFile("planetmintgo/dao/params.proto", fileDescriptor_a58575036b3ad531) }
|
func init() { proto.RegisterFile("planetmintgo/dao/params.proto", fileDescriptor_a58575036b3ad531) }
|
||||||
|
|
||||||
var fileDescriptor_a58575036b3ad531 = []byte{
|
var fileDescriptor_a58575036b3ad531 = []byte{
|
||||||
// 493 bytes of a gzipped FileDescriptorProto
|
// 518 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xb1, 0x6f, 0x13, 0x31,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xc1, 0x8f, 0x12, 0x31,
|
||||||
0x14, 0xc6, 0x73, 0x34, 0x0d, 0xc4, 0x49, 0x69, 0x70, 0x01, 0x59, 0x40, 0x2e, 0x01, 0x96, 0x20,
|
0x14, 0xc6, 0x19, 0x17, 0x51, 0x0a, 0xeb, 0x42, 0x57, 0x4d, 0xa3, 0x32, 0xa0, 0x5e, 0x50, 0x23,
|
||||||
0x44, 0x4e, 0x82, 0x05, 0xb1, 0xb5, 0xa4, 0x42, 0x91, 0x90, 0xa8, 0x02, 0x13, 0x8b, 0xe5, 0xdc,
|
0x93, 0xe8, 0xc5, 0x78, 0x63, 0x65, 0xa3, 0x24, 0x26, 0x6e, 0xd0, 0x93, 0x97, 0xa6, 0x30, 0xdd,
|
||||||
0xb9, 0x57, 0x8b, 0x9c, 0x9f, 0x39, 0xbf, 0x44, 0xe9, 0x7f, 0xc1, 0xc8, 0xc8, 0x9f, 0xc3, 0xd8,
|
0xa1, 0x91, 0x99, 0x57, 0xa7, 0x0f, 0xc2, 0xfe, 0x17, 0x1e, 0x3d, 0x7a, 0xf4, 0x4f, 0xf1, 0xb8,
|
||||||
0x91, 0x11, 0x25, 0xff, 0x06, 0x03, 0xb2, 0xef, 0xa2, 0x5e, 0xa5, 0x64, 0xb3, 0xbe, 0xef, 0xf7,
|
0x47, 0x8f, 0x06, 0xfe, 0x11, 0x33, 0xed, 0x4c, 0x76, 0x36, 0x81, 0x5b, 0xf3, 0x7d, 0xbf, 0xef,
|
||||||
0x7d, 0xb6, 0xac, 0xf7, 0x48, 0xd7, 0xcc, 0x84, 0x96, 0x98, 0x29, 0x8d, 0x29, 0x44, 0x89, 0x80,
|
0x6b, 0xd3, 0xbc, 0x47, 0x3a, 0x7a, 0x21, 0x12, 0x89, 0xb1, 0x4a, 0x30, 0x82, 0x20, 0x14, 0x10,
|
||||||
0xc8, 0x88, 0x5c, 0x64, 0x76, 0x68, 0x72, 0x40, 0xa0, 0x9d, 0xaa, 0x3d, 0x4c, 0x04, 0x3c, 0xba,
|
0x68, 0x91, 0x8a, 0xd8, 0x0c, 0x74, 0x0a, 0x08, 0xb4, 0x55, 0xb6, 0x07, 0xa1, 0x80, 0x07, 0x77,
|
||||||
0x9f, 0x42, 0x0a, 0xde, 0x8c, 0xdc, 0xa9, 0xe0, 0x9e, 0xfd, 0xdb, 0x27, 0x8d, 0x33, 0x1f, 0xa4,
|
0x23, 0x88, 0xc0, 0x9a, 0x41, 0x76, 0x72, 0xdc, 0x93, 0xdf, 0x35, 0x52, 0x3b, 0xb3, 0x41, 0xfa,
|
||||||
0x4f, 0x49, 0xdb, 0xe1, 0x5c, 0x24, 0x49, 0x2e, 0xad, 0x65, 0x41, 0x3f, 0x18, 0x34, 0x27, 0x2d,
|
0x98, 0x34, 0x33, 0x9c, 0x8b, 0x30, 0x4c, 0xa5, 0x31, 0xcc, 0xeb, 0x79, 0xfd, 0xfa, 0xa4, 0x91,
|
||||||
0xa7, 0x1d, 0x17, 0x12, 0xed, 0x91, 0x16, 0xc2, 0x37, 0xa9, 0x79, 0x22, 0x35, 0x64, 0xec, 0x96,
|
0x69, 0x43, 0x27, 0xd1, 0x2e, 0x69, 0x20, 0x7c, 0x93, 0x09, 0x0f, 0x65, 0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 0x57, 0x61,
|
0xbf, 0x17, 0xe6, 0x63, 0xa6, 0xd0, 0xe7, 0xa4, 0xad, 0x53, 0xb9, 0x52, 0xb0, 0x34, 0x5c, 0x68,
|
||||||
0x70, 0xb5, 0x0a, 0x83, 0xbf, 0xab, 0x30, 0xf8, 0xb1, 0x0e, 0x6b, 0x57, 0xeb, 0xb0, 0xf6, 0x67,
|
0xcd, 0xe7, 0xc2, 0xcc, 0x59, 0xdb, 0x8d, 0x59, 0x61, 0x0c, 0xb5, 0xfe, 0x20, 0xcc, 0xfc, 0x6d,
|
||||||
0x1d, 0xd6, 0xbe, 0x46, 0xa9, 0xc2, 0x8b, 0xf9, 0x74, 0x18, 0x43, 0x16, 0x5d, 0xef, 0x52, 0xe5,
|
0xf5, 0xe7, 0xaf, 0x6e, 0xe5, 0x64, 0xfc, 0x67, 0xe3, 0x7b, 0x97, 0x1b, 0xdf, 0xfb, 0xb7, 0xf1,
|
||||||
0xf8, 0x2a, 0x85, 0x68, 0xe9, 0x17, 0x0f, 0x2f, 0x8d, 0xb4, 0xd3, 0x86, 0x5f, 0xa8, 0x37, 0xff,
|
0xbd, 0x1f, 0x5b, 0xbf, 0x72, 0xb9, 0xf5, 0x2b, 0x7f, 0xb7, 0x7e, 0xe5, 0x6b, 0x10, 0x29, 0x9c,
|
||||||
0x03, 0x00, 0x00, 0xff, 0xff, 0x05, 0xd2, 0x9a, 0xb9, 0x99, 0x03, 0x00, 0x00,
|
0x2f, 0xa7, 0x83, 0x19, 0xc4, 0xc1, 0xd5, 0xde, 0x95, 0x8e, 0x2f, 0x23, 0x08, 0xd6, 0x76, 0x49,
|
||||||
|
0xf1, 0x42, 0x4b, 0x33, 0xad, 0xd9, 0xe5, 0x7b, 0xfd, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x9d, 0x49,
|
||||||
|
0x70, 0x59, 0xc5, 0x03, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Params) Marshal() (dAtA []byte, err error) {
|
func (m *Params) Marshal() (dAtA []byte, err error) {
|
||||||
@ -248,6 +258,15 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
_ = l
|
_ = l
|
||||||
|
if len(m.PreviousAppHash) > 0 {
|
||||||
|
i -= len(m.PreviousAppHash)
|
||||||
|
copy(dAtA[i:], m.PreviousAppHash)
|
||||||
|
i = encodeVarintParams(dAtA, i, uint64(len(m.PreviousAppHash)))
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x1
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x8a
|
||||||
|
}
|
||||||
if m.TxGasLimit != 0 {
|
if m.TxGasLimit != 0 {
|
||||||
i = encodeVarintParams(dAtA, i, uint64(m.TxGasLimit))
|
i = encodeVarintParams(dAtA, i, uint64(m.TxGasLimit))
|
||||||
i--
|
i--
|
||||||
@ -431,6 +450,10 @@ func (m *Params) Size() (n int) {
|
|||||||
if m.TxGasLimit != 0 {
|
if m.TxGasLimit != 0 {
|
||||||
n += 2 + sovParams(uint64(m.TxGasLimit))
|
n += 2 + sovParams(uint64(m.TxGasLimit))
|
||||||
}
|
}
|
||||||
|
l = len(m.PreviousAppHash)
|
||||||
|
if l > 0 {
|
||||||
|
n += 2 + l + sovParams(uint64(l))
|
||||||
|
}
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -916,6 +939,38 @@ func (m *Params) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case 17:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field PreviousAppHash", wireType)
|
||||||
|
}
|
||||||
|
var stringLen uint64
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowParams
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
stringLen |= uint64(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
intStringLen := int(stringLen)
|
||||||
|
if intStringLen < 0 {
|
||||||
|
return ErrInvalidLengthParams
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + intStringLen
|
||||||
|
if postIndex < 0 {
|
||||||
|
return ErrInvalidLengthParams
|
||||||
|
}
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
m.PreviousAppHash = string(dAtA[iNdEx:postIndex])
|
||||||
|
iNdEx = postIndex
|
||||||
default:
|
default:
|
||||||
iNdEx = preIndex
|
iNdEx = preIndex
|
||||||
skippy, err := skipParams(dAtA[iNdEx:])
|
skippy, err := skipParams(dAtA[iNdEx:])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user