flow_client 0.1.2 → 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/.github/workflows/ruby.yml +2 -0
- data/.rubocop.yml +6 -0
- data/CHANGELOG.md +10 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +18 -16
- data/README.md +688 -80
- data/bin/console +0 -0
- data/bin/setup +0 -0
- data/docker-compose.yml +12 -0
- data/flow.json +21 -0
- 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 +197 -0
- data/lib/flow_client/client.rb +278 -9
- data/lib/flow_client/collection.rb +33 -0
- data/lib/flow_client/crypto.rb +23 -19
- 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 +109 -65
- data/lib/flow_client/utils.rb +40 -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 -4
- data/.github/workflows/brakeman-analysis.yml +0 -46
- data/.github/workflows/rubocop-analysis.yml +0 -47
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flow_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nico du Plessis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -87,8 +87,6 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
- ".github/workflows/brakeman-analysis.yml"
|
91
|
-
- ".github/workflows/rubocop-analysis.yml"
|
92
90
|
- ".github/workflows/ruby.yml"
|
93
91
|
- ".gitignore"
|
94
92
|
- ".rspec"
|
@@ -103,7 +101,15 @@ files:
|
|
103
101
|
- Rakefile
|
104
102
|
- bin/console
|
105
103
|
- bin/setup
|
104
|
+
- docker-compose.yml
|
105
|
+
- flow.json
|
106
106
|
- flow_client.gemspec
|
107
|
+
- lib/cadence/contracts/NonFungibleToken.cdc
|
108
|
+
- lib/cadence/templates/add-account-key.cdc
|
109
|
+
- lib/cadence/templates/add-contract.cdc
|
110
|
+
- lib/cadence/templates/create-account.cdc
|
111
|
+
- lib/cadence/templates/remove-contract.cdc
|
112
|
+
- lib/cadence/templates/update-contract.cdc
|
107
113
|
- lib/flow/access/access_pb.rb
|
108
114
|
- lib/flow/access/access_services_pb.rb
|
109
115
|
- lib/flow/entities/account_pb.rb
|
@@ -127,11 +133,22 @@ files:
|
|
127
133
|
- lib/flow/legacy/execution/execution_pb.rb
|
128
134
|
- lib/flow/legacy/execution/execution_services_pb.rb
|
129
135
|
- lib/flow_client.rb
|
136
|
+
- lib/flow_client/account.rb
|
137
|
+
- lib/flow_client/block.rb
|
138
|
+
- lib/flow_client/cadence_type.rb
|
130
139
|
- lib/flow_client/client.rb
|
140
|
+
- lib/flow_client/collection.rb
|
131
141
|
- lib/flow_client/crypto.rb
|
142
|
+
- lib/flow_client/event.rb
|
143
|
+
- lib/flow_client/proposal_key.rb
|
144
|
+
- lib/flow_client/signature.rb
|
145
|
+
- lib/flow_client/signer.rb
|
132
146
|
- lib/flow_client/transaction.rb
|
133
147
|
- lib/flow_client/utils.rb
|
134
148
|
- lib/flow_client/version.rb
|
149
|
+
- logo.svg
|
150
|
+
- logo@2x.png
|
151
|
+
- template.md
|
135
152
|
homepage: https://github.com/glucode/flow_client
|
136
153
|
licenses:
|
137
154
|
- MIT
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# This workflow integrates Brakeman with GitHub's Code Scanning feature
|
2
|
-
# Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications
|
3
|
-
|
4
|
-
name: Brakeman Scan
|
5
|
-
|
6
|
-
on:
|
7
|
-
push:
|
8
|
-
branches: [ main ]
|
9
|
-
pull_request:
|
10
|
-
# The branches below must be a subset of the branches above
|
11
|
-
branches: [ main ]
|
12
|
-
schedule:
|
13
|
-
- cron: '44 7 * * 1'
|
14
|
-
|
15
|
-
jobs:
|
16
|
-
brakeman-scan:
|
17
|
-
name: Brakeman Scan
|
18
|
-
runs-on: ubuntu-latest
|
19
|
-
steps:
|
20
|
-
# Checkout the repository to the GitHub Actions runner
|
21
|
-
- name: Checkout
|
22
|
-
uses: actions/checkout@v2
|
23
|
-
|
24
|
-
# Customize the ruby version depending on your needs
|
25
|
-
- name: Setup Ruby
|
26
|
-
uses: actions/setup-ruby@v1
|
27
|
-
with:
|
28
|
-
ruby-version: '2.7'
|
29
|
-
|
30
|
-
- name: Setup Brakeman
|
31
|
-
env:
|
32
|
-
BRAKEMAN_VERSION: '4.10' # SARIF support is provided in Brakeman version 4.10+
|
33
|
-
run: |
|
34
|
-
gem install brakeman --version $BRAKEMAN_VERSION
|
35
|
-
|
36
|
-
# Execute Brakeman CLI and generate a SARIF output with the security issues identified during the analysis
|
37
|
-
- name: Scan
|
38
|
-
continue-on-error: true
|
39
|
-
run: |
|
40
|
-
brakeman -f sarif -o output.sarif.json .
|
41
|
-
|
42
|
-
# Upload the SARIF file generated in the previous step
|
43
|
-
- name: Upload SARIF
|
44
|
-
uses: github/codeql-action/upload-sarif@v1
|
45
|
-
with:
|
46
|
-
sarif_file: output.sarif.json
|
@@ -1,47 +0,0 @@
|
|
1
|
-
# pulled from repo
|
2
|
-
name: "Rubocop"
|
3
|
-
|
4
|
-
on:
|
5
|
-
push:
|
6
|
-
branches: [ main ]
|
7
|
-
pull_request:
|
8
|
-
# The branches below must be a subset of the branches above
|
9
|
-
branches: [ main ]
|
10
|
-
schedule:
|
11
|
-
- cron: '16 3 * * 1'
|
12
|
-
|
13
|
-
jobs:
|
14
|
-
rubocop:
|
15
|
-
runs-on: ubuntu-latest
|
16
|
-
strategy:
|
17
|
-
fail-fast: false
|
18
|
-
|
19
|
-
steps:
|
20
|
-
- name: Checkout repository
|
21
|
-
uses: actions/checkout@v2
|
22
|
-
|
23
|
-
# If running on a self-hosted runner, check it meets the requirements
|
24
|
-
# listed at https://github.com/ruby/setup-ruby#using-self-hosted-runners
|
25
|
-
- name: Set up Ruby
|
26
|
-
uses: ruby/setup-ruby@v1
|
27
|
-
with:
|
28
|
-
ruby-version: 2.6
|
29
|
-
|
30
|
-
# This step is not necessary if you add the gem to your Gemfile
|
31
|
-
- name: Install Code Scanning integration
|
32
|
-
run: bundle add code-scanning-rubocop --version 0.3.0 --skip-install
|
33
|
-
|
34
|
-
- name: Install dependencies
|
35
|
-
run: bundle install
|
36
|
-
|
37
|
-
- name: Rubocop run
|
38
|
-
run: |
|
39
|
-
bash -c "
|
40
|
-
bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
|
41
|
-
[[ $? -ne 2 ]]
|
42
|
-
"
|
43
|
-
|
44
|
-
- name: Upload Sarif output
|
45
|
-
uses: github/codeql-action/upload-sarif@v1
|
46
|
-
with:
|
47
|
-
sarif_file: rubocop.sarif
|