Skip to content

Commit

Permalink
Merge branch 'master' into br0316-001701
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptocool1 authored Mar 18, 2024
2 parents a73ba8d + 3d2c7eb commit c700ff6
Show file tree
Hide file tree
Showing 10,465 changed files with 100,920 additions and 104,674 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

12 changes: 0 additions & 12 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'Type: New Feature'
assignees: catenocrypt
assignees: leedaniil

---

Expand Down
73 changes: 73 additions & 0 deletions .github/assets.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
app:
log_level: "debug"

client_urls:
binance:
dex: "https://dex.binance.org"
explorer: "https://explorer.binance.org"
assets_manager_api: "https://assets.trustwallet.com/api"

urls:
assets_app: "https://assets-cdn.trustwallet.com"
logo: "https://trustwallet.com/assets/images/favicon.png"

time_format: "2006-01-02T15:04:05.000000"

validators_settings:
root_folder:
allowed_files:
- ".github"
- "blockchains"
- "dapps"
- "media"
- "node_modules"
- "script-old"
- "script"
- "test"
- ".gitignore"
- "azure-pipelines.yml"
- "jest.config.js"
- "LICENSE"
- "package-lock.json"
- "package.json"
- "README.md"
- ".git"
- ".eslintignore"
- ".eslintrc.js"
- "cmd"
- "internal"
- "go.mod"
- "go.sum"
- ".golangci.yml"
- "Makefile"
- "bin"
skip_files:
- "node_modules"
skip_dirs:
- ".git"

chain_folder:
allowed_files:
- "assets"
- "tokenlist.json"
- "chainlist.json"
- "tokenlist-extended.json"
- "validators"
- "info"

asset_folder:
allowed_files:
- "logo.png"
- "info.json"

chain_info_folder:
has_files:
- "logo.png"
- "info.json"

chain_validators_asset_folder:
has_files:
- "logo.png"

dapps_folder:
ext: ".png"
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
55 changes: 0 additions & 55 deletions .github/merge-fee-bot.yaml

This file was deleted.

32 changes: 21 additions & 11 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
name: Check

on:
push:
branches: [ master ]
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
node-version: 12
- name: Install Dependencies
run: npm ci
go-version: 1.18

- name: Check out code
uses: actions/checkout@v3

- name: Run check
run: npm run check
- name: Run test
run: npm t
- name: Run lint
run: npm run lint
run: make check

- name: Unit Test
run: make test

- name: Lint
run: make lint
63 changes: 63 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '43 20 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'go' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

- name: Build assets binary
run: make build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
51 changes: 27 additions & 24 deletions .github/workflows/fix-dryrun.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
name: Fixes (sanity and consistency) - Dry run
on:
pull_request:
branches: [master]
jobs:
fix-all-dryrun:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Dependencies
run: npm ci
- name: Run fix script
run: npm run fix
- name: Show fix result (diff); run 'npm run fix' locally
run: |
git status
git diff
- name: Run check
run: npm run check
- name: Run test
run: npm t
#Disabled, we have 'check' job, 'fix' job do invisible changes which is not convenient to debug

#name: Fix (Dry run)
#on:
# pull_request:
# branches: [ master ]
#
#jobs:
# fix-dryrun:
# runs-on: ubuntu-latest
# steps:
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: 1.18
#
# - name: Check out code
# uses: actions/checkout@v3
#
# - name: Run fix
# run: make fix
#
# - name: Show fix result (diff)
# run: |
# git config core.ignorecase false
# git status
# git diff
Loading

0 comments on commit c700ff6

Please sign in to comment.