fireblocks 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/fireblocks/api/api.rb +2 -2
- data/lib/fireblocks/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: a30bcb8d4d04f9bb81cbb036954520f7336b838fd5cdffc34613c8da6c3126aa
|
4
|
+
data.tar.gz: 445ff10ca15825b328b5cd4511e5faa58418a601c61fb23eecd85d2522359e93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c84b90d37dd47a43873202309db6e1b6c03e4a6abe33185ba2586abbf8080ba7c9d1e6313bf7c542b8ac0555f50feb3aecf7696150d5bd79e86785e09144132a
|
7
|
+
data.tar.gz: 8ebc9ee7e16a7c01f97c7c4fba0c05e709f24cc8c77c8b74099f2e54e22f157d0f49395cf294e5a14e1ab9d861abb01992a31bac15abccd33c0a4c2a6060ef96
|
data/README.md
CHANGED
@@ -6,14 +6,14 @@ The Ruby gem wrapper for Fireblocks! This gem is actively being developed. **Be
|
|
6
6
|
|
7
7
|
To install, type:
|
8
8
|
|
9
|
-
```
|
9
|
+
```ruby
|
10
10
|
gem install fireblocks
|
11
11
|
```
|
12
12
|
|
13
13
|
Add to your `Gemfile`:
|
14
14
|
|
15
15
|
```ruby
|
16
|
-
gem "fireblocks", "~> 0.
|
16
|
+
gem "fireblocks", "~> 0.2.0"
|
17
17
|
```
|
18
18
|
|
19
19
|
Run `bundle install`
|
@@ -39,7 +39,7 @@ end
|
|
39
39
|
|
40
40
|
Available methods can be found in `Fireblocks::API`
|
41
41
|
|
42
|
-
```
|
42
|
+
```ruby
|
43
43
|
# To create a vault account
|
44
44
|
Fireblocks::API.create_vault_account(name: 'test_name')
|
45
45
|
|
data/lib/fireblocks/api/api.rb
CHANGED
@@ -31,14 +31,14 @@ module Fireblocks
|
|
31
31
|
Request.post(path: "/v1/vault/accounts/#{vault_account_id}/#{asset_id}")
|
32
32
|
end
|
33
33
|
|
34
|
-
def create_deposit_address(vault_account_id, asset_id, description:)
|
34
|
+
def create_deposit_address(vault_account_id, asset_id, description: nil)
|
35
35
|
Request.post(
|
36
36
|
body: { description: description },
|
37
37
|
path: "/v1/vault/accounts/#{vault_account_id}/#{asset_id}/addresses"
|
38
38
|
)
|
39
39
|
end
|
40
40
|
|
41
|
-
def
|
41
|
+
def get_deposit_addresses(vault_account_id, asset_id)
|
42
42
|
Request.get(
|
43
43
|
path: "/v1/vault/accounts/#{vault_account_id}/#{asset_id}/addresses"
|
44
44
|
)
|
data/lib/fireblocks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fireblocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryam Noguera
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|