diff --git a/precompiles/wrapped-a0gi-base/query_test.go b/precompiles/wrapped-a0gi-base/query_test.go index a930f12b..e987c4b4 100644 --- a/precompiles/wrapped-a0gi-base/query_test.go +++ b/precompiles/wrapped-a0gi-base/query_test.go @@ -121,7 +121,7 @@ func (s *WrappedA0giBaseTestSuite) TestMinterSupply() { s.Run(tc.name, func() { s.SetupTest() - s.wa0gibasekeeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{ + s.wa0gibasekeeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{ Authority: govAccAddr, Minter: s.signerOne.Addr.Bytes(), Cap: big.NewInt(8e18).Bytes(), diff --git a/precompiles/wrapped-a0gi-base/tx_test.go b/precompiles/wrapped-a0gi-base/tx_test.go index 81910379..acf3e262 100644 --- a/precompiles/wrapped-a0gi-base/tx_test.go +++ b/precompiles/wrapped-a0gi-base/tx_test.go @@ -87,7 +87,7 @@ func (s *WrappedA0giBaseTestSuite) TestMint() { fmt.Println(s.signerOne.Addr) s.wa0gibasekeeper.SetWA0GIAddress(s.Ctx, s.signerOne.Addr) - s.wa0gibasekeeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{ + s.wa0gibasekeeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{ Authority: govAccAddr, Minter: s.signerOne.Addr.Bytes(), Cap: big.NewInt(8e18).Bytes(), @@ -189,7 +189,7 @@ func (s *WrappedA0giBaseTestSuite) TestBurn() { fmt.Println(s.signerOne.Addr) s.wa0gibasekeeper.SetWA0GIAddress(s.Ctx, s.signerOne.Addr) - s.wa0gibasekeeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{ + s.wa0gibasekeeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{ Authority: govAccAddr, Minter: s.signerOne.Addr.Bytes(), Cap: big.NewInt(8e18).Bytes(), diff --git a/proto/zgc/wrappeda0gibase/tx.proto b/proto/zgc/wrappeda0gibase/tx.proto index 4f47c32b..323dce06 100644 --- a/proto/zgc/wrappeda0gibase/tx.proto +++ b/proto/zgc/wrappeda0gibase/tx.proto @@ -11,7 +11,7 @@ option (gogoproto.goproto_getters_all) = false; // Msg defines the wrapped a0gi base Msg service service Msg { rpc SetWA0GI(MsgSetWA0GI) returns (MsgSetWA0GIResponse); - rpc SetMinterCap(MsgSetMintCap) returns (MsgSetMintCapResponse); + rpc SetMinterCap(MsgSetMinterCap) returns (MsgSetMinterCapResponse); rpc Mint(MsgMint) returns (MsgMintResponse); rpc Burn(MsgBurn) returns (MsgBurnResponse); } @@ -23,13 +23,13 @@ message MsgSetWA0GI { message MsgSetWA0GIResponse {} -message MsgSetMintCap { +message MsgSetMinterCap { string authority = 1; bytes minter = 2; bytes cap = 3; // big endian } -message MsgSetMintCapResponse {} +message MsgSetMinterCapResponse {} message MsgMint { bytes minter = 1; diff --git a/x/wrapped-a0gi-base/keeper/msg_server.go b/x/wrapped-a0gi-base/keeper/msg_server.go index f3de20dd..b626cab4 100644 --- a/x/wrapped-a0gi-base/keeper/msg_server.go +++ b/x/wrapped-a0gi-base/keeper/msg_server.go @@ -69,7 +69,7 @@ func (k Keeper) Mint(goCtx context.Context, msg *types.MsgMint) (*types.MsgMintR } // SetMinterCap implements types.MsgServer. -func (k Keeper) SetMinterCap(goCtx context.Context, msg *types.MsgSetMintCap) (*types.MsgSetMintCapResponse, error) { +func (k Keeper) SetMinterCap(goCtx context.Context, msg *types.MsgSetMinterCap) (*types.MsgSetMinterCapResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) minter := common.BytesToAddress(msg.Minter) // validate authority @@ -80,7 +80,7 @@ func (k Keeper) SetMinterCap(goCtx context.Context, msg *types.MsgSetMintCap) (* if err := k.setMinterCap(ctx, minter, new(big.Int).SetBytes(msg.Cap)); err != nil { return nil, err } - return &types.MsgSetMintCapResponse{}, nil + return &types.MsgSetMinterCapResponse{}, nil } // SetWA0GI implements types.MsgServer. diff --git a/x/wrapped-a0gi-base/keeper/msg_server_test.go b/x/wrapped-a0gi-base/keeper/msg_server_test.go index 8c54cd3f..127d73db 100644 --- a/x/wrapped-a0gi-base/keeper/msg_server_test.go +++ b/x/wrapped-a0gi-base/keeper/msg_server_test.go @@ -106,7 +106,7 @@ func (s *MsgServerTestSuite) TestSetMinterCap() { } s.Run("invalid authority", func() { s.SetupTest() - _, err := s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{ + _, err := s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{ Authority: s.Addresses[0].String(), Minter: common.HexToAddress("0x0000000000000000000000000000000000000000").Bytes(), Cap: big.NewInt(600000).Bytes(), @@ -121,7 +121,7 @@ func (s *MsgServerTestSuite) TestSetMinterCap() { c := make(map[common.Address]*big.Int) for _, cap := range tc.caps { - _, err := s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{ + _, err := s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{ Authority: govAccAddr, Minter: cap.account.Bytes(), Cap: cap.cap.Bytes(), @@ -162,14 +162,14 @@ func (s *MsgServerTestSuite) TestSetMintBurn() { minter2 := common.HexToAddress("0x0000000000000000000000000000000000000002") // set mint cap of minter 1 to 8 a0gi - _, err := s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{ + _, err := s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{ Authority: govAccAddr, Minter: minter1.Bytes(), Cap: big.NewInt(8e18).Bytes(), }) s.Require().NoError(err) // set mint cap of minter 2 to 5 a0gi - _, err = s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMintCap{ + _, err = s.Keeper.SetMinterCap(sdk.WrapSDKContext(s.Ctx), &types.MsgSetMinterCap{ Authority: govAccAddr, Minter: minter2.Bytes(), Cap: big.NewInt(5e18).Bytes(), diff --git a/x/wrapped-a0gi-base/types/codec.go b/x/wrapped-a0gi-base/types/codec.go index 7af6a480..6fdf49af 100644 --- a/x/wrapped-a0gi-base/types/codec.go +++ b/x/wrapped-a0gi-base/types/codec.go @@ -32,7 +32,7 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { registry.RegisterImplementations( (*sdk.Msg)(nil), &MsgSetWA0GI{}, - &MsgSetMintCap{}, + &MsgSetMinterCap{}, &MsgMint{}, &MsgBurn{}, ) diff --git a/x/wrapped-a0gi-base/types/genesis.go b/x/wrapped-a0gi-base/types/genesis.go index d306dc5f..1f8510bb 100644 --- a/x/wrapped-a0gi-base/types/genesis.go +++ b/x/wrapped-a0gi-base/types/genesis.go @@ -5,14 +5,14 @@ import "github.com/ethereum/go-ethereum/common" const ( // This is a Wrapped A0GI contract deployed by a raw transaction: // raw tx params: - // from: 0x43db6cef54678f25310c0804bc1c1c2418f68e5b + // from: 0x873cd27b6833e6394c34a00c37b260aca5abc0b6 // nonce: 0 // gasPrice: 100 Gwei // gasLimit: 1000000 // The sender is an ephemeral account, nobody holds its private key and this is the only transaction it signed. // This transaction is a legacy transaction without chain ID so it can be deployed at any EVM chain which supports pre-EIP155 transactions. - // raw tx: 0xf90c378085174876e800830f42408080b90be460c0604052600c60809081526b57726170706564204130474960a01b60a05260009061002b908261011c565b50604080518082019091526005815264574130474960d81b6020820152600190610055908261011c565b50600280546001600160a81b0319166210021217905534801561007757600080fd5b506101db565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806100a757607f821691505b6020821081036100c757634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561011757600081815260208120601f850160051c810160208610156100f45750805b601f850160051c820191505b8181101561011357828155600101610100565b5050505b505050565b81516001600160401b038111156101355761013561007d565b610149816101438454610093565b846100cd565b602080601f83116001811461017e57600084156101665750858301515b600019600386901b1c1916600185901b178555610113565b600085815260208120601f198616915b828110156101ad5788860151825594840194600190910190840161018e565b50858210156101cb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6109f980620001eb6000396000f3fe6080604052600436106100e15760003560e01c806342966c681161007f57806395d89b411161005957806395d89b4114610283578063a9059cbb14610298578063d0e30db0146102b8578063dd62ed3e146102c057600080fd5b806342966c68146101f95780635001f3b51461021957806370a082311461025657600080fd5b806323b872dd116100bb57806323b872dd1461016d5780632e1a7d4d1461018d578063313ce567146101ad57806340c10f19146101d957600080fd5b806306fdde03146100f5578063095ea7b31461012057806318160ddd1461015057600080fd5b366100f0576100ee6102f8565b005b600080fd5b34801561010157600080fd5b5061010a610353565b6040516101179190610816565b60405180910390f35b34801561012c57600080fd5b5061014061013b366004610880565b6103e1565b6040519015158152602001610117565b34801561015c57600080fd5b50475b604051908152602001610117565b34801561017957600080fd5b506101406101883660046108aa565b61044e565b34801561019957600080fd5b506100ee6101a83660046108e6565b6105d2565b3480156101b957600080fd5b506002546101c79060ff1681565b60405160ff9091168152602001610117565b3480156101e557600080fd5b506100ee6101f4366004610880565b61065d565b34801561020557600080fd5b506100ee6102143660046108e6565b610736565b34801561022557600080fd5b5060025461023e9061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610117565b34801561026257600080fd5b5061015f6102713660046108ff565b60036020526000908152604090205481565b34801561028f57600080fd5b5061010a6107f5565b3480156102a457600080fd5b506101406102b3366004610880565b610802565b6100ee6102f8565b3480156102cc57600080fd5b5061015f6102db36600461091a565b600460209081526000928352604080842090915290825290205481565b3360009081526003602052604081208054349290610317908490610963565b909155505060405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2565b6000805461036090610976565b80601f016020809104026020016040519081016040528092919081815260200182805461038c90610976565b80156103d95780601f106103ae576101008083540402835291602001916103d9565b820191906000526020600020905b8154815290600101906020018083116103bc57829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061043c9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526003602052604081205482111561047357600080fd5b6001600160a01b03841633148015906104b157506001600160a01b038416600090815260046020908152604080832033845290915290205460001914155b1561051f576001600160a01b03841660009081526004602090815260408083203384529091529020548211156104e657600080fd5b6001600160a01b0384166000908152600460209081526040808320338452909152812080548492906105199084906109b0565b90915550505b6001600160a01b038416600090815260036020526040812080548492906105479084906109b0565b90915550506001600160a01b03831660009081526003602052604081208054849290610574908490610963565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516105c091815260200190565b60405180910390a35060019392505050565b33600090815260036020526040812080548392906105f19084906109b0565b9091555050604051339082156108fc029083906000818181858888f19350505050158015610623573d6000803e3d6000fd5b5060405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65906020015b60405180910390a250565b6002546040516340c10f1960e01b8152336004820152602481018390526101009091046001600160a01b0316906340c10f1990604401600060405180830381600087803b1580156106ad57600080fd5b505af11580156106c1573d6000803e3d6000fd5b505050506001600160a01b038216600090815260036020526040812080548392906106ed908490610963565b90915550506040518181526001600160a01b0383169033907fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f89060200160405180910390a35050565b600254604051632770a7eb60e21b8152336004820152602481018390526101009091046001600160a01b031690639dc29fac90604401600060405180830381600087803b15801561078657600080fd5b505af115801561079a573d6000803e3d6000fd5b505033600090815260036020526040812080548594509092506107be9084906109b0565b909155505060405181815233907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca590602001610652565b6001805461036090610976565b600061080f33848461044e565b9392505050565b600060208083528351808285015260005b8181101561084357858101830151858201604001528201610827565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461087b57600080fd5b919050565b6000806040838503121561089357600080fd5b61089c83610864565b946020939093013593505050565b6000806000606084860312156108bf57600080fd5b6108c884610864565b92506108d660208501610864565b9150604084013590509250925092565b6000602082840312156108f857600080fd5b5035919050565b60006020828403121561091157600080fd5b61080f82610864565b6000806040838503121561092d57600080fd5b61093683610864565b915061094460208401610864565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b808201808211156104485761044861094d565b600181811c9082168061098a57607f821691505b6020821081036109aa57634e487b7160e01b600052602260045260246000fd5b50919050565b818103818111156104485761044861094d56fea2646970667358221220076f43aa18ca3555e080ebb6815ba9bdfa3617ec5fad0223a8d6007ea588a6f364736f6c634300081400331ba07f6fb2afc9cb39989c4e35299f44266a2f800f009fdeb24914df0b51de47c85fa02acc21d7f401e1529a4fbd0b3cf888414a07494af162ddca5670a6fa181ebe07 - DEFAULT_WRAPPED_A0GI = "0xCDf97Ac4453AD85C663d2555BF4424601e1f2A9F" + // raw tx: 0xf90f568085174876e800830f42408080b90f0360c0604052600c60809081526b57726170706564204130474960a01b60a0526000906200002d908262000128565b50604080518082019091526005815264574130474960d81b602082015260019062000059908262000128565b50600280546001600160a81b031916621002121790553480156200007c57600080fd5b50620001f4565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620000ae57607f821691505b602082108103620000cf57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200012357600081815260208120601f850160051c81016020861015620000fe5750805b601f850160051c820191505b818110156200011f578281556001016200010a565b5050505b505050565b81516001600160401b0381111562000144576200014462000083565b6200015c8162000155845462000099565b84620000d5565b602080601f8311600181146200019457600084156200017b5750858301515b600019600386901b1c1916600185901b1785556200011f565b600085815260208120601f198616915b82811015620001c557888601518255948401946001909101908401620001a4565b5085821015620001e45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610cff80620002046000396000f3fe6080604052600436106100f75760003560e01c806370a082311161008a578063a9059cbb11610059578063a9059cbb14610291578063c8dd1a26146102b1578063d0e30db0146102ee578063dd62ed3e146102f657600080fd5b806370a082311461022f57806379cc67901461025c57806395d89b411461027c5780639dc29fac1461025c57600080fd5b80632e1a7d4d116100c65780632e1a7d4d146101a3578063313ce567146101c357806340c10f19146101ef57806342966c681461020f57600080fd5b806306fdde031461010b578063095ea7b31461013657806318160ddd1461016657806323b872dd1461018357600080fd5b366101065761010461032e565b005b600080fd5b34801561011757600080fd5b50610120610389565b60405161012d9190610b1b565b60405180910390f35b34801561014257600080fd5b50610156610151366004610b6a565b610417565b604051901515815260200161012d565b34801561017257600080fd5b50475b60405190815260200161012d565b34801561018f57600080fd5b5061015661019e366004610b94565b610484565b3480156101af57600080fd5b506101046101be366004610bd0565b61068c565b3480156101cf57600080fd5b506002546101dd9060ff1681565b60405160ff909116815260200161012d565b3480156101fb57600080fd5b5061010461020a366004610b6a565b610716565b34801561021b57600080fd5b5061010461022a366004610bd0565b610879565b34801561023b57600080fd5b5061017561024a366004610be9565b60036020526000908152604090205481565b34801561026857600080fd5b50610104610277366004610b6a565b610886565b34801561028857600080fd5b50610120610894565b34801561029d57600080fd5b506101566102ac366004610b6a565b6108a1565b3480156102bd57600080fd5b506002546102d69061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161012d565b61010461032e565b34801561030257600080fd5b50610175610311366004610c04565b600460209081526000928352604080842090915290825290205481565b336000908152600360205260408120805434929061034d908490610c4d565b909155505060405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2565b6000805461039690610c60565b80601f01602080910402602001604051908101604052809291908181526020018280546103c290610c60565b801561040f5780601f106103e45761010080835404028352916020019161040f565b820191906000526020600020905b8154815290600101906020018083116103f257829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906104729086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383166000908152600360205260408120548211156104f15760405162461bcd60e51b815260206004820152601860248201527f73726320696e73756666696369656e742062616c616e6365000000000000000060448201526064015b60405180910390fd5b6001600160a01b038416331480159061052f57506001600160a01b038416600090815260046020908152604080832033845290915290205460001914155b156105d9576001600160a01b03841660009081526004602090815260408083203384529091529020548211156105a05760405162461bcd60e51b8152602060048201526016602482015275696e73756666696369656e7420616c6c6f77616e636560501b60448201526064016104e8565b6001600160a01b0384166000908152600460209081526040808320338452909152812080548492906105d3908490610c9a565b90915550505b6001600160a01b03841660009081526003602052604081208054849290610601908490610c9a565b90915550506001600160a01b0383166000908152600360205260408120805484929061062e908490610c4d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161067a91815260200190565b60405180910390a35060019392505050565b33600090815260036020526040812080548392906106ab908490610c9a565b9091555050604051339082156108fc029083906000818181858888f193505050501580156106dd573d6000803e3d6000fd5b5060405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a250565b6002546040513360248201526044810183905260009161010090046001600160a01b03169060640160408051601f198184030181529181526020820180516001600160e01b03166340c10f1960e01b179052516107739190610cad565b6000604051808303816000865af19150503d80600081146107b0576040519150601f19603f3d011682016040523d82523d6000602084013e6107b5565b606091505b50509050806108065760405162461bcd60e51b815260206004820152601d60248201527f7772617070656420613067692062617365206d696e74206661696c656400000060448201526064016104e8565b6001600160a01b0383166000908152600360205260408120805484929061082e908490610c4d565b90915550506040518281526001600160a01b0384169033907fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f8906020015b60405180910390a3505050565b61088333826108b5565b50565b61089082826108b5565b5050565b6001805461039690610c60565b60006108ae338484610484565b9392505050565b6002546040513360248201526044810183905260009161010090046001600160a01b03169060640160408051601f198184030181529181526020820180516001600160e01b0316632770a7eb60e21b179052516109129190610cad565b6000604051808303816000865af19150503d806000811461094f576040519150601f19603f3d011682016040523d82523d6000602084013e610954565b606091505b50509050806109a55760405162461bcd60e51b815260206004820152601d60248201527f7772617070656420613067692062617365206275726e206661696c656400000060448201526064016104e8565b6001600160a01b03831633148015906109e357506001600160a01b038316600090815260046020908152604080832033845290915290205460001914155b15610a8d576001600160a01b0383166000908152600460209081526040808320338452909152902054821115610a545760405162461bcd60e51b8152602060048201526016602482015275696e73756666696369656e7420616c6c6f77616e636560501b60448201526064016104e8565b6001600160a01b038316600090815260046020908152604080832033845290915281208054849290610a87908490610c9a565b90915550505b6001600160a01b03831660009081526003602052604081208054849290610ab5908490610c9a565b90915550506040518281526001600160a01b0384169033907fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b94539060200161086c565b60005b83811015610b12578181015183820152602001610afa565b50506000910152565b6020815260008251806020840152610b3a816040850160208701610af7565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114610b6557600080fd5b919050565b60008060408385031215610b7d57600080fd5b610b8683610b4e565b946020939093013593505050565b600080600060608486031215610ba957600080fd5b610bb284610b4e565b9250610bc060208501610b4e565b9150604084013590509250925092565b600060208284031215610be257600080fd5b5035919050565b600060208284031215610bfb57600080fd5b6108ae82610b4e565b60008060408385031215610c1757600080fd5b610c2083610b4e565b9150610c2e60208401610b4e565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561047e5761047e610c37565b600181811c90821680610c7457607f821691505b602082108103610c9457634e487b7160e01b600052602260045260246000fd5b50919050565b8181038181111561047e5761047e610c37565b60008251610cbf818460208701610af7565b919091019291505056fea2646970667358221220e46d4016267b105c34d4679646e09d6fb451927a4dd464e4ebe1563577af02a664736f6c634300081400331ba0fbd8c503ac7ff82ea302cdc5d6a7195281eaa99017a6a363e36fba073028ba42a037a49fedf5460e3d33776233d88dfb242ddaf9bb5d4cb6688aa290ead65a93c7 + DEFAULT_WRAPPED_A0GI = "0x1cd0690ff9a693f5ef2dd976660a8dafc81a109c" ) // NewGenesisState returns a new genesis state object for the module. diff --git a/x/wrapped-a0gi-base/types/msg.go b/x/wrapped-a0gi-base/types/msg.go index 6d6b4a00..437c1058 100644 --- a/x/wrapped-a0gi-base/types/msg.go +++ b/x/wrapped-a0gi-base/types/msg.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -var _, _, _, _ sdk.Msg = &MsgSetWA0GI{}, &MsgSetMintCap{}, &MsgMint{}, &MsgBurn{} +var _, _, _, _ sdk.Msg = &MsgSetWA0GI{}, &MsgSetMinterCap{}, &MsgMint{}, &MsgBurn{} func (msg *MsgSetWA0GI) GetSigners() []sdk.AccAddress { addr, _ := sdk.AccAddressFromBech32(msg.Authority) @@ -24,12 +24,12 @@ func (msg MsgSetWA0GI) GetSignBytes() []byte { return sdk.MustSortJSON(AminoCdc.MustMarshalJSON(&msg)) } -func (msg *MsgSetMintCap) GetSigners() []sdk.AccAddress { +func (msg *MsgSetMinterCap) GetSigners() []sdk.AccAddress { addr, _ := sdk.AccAddressFromBech32(msg.Authority) return []sdk.AccAddress{addr} } -func (msg *MsgSetMintCap) ValidateBasic() error { +func (msg *MsgSetMinterCap) ValidateBasic() error { if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { return errorsmod.Wrap(err, "authority") } @@ -37,7 +37,7 @@ func (msg *MsgSetMintCap) ValidateBasic() error { return nil } -func (msg MsgSetMintCap) GetSignBytes() []byte { +func (msg MsgSetMinterCap) GetSignBytes() []byte { return sdk.MustSortJSON(AminoCdc.MustMarshalJSON(&msg)) } diff --git a/x/wrapped-a0gi-base/types/tx.pb.go b/x/wrapped-a0gi-base/types/tx.pb.go index 122627dc..87358084 100644 --- a/x/wrapped-a0gi-base/types/tx.pb.go +++ b/x/wrapped-a0gi-base/types/tx.pb.go @@ -104,24 +104,24 @@ func (m *MsgSetWA0GIResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSetWA0GIResponse proto.InternalMessageInfo -type MsgSetMintCap struct { +type MsgSetMinterCap struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Minter []byte `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter,omitempty"` Cap []byte `protobuf:"bytes,3,opt,name=cap,proto3" json:"cap,omitempty"` } -func (m *MsgSetMintCap) Reset() { *m = MsgSetMintCap{} } -func (m *MsgSetMintCap) String() string { return proto.CompactTextString(m) } -func (*MsgSetMintCap) ProtoMessage() {} -func (*MsgSetMintCap) Descriptor() ([]byte, []int) { +func (m *MsgSetMinterCap) Reset() { *m = MsgSetMinterCap{} } +func (m *MsgSetMinterCap) String() string { return proto.CompactTextString(m) } +func (*MsgSetMinterCap) ProtoMessage() {} +func (*MsgSetMinterCap) Descriptor() ([]byte, []int) { return fileDescriptor_f80bf93a1fc022d3, []int{2} } -func (m *MsgSetMintCap) XXX_Unmarshal(b []byte) error { +func (m *MsgSetMinterCap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgSetMintCap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSetMinterCap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgSetMintCap.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSetMinterCap.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -131,33 +131,33 @@ func (m *MsgSetMintCap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } -func (m *MsgSetMintCap) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSetMintCap.Merge(m, src) +func (m *MsgSetMinterCap) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetMinterCap.Merge(m, src) } -func (m *MsgSetMintCap) XXX_Size() int { +func (m *MsgSetMinterCap) XXX_Size() int { return m.Size() } -func (m *MsgSetMintCap) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSetMintCap.DiscardUnknown(m) +func (m *MsgSetMinterCap) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetMinterCap.DiscardUnknown(m) } -var xxx_messageInfo_MsgSetMintCap proto.InternalMessageInfo +var xxx_messageInfo_MsgSetMinterCap proto.InternalMessageInfo -type MsgSetMintCapResponse struct { +type MsgSetMinterCapResponse struct { } -func (m *MsgSetMintCapResponse) Reset() { *m = MsgSetMintCapResponse{} } -func (m *MsgSetMintCapResponse) String() string { return proto.CompactTextString(m) } -func (*MsgSetMintCapResponse) ProtoMessage() {} -func (*MsgSetMintCapResponse) Descriptor() ([]byte, []int) { +func (m *MsgSetMinterCapResponse) Reset() { *m = MsgSetMinterCapResponse{} } +func (m *MsgSetMinterCapResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetMinterCapResponse) ProtoMessage() {} +func (*MsgSetMinterCapResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f80bf93a1fc022d3, []int{3} } -func (m *MsgSetMintCapResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgSetMinterCapResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgSetMintCapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSetMinterCapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgSetMintCapResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSetMinterCapResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -167,17 +167,17 @@ func (m *MsgSetMintCapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *MsgSetMintCapResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSetMintCapResponse.Merge(m, src) +func (m *MsgSetMinterCapResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetMinterCapResponse.Merge(m, src) } -func (m *MsgSetMintCapResponse) XXX_Size() int { +func (m *MsgSetMinterCapResponse) XXX_Size() int { return m.Size() } -func (m *MsgSetMintCapResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSetMintCapResponse.DiscardUnknown(m) +func (m *MsgSetMinterCapResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetMinterCapResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgSetMintCapResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgSetMinterCapResponse proto.InternalMessageInfo type MsgMint struct { Minter []byte `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter,omitempty"` @@ -330,8 +330,8 @@ var xxx_messageInfo_MsgBurnResponse proto.InternalMessageInfo func init() { proto.RegisterType((*MsgSetWA0GI)(nil), "zgc.wrappeda0gibase.MsgSetWA0GI") proto.RegisterType((*MsgSetWA0GIResponse)(nil), "zgc.wrappeda0gibase.MsgSetWA0GIResponse") - proto.RegisterType((*MsgSetMintCap)(nil), "zgc.wrappeda0gibase.MsgSetMintCap") - proto.RegisterType((*MsgSetMintCapResponse)(nil), "zgc.wrappeda0gibase.MsgSetMintCapResponse") + proto.RegisterType((*MsgSetMinterCap)(nil), "zgc.wrappeda0gibase.MsgSetMinterCap") + proto.RegisterType((*MsgSetMinterCapResponse)(nil), "zgc.wrappeda0gibase.MsgSetMinterCapResponse") proto.RegisterType((*MsgMint)(nil), "zgc.wrappeda0gibase.MsgMint") proto.RegisterType((*MsgMintResponse)(nil), "zgc.wrappeda0gibase.MsgMintResponse") proto.RegisterType((*MsgBurn)(nil), "zgc.wrappeda0gibase.MsgBurn") @@ -341,34 +341,34 @@ func init() { func init() { proto.RegisterFile("zgc/wrappeda0gibase/tx.proto", fileDescriptor_f80bf93a1fc022d3) } var fileDescriptor_f80bf93a1fc022d3 = []byte{ - // 421 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x4f, 0xab, 0xd3, 0x40, - 0x14, 0xc5, 0x93, 0x57, 0xe9, 0xf3, 0x5d, 0x2b, 0x6a, 0x6a, 0x6b, 0x1a, 0x4a, 0x28, 0xc1, 0x45, - 0x11, 0x9a, 0x09, 0xea, 0xc6, 0xa5, 0x15, 0x11, 0x85, 0x6c, 0x22, 0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0x00, 0x00, 0xff, 0xff, 0x6f, 0x43, 0x23, - 0x4d, 0x9f, 0x03, 0x00, 0x00, + // 419 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xc1, 0xae, 0xd2, 0x40, + 0x14, 0x86, 0x5b, 0x30, 0x20, 0x23, 0x89, 0x5a, 0x14, 0x4b, 0x43, 0x1a, 0xd2, 0xb0, 0x60, 0x21, + 0x9d, 0x46, 0xdd, 0xb8, 0x14, 0x63, 0x8c, 0x26, 0xdd, 0xd4, 0x44, 0xa3, 0x1b, 0x33, 0x2d, 0xe3, + 0xd0, 0x84, 0x76, 0x9a, 0xce, 0x34, 0x02, 0x4f, 0xe1, 0x63, 0xb1, 0x64, 0xa9, 0x3b, 0x2f, 0xbc, + 0xc8, 0xcd, 0x4c, 0x69, 0x6f, 0x21, 0x17, 0xb8, 0xb9, 0xbb, 0x39, 0xff, 0xf9, 0xcf, 0x77, 0x9a, + 0xbf, 0x39, 0xa0, 0xbf, 0x22, 0x01, 0xfc, 0x9d, 0xa2, 0x24, 0xc1, 0x53, 0xe4, 0x90, 0xd0, 0x47, + 0x0c, 0x43, 0xbe, 0xb0, 0x93, 0x94, 0x72, 0xaa, 0x75, 0x56, 0x24, 0xb0, 0x8f, 0xba, 0x46, 0x2f, + 0xa0, 0x2c, 0xa2, 0xec, 0xa7, 0xb4, 0xc0, 0xbc, 0xc8, 0xfd, 0xc6, 0x33, 0x42, 0x09, 0xcd, 0x75, + 0xf1, 0xda, 0xab, 0x3d, 0x42, 0x29, 0x99, 0x63, 0x28, 0x2b, 0x3f, 0xfb, 0x05, 0x51, 0xbc, 0xcc, + 0x5b, 0xd6, 0x07, 0xf0, 0xc8, 0x65, 0xe4, 0x0b, 0xe6, 0xdf, 0xde, 0x39, 0x1f, 0x3f, 0x69, 0x7d, + 0xd0, 0x42, 0x19, 0x9f, 0xd1, 0x34, 0xe4, 0x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b, 0xaa, 0x9b, 0xad, + 0xa9, 0xfe, 0xdf, 0x9a, 0xea, 0x9f, 0x9d, 0xa9, 0x6c, 0x76, 0xa6, 0xf2, 0x77, 0x67, 0x2a, 0x3f, + 0xde, 0x90, 0x90, 0xcf, 0x32, 0xdf, 0x0e, 0x68, 0x04, 0x1d, 0x32, 0x47, 0x3e, 0x83, 0x0e, 0x19, + 0x07, 0x33, 0x14, 0xc6, 0x70, 0x51, 0x5c, 0xe0, 0x58, 0xc0, 0xc7, 0xf9, 0x0d, 0x2e, 0x13, 0xcc, + 0xfc, 0x86, 0x3c, 0x93, 0xd7, 0xd7, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x07, 0x50, 0x07, 0xa7, + 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -384,7 +384,7 @@ const _ = grpc.SupportPackageIsVersion4 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { SetWA0GI(ctx context.Context, in *MsgSetWA0GI, opts ...grpc.CallOption) (*MsgSetWA0GIResponse, error) - SetMinterCap(ctx context.Context, in *MsgSetMintCap, opts ...grpc.CallOption) (*MsgSetMintCapResponse, error) + SetMinterCap(ctx context.Context, in *MsgSetMinterCap, opts ...grpc.CallOption) (*MsgSetMinterCapResponse, error) Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error) Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error) } @@ -406,8 +406,8 @@ func (c *msgClient) SetWA0GI(ctx context.Context, in *MsgSetWA0GI, opts ...grpc. return out, nil } -func (c *msgClient) SetMinterCap(ctx context.Context, in *MsgSetMintCap, opts ...grpc.CallOption) (*MsgSetMintCapResponse, error) { - out := new(MsgSetMintCapResponse) +func (c *msgClient) SetMinterCap(ctx context.Context, in *MsgSetMinterCap, opts ...grpc.CallOption) (*MsgSetMinterCapResponse, error) { + out := new(MsgSetMinterCapResponse) err := c.cc.Invoke(ctx, "/zgc.wrappeda0gibase.Msg/SetMinterCap", in, out, opts...) if err != nil { return nil, err @@ -436,7 +436,7 @@ func (c *msgClient) Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOpti // MsgServer is the server API for Msg service. type MsgServer interface { SetWA0GI(context.Context, *MsgSetWA0GI) (*MsgSetWA0GIResponse, error) - SetMinterCap(context.Context, *MsgSetMintCap) (*MsgSetMintCapResponse, error) + SetMinterCap(context.Context, *MsgSetMinterCap) (*MsgSetMinterCapResponse, error) Mint(context.Context, *MsgMint) (*MsgMintResponse, error) Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error) } @@ -448,7 +448,7 @@ type UnimplementedMsgServer struct { func (*UnimplementedMsgServer) SetWA0GI(ctx context.Context, req *MsgSetWA0GI) (*MsgSetWA0GIResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetWA0GI not implemented") } -func (*UnimplementedMsgServer) SetMinterCap(ctx context.Context, req *MsgSetMintCap) (*MsgSetMintCapResponse, error) { +func (*UnimplementedMsgServer) SetMinterCap(ctx context.Context, req *MsgSetMinterCap) (*MsgSetMinterCapResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetMinterCap not implemented") } func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error) { @@ -481,7 +481,7 @@ func _Msg_SetWA0GI_Handler(srv interface{}, ctx context.Context, dec func(interf } func _Msg_SetMinterCap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetMintCap) + in := new(MsgSetMinterCap) if err := dec(in); err != nil { return nil, err } @@ -493,7 +493,7 @@ func _Msg_SetMinterCap_Handler(srv interface{}, ctx context.Context, dec func(in FullMethod: "/zgc.wrappeda0gibase.Msg/SetMinterCap", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetMinterCap(ctx, req.(*MsgSetMintCap)) + return srv.(MsgServer).SetMinterCap(ctx, req.(*MsgSetMinterCap)) } return interceptor(ctx, in, info, handler) } @@ -619,7 +619,7 @@ func (m *MsgSetWA0GIResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgSetMintCap) Marshal() (dAtA []byte, err error) { +func (m *MsgSetMinterCap) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -629,12 +629,12 @@ func (m *MsgSetMintCap) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgSetMintCap) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSetMinterCap) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgSetMintCap) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSetMinterCap) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -663,7 +663,7 @@ func (m *MsgSetMintCap) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgSetMintCapResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgSetMinterCapResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -673,12 +673,12 @@ func (m *MsgSetMintCapResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgSetMintCapResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSetMinterCapResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgSetMintCapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSetMinterCapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -843,7 +843,7 @@ func (m *MsgSetWA0GIResponse) Size() (n int) { return n } -func (m *MsgSetMintCap) Size() (n int) { +func (m *MsgSetMinterCap) Size() (n int) { if m == nil { return 0 } @@ -864,7 +864,7 @@ func (m *MsgSetMintCap) Size() (n int) { return n } -func (m *MsgSetMintCapResponse) Size() (n int) { +func (m *MsgSetMinterCapResponse) Size() (n int) { if m == nil { return 0 } @@ -1097,7 +1097,7 @@ func (m *MsgSetWA0GIResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgSetMintCap) Unmarshal(dAtA []byte) error { +func (m *MsgSetMinterCap) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1120,10 +1120,10 @@ func (m *MsgSetMintCap) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgSetMintCap: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetMinterCap: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSetMintCap: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetMinterCap: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1247,7 +1247,7 @@ func (m *MsgSetMintCap) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgSetMintCapResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSetMinterCapResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1270,10 +1270,10 @@ func (m *MsgSetMintCapResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgSetMintCapResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSetMinterCapResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSetMintCapResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSetMinterCapResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: