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 +4 -4
- data/lib/cardano_wallet/shelley.rb +15 -0
- data/lib/cardano_wallet/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d537fcde82dbf5b749eb610fe65c56650e81d894ae4cebe70597214e8b7c5a9
|
4
|
+
data.tar.gz: 3f69daffc7168cf217583ea22711dc376117e2f7e22cc94796718f498d410a37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.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-
|
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.
|
167
|
+
rubygems_version: 3.2.22
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: Ruby wrapper over cardano-wallet.
|