Skip to content

Commit 795924d

Browse files
authored
feat: create cosmos_node_client package (#263)
1 parent 64fc9a4 commit 795924d

File tree

12 files changed

+558
-1
lines changed

12 files changed

+558
-1
lines changed

.github/workflows/pull-request.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
echo "changes_cosmos_ui_components=$(git diff --quiet HEAD origin/$GITHUB_BASE_REF -- packages/cosmos_ui_components && echo "false" || echo "true")" >> $GITHUB_ENV
2626
echo "changes_cosmos_utils=$(git diff --quiet HEAD origin/$GITHUB_BASE_REF -- packages/cosmos_utils && echo "false" || echo "true")" >> $GITHUB_ENV
2727
echo "changes_cosmos_auth=$(git diff --quiet HEAD origin/$GITHUB_BASE_REF -- packages/cosmos_auth && echo "false" || echo "true")" >> $GITHUB_ENV
28+
echo "cosmos_node_client=$(git diff --quiet HEAD origin/$GITHUB_BASE_REF -- packages/cosmos_node_client && echo "false" || echo "true")" >> $GITHUB_ENV
2829
- uses: subosito/flutter-action@v2
2930
with:
3031
flutter-version: '2.10.1'
@@ -66,6 +67,30 @@ jobs:
6667
working-directory: packages/transaction_signing_gateway
6768
if: env.changes_transaction_signing_gateway == 'true'
6869
run: flutter test
70+
71+
###########################################################################################
72+
## COSMOS_NODE_CLIENT
73+
###########################################################################################
74+
75+
- name: cosmos_node_client - pub get
76+
working-directory: packages/cosmos_node_client
77+
if: env.changes_transaction_signing_gateway == 'true'
78+
run: flutter pub get
79+
80+
- name: cosmos_node_client - check codestyle
81+
working-directory: packages/cosmos_node_client
82+
if: env.cosmos_node_client == 'true'
83+
run: find lib test -name "*.dart" -not -name "*.g.dart" -not -name "*.freezed.dart" -not -name "*.gen.dart" -exec dart format -l 120 --set-exit-if-changed {} +;
84+
85+
- name: cosmos_node_client - dart analysis
86+
working-directory: packages/cosmos_node_client
87+
if: env.cosmos_node_client == 'true'
88+
run: flutter analyze
89+
90+
- name: cosmos_node_client - tests
91+
working-directory: packages/cosmos_node_client
92+
if: env.cosmos_node_client == 'true'
93+
run: flutter test
6994

7095
###########################################################################################
7196
## COSMOS_UI_COMPONENTS

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ install-cosmos-auth:
1313
$(info Running flutter pub upgrade on `cosmos_auth`)
1414
cd packages/cosmos_auth && fvm install && fvm flutter pub upgrade
1515

16+
install-cosmos-node-client:
17+
$(info Running flutter pub upgrade on `cosmos_node_client`)
18+
cd packages/cosmos_node_client && fvm install && fvm flutter pub upgrade
19+
1620
install-cosmos-lint:
1721
$(info Running flutter pub upgrade on `cosmos_lint`)
1822
cd packages/cosmos_lint && fvm install && fvm flutter pub upgrade
@@ -32,6 +36,7 @@ install:
3236
$(MAKE) install-cosmos-lint
3337
$(MAKE) install-cosmos-ui-components
3438
$(MAKE) install-cosmos-utils
39+
$(MAKE) install-cosmos-node-client
3540
$(MAKE) install-transaction-signing-gateway
3641
$(MAKE) install-starport-template
3742
$(info Done)
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
**/doc/api/
25+
.dart_tool/
26+
.flutter-plugins
27+
.flutter-plugins-dependencies
28+
.packages
29+
.pub-cache/
30+
.pub/
31+
build/
32+
33+
# Android related
34+
**/android/**/gradle-wrapper.jar
35+
**/android/.gradle
36+
**/android/captures/
37+
**/android/gradlew
38+
**/android/gradlew.bat
39+
**/android/local.properties
40+
**/android/**/GeneratedPluginRegistrant.java
41+
42+
# iOS/XCode related
43+
**/ios/**/*.mode1v3
44+
**/ios/**/*.mode2v3
45+
**/ios/**/*.moved-aside
46+
**/ios/**/*.pbxuser
47+
**/ios/**/*.perspectivev3
48+
**/ios/**/*sync/
49+
**/ios/**/.sconsign.dblite
50+
**/ios/**/.tags*
51+
**/ios/**/.vagrant/
52+
**/ios/**/DerivedData/
53+
**/ios/**/Icon?
54+
**/ios/**/Pods/
55+
**/ios/**/.symlinks/
56+
**/ios/**/profile
57+
**/ios/**/xcuserdata
58+
**/ios/.generated/
59+
**/ios/Flutter/App.framework
60+
**/ios/Flutter/Flutter.framework
61+
**/ios/Flutter/Flutter.podspec
62+
**/ios/Flutter/Generated.xcconfig
63+
**/ios/Flutter/ephemeral
64+
**/ios/Flutter/app.flx
65+
**/ios/Flutter/app.zip
66+
**/ios/Flutter/flutter_assets/
67+
**/ios/Flutter/flutter_export_environment.sh
68+
**/ios/ServiceDefinitions.json
69+
**/ios/Runner/GeneratedPluginRegistrant.*
70+
71+
# Exceptions to above rules.
72+
!**/ios/**/default.mode1v3
73+
!**/ios/**/default.mode2v3
74+
!**/ios/**/default.pbxuser
75+
!**/ios/**/default.perspectivev3
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.0.1
2+
3+
* TODO: Describe initial release.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO: Add your license here.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# cosmos_node_client
2+
3+
Cosmos node client
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:cosmos_lint/analysis_options.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
library cosmos_node_client;

0 commit comments

Comments
 (0)