Class: CardanoWallet::Shelley::Migrations
- Defined in:
- lib/cardano_wallet/shelley.rb
Overview
Shelley migrations
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#migrate(wid, passphrase, addresses) ⇒ Object
Migrate all funds from Shelley wallet.
-
#plan(wid, addresses) ⇒ Object
Get migration plan.
Methods inherited from Base
#byron, #initialize, #misc, #shared, #shelley, #utils
Constructor Details
This class inherits a constructor from CardanoWallet::Base
Instance Method Details
#migrate(wid, passphrase, addresses) ⇒ Object
Migrate all funds from Shelley wallet.
548 549 550 551 552 553 |
# File 'lib/cardano_wallet/shelley.rb', line 548 def migrate(wid, passphrase, addresses) self.class.post("/wallets/#{wid}/migrations", body: { addresses: addresses, passphrase: passphrase }.to_json, headers: { 'Content-Type' => 'application/json' }) end |
#plan(wid, addresses) ⇒ Object
Get migration plan
537 538 539 540 541 |
# File 'lib/cardano_wallet/shelley.rb', line 537 def plan(wid, addresses) self.class.post("/wallets/#{wid}/migrations/plan", body: { addresses: addresses }.to_json, headers: { 'Content-Type' => 'application/json' }) end |