evm-tokenvote

Voting machine using ERC20 tokens as votes.
Log | Files | Refs

commit 4aff061e1dd6cc6ba98ca7430539dc6ef7a3c2c0
parent 7beca73b186995c6143036b9ccedf5d1ac5a1392
Author: lash <dev@holbrook.no>
Date:   Sun,  7 May 2023 14:44:49 +0100

Correct package info, add back version to constructor

Diffstat:
Mpython/evm_tokenvote/unittest/base.py | 1-
Mpython/evm_tokenvote/voter.py | 2+-
Mpython/setup.cfg | 16++++++----------
3 files changed, 7 insertions(+), 12 deletions(-)

diff --git a/python/evm_tokenvote/unittest/base.py b/python/evm_tokenvote/unittest/base.py @@ -9,7 +9,6 @@ from chainlib.eth.nonce import RPCNonceOracle from chainlib.eth.tx import receipt from chainlib.eth.address import to_checksum_address from giftable_erc20_token.unittest import TestGiftableToken -#from giftable_erc20_token import GiftableToken from eth_erc20 import ERC20 from chainlib.eth.block import block_latest from eth_accounts_index.unittest import TestAccountsIndex diff --git a/python/evm_tokenvote/voter.py b/python/evm_tokenvote/voter.py @@ -65,7 +65,7 @@ class Voter(TxFactory): __bytecode = None def constructor(self, sender_address, token_address, protect_supply=False, voter_registry_address=None, proposer_registry_address=None, tx_format=TxFormat.JSONRPC, version=None): - code = self.cargs(token_address, protect_supply=protect_supply, voter_registry_address=voter_registry_address, proposer_registry_address=proposer_registry_address) + code = self.cargs(token_address, protect_supply=protect_supply, voter_registry_address=voter_registry_address, proposer_registry_address=proposer_registry_address, version=version) tx = self.template(sender_address, None, use_nonce=True) tx = self.set_code(tx, code) return self.finalize(tx, tx_format) diff --git a/python/setup.cfg b/python/setup.cfg @@ -1,10 +1,10 @@ [metadata] -name = craft-nft -version = 0.2.0 -description = A standalone NFT implementation for real-world arts and crafts assets +name = evm_tokenvote +version = 0.0.1 +description = Voting machine using ERC20 tokens as votes. author = Louis Holbrook author_email = dev@holbrook.no -url = https://git.defalslfy.org/craft-nft,git +url = https://holbrook.no/src/evm_tokenvote/log.html keywords = dlt blockchain @@ -31,9 +31,5 @@ packages = craft_nft craft_nft.runnable -[options.entry_points] -console_scripts = - craftnft-publish = craft_nft.runnable.publish:main - craftnft-dump = craft_nft.runnable.dump:main - craftnft-allocate = craft_nft.runnable.allocate:main - craftnft-mint = craft_nft.runnable.mint:main +#[options.entry_points] +#console_scripts =