flow_client 0.1.0 → 0.2.1
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/.github/workflows/ruby.yml +2 -0
- data/.rubocop.yml +6 -0
- data/CHANGELOG.md +15 -0
- data/Gemfile +2 -5
- data/README.md +706 -52
- data/bin/console +0 -0
- data/bin/setup +0 -0
- data/docker-compose.yml +12 -0
- data/flow.json +21 -0
- data/flow_client.gemspec +0 -4
- data/lib/cadence/contracts/NonFungibleToken.cdc +144 -0
- data/lib/cadence/templates/add-account-key.cdc +16 -0
- data/lib/cadence/templates/add-contract.cdc +5 -0
- data/lib/cadence/templates/create-account.cdc +21 -0
- data/lib/cadence/templates/remove-contract.cdc +5 -0
- data/lib/cadence/templates/update-contract.cdc +5 -0
- data/lib/flow_client/account.rb +30 -0
- data/lib/flow_client/block.rb +75 -0
- data/lib/flow_client/cadence_type.rb +165 -0
- data/lib/flow_client/client.rb +292 -15
- data/lib/flow_client/collection.rb +33 -0
- data/lib/flow_client/crypto.rb +45 -16
- data/lib/flow_client/event.rb +50 -0
- data/lib/flow_client/proposal_key.rb +21 -0
- data/lib/flow_client/signature.rb +21 -0
- data/lib/flow_client/signer.rb +22 -0
- data/lib/flow_client/transaction.rb +126 -81
- data/lib/flow_client/utils.rb +41 -1
- data/lib/flow_client/version.rb +1 -1
- data/lib/flow_client.rb +8 -0
- data/logo.svg +121 -0
- data/logo@2x.png +0 -0
- data/template.md +747 -0
- metadata +25 -49
- data/Gemfile.lock +0 -115
metadata
CHANGED
|
@@ -1,43 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flow_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nico du Plessis
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-11-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: digest-sha3
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - ">="
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0'
|
|
20
|
-
type: :runtime
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - ">="
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: ecdsa
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - ">="
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0'
|
|
34
|
-
type: :runtime
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - ">="
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '0'
|
|
41
13
|
- !ruby/object:Gem::Dependency
|
|
42
14
|
name: grpc
|
|
43
15
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -108,20 +80,6 @@ dependencies:
|
|
|
108
80
|
- - ">="
|
|
109
81
|
- !ruby/object:Gem::Version
|
|
110
82
|
version: '0'
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: rspec
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - ">="
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '0'
|
|
118
|
-
type: :runtime
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - ">="
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: '0'
|
|
125
83
|
description: A Ruby client for the Flow blockchain
|
|
126
84
|
email:
|
|
127
85
|
- nico@glucode.com
|
|
@@ -136,14 +94,21 @@ files:
|
|
|
136
94
|
- CHANGELOG.md
|
|
137
95
|
- CODE_OF_CONDUCT.md
|
|
138
96
|
- Gemfile
|
|
139
|
-
- Gemfile.lock
|
|
140
97
|
- Guardfile
|
|
141
98
|
- LICENSE.txt
|
|
142
99
|
- README.md
|
|
143
100
|
- Rakefile
|
|
144
101
|
- bin/console
|
|
145
102
|
- bin/setup
|
|
103
|
+
- docker-compose.yml
|
|
104
|
+
- flow.json
|
|
146
105
|
- flow_client.gemspec
|
|
106
|
+
- lib/cadence/contracts/NonFungibleToken.cdc
|
|
107
|
+
- lib/cadence/templates/add-account-key.cdc
|
|
108
|
+
- lib/cadence/templates/add-contract.cdc
|
|
109
|
+
- lib/cadence/templates/create-account.cdc
|
|
110
|
+
- lib/cadence/templates/remove-contract.cdc
|
|
111
|
+
- lib/cadence/templates/update-contract.cdc
|
|
147
112
|
- lib/flow/access/access_pb.rb
|
|
148
113
|
- lib/flow/access/access_services_pb.rb
|
|
149
114
|
- lib/flow/entities/account_pb.rb
|
|
@@ -167,11 +132,22 @@ files:
|
|
|
167
132
|
- lib/flow/legacy/execution/execution_pb.rb
|
|
168
133
|
- lib/flow/legacy/execution/execution_services_pb.rb
|
|
169
134
|
- lib/flow_client.rb
|
|
135
|
+
- lib/flow_client/account.rb
|
|
136
|
+
- lib/flow_client/block.rb
|
|
137
|
+
- lib/flow_client/cadence_type.rb
|
|
170
138
|
- lib/flow_client/client.rb
|
|
139
|
+
- lib/flow_client/collection.rb
|
|
171
140
|
- lib/flow_client/crypto.rb
|
|
141
|
+
- lib/flow_client/event.rb
|
|
142
|
+
- lib/flow_client/proposal_key.rb
|
|
143
|
+
- lib/flow_client/signature.rb
|
|
144
|
+
- lib/flow_client/signer.rb
|
|
172
145
|
- lib/flow_client/transaction.rb
|
|
173
146
|
- lib/flow_client/utils.rb
|
|
174
147
|
- lib/flow_client/version.rb
|
|
148
|
+
- logo.svg
|
|
149
|
+
- logo@2x.png
|
|
150
|
+
- template.md
|
|
175
151
|
homepage: https://github.com/glucode/flow_client
|
|
176
152
|
licenses:
|
|
177
153
|
- MIT
|
|
@@ -179,7 +155,7 @@ metadata:
|
|
|
179
155
|
homepage_uri: https://github.com/glucode/flow_client
|
|
180
156
|
source_code_uri: https://github.com/glucode/flow_client
|
|
181
157
|
changelog_uri: https://github.com/glucode/flow_client
|
|
182
|
-
post_install_message:
|
|
158
|
+
post_install_message:
|
|
183
159
|
rdoc_options: []
|
|
184
160
|
require_paths:
|
|
185
161
|
- lib
|
|
@@ -194,8 +170,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
194
170
|
- !ruby/object:Gem::Version
|
|
195
171
|
version: '0'
|
|
196
172
|
requirements: []
|
|
197
|
-
rubygems_version: 3.
|
|
198
|
-
signing_key:
|
|
173
|
+
rubygems_version: 3.0.3.1
|
|
174
|
+
signing_key:
|
|
199
175
|
specification_version: 4
|
|
200
176
|
summary: A Ruby client for the Flow blockchain
|
|
201
177
|
test_files: []
|
data/Gemfile.lock
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
flow_client (0.1.0)
|
|
5
|
-
digest-sha3
|
|
6
|
-
ecdsa
|
|
7
|
-
grpc
|
|
8
|
-
grpc-tools
|
|
9
|
-
json
|
|
10
|
-
openssl
|
|
11
|
-
rlp
|
|
12
|
-
rspec
|
|
13
|
-
|
|
14
|
-
GEM
|
|
15
|
-
remote: https://rubygems.org/
|
|
16
|
-
specs:
|
|
17
|
-
ast (2.4.2)
|
|
18
|
-
coderay (1.1.3)
|
|
19
|
-
diff-lcs (1.4.4)
|
|
20
|
-
digest-sha3 (1.0.2)
|
|
21
|
-
ecdsa (1.2.0)
|
|
22
|
-
ffi (1.15.3)
|
|
23
|
-
formatador (0.3.0)
|
|
24
|
-
google-protobuf (3.17.3-universal-darwin)
|
|
25
|
-
google-protobuf (3.17.3-x86_64-linux)
|
|
26
|
-
googleapis-common-protos-types (1.1.0)
|
|
27
|
-
google-protobuf (~> 3.14)
|
|
28
|
-
grpc (1.38.0-universal-darwin)
|
|
29
|
-
google-protobuf (~> 3.15)
|
|
30
|
-
googleapis-common-protos-types (~> 1.0)
|
|
31
|
-
grpc (1.38.0-x86_64-linux)
|
|
32
|
-
google-protobuf (~> 3.15)
|
|
33
|
-
googleapis-common-protos-types (~> 1.0)
|
|
34
|
-
grpc-tools (1.38.0)
|
|
35
|
-
guard (2.17.0)
|
|
36
|
-
formatador (>= 0.2.4)
|
|
37
|
-
listen (>= 2.7, < 4.0)
|
|
38
|
-
lumberjack (>= 1.0.12, < 2.0)
|
|
39
|
-
nenv (~> 0.1)
|
|
40
|
-
notiffany (~> 0.0)
|
|
41
|
-
pry (>= 0.9.12)
|
|
42
|
-
shellany (~> 0.0)
|
|
43
|
-
thor (>= 0.18.1)
|
|
44
|
-
guard-compat (1.2.1)
|
|
45
|
-
guard-rspec (4.7.3)
|
|
46
|
-
guard (~> 2.1)
|
|
47
|
-
guard-compat (~> 1.1)
|
|
48
|
-
rspec (>= 2.99.0, < 4.0)
|
|
49
|
-
json (2.5.1)
|
|
50
|
-
listen (3.5.1)
|
|
51
|
-
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
52
|
-
rb-inotify (~> 0.9, >= 0.9.10)
|
|
53
|
-
lumberjack (1.2.8)
|
|
54
|
-
method_source (1.0.0)
|
|
55
|
-
nenv (0.3.0)
|
|
56
|
-
notiffany (0.1.3)
|
|
57
|
-
nenv (~> 0.1)
|
|
58
|
-
shellany (~> 0.0)
|
|
59
|
-
openssl (2.2.0)
|
|
60
|
-
parallel (1.20.1)
|
|
61
|
-
parser (3.0.2.0)
|
|
62
|
-
ast (~> 2.4.1)
|
|
63
|
-
pry (0.14.1)
|
|
64
|
-
coderay (~> 1.1)
|
|
65
|
-
method_source (~> 1.0)
|
|
66
|
-
rainbow (3.0.0)
|
|
67
|
-
rake (13.0.6)
|
|
68
|
-
rb-fsevent (0.11.0)
|
|
69
|
-
rb-inotify (0.10.1)
|
|
70
|
-
ffi (~> 1.0)
|
|
71
|
-
regexp_parser (2.1.1)
|
|
72
|
-
rexml (3.2.5)
|
|
73
|
-
rlp (0.7.3)
|
|
74
|
-
rspec (3.10.0)
|
|
75
|
-
rspec-core (~> 3.10.0)
|
|
76
|
-
rspec-expectations (~> 3.10.0)
|
|
77
|
-
rspec-mocks (~> 3.10.0)
|
|
78
|
-
rspec-core (3.10.1)
|
|
79
|
-
rspec-support (~> 3.10.0)
|
|
80
|
-
rspec-expectations (3.10.1)
|
|
81
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
82
|
-
rspec-support (~> 3.10.0)
|
|
83
|
-
rspec-mocks (3.10.2)
|
|
84
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
85
|
-
rspec-support (~> 3.10.0)
|
|
86
|
-
rspec-support (3.10.2)
|
|
87
|
-
rubocop (1.18.3)
|
|
88
|
-
parallel (~> 1.10)
|
|
89
|
-
parser (>= 3.0.0.0)
|
|
90
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
91
|
-
regexp_parser (>= 1.8, < 3.0)
|
|
92
|
-
rexml
|
|
93
|
-
rubocop-ast (>= 1.7.0, < 2.0)
|
|
94
|
-
ruby-progressbar (~> 1.7)
|
|
95
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
|
96
|
-
rubocop-ast (1.7.0)
|
|
97
|
-
parser (>= 3.0.1.1)
|
|
98
|
-
ruby-progressbar (1.11.0)
|
|
99
|
-
shellany (0.0.1)
|
|
100
|
-
thor (1.1.0)
|
|
101
|
-
unicode-display_width (2.0.0)
|
|
102
|
-
|
|
103
|
-
PLATFORMS
|
|
104
|
-
x86_64-darwin-20
|
|
105
|
-
x86_64-linux
|
|
106
|
-
|
|
107
|
-
DEPENDENCIES
|
|
108
|
-
flow_client!
|
|
109
|
-
guard-rspec (~> 4.7)
|
|
110
|
-
rake (~> 13.0)
|
|
111
|
-
rspec (~> 3.0)
|
|
112
|
-
rubocop (~> 1.7)
|
|
113
|
-
|
|
114
|
-
BUNDLED WITH
|
|
115
|
-
2.2.22
|