Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create cosmos_node_client package #263

Merged
merged 12 commits into from
May 5, 2022
25 changes: 25 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
echo "changes_cosmos_ui_components=$(git diff --quiet HEAD origin/$GITHUB_BASE_REF -- packages/cosmos_ui_components && echo "false" || echo "true")" >> $GITHUB_ENV
echo "changes_cosmos_utils=$(git diff --quiet HEAD origin/$GITHUB_BASE_REF -- packages/cosmos_utils && echo "false" || echo "true")" >> $GITHUB_ENV
echo "changes_cosmos_auth=$(git diff --quiet HEAD origin/$GITHUB_BASE_REF -- packages/cosmos_auth && echo "false" || echo "true")" >> $GITHUB_ENV
echo "cosmos_node_client=$(git diff --quiet HEAD origin/$GITHUB_BASE_REF -- packages/cosmos_node_client && echo "false" || echo "true")" >> $GITHUB_ENV
- uses: subosito/flutter-action@v2
with:
flutter-version: '2.10.1'
Expand Down Expand Up @@ -66,6 +67,30 @@ jobs:
working-directory: packages/transaction_signing_gateway
if: env.changes_transaction_signing_gateway == 'true'
run: flutter test

###########################################################################################
## COSMOS_NODE_CLIENT
###########################################################################################

- name: cosmos_node_client - pub get
working-directory: packages/cosmos_node_client
if: env.changes_transaction_signing_gateway == 'true'
run: flutter pub get

- name: cosmos_node_client - check codestyle
working-directory: packages/cosmos_node_client
if: env.cosmos_node_client == 'true'
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 {} +;

- name: cosmos_node_client - dart analysis
working-directory: packages/cosmos_node_client
if: env.cosmos_node_client == 'true'
run: flutter analyze

- name: cosmos_node_client - tests
working-directory: packages/cosmos_node_client
if: env.cosmos_node_client == 'true'
run: flutter test

###########################################################################################
## COSMOS_UI_COMPONENTS
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ install-cosmos-auth:
$(info Running flutter pub upgrade on `cosmos_auth`)
cd packages/cosmos_auth && fvm install && fvm flutter pub upgrade

install-cosmos-node-client:
$(info Running flutter pub upgrade on `cosmos_node_client`)
cd packages/cosmos_node_client && fvm install && fvm flutter pub upgrade

install-cosmos-lint:
$(info Running flutter pub upgrade on `cosmos_lint`)
cd packages/cosmos_lint && fvm install && fvm flutter pub upgrade
Expand All @@ -32,6 +36,7 @@ install:
$(MAKE) install-cosmos-lint
$(MAKE) install-cosmos-ui-components
$(MAKE) install-cosmos-utils
$(MAKE) install-cosmos-node-client
$(MAKE) install-transaction-signing-gateway
$(MAKE) install-starport-template
$(info Done)
Expand Down
75 changes: 75 additions & 0 deletions packages/cosmos_node_client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
build/

# Android related
**/android/**/gradle-wrapper.jar
**/android/.gradle
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java

# iOS/XCode related
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Flutter.podspec
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/ephemeral
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/Flutter/flutter_export_environment.sh
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
3 changes: 3 additions & 0 deletions packages/cosmos_node_client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.0.1

* TODO: Describe initial release.
1 change: 1 addition & 0 deletions packages/cosmos_node_client/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO: Add your license here.
3 changes: 3 additions & 0 deletions packages/cosmos_node_client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# cosmos_node_client

Cosmos node client
1 change: 1 addition & 0 deletions packages/cosmos_node_client/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: package:cosmos_lint/analysis_options.yaml
1 change: 1 addition & 0 deletions packages/cosmos_node_client/lib/cosmos_node_client.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
library cosmos_node_client;
Loading