-
Notifications
You must be signed in to change notification settings - Fork 24
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
Support for addresses with staking keys and wallet lookups. #136
Conversation
9b33876
to
874340c
Compare
@@ -146,6 +148,8 @@ runContractWithLogLvl logLvl cEnv bpiWallet contract = do | |||
, pcCollateralSize = fromInteger defCollateralSize | |||
} | |||
|
|||
walletInfo = makeWalletInfo bpiWallet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this wallet WalletInfo
is calculated twice from BpiWallet
(second time in withContractAs
). makeWalletInfo
basically calculates pubkey hashes. runContract
can be fed WalletInfo
instead of BpiWallet
, calculating one hash less, no problem. I only put it like that, to change less in interactive-plutip
docs. Unsure..
I removed |
will note here, as probably won't be able to work on this, that this change enables #121 with no more api changes. Simmilarly |
- hiding some internals - renamings
- removing `TestWallet` from cluster's eDSL - some renamings
- support for switching address type - adding plutip-server to hie.yaml
This is the current "Staking keys support" pr for plutip. related Issues: #103 #104
addWallets
pcOwnStakePubKeyHash
for BPI.WalletLookups
to contracts instead of list ofPubKeyHash
's.WalletTag
which specifies a) how wallet is generated b) how wallet is accessed in test caseContains changes introducing staking keys support, but together with changes to the wallet initialization and to the interface of providing user with keys in the contract.
It aims to provide lookups like so:
EDIT: nevermind