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

Merge pull request #55 from BitGo/CT-698-eos #56

Open
wants to merge 52 commits into
base: CT-698-eos
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
9f48c83
Merge pull request #55 from BitGo/CT-698-eos
dannydeezy Jul 17, 2019
9d436d3
CT-856 - Bump SDK version to 7.0.0-rc.0
CapnMigraine Aug 7, 2019
dba9fee
Merge pull request #57 from BitGo/CT-856.bump-sdk-version
dannydeezy Aug 8, 2019
a55d5e6
[TRON-58] Add KRS Support for TRON
Oct 22, 2019
f888c9f
Add Statics support
Nov 7, 2019
fadf3b7
Merge pull request #59 from BitGo/TRON-58-add-krs-support-for-tron
marktoda Nov 7, 2019
bf62d71
[ISSUE-60] Refactor the signing functions in sign.js to reduce boiler…
longnguyenTM Feb 26, 2020
abb852f
correct mis-spelled words and change parameter name.
Feb 25, 2020
981b7b3
Merge pull request #62 from longnguyenTM/issue60
cooncesean Feb 27, 2020
92fcff3
Add ethereumjs-util as explicit dependency
Sword-Smith Mar 17, 2020
f008f34
Fix bug in getBackupSigningKey
Sword-Smith Mar 17, 2020
8935531
Add check for valid XLM master seed
Sword-Smith Mar 17, 2020
f357171
Add minor documentation improvements
Sword-Smith Mar 18, 2020
bfb2e7c
Utilize signature module from ethereumjs-util
Sword-Smith Mar 18, 2020
2a498b6
Merge pull request #66 from Sword-Smith/master
tylerlevine Mar 20, 2020
1711aef
Implement initial Drone CI for this KRSv2 project.
james8nguyen Mar 20, 2020
e8ddf11
Get drone builds into a working state
drGrove Mar 20, 2020
88f53b4
Moved audit to node v10 pipeline and updated package-lock.json.
james8nguyen Mar 21, 2020
5779646
Upgrade the following depedencies and resolve vulnerabilities:
james8nguyen Mar 23, 2020
3c908f6
Enable support for node 12 and disable for node 6
james8nguyen Mar 24, 2020
0c65d77
BG-18658 Merge pull request #70 from BitGo/BG-19209-node10
james8nguyen Mar 30, 2020
d7bf444
Enable lint test for KRSv2
james8nguyen Apr 3, 2020
50947c9
Fix lint
Apr 3, 2020
2541dba
Fix Tests
Apr 21, 2020
7d98115
Merge pull request #73 from BitGo/BG-19296-enable-lint
tylerlevine Apr 22, 2020
dbe3f7b
fix(package.json): update packages importing elliptic to bump elliptic
aaldemir Jul 20, 2021
58fb05a
fix(package.json): update @bitgo/account-lib package to ^2.13.0
aaldemir Jul 22, 2021
22c90be
fix(package.json): update packages importing elliptic and changed por…
aaldemir Jul 22, 2021
76462f0
Merge pull request #88 from aaldemir/BG-23533-bump-elliptic-dependencies
tylerlevine Jul 26, 2021
618184e
chore(package): use @bitgo/utxo-lib
OttoAllmendinger Sep 6, 2021
30d962e
chore(gitignore): ignore iml files
OttoAllmendinger Sep 6, 2021
5e09a21
chore(test): update zcash expected transaction bytes
OttoAllmendinger Sep 6, 2021
b8ebc75
chore(app): remove prova-lib
OttoAllmendinger Sep 6, 2021
aa44234
chore(app): use standard import name for utxolib
OttoAllmendinger Sep 6, 2021
6948de1
fix(app): do not use `HDNode.fromPrivateKeyBuffer()`
OttoAllmendinger Sep 6, 2021
336dea0
chore(app): use bip32 instead of HDNode
OttoAllmendinger Sep 6, 2021
94d99c6
fix(app): improve error message
OttoAllmendinger Sep 9, 2021
6b4d02c
fix(root): bump bitgo deps
OttoAllmendinger Sep 9, 2021
055d881
fix(app,test): fix eslint errors
OttoAllmendinger Sep 9, 2021
3b4998e
Merge pull request #90 from BitGo/BG-34381.use-bitgo-dep
tylerlevine Sep 23, 2021
f011d5d
chore(renovate): initial renovate configuration
bgdeploybot Nov 28, 2023
70f3adb
Merge pull request #116
therealdwright Feb 1, 2024
2fc77e6
Bump protobufjs from 6.11.2 to 6.11.4
dependabot[bot] Feb 6, 2024
11c9d96
Merge pull request #119 from BitGo/dependabot/npm_and_yarn/protobufjs…
dhoffmann Feb 6, 2024
44f602b
Bump mongoose from 5.13.3 to 5.13.20
dependabot[bot] Feb 6, 2024
a6aacb9
Bump minimist from 1.2.5 to 1.2.8
dependabot[bot] Feb 6, 2024
cf0eb65
Bump webpack from 5.52.0 to 5.90.1
dependabot[bot] Feb 6, 2024
1878920
Merge pull request #127 from BitGo/dependabot/npm_and_yarn/minimist-1…
dhoffmann Feb 6, 2024
8af0ef6
Merge pull request #128 from BitGo/dependabot/npm_and_yarn/webpack-5.…
dhoffmann Feb 6, 2024
4a894e1
Merge pull request #126 from BitGo/dependabot/npm_and_yarn/mongoose-5…
dhoffmann Feb 6, 2024
adc6cfd
chore: enable github advanced security workflow
KartikKSrivastava Oct 10, 2024
48dc710
Merge pull request #134 from BitGo/codeql
the-smooth-operator Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
199 changes: 199 additions & 0 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
/// High level setup

local pipeline(
name,
kind = "pipeline",
type = "docker",
clone = null,
platform = null,
workspace = null,
services = [],
steps = [],
trigger = null,
node = null,
volumes = [],
depends_on = [],
) = {
kind: kind,
type: type,
name: name,
[if platform != null then 'platform']: platform,
[if workspace != null then 'workspace']: workspace,
[if clone != null then 'clone']: clone,
[if services != [] then 'services']: services,
[if steps != [] then 'steps']: steps,
[if trigger != null then 'trigger']: trigger,
[if node != null then 'node']: node,
[if volumes != [] then 'volumes']: volumes,
[if depends_on != [] then 'depends_on']: depends_on,
};

local step(
name,
image,
settings = null,
depends_on = [],
commands = null,
environment = null,
failure = false,
detach = false,
privileged = false,
volumes = [],
when = null
) = {
name: name,
image: image,
[if failure then 'failure']: failure,
[if detach then 'detach']: detach,
[if privileged then 'privileged']: detach,
[if settings != null then 'settings']: settings,
[if depends_on != [] then 'depends_on']: depends_on,
[if commands != [] then 'commands']: commands,
[if environment != null then 'environment']: environment,
[if volumes != [] then 'volumes']: volumes,
[if when != null then 'when']: when,
};

[
pipeline(
kind = "pipeline",
name = "checks (node:10)",
steps = [
step(
name = "build information",
image = "node:10",
commands = [
"node --version",
"npm --version",
"git --version",
],
),
step(
name = "install",
image = "node:10",
commands = [
"npm install",
],
),
step(
name = "lint",
image = "node:10",
commands = [
"npm run lint",
],
),
],
),
pipeline(
kind = "pipeline",
name = "unit tests (node:10)",
steps = [
step(
name = "build information",
image = "node:10",
commands = [
"node --version",
"npm --version",
"git --version",
],
),
step(
name = "install",
image = "node:10",
commands = [
"npm install",
],
),
step(
name = "unit-test",
image = "node:10",
depends_on = [
"install",
],
commands = [
"npm run test",
],
environment = {
MONGO_URI: "mongodb://mongo:27017/key-recovery-service-test",
},
),
step(
name = "audit",
image = "node:10",
/// failure = true,
commands = [
"npm run audit",
],
),
],
trigger = {
branch: {
exclude: [
"prod/production",
],
},
},
services = [
{
name: "mongo",
image: "mongo:3.4",
},
],
),
pipeline(
kind = "pipeline",
name = "unit tests (node:12)",
steps = [
step(
name = "build information",
image = "node:12",
commands = [
"node --version",
"npm --version",
"git --version",
],
),
step(
name = "install",
image = "node:12",
commands = [
"npm install",
],
),
step(
name = "unit-test",
image = "node:12",
depends_on = [
"install",
],
commands = [
"npm run test",
],
environment = {
MONGO_URI: "mongodb://mongo:27017/key-recovery-service-test",
},
),
step(
name = "audit",
image = "node:12",
/// failure = true,
commands = [
"npm run audit",
],
),
],
trigger = {
branch: {
exclude: [
"prod/production",
],
},
},
services = [
{
name: "mongo",
image: "mongo:3.4",
},
],
),
]
69 changes: 69 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"globals": {
"app": true, // BitGo side-effect from testutil
"ethUtil": true, // BitGo side-effect from testutil
"requireCommon": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"operator-linebreak": ["error", "before"],
"max-len": ["error", { "code": 120 } ],
"indent": ["error", 2, {"SwitchCase": 1, "MemberExpression": "off"}],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"eqeqeq": ["error", "always"],
"curly": "error",
"no-extra-boolean-cast": "off",
"no-unused-vars": ["error", {"vars": "all", "args": "none"}],
"object-curly-spacing": ["error", "always", {"objectsInObjects": true, "arraysInObjects": true}],
"array-bracket-spacing": ["error", "never"],
"require-yield": "off",
"func-call-spacing": ["error", "never"],
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
"quote-props": ["error", "as-needed"],
"no-console": "off",
"no-empty": ["error", { "allowEmptyCatch": false }],
"no-inner-declarations": "off",
"no-useless-escape": "off",
"func-names": "off",
"generator-star-spacing": ["error", {"before": true, "after": false}],
"yield-star-spacing": ["error", {"before": true, "after": false}],
"no-duplicate-imports": "error", // whilst imports are not being used, if we start to use them, we do not want duplicates
"no-unreachable": "error",
"no-path-concat": "off",
"no-process-env": "off",
"no-process-exit": "off",
"no-sync": "warn",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"eol-last": "error",
"no-trailing-spaces": ["error", { "skipBlankLines": true, "ignoreComments": true }],
"no-unneeded-ternary": "error",
"switch-colon-spacing": ["error", {"before": false, "after": true}],
"arrow-spacing": ["error", { "before": true, "after": true }],
"no-dupe-args": "error",
"no-undef": "error",
"no-var": "error",
"prefer-const": "error",
"no-compare-neg-zero": "error",
"no-extra-semi": "error",
"radix": "error",
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-dangle": ["error", "never"],
"no-multi-spaces": ["error", {"ignoreEOLComments": true}],
"keyword-spacing": ["error"],
"space-before-blocks": ["error"],
"space-infix-ops": ["error"],
"spaced-comment": ["error", "always"],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }]
}
}
6 changes: 6 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>BitGo/gha-renovate-bot//presets/onboarding#v1.15.1"],
"baseBranches": ["master"],
"enabledManagers": ["github-actions", "regex"],
}
53 changes: 53 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: "Advanced Security CodeQL Scan"

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
schedule:
- cron: "43 11 * * 5"

jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: "ubuntu-latest"
timeout-minutes: 30
permissions:
security-events: write
actions: read
contents: read

strategy:
fail-fast: false
matrix:
language: ["javascript"]

steps:
- name: Checkout repository
uses: actions/checkout@v4
continue-on-error: true
with:
ref: ${{ github.sha }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
continue-on-error: true
with:
languages: ${{ matrix.language }}

# For more 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: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
continue-on-error: true
with:
category: "/language:${{matrix.language}}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.swp
*.iml
.idea/
node_modules
npm-debug.log
Expand Down
Loading
Loading