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 +4 -4
- data/lib/cardano_wallet/byron.rb +6 -4
- data/lib/cardano_wallet/shelley.rb +6 -4
- data/lib/cardano_wallet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c950332d6aa59108f227517d4c832b4f5e0427be93205ba6b6f88a93b85ef7dd
|
4
|
+
data.tar.gz: fb58ff9bd30d1adbd5ad9014093ca4e58cb3d625103b45e31b4289625a46e31a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a1e6e2eeb3734432a792d6e00736fd816fa3244f8f1651ad6daa7ddf91ac9ccb60392ae370bf0e45d9e199af7258e82afa8c75f50d34662bab535e4508398fd
|
7
|
+
data.tar.gz: f03b8111111b85cc59c8f22ea86fea2e5159a6634b69c1c06e20d786394ba037fa1f866aff081ad2c18aa1fb85e172e9fcb5f796e40b3124cb1000c5d47ad542
|
data/lib/cardano_wallet/byron.rb
CHANGED
@@ -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
|
-
#
|
280
|
-
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/
|
281
|
-
def
|
282
|
-
self.class.
|
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
|
-
#
|
373
|
-
# @see https://input-output-hk.github.io/cardano-wallet/api/#operation/
|
374
|
-
def
|
375
|
-
self.class.
|
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.
|
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
|
+
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
|
11
|
+
date: 2021-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|