Skip to content

Commit

Permalink
Hotfix/revenue renaming (#2)
Browse files Browse the repository at this point in the history
* Adjust missed constant names

* Add wheels to github release
  • Loading branch information
sterliakov authored Jan 31, 2023
1 parent 137336f commit 2da0716
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion evmos/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import annotations

__version__ = '0.1.0'
__version__ = '0.1.1'
12 changes: 6 additions & 6 deletions evmos/eip712/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions evmos/eip712/revenue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand All @@ -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'},
Expand Down Expand Up @@ -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'},
Expand Down
12 changes: 6 additions & 6 deletions evmos/transactions/revenue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 2da0716

Please sign in to comment.