flow_client 0.1.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- 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/Gemfile.lock +22 -26
- data/README.md +697 -62
- 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 +31 -0
- data/lib/flow_client/block.rb +81 -0
- data/lib/flow_client/cadence_type.rb +185 -0
- data/lib/flow_client/client.rb +303 -14
- data/lib/flow_client/collection.rb +35 -0
- data/lib/flow_client/crypto.rb +45 -16
- data/lib/flow_client/event.rb +52 -0
- data/lib/flow_client/proposal_key.rb +23 -0
- data/lib/flow_client/signature.rb +23 -0
- data/lib/flow_client/signer.rb +22 -0
- data/lib/flow_client/transaction.rb +122 -80
- data/lib/flow_client/utils.rb +29 -0
- 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 +21 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5af7d7f1ba7669936797c908286ae084ca35d28ce1403767c7e670516391c744
|
4
|
+
data.tar.gz: 9ece3c471fb71a3bd5fadaac858e72681ee5db0e9259cc6871c4c413e56b2f8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88ba90c30234850aea96ef88fa41592429634a475fce24d931396a17b1214fa6c9e4080e04d754cb7429629e007dff51a6ecf6a94346ccea0ddae02d7af8ddfc
|
7
|
+
data.tar.gz: 5b3a241597f592be576678ac36e6c2196bb9efca62442c2ba27dd8fb185db70028d30e6185845a122fa7276f43bac21195db3388308413927faad6b7032ebd7b
|
data/.github/workflows/ruby.yml
CHANGED
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -3,3 +3,18 @@
|
|
3
3
|
## [0.1.0] - 2021-07-09
|
4
4
|
|
5
5
|
- Initial release
|
6
|
+
|
7
|
+
## [0.1.2] - 2021-07-09
|
8
|
+
|
9
|
+
- Initial release
|
10
|
+
|
11
|
+
## [0.2.0] - 2021-11-08
|
12
|
+
|
13
|
+
- Added multiple signature support
|
14
|
+
- Added multi-party signing
|
15
|
+
- Added account creation
|
16
|
+
-
|
17
|
+
## [0.2.1] - 2021-11-08
|
18
|
+
|
19
|
+
- Fixed incorrect CadenceType conversions
|
20
|
+
- Updated usage examples
|
data/Gemfile
CHANGED
@@ -5,10 +5,7 @@ source "https://rubygems.org"
|
|
5
5
|
# Specify your gem's dependencies in flow_client.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
+
gem "guard-rspec", "~> 4.7"
|
8
9
|
gem "rake", "~> 13.0"
|
9
|
-
|
10
10
|
gem "rspec", "~> 3.0"
|
11
|
-
|
12
|
-
gem "rubocop", "~> 1.7"
|
13
|
-
|
14
|
-
gem "guard-rspec", "~> 4.7"
|
11
|
+
gem "rubocop", "~> 1.22"
|
data/Gemfile.lock
CHANGED
@@ -1,15 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
flow_client (0.
|
5
|
-
digest-sha3
|
6
|
-
ecdsa
|
4
|
+
flow_client (0.2.2)
|
7
5
|
grpc
|
8
6
|
grpc-tools
|
9
7
|
json
|
10
8
|
openssl
|
11
9
|
rlp
|
12
|
-
rspec
|
13
10
|
|
14
11
|
GEM
|
15
12
|
remote: https://rubygems.org/
|
@@ -17,24 +14,22 @@ GEM
|
|
17
14
|
ast (2.4.2)
|
18
15
|
coderay (1.1.3)
|
19
16
|
diff-lcs (1.4.4)
|
20
|
-
|
21
|
-
ecdsa (1.2.0)
|
22
|
-
ffi (1.15.3)
|
17
|
+
ffi (1.15.4)
|
23
18
|
formatador (0.3.0)
|
24
|
-
google-protobuf (3.
|
25
|
-
googleapis-common-protos-types (1.
|
19
|
+
google-protobuf (3.19.1-x86_64-darwin)
|
20
|
+
googleapis-common-protos-types (1.3.0)
|
26
21
|
google-protobuf (~> 3.14)
|
27
|
-
grpc (1.
|
28
|
-
google-protobuf (~> 3.
|
22
|
+
grpc (1.41.0-universal-darwin)
|
23
|
+
google-protobuf (~> 3.17)
|
29
24
|
googleapis-common-protos-types (~> 1.0)
|
30
|
-
grpc-tools (1.
|
31
|
-
guard (2.
|
25
|
+
grpc-tools (1.41.0)
|
26
|
+
guard (2.18.0)
|
32
27
|
formatador (>= 0.2.4)
|
33
28
|
listen (>= 2.7, < 4.0)
|
34
29
|
lumberjack (>= 1.0.12, < 2.0)
|
35
30
|
nenv (~> 0.1)
|
36
31
|
notiffany (~> 0.0)
|
37
|
-
pry (>= 0.
|
32
|
+
pry (>= 0.13.0)
|
38
33
|
shellany (~> 0.0)
|
39
34
|
thor (>= 0.18.1)
|
40
35
|
guard-compat (1.2.1)
|
@@ -42,8 +37,9 @@ GEM
|
|
42
37
|
guard (~> 2.1)
|
43
38
|
guard-compat (~> 1.1)
|
44
39
|
rspec (>= 2.99.0, < 4.0)
|
45
|
-
|
46
|
-
|
40
|
+
ipaddr (1.2.3)
|
41
|
+
json (2.6.1)
|
42
|
+
listen (3.7.0)
|
47
43
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
48
44
|
rb-inotify (~> 0.9, >= 0.9.10)
|
49
45
|
lumberjack (1.2.8)
|
@@ -52,8 +48,9 @@ GEM
|
|
52
48
|
notiffany (0.1.3)
|
53
49
|
nenv (~> 0.1)
|
54
50
|
shellany (~> 0.0)
|
55
|
-
openssl (2.2.
|
56
|
-
|
51
|
+
openssl (2.2.1)
|
52
|
+
ipaddr
|
53
|
+
parallel (1.21.0)
|
57
54
|
parser (3.0.2.0)
|
58
55
|
ast (~> 2.4.1)
|
59
56
|
pry (0.14.1)
|
@@ -79,33 +76,32 @@ GEM
|
|
79
76
|
rspec-mocks (3.10.2)
|
80
77
|
diff-lcs (>= 1.2.0, < 2.0)
|
81
78
|
rspec-support (~> 3.10.0)
|
82
|
-
rspec-support (3.10.
|
83
|
-
rubocop (1.
|
79
|
+
rspec-support (3.10.3)
|
80
|
+
rubocop (1.22.3)
|
84
81
|
parallel (~> 1.10)
|
85
82
|
parser (>= 3.0.0.0)
|
86
83
|
rainbow (>= 2.2.2, < 4.0)
|
87
84
|
regexp_parser (>= 1.8, < 3.0)
|
88
85
|
rexml
|
89
|
-
rubocop-ast (>= 1.
|
86
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
90
87
|
ruby-progressbar (~> 1.7)
|
91
88
|
unicode-display_width (>= 1.4.0, < 3.0)
|
92
|
-
rubocop-ast (1.
|
89
|
+
rubocop-ast (1.13.0)
|
93
90
|
parser (>= 3.0.1.1)
|
94
91
|
ruby-progressbar (1.11.0)
|
95
92
|
shellany (0.0.1)
|
96
93
|
thor (1.1.0)
|
97
|
-
unicode-display_width (2.
|
94
|
+
unicode-display_width (2.1.0)
|
98
95
|
|
99
96
|
PLATFORMS
|
100
97
|
x86_64-darwin-20
|
101
|
-
x86_64-linux
|
102
98
|
|
103
99
|
DEPENDENCIES
|
104
100
|
flow_client!
|
105
101
|
guard-rspec (~> 4.7)
|
106
102
|
rake (~> 13.0)
|
107
103
|
rspec (~> 3.0)
|
108
|
-
rubocop (~> 1.
|
104
|
+
rubocop (~> 1.22)
|
109
105
|
|
110
106
|
BUNDLED WITH
|
111
|
-
2.2.
|
107
|
+
2.2.26
|