From 2da0716bdf258e8b9a73b0de0119592f98ed043b Mon Sep 17 00:00:00 2001 From: sterliakov <50529348+sterliakov@users.noreply.github.com> Date: Wed, 1 Feb 2023 01:26:31 +0400 Subject: [PATCH] Hotfix/revenue renaming (#2) * Adjust missed constant names * Add wheels to github release --- .github/workflows/deploy.yml | 2 +- evmos/__init__.py | 2 +- evmos/eip712/__init__.py | 12 ++++++------ evmos/eip712/revenue.py | 6 +++--- evmos/transactions/revenue.py | 12 ++++++------ 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e551dc5..0691fc1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,7 +41,7 @@ jobs: - name: Get Asset name run: | - export PKG=$(ls dist/ | grep tar) + export PKG=$(ls dist/ | grep -E 'tar|whl') set -- $PKG echo "name=$1" >> $GITHUB_ENV - name: Upload Release Asset (sdist) to GitHub diff --git a/evmos/__init__.py b/evmos/__init__.py index a885608..3ddc498 100644 --- a/evmos/__init__.py +++ b/evmos/__init__.py @@ -1,3 +1,3 @@ from __future__ import annotations -__version__ = '0.1.0' +__version__ = '0.1.1' diff --git a/evmos/eip712/__init__.py b/evmos/eip712/__init__.py index 8685e77..3cb5e5a 100644 --- a/evmos/eip712/__init__.py +++ b/evmos/eip712/__init__.py @@ -19,9 +19,9 @@ create_msg_convert_erc20, ) from evmos.eip712.revenue import ( - MSG_CANCEL_FEE_SPLIT_TYPES, - MSG_REGISTER_FEE_SPLIT_TYPES, - MSG_UPDATE_FEE_SPLIT_TYPES, + MSG_CANCEL_REVENUE_TYPES, + MSG_REGISTER_REVENUE_TYPES, + MSG_UPDATE_REVENUE_TYPES, create_msg_cancel_revenue, create_msg_register_revenue, create_msg_update_revenue, @@ -49,7 +49,7 @@ 'create_msg_cancel_revenue', 'create_msg_convert_coin', 'create_msg_convert_erc20', - 'MSG_CANCEL_FEE_SPLIT_TYPES', + 'MSG_CANCEL_REVENUE_TYPES', 'create_msg_delegate', 'create_msg_edit_validator', 'create_msg_set_withdraw_address', @@ -70,10 +70,10 @@ 'IBC_MSG_TRANSFER_TYPES', 'MSG_BEGIN_REDELEGATE_TYPES', 'MSG_CONVERT_ERC20_TYPES', - 'MSG_REGISTER_FEE_SPLIT_TYPES', + 'MSG_REGISTER_REVENUE_TYPES', 'MSG_SEND_TYPES', 'MSG_UNDELEGATE_TYPES', - 'MSG_UPDATE_FEE_SPLIT_TYPES', + 'MSG_UPDATE_REVENUE_TYPES', 'MSG_WITHDRAW_DELEGATOR_REWARD_TYPES', 'MSG_WITHDRAW_VALIDATOR_COMMISSION_TYPES', 'MSG_EDIT_VALIDATOR_TYPES', diff --git a/evmos/eip712/revenue.py b/evmos/eip712/revenue.py index e8ce700..3cc5c53 100644 --- a/evmos/eip712/revenue.py +++ b/evmos/eip712/revenue.py @@ -4,7 +4,7 @@ from evmos.eip712.base import MsgInterface -MSG_CANCEL_FEE_SPLIT_TYPES: Final = { +MSG_CANCEL_REVENUE_TYPES: Final = { 'MsgValue': [ {'name': 'contract_address', 'type': 'string'}, {'name': 'deployer_address', 'type': 'string'}, @@ -27,7 +27,7 @@ def create_msg_cancel_revenue( } -MSG_REGISTER_FEE_SPLIT_TYPES: Final = { +MSG_REGISTER_REVENUE_TYPES: Final = { 'MsgValue': [ {'name': 'contract_address', 'type': 'string'}, {'name': 'deployer_address', 'type': 'string'}, @@ -56,7 +56,7 @@ def create_msg_register_revenue( } -MSG_UPDATE_FEE_SPLIT_TYPES: Final = { +MSG_UPDATE_REVENUE_TYPES: Final = { 'MsgValue': [ {'name': 'contract_address', 'type': 'string'}, {'name': 'deployer_address', 'type': 'string'}, diff --git a/evmos/transactions/revenue.py b/evmos/transactions/revenue.py index f13d007..d3a0d45 100644 --- a/evmos/transactions/revenue.py +++ b/evmos/transactions/revenue.py @@ -3,9 +3,9 @@ from typing import Any, Mapping, Sequence from evmos.eip712 import ( - MSG_CANCEL_FEE_SPLIT_TYPES, - MSG_REGISTER_FEE_SPLIT_TYPES, - MSG_UPDATE_FEE_SPLIT_TYPES, + MSG_CANCEL_REVENUE_TYPES, + MSG_REGISTER_REVENUE_TYPES, + MSG_UPDATE_REVENUE_TYPES, create_msg_cancel_revenue, create_msg_register_revenue, create_msg_update_revenue, @@ -24,7 +24,7 @@ # msgCancelRevenue.ts -@to_generated(MSG_CANCEL_FEE_SPLIT_TYPES) +@to_generated(MSG_CANCEL_REVENUE_TYPES) def create_tx_msg_cancel_revenue( contract_address: str, deployer_address: str, @@ -46,7 +46,7 @@ def create_tx_msg_cancel_revenue( # msgRegisterRevenue.ts -@to_generated(MSG_REGISTER_FEE_SPLIT_TYPES) +@to_generated(MSG_REGISTER_REVENUE_TYPES) def create_tx_msg_register_revenue( contract_address: str, deployer_address: str, @@ -73,7 +73,7 @@ def create_tx_msg_register_revenue( # msgUpdateRevenue.ts -@to_generated(MSG_UPDATE_FEE_SPLIT_TYPES) +@to_generated(MSG_UPDATE_REVENUE_TYPES) def create_tx_msg_update_revenue( contract_address: str, deployer_address: str,