cardano_wallet 0.3.11 → 0.3.12

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: 5c14cc02d6ed07e1806787d053ba1757012cf99210aba0aa4d24945319fea0eb
4
- data.tar.gz: f6f4cf5ba6b44c8cce833d5718f8bb5bde56ba4067c426f4b16f7881d06f2a65
3
+ metadata.gz: 3d537fcde82dbf5b749eb610fe65c56650e81d894ae4cebe70597214e8b7c5a9
4
+ data.tar.gz: 3f69daffc7168cf217583ea22711dc376117e2f7e22cc94796718f498d410a37
5
5
  SHA512:
6
- metadata.gz: 582a9a4b01270bb7cba2689b2b9eee63ed605918c28ba1f982b293dabd3804607e424340cefd07c86b83a59b5ffdbecaa9ddac55c4ae630a338fc4294c113079
7
- data.tar.gz: b6e0ca9ecfb84d3be28c617e298d5029cf81c74624420de6ee11a34817775087fe8660f67867fd4e51e57695669138100a0d47e3efb6f1b3589611d2cb5b3302
6
+ metadata.gz: 2aef5a637abe1835ee974da83b945fa6512f1386c45677e27b6d7b523d26900242e7f15f9de70a5246b85309f7df7f59e7ddfb66e5af4e9395a0caa7f2eb279b
7
+ data.tar.gz: f36919d5ed2d2c6c7a1859f9c3d27b3217d3adde85fecb76e93d790e632e4064d660f1888ce9cb7eeee885d28d287d361fb27f9a01b55f14c08bd1d62d08da5c
@@ -62,6 +62,21 @@ module CardanoWallet
62
62
  ##
63
63
  # Base class for Shelley Assets API
64
64
  class Assets < Base
65
+ # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/mintBurnAssets
66
+ def mint(wid, mint_burn, pass, metadata = nil, ttl = nil)
67
+ payload = {
68
+ mint_burn: mint_burn,
69
+ passphrase: pass
70
+ }
71
+
72
+ payload[:metadata] = metadata if metadata
73
+ payload[:time_to_live] = { quantity: ttl, unit: 'second' } if ttl
74
+
75
+ self.class.post("/wallets/#{wid}/assets",
76
+ body: payload.to_json,
77
+ headers: { 'Content-Type' => 'application/json' })
78
+ end
79
+
65
80
  # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listAssets
66
81
  # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getAsset
67
82
  # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getAssetDefault
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CardanoWallet
4
- VERSION = '0.3.11'
4
+ VERSION = '0.3.12'
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.11
4
+ version: 0.3.12
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-06-09 00:00:00.000000000 Z
11
+ date: 2021-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
166
  requirements: []
167
- rubygems_version: 3.2.15
167
+ rubygems_version: 3.2.22
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: Ruby wrapper over cardano-wallet.