Skip to content

Pool certificates #321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 32 commits into from
Feb 26, 2024
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
20f554e
feat: add cardano-cli chain context
HareemAtWave Oct 7, 2023
d1266d1
fix: allow instances of str to submit_tx_cbor
HareemAtWave Oct 7, 2023
dba6cba
Merge branch 'Python-Cardano:main' into cardano-cli-chain-context
KINGH242 Oct 7, 2023
bcd683b
fix: cast to int for asset amount and check for None in get_min_utxo
HareemAtWave Oct 8, 2023
e1fc6c6
test: add test for cardano-cli chain context
HareemAtWave Oct 8, 2023
eaa4166
Black formatting
nielstron Oct 30, 2023
45fa266
Fix some QA issues
nielstron Oct 30, 2023
20b544f
refactor: use `--out-file /dev/stdout` to get utxo data as json
KINGH242 Nov 2, 2023
efe1698
fix: remove unused offline/online mode code
KINGH242 Nov 2, 2023
6ae4e64
fix: remove unused fraction parser method
KINGH242 Nov 2, 2023
57d4f2e
fix: add docker configuration to use cardano-cli in a Docker containe…
KINGH242 Nov 3, 2023
9a549dd
test: add integration tests for cardano-cli
KINGH242 Nov 3, 2023
3e72507
test: fix cardano-node container name
KINGH242 Nov 6, 2023
e31f9d8
feat: add initial functionality for pool certificates
KINGH242 Nov 11, 2023
5a1b2a4
test: add some tests for pool certificates
KINGH242 Nov 11, 2023
c064bb0
refactor: use built in fractions module
KINGH242 Nov 16, 2023
dad6992
fix: output PoolRegistration as flat list
KINGH242 Nov 16, 2023
af4edbc
fix: clean up some code
KINGH242 Nov 16, 2023
f497d5b
test: add tests for pool params
KINGH242 Nov 16, 2023
ac4a29b
Add more integration tests for cardano cli context
cffls Jan 1, 2024
753e630
Merge branch 'main' into cardano-cli-chain-context
nielstron Feb 6, 2024
7e30628
Merge branch 'cardano-cli-chain-context' into pool-certificates
KINGH242 Feb 8, 2024
8f1df05
feat: add stake pool key pairs
KINGH242 Feb 25, 2024
6d3ce1d
fix: resolve mypy and black linting issues
KINGH242 Feb 25, 2024
daa85c3
feat: add witness count override for fee estimation
KINGH242 Feb 25, 2024
b185559
chore: add integration test temporary folders to ignore
KINGH242 Feb 25, 2024
c72b493
test: add test for pool certificate related code
KINGH242 Feb 25, 2024
789f7cd
Merge branch 'main' into pool-certificates
KINGH242 Feb 25, 2024
abf7182
Simplify Certificate deserialization
cffls Feb 26, 2024
c845908
Fix failing test cases for python<3.10
cffls Feb 26, 2024
e6c1093
Simplify relay parsing
cffls Feb 26, 2024
d79d8cf
Remove unused import
cffls Feb 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: remove unused offline/online mode code
  • Loading branch information
KINGH242 committed Nov 2, 2023
commit efe16980a58670ac6fbffdc188ca34b0dd5cdc03
12 changes: 0 additions & 12 deletions pycardano/backend/cardano_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@
__all__ = ["CardanoCliChainContext", "CardanoCliNetwork"]


class Mode(str, Enum):
"""
Mode enumeration.
"""

ONLINE = "online"
OFFLINE = "offline"


def network_magic(magic_number: int) -> List[str]:
"""
Returns the network magic number for the cardano-cli
Expand Down Expand Up @@ -83,7 +74,6 @@ class CardanoCliChainContext(ChainContext):
_binary: Path
_socket: Optional[Path]
_config_file: Path
_mode: Mode
_network: CardanoCliNetwork
_last_known_block_slot: int
_last_chain_tip_fetch: float
Expand Down Expand Up @@ -114,10 +104,8 @@ def __init__(

self._socket = socket
os.environ["CARDANO_NODE_SOCKET_PATH"] = self._socket.as_posix()
self._mode = Mode.ONLINE
except CardanoCliError:
self._socket = None
self._mode = Mode.OFFLINE

self._binary = binary
self._network = network
Expand Down