cardano_wallet 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c4ef984dbf796ca336b600e76893886c71143afe2e1e595213b811422583449
4
- data.tar.gz: e5301c79329e5479d586da24699387bef0b51b2e0d13039a71205516987bfe55
3
+ metadata.gz: c950332d6aa59108f227517d4c832b4f5e0427be93205ba6b6f88a93b85ef7dd
4
+ data.tar.gz: fb58ff9bd30d1adbd5ad9014093ca4e58cb3d625103b45e31b4289625a46e31a
5
5
  SHA512:
6
- metadata.gz: d3993f7213a754bf4a84635f332771daba159a8fe7bd0f843b1a69ee8c8732ac948574a5511bd11b6f7c95a0ca17b5f47befe4fff1154cf3364a16dea3d42bb4
7
- data.tar.gz: 7e622616a8ca9d661446150aeaa0afec89036a43d0c442f6bd16f94f5ce1a154b53f8b812ae5d46cd77e4c19cad4cf26609e5810e843e60ab268ba27ee606950
6
+ metadata.gz: 7a1e6e2eeb3734432a792d6e00736fd816fa3244f8f1651ad6daa7ddf91ac9ccb60392ae370bf0e45d9e199af7258e82afa8c75f50d34662bab535e4508398fd
7
+ data.tar.gz: f03b8111111b85cc59c8f22ea86fea2e5159a6634b69c1c06e20d786394ba037fa1f866aff081ad2c18aa1fb85e172e9fcb5f796e40b3124cb1000c5d47ad542
@@ -276,10 +276,12 @@ module CardanoWallet
276
276
  # Byron migrations
277
277
  # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Byron-Migrations
278
278
  class Migrations < Base
279
- # Calculate migration cost
280
- # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getByronWalletMigrationInfo
281
- def cost(wid)
282
- self.class.get("/byron-wallets/#{wid}/migrations")
279
+ # Get migration plan
280
+ # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/createByronWalletMigrationPlan
281
+ def plan(wid, addresses)
282
+ self.class.post("/byron-wallets/#{wid}/migrations/plan",
283
+ body: { addresses: addresses }.to_json,
284
+ headers: { 'Content-Type' => 'application/json' })
283
285
  end
284
286
 
285
287
  # Migrate all funds from Byron wallet.
@@ -369,10 +369,12 @@ module CardanoWallet
369
369
  # Shelley migrations
370
370
  # @see https://input-output-hk.github.io/cardano-wallet/api/#tag/Migrations
371
371
  class Migrations < Base
372
- # Calculate migration cost
373
- # @see https://input-output-hk.github.io/cardano-wallet/api/#operation/getShelleyWalletMigrationInfo
374
- def cost(wid)
375
- self.class.get("/wallets/#{wid}/migrations")
372
+ # Get migration plan
373
+ # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/createShelleyWalletMigrationPlan
374
+ def plan(wid, addresses)
375
+ self.class.post("/wallets/#{wid}/migrations/plan",
376
+ body: { addresses: addresses }.to_json,
377
+ headers: { 'Content-Type' => 'application/json' })
376
378
  end
377
379
 
378
380
  # Migrate all funds from Shelley wallet.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CardanoWallet
4
- VERSION = '0.3.4'
4
+ VERSION = '0.3.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cardano_wallet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Stachyra
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-19 00:00:00.000000000 Z
11
+ date: 2021-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty