Skip to content
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

Adjust to perun x #17

Draft
wants to merge 20 commits into
base: dev
Choose a base branch
from
Draft

Adjust to perun x #17

wants to merge 20 commits into from

Conversation

sophia1ch
Copy link
Collaborator

Description

This PR includes:

  • Changes in the Sender interface to adjust to PerunX usage
  • MultiAsset changes from the branch feat-multiasset
  • Switch from standalone network to Horizon Testnet
  • GetBalance check after funding and withdrawal
  • feat setID in events for identification
  • fix in Adjudicator_sub

sophia1ch and others added 20 commits June 12, 2024 08:06
feat: setID for events
fix: event subscription
feat: ledgerID for assets
fix(adjudicator_sub): Only return if withdrawal event was received.
chore(testdata): use contracts with soroban-sdk v20.4.0
chore(quickstart): Use newer version.
* feat(channel): Adapt channel functionality to support multiple assets on one channel, tested for two assets.

* feat(client): Adapt contract invocation to new version, temporarily hard coding a transaction fee to 500000 stroops.

* feat(payment): Adapt payment channel test/demo to two-asset channels

* feat(testdata): Add multichannel contract, perun_soroban_multi_contract.wasm.

* feat(wire): Adapt encoding between contract types and backend types to multi-asset channels.
# Conflicts:
#	channel/test/token.go
#	client/contractbackend.go
#	quickstart.sh
…ich the channel is deleted after the second withdrawal (Bob's withdrawal). Hence, GetChannelInfo returns no channel state anymore after a successful withdrawal.

* docs(channel, client): Add logs (temporarily).

* test(payment/test, payment_test): Modify TestHappyPerun to test swap.

* fix(testdata): Update contract perun_soroban_multi_contract.wasm, including the multiasset fixes.
…ance

* refactor(payment_test/client_test.go): Change initial balance to have more general swap case.

* chore(payment/test/client.go): Remove Printing of initAlloc.

* fix(wire/balances.go): Fix balance mismatch, introduced by multiasset feature.
…ding a signed transaction - decode the result of the simulated transaction result
feat(contractbackend): Add balance option to UnsignedTx.
fix(hzclient): Use testnet instead of standalone.
feat(funder): Add egoistic funding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants