From 836b0cb10e5a495be285c2ea0e91332804c4d0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CDongLieu=E2=80=9D?= Date: Mon, 11 Nov 2024 12:40:33 +0700 Subject: [PATCH] add field MsgActiveCollateral, MsgUpdatesCollateral --- proto/reserve/vaults/tx.proto | 4 + script/proposal-vault-1.json | 14 +- script/proposal-vault-2.json | 13 -- script/vaults-gov-test.sh | 7 +- x/vaults/keeper/abci_test.go | 4 +- x/vaults/keeper/keeper.go | 7 +- x/vaults/keeper/msg_server.go | 4 +- x/vaults/keeper/vault.go | 5 +- x/vaults/keeper/vaults_test.go | 16 +- x/vaults/types/msgs.go | 55 +++--- x/vaults/types/tx.pb.go | 310 ++++++++++++++++++++++++++------- 11 files changed, 305 insertions(+), 134 deletions(-) delete mode 100644 script/proposal-vault-2.json diff --git a/proto/reserve/vaults/tx.proto b/proto/reserve/vaults/tx.proto index fa8a7592..10c2b99f 100644 --- a/proto/reserve/vaults/tx.proto +++ b/proto/reserve/vaults/tx.proto @@ -117,6 +117,8 @@ message MsgActiveCollateral { uint64 oracl_script = 8; string authority = 9 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + string sym_bol = 10; + string mint_denom = 11; } // MsgActiveCollateralResponse defines the Msg/ActiveCollateral response type. @@ -175,6 +177,8 @@ message MsgUpdatesCollateral { uint64 oracl_script = 8; string authority = 9 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + string sym_bol = 10; + string mint_denom = 11; } // MsgActiveCollateralResponse defines the Msg/ActiveCollateral response type. diff --git a/script/proposal-vault-1.json b/script/proposal-vault-1.json index ce67d458..6135235a 100644 --- a/script/proposal-vault-1.json +++ b/script/proposal-vault-1.json @@ -5,7 +5,19 @@ "authority":"onomy10d07y265gmmuvt4z0w9aw880jnsr700jqr8n8k", "min_collateral_ratio": "0.5", "liquidation_ratio":"0.5", - "max_debt":"1000000000000000000000000000" + "max_debt":"1000000000000000000000000000", + "sym_bol": "usdt", + "mint_denom": "nomUSD" + }, + { + "@type": "/reserve.vaults.MsgActiveCollateral", + "denom": "atom", + "authority":"onomy10d07y265gmmuvt4z0w9aw880jnsr700jqr8n8k", + "min_collateral_ratio": "0.5", + "liquidation_ratio":"0.5", + "max_debt":"1000000000000000000000000000", + "sym_bol": "atom", + "mint_denom": "nomUSD" }], "deposit": "100000000stake", "title": "My proposal", diff --git a/script/proposal-vault-2.json b/script/proposal-vault-2.json deleted file mode 100644 index 11a199c6..00000000 --- a/script/proposal-vault-2.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "messages": [{ - "@type": "/reserve.vaults.MsgActiveCollateral", - "denom": "atom", - "authority":"onomy10d07y265gmmuvt4z0w9aw880jnsr700jqr8n8k", - "min_collateral_ratio": "0.5", - "liquidation_ratio":"0.5", - "max_debt":"1000000000000000000000000000" - }], - "deposit": "100000000stake", - "title": "My proposal", - "summary": "A short summary of my proposal" - } \ No newline at end of file diff --git a/script/vaults-gov-test.sh b/script/vaults-gov-test.sh index 56ec754a..42999d8b 100755 --- a/script/vaults-gov-test.sh +++ b/script/vaults-gov-test.sh @@ -122,21 +122,16 @@ reserved q gov proposals # reserved tx gov submit-legacy-proposal active-collateral "title" "description" "atom" "10" "0.1" "10000" 10000000000000000000stake --keyring-backend=test --home=$HOME/.reserved/validator1 --from validator1 -y --chain-id testing-1 --fees 20stake reserved tx gov submit-proposal ./script/proposal-vault-1.json --home=$HOME/.reserved/validator1 --from validator1 --keyring-backend test --fees 20stake --chain-id testing-1 -y -reserved tx gov submit-proposal ./script/proposal-vault-2.json --home=$HOME/.reserved/validator2 --from validator2 --keyring-backend test --fees 20stake --chain-id testing-1 -y # # vote sleep 7 reserved tx gov vote 1 yes --from validator1 --keyring-backend test --home ~/.reserved/validator1 --chain-id testing-1 -y --fees 20stake reserved tx gov vote 1 yes --from validator2 --keyring-backend test --home ~/.reserved/validator2 --chain-id testing-1 -y --fees 20stake reserved tx gov vote 1 yes --from validator3 --keyring-backend test --home ~/.reserved/validator3 --chain-id testing-1 -y --fees 20stake -sleep 7 -reserved tx gov vote 2 yes --from validator1 --keyring-backend test --home ~/.reserved/validator1 --chain-id testing-1 -y --fees 20stake -reserved tx gov vote 2 yes --from validator2 --keyring-backend test --home ~/.reserved/validator2 --chain-id testing-1 -y --fees 20stake -reserved tx gov vote 2 yes --from validator3 --keyring-backend test --home ~/.reserved/validator3 --chain-id testing-1 -y --fees 20stake # wait voting_perio=15s echo "========sleep==========" -sleep 8 +sleep 15 reserved q gov proposals reserved tx oracle set-price usdt 1 --home=$HOME/.reserved/validator1 --from validator1 --keyring-backend test --fees 20stake --chain-id testing-1 -y reserved tx oracle set-price atom 8 --home=$HOME/.reserved/validator2 --from validator2 --keyring-backend test --fees 20stake --chain-id testing-1 -y diff --git a/x/vaults/keeper/abci_test.go b/x/vaults/keeper/abci_test.go index 37b251e2..82dfefce 100644 --- a/x/vaults/keeper/abci_test.go +++ b/x/vaults/keeper/abci_test.go @@ -31,7 +31,7 @@ func (s *KeeperTestSuite) TestBeginBlock() { name: "success: one vault", setup: func() { // 100000000000atom debt 210000000nomUSD(get 200000000nomUSD + 10000000nomUSD MintingFee) err := s.k.ActiveCollateralAsset(s.Ctx, - denom, math.LegacyMustNewDecFromStr("1.6"), + denom, denom, "nomUSD", math.LegacyMustNewDecFromStr("1.6"), math.LegacyMustNewDecFromStr("1.5"), maxDebt, stabilityFee, types.DefaultMintingFee, @@ -62,7 +62,7 @@ func (s *KeeperTestSuite) TestBeginBlock() { name: "success: no vault, LastUpdateTime updates", setup: func() { // 100000000000atom debt 210000000nomUSD(get 200000000nomUSD + 10000000nomUSD MintingFee) err := s.k.ActiveCollateralAsset(s.Ctx, - denom, math.LegacyMustNewDecFromStr("1.6"), + denom, denom, "nomUSD", math.LegacyMustNewDecFromStr("1.6"), math.LegacyMustNewDecFromStr("1.5"), maxDebt, stabilityFee, types.DefaultMintingFee, diff --git a/x/vaults/keeper/keeper.go b/x/vaults/keeper/keeper.go index 28ece8fe..412a7dd9 100644 --- a/x/vaults/keeper/keeper.go +++ b/x/vaults/keeper/keeper.go @@ -76,6 +76,8 @@ func (k Keeper) GetAuthority() string { func (k *Keeper) ActiveCollateralAsset( ctx context.Context, denom string, + symbol string, + mintDenom string, minCollateralRatio math.LegacyDec, liquidationRatio math.LegacyDec, maxDebt math.Int, @@ -90,8 +92,11 @@ func (k *Keeper) ActiveCollateralAsset( return fmt.Errorf("denom %s already be actived", denom) } vm := types.VaultMamager{ - Denom: denom, + Denom: denom, + Symbol: symbol, Params: types.VaultMamagerParams{ + MintDenom: mintDenom, + MintSymbol: symbol, MinCollateralRatio: minCollateralRatio, LiquidationRatio: liquidationRatio, MaxDebt: maxDebt, diff --git a/x/vaults/keeper/msg_server.go b/x/vaults/keeper/msg_server.go index e6f5f3dc..99cc260e 100644 --- a/x/vaults/keeper/msg_server.go +++ b/x/vaults/keeper/msg_server.go @@ -45,7 +45,7 @@ func (k msgServer) ActiveCollateral(ctx context.Context, msg *types.MsgActiveCol return nil, errorsmod.Wrapf(types.ErrInvalidSigner, "invalid authority; expected %s, got %s", k.authority, msg.Authority) } - err = k.ActiveCollateralAsset(ctx, msg.Denom, msg.MinCollateralRatio, msg.LiquidationRatio, msg.MaxDebt, msg.StabilityFee, msg.MintingFee, msg.LiquidationPenalty, int64(msg.OraclScript)) + err = k.ActiveCollateralAsset(ctx, msg.Denom, msg.SymBol, msg.MintDenom, msg.MinCollateralRatio, msg.LiquidationRatio, msg.MaxDebt, msg.StabilityFee, msg.MintingFee, msg.LiquidationPenalty, int64(msg.OraclScript)) if err != nil { return nil, err } @@ -173,7 +173,7 @@ func (k msgServer) Close(ctx context.Context, msg *types.MsgClose) (*types.MsgCl if err != nil { return nil, fmt.Errorf("vault %d was not found", msg.VaultId) } - + err = k.CloseVault(ctx, msg.Sender, vault) if err != nil { return nil, err diff --git a/x/vaults/keeper/vault.go b/x/vaults/keeper/vault.go index a14f6c8a..3ba8966d 100644 --- a/x/vaults/keeper/vault.go +++ b/x/vaults/keeper/vault.go @@ -28,7 +28,7 @@ func (k *Keeper) CreateNewVault( return fmt.Errorf("%s was not actived", denom) } collateralSymbol := vm.Symbol - mintSymbol := vm.Params.MintSymbol + mintDenom := vm.Params.MintDenom allowedMintDenoms := k.GetAllowedMintDenoms(ctx) // TODO: Check if mint denom is allowed @@ -45,7 +45,8 @@ func (k *Keeper) CreateNewVault( } // Calculate collateral ratio - price := k.OracleKeeper.GetPrice(ctx, collateralSymbol, mintSymbol) + price := k.OracleKeeper.GetPrice(ctx, collateralSymbol, mintDenom) + fmt.Println(price, collateralSymbol, mintDenom) if price == nil || price.IsNil() { return errors.Wrapf(oracletypes.ErrInvalidOracle, "CreateNewVault: can not get price with base %s quote %s", denom, types.DefaultMintDenoms) } diff --git a/x/vaults/keeper/vaults_test.go b/x/vaults/keeper/vaults_test.go index b7b1074c..01a34841 100644 --- a/x/vaults/keeper/vaults_test.go +++ b/x/vaults/keeper/vaults_test.go @@ -33,7 +33,7 @@ func (s *KeeperTestSuite) TestCreateNewVault() { collateral = sdk.NewCoin(denom, math.NewInt(10_000_000)) // 10 atom = 80$ maxDebt = math.NewInt(100_000_000) ) - err := s.k.ActiveCollateralAsset(s.Ctx, denom, math.LegacyMustNewDecFromStr("1.6"), math.LegacyMustNewDecFromStr("1.5"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) + err := s.k.ActiveCollateralAsset(s.Ctx, denom, denom, "nomUSD", math.LegacyMustNewDecFromStr("1.6"), math.LegacyMustNewDecFromStr("1.5"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) s.Require().NoError(err) tests := []struct { @@ -166,7 +166,7 @@ func (s *KeeperTestSuite) TestRepayDebt() { maxDebt = math.NewInt(2000000000) mintedCoin = sdk.NewCoin(types.DefaultMintDenoms[0], math.NewInt(300000000)) ) - err := s.k.ActiveCollateralAsset(s.Ctx, denom, math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) + err := s.k.ActiveCollateralAsset(s.Ctx, denom, denom, "nomUSD", math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) s.Require().NoError(err) tests := []struct { @@ -284,7 +284,7 @@ func (s *KeeperTestSuite) TestDepositToVault() { maxDebt = math.NewInt(2000000000) mintedCoin = sdk.NewCoin(types.DefaultMintDenoms[0], math.NewInt(200000000)) ) - err := s.k.ActiveCollateralAsset(s.Ctx, denom, math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) + err := s.k.ActiveCollateralAsset(s.Ctx, denom, denom, "nomUSD", math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) s.Require().NoError(err) tests := []struct { @@ -407,7 +407,7 @@ func (s *KeeperTestSuite) TestWithdrawFromVault() { setup: func() { s.FundAccount(s.TestAccs[0], types.ModuleName, sdk.NewCoins(fund)) - err := s.k.ActiveCollateralAsset(s.Ctx, denom, math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) + err := s.k.ActiveCollateralAsset(s.Ctx, denom, denom, "nomUSD", math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) s.Require().NoError(err) err = s.k.CreateNewVault(s.Ctx, s.TestAccs[0], coinMintToAcc, mintedCoin) @@ -443,7 +443,7 @@ func (s *KeeperTestSuite) TestWithdrawFromVault() { setup: func() { s.FundAccount(s.TestAccs[0], types.ModuleName, sdk.NewCoins(fund)) - err := s.k.ActiveCollateralAsset(s.Ctx, denom, math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) + err := s.k.ActiveCollateralAsset(s.Ctx, denom, denom, "nomUSD", math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) s.Require().NoError(err) err = s.k.CreateNewVault(s.Ctx, s.TestAccs[0], coinMintToAcc, mintedCoin) @@ -460,7 +460,7 @@ func (s *KeeperTestSuite) TestWithdrawFromVault() { setup: func() { s.FundAccount(s.TestAccs[0], types.ModuleName, sdk.NewCoins(fund)) - err := s.k.ActiveCollateralAsset(s.Ctx, denom, math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) + err := s.k.ActiveCollateralAsset(s.Ctx, denom, denom, "nomUSD", math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) s.Require().NoError(err) err = s.k.CreateNewVault(s.Ctx, s.TestAccs[0], coinMintToAcc, mintedCoin) @@ -477,7 +477,7 @@ func (s *KeeperTestSuite) TestWithdrawFromVault() { setup: func() { s.FundAccount(s.TestAccs[0], types.ModuleName, sdk.NewCoins(fund)) - err := s.k.ActiveCollateralAsset(s.Ctx, denom, math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) + err := s.k.ActiveCollateralAsset(s.Ctx, denom, denom, "nomUSD", math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), maxDebt, types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) s.Require().NoError(err) err = s.k.CreateNewVault(s.Ctx, s.TestAccs[0], coinMintToAcc, mintedCoin) @@ -709,7 +709,7 @@ func (s *KeeperTestSuite) TestLiquidate() { for _, t := range tests { s.Run(t.name, func() { s.SetupTest() - err := s.k.ActiveCollateralAsset(s.Ctx, "atom", math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), math.NewInt(1000_000_000), types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) + err := s.k.ActiveCollateralAsset(s.Ctx, "atom", "atom", "nomUSD", math.LegacyMustNewDecFromStr("0.1"), math.LegacyMustNewDecFromStr("0.1"), math.NewInt(1000_000_000), types.DefaultStabilityFee, types.DefaultMintingFee, types.DefaultLiquidationPenalty, 1) s.Require().NoError(err) for _, vault := range t.liquidation.LiquidatingVaults { diff --git a/x/vaults/types/msgs.go b/x/vaults/types/msgs.go index 0dc5b779..1d843797 100644 --- a/x/vaults/types/msgs.go +++ b/x/vaults/types/msgs.go @@ -3,7 +3,6 @@ package types import ( "fmt" - sdkerrors "cosmossdk.io/errors" "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" @@ -123,6 +122,14 @@ func (msg *MsgActiveCollateral) ValidateBasic() error { return fmt.Errorf("denom is empty") } + if msg.SymBol == "" { + return fmt.Errorf("symbol is empty") + } + + if msg.MintDenom == "" { + return fmt.Errorf("mintDenom is empty") + } + if msg.Authority == "" { return fmt.Errorf("authority is empty") } @@ -162,6 +169,14 @@ func (msg *MsgUpdatesCollateral) ValidateBasic() error { return fmt.Errorf("denom is empty") } + if msg.SymBol == "" { + return fmt.Errorf("symbol is empty") + } + + if msg.MintDenom == "" { + return fmt.Errorf("mintDenom is empty") + } + if msg.Authority == "" { return fmt.Errorf("authority is empty") } @@ -210,6 +225,8 @@ func NewMsgActiveCollateral(a *ActiveCollateralProposal) *MsgActiveCollateral { MintingFee: a.ActiveCollateral.MintingFee, OraclScript: a.ActiveCollateral.OraclScript, Authority: a.ActiveCollateral.Authority, + SymBol: a.ActiveCollateral.SymBol, + MintDenom: a.ActiveCollateral.MintDenom, } } @@ -224,6 +241,8 @@ func NewMsgUpdatesCollateral(u *UpdatesCollateralProposal) *MsgUpdatesCollateral MintingFee: u.UpdatesCollateral.MintingFee, OraclScript: u.UpdatesCollateral.OraclScript, Authority: u.UpdatesCollateral.Authority, + SymBol: u.UpdatesCollateral.SymBol, + MintDenom: u.UpdatesCollateral.MintDenom, } } @@ -245,23 +264,8 @@ func (m *ActiveCollateralProposal) ProposalType() string { func (m *ActiveCollateralProposal) ValidateBasic() error { a := m.ActiveCollateral - if a.Denom == "" { - return sdkerrors.Wrap(ErrInvalidActiveCollateralProposal, "empty denom") - } - - if a.MinCollateralRatio.LT(math.LegacyZeroDec()) { - return sdkerrors.Wrap(ErrInvalidActiveCollateralProposal, "less than zero") - } - - if a.LiquidationRatio.LT(math.LegacyZeroDec()) { - return sdkerrors.Wrap(ErrInvalidActiveCollateralProposal, "less than zero") - } - - if a.MaxDebt.LT(math.ZeroInt()) { - return sdkerrors.Wrap(ErrInvalidActiveCollateralProposal, "less than zero") - } - return nil + return a.ValidateBasic() } func (m *UpdatesCollateralProposal) GetDescription() string { @@ -282,21 +286,6 @@ func (m *UpdatesCollateralProposal) ProposalType() string { func (m *UpdatesCollateralProposal) ValidateBasic() error { a := m.UpdatesCollateral - if a.Denom == "" { - return sdkerrors.Wrap(ErrInvalidUpdatesCollateralProposal, "empty denom") - } - - if a.MinCollateralRatio.LT(math.LegacyZeroDec()) { - return sdkerrors.Wrap(ErrInvalidUpdatesCollateralProposal, "less than zero") - } - - if a.LiquidationRatio.LT(math.LegacyZeroDec()) { - return sdkerrors.Wrap(ErrInvalidUpdatesCollateralProposal, "less than zero") - } - if a.MaxDebt.LT(math.ZeroInt()) { - return sdkerrors.Wrap(ErrInvalidUpdatesCollateralProposal, "less than zero") - } - - return nil + return a.ValidateBasic() } diff --git a/x/vaults/types/tx.pb.go b/x/vaults/types/tx.pb.go index 590eb580..c0754941 100644 --- a/x/vaults/types/tx.pb.go +++ b/x/vaults/types/tx.pb.go @@ -139,6 +139,8 @@ type MsgActiveCollateral struct { MintingFee cosmossdk_io_math.LegacyDec `protobuf:"bytes,7,opt,name=minting_fee,json=mintingFee,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"minting_fee"` OraclScript uint64 `protobuf:"varint,8,opt,name=oracl_script,json=oraclScript,proto3" json:"oracl_script,omitempty"` Authority string `protobuf:"bytes,9,opt,name=authority,proto3" json:"authority,omitempty"` + SymBol string `protobuf:"bytes,10,opt,name=sym_bol,json=symBol,proto3" json:"sym_bol,omitempty"` + MintDenom string `protobuf:"bytes,11,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` } func (m *MsgActiveCollateral) Reset() { *m = MsgActiveCollateral{} } @@ -222,6 +224,8 @@ type MsgUpdatesCollateral struct { MintingFee cosmossdk_io_math.LegacyDec `protobuf:"bytes,7,opt,name=minting_fee,json=mintingFee,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"minting_fee"` OraclScript uint64 `protobuf:"varint,8,opt,name=oracl_script,json=oraclScript,proto3" json:"oracl_script,omitempty"` Authority string `protobuf:"bytes,9,opt,name=authority,proto3" json:"authority,omitempty"` + SymBol string `protobuf:"bytes,10,opt,name=sym_bol,json=symBol,proto3" json:"sym_bol,omitempty"` + MintDenom string `protobuf:"bytes,11,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` } func (m *MsgUpdatesCollateral) Reset() { *m = MsgUpdatesCollateral{} } @@ -781,72 +785,74 @@ func init() { func init() { proto.RegisterFile("reserve/vaults/tx.proto", fileDescriptor_bbce2367024dc47b) } var fileDescriptor_bbce2367024dc47b = []byte{ - // 1026 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xf6, 0xd2, 0x38, 0x3f, 0x5e, 0x4a, 0x49, 0x26, 0x6e, 0xe2, 0x6c, 0xc0, 0x0e, 0x2e, 0x82, - 0x28, 0xd0, 0xdd, 0xa6, 0x95, 0x2a, 0x11, 0x71, 0xa0, 0x89, 0x85, 0x64, 0x51, 0x4b, 0x95, 0xab, - 0x52, 0x04, 0x07, 0x6b, 0xbc, 0x3b, 0xac, 0x47, 0xec, 0xee, 0x98, 0x9d, 0xb1, 0x1b, 0xdf, 0x10, - 0x27, 0xc4, 0x89, 0x3f, 0xa1, 0x47, 0x40, 0x20, 0xe5, 0xd0, 0x0b, 0xff, 0x41, 0x8f, 0x55, 0x4f, - 0xa5, 0x87, 0x0a, 0x25, 0x87, 0x70, 0xe5, 0x3f, 0x40, 0x3b, 0x33, 0x5e, 0xaf, 0x9d, 0x75, 0x1a, - 0x14, 0x0e, 0x11, 0xea, 0x25, 0xc9, 0xec, 0xf7, 0xde, 0xf7, 0xbe, 0x6f, 0xf2, 0xde, 0xce, 0x2c, - 0xac, 0x44, 0x84, 0x93, 0xa8, 0x47, 0xec, 0x1e, 0xee, 0xfa, 0x82, 0xdb, 0x62, 0xcf, 0xea, 0x44, - 0x4c, 0x30, 0x74, 0x49, 0x03, 0x96, 0x02, 0xcc, 0x82, 0xc7, 0x3c, 0x26, 0x21, 0x3b, 0xfe, 0x4b, - 0x45, 0x99, 0x6b, 0x63, 0xe9, 0x1d, 0x1c, 0xe1, 0x80, 0x6b, 0x70, 0x11, 0x07, 0x34, 0x64, 0xb6, - 0xfc, 0xa9, 0x1f, 0xad, 0x3a, 0x8c, 0x07, 0x8c, 0x37, 0x15, 0x91, 0x5a, 0x68, 0x68, 0x45, 0xad, - 0xec, 0x80, 0x7b, 0x76, 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 0x5e, 0x39, 0x01, 0x4c, 0xd8, 0x3e, 0x86, - 0x29, 0xf9, 0x7a, 0x58, 0xc9, 0x08, 0x8e, 0x01, 0xb3, 0x3c, 0x01, 0x48, 0x18, 0x76, 0x21, 0xaf, - 0x26, 0xb4, 0x98, 0x11, 0x29, 0x11, 0x73, 0x7d, 0x12, 0x92, 0x26, 0x51, 0x63, 0x92, 0x45, 0x22, - 0x91, 0x4c, 0x92, 0x91, 0x66, 0x37, 0xf3, 0xdf, 0xc6, 0x63, 0xba, 0x53, 0x7b, 0x7c, 0x50, 0x32, - 0x9e, 0x1c, 0x94, 0x8c, 0x3f, 0x0f, 0x4a, 0xc6, 0x8f, 0x87, 0xa5, 0xdc, 0x93, 0xc3, 0x52, 0xee, - 0xd9, 0x61, 0x29, 0xf7, 0x85, 0xed, 0x51, 0xd1, 0xee, 0xb6, 0x2c, 0x87, 0x05, 0x36, 0x0b, 0x59, - 0xd0, 0x97, 0x9f, 0x9d, 0x0e, 0xf3, 0xed, 0xe1, 0xe7, 0xdd, 0xe0, 0xeb, 0xb9, 0xdf, 0x21, 0xbc, - 0x35, 0x2d, 0x03, 0x6e, 0xfc, 0x13, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x2c, 0xe8, 0xfa, 0x5c, 0x0f, - 0x00, 0x00, + // 1057 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0x41, 0x6f, 0x1b, 0x45, + 0x14, 0xf6, 0xd2, 0xd8, 0x8e, 0x9f, 0x43, 0x49, 0x26, 0x6e, 0xe2, 0x6c, 0xa8, 0x1d, 0x5c, 0x04, + 0x51, 0xa0, 0xbb, 0x4d, 0x2b, 0x55, 0x22, 0xe2, 0x40, 0x13, 0x0b, 0x29, 0xa2, 0x96, 0x2a, 0x57, + 0xa5, 0x08, 0x0e, 0xd6, 0x78, 0x77, 0xd8, 0x8c, 0xd8, 0xdd, 0x31,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34, 0x89, 0x6a, 0x93, 0x2c, 0x12, 0x89, 0x64, + 0x92, 0x8c, 0x6c, 0x76, 0x33, 0xff, 0x4d, 0xdc, 0xa6, 0xeb, 0x9b, 0x4f, 0xf7, 0x6b, 0xc6, 0xb3, + 0xfd, 0x9a, 0xf1, 0xd7, 0x7e, 0xcd, 0xf8, 0xe1, 0xa0, 0x96, 0x7b, 0x76, 0x50, 0xcb, 0xbd, 0x38, + 0xa8, 0xe5, 0x3e, 0xb7, 0x3d, 0x2a, 0xb6, 0xb6, 0xbb, 0x96, 0xc3, 0x02, 0x9b, 0x85, 0x2c, 0xe8, + 0xcb, 0xcf, 0x5c, 0x87, 0xf9, 0xf6, 0xf0, 0x73, 0x72, 0xf0, 0xb5, 0xde, 0xef, 0x11, 0xde, 0x2d, + 0xc8, 0x80, 0x5b, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x17, 0x54, 0xb3, 0xcc, 0x0f, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1322,6 +1328,20 @@ func (m *MsgActiveCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.MintDenom) > 0 { + i -= len(m.MintDenom) + copy(dAtA[i:], m.MintDenom) + i = encodeVarintTx(dAtA, i, uint64(len(m.MintDenom))) + i-- + dAtA[i] = 0x5a + } + if len(m.SymBol) > 0 { + i -= len(m.SymBol) + copy(dAtA[i:], m.SymBol) + i = encodeVarintTx(dAtA, i, uint64(len(m.SymBol))) + i-- + dAtA[i] = 0x52 + } if len(m.Authority) > 0 { i -= len(m.Authority) copy(dAtA[i:], m.Authority) @@ -1447,6 +1467,20 @@ func (m *MsgUpdatesCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.MintDenom) > 0 { + i -= len(m.MintDenom) + copy(dAtA[i:], m.MintDenom) + i = encodeVarintTx(dAtA, i, uint64(len(m.MintDenom))) + i-- + dAtA[i] = 0x5a + } + if len(m.SymBol) > 0 { + i -= len(m.SymBol) + copy(dAtA[i:], m.SymBol) + i = encodeVarintTx(dAtA, i, uint64(len(m.SymBol))) + i-- + dAtA[i] = 0x52 + } if len(m.Authority) > 0 { i -= len(m.Authority) copy(dAtA[i:], m.Authority) @@ -2019,6 +2053,14 @@ func (m *MsgActiveCollateral) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } + l = len(m.SymBol) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.MintDenom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -2060,6 +2102,14 @@ func (m *MsgUpdatesCollateral) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } + l = len(m.SymBol) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.MintDenom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -2718,6 +2768,70 @@ func (m *MsgActiveCollateral) Unmarshal(dAtA []byte) error { } m.Authority = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SymBol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SymBol = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -3105,6 +3219,70 @@ func (m *MsgUpdatesCollateral) Unmarshal(dAtA []byte) error { } m.Authority = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SymBol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SymBol = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:])