Skip to content

Suite multisig node registration #199

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

Open
wants to merge 430 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
430 commits
Select commit Hold shift + click to select a range
fcc9001
Removal of the reward address section
Ayagoumi Sep 27, 2022
774064a
Merge pull request #22 from chain4travel/TECH-317/validation-section
Ayagoumi Sep 27, 2022
4be5137
Border radius fix
Ayagoumi Sep 27, 2022
b29d095
change the meta info from secure camino wallet to camino wallet
aeddaqqa Oct 13, 2022
ea1a25f
change title in metadata info
aeddaqqa Oct 13, 2022
0e75441
fix overflow when change the ui zoom
aeddaqqa Oct 13, 2022
f9be691
add submit verify mnemonic when enter key hited
aeddaqqa Oct 14, 2022
b0580da
Merge branch 'dev' into TECH-353/fix-create-wallet-button
aeddaqqa Oct 14, 2022
9068fa9
Merge pull request #25 from chain4travel/TECH-353/fix-create-wallet-b…
Ayagoumi Oct 14, 2022
7086c02
fix margin top
aeddaqqa Oct 17, 2022
fdb8eb7
fix margin top for paper wallet
aeddaqqa Oct 17, 2022
8b6446b
Merge pull request #26 from chain4travel/TECH-353/fix-create-wallet-b…
Ayagoumi Oct 17, 2022
264ff95
Fix package naming
peak3d Nov 19, 2022
96e4938
Changes for kopernikus caminojs
peak3d Nov 19, 2022
8f7b128
Various CI changes
peak3d Nov 21, 2022
e43a886
Merge pull request #29 from chain4travel/ci
c4t-ag Nov 21, 2022
1bfef09
Build Docker on push[c4t,dev] and workflow_dispatch
peak3d Nov 21, 2022
dc7c419
Merge pull request #30 from chain4travel/ci
c4t-ag Nov 21, 2022
f6d5cbd
Fix docker CI / prettier yml
peak3d Nov 21, 2022
a355d7e
Fix kopernikus -> dev dependency / docker yml cleanup
peak3d Nov 22, 2022
4428c79
Merge pull request #33 from chain4travel/deps
c4t-ag Nov 22, 2022
8fa3ad8
[CI] Docker activation rules
peak3d Nov 22, 2022
706a4d4
Merge pull request #34 from chain4travel/ci
c4t-ag Nov 22, 2022
449de2a
[Build] camino-wallet-sdk submodule dependency
peak3d Nov 23, 2022
91fecac
[BUILD] Bump vue-components -> v0.1.0
peak3d Nov 24, 2022
e2c4d93
Merge pull request #35 from chain4travel/submodule
c4t-ag Nov 24, 2022
167ec79
[DOCKER] Fix docker build with submodule usage
peak3d Nov 24, 2022
3ea39b5
Merge pull request #36 from chain4travel/docker
c4t-ag Nov 24, 2022
53e233a
[BUILD] Change submodule branch to dist / checkout recorded SHA
peak3d Nov 24, 2022
3ff2756
Merge pull request #37 from chain4travel/newdist
c4t-ag Nov 24, 2022
9a4b359
fix: hardcoded max stake amount (#39)
Ayagoumi Nov 27, 2022
3a7c168
Mnemonic modal oposition fix (#40)
Ayagoumi Nov 28, 2022
38a8c31
init wallet for camino suite
Ayagoumi Feb 3, 2023
ea0a28b
update branch names in workflows
mo-c4t Feb 3, 2023
ba332de
fix: test to stage in url for publicpath
Ayagoumi Feb 3, 2023
49744f7
added dist folders for each build script
Ayagoumi Feb 3, 2023
ce94059
Revert "added dist folders for each build script"
mo-c4t Feb 3, 2023
35f720f
update workflows
mo-c4t Feb 3, 2023
a325394
fix build command
mo-c4t Feb 3, 2023
7dcd6ca
fix bucket name
mo-c4t Feb 3, 2023
259b2e6
run prettier
mo-c4t Feb 3, 2023
ec86666
RegisterNode and AddValidator transactions flow (#54)
Chriserus Jan 30, 2023
a40fa75
Remove hardcoded minimum available P balance from registerNode (#59)
Chriserus Feb 1, 2023
ed116bf
Fix P balance refresh, move depositAndBond flag to Network state (#60)
Chriserus Feb 1, 2023
b388a5c
Fix hrp issue on network change
aeddaqqa Feb 2, 2023
9229f65
[UI] Dislplay LockedOut properly in UTXOView
peak3d Feb 3, 2023
c6535e0
Remove GetBalance approach for P because we need to fetch UTXO either…
peak3d Feb 3, 2023
ac2714c
[DIST] Locked get methods
Ayagoumi Feb 7, 2023
f119942
set columbus ad default network
aeddaqqa Feb 7, 2023
f55b285
fix typo
aeddaqqa Feb 8, 2023
c587ddb
Cypress 12.4
Esteban100k Feb 8, 2023
5db435a
Automated Tests data-cy
Esteban100k Feb 8, 2023
e33630d
Validate Balance
Esteban100k Feb 8, 2023
7378d9d
Suite style fix (#71)
Ayagoumi Feb 9, 2023
9087248
add action to handle edit network from the suite app (#69)
aeddaqqa Feb 9, 2023
085b329
Suite style fix2 (#72)
Ayagoumi Feb 9, 2023
e5fd0c8
Merge pull request #70 from chain4travel/suite_tests
c4t-sumacher Feb 9, 2023
470255d
test(e2e): restructure test data in fixtures
jamesckhsiao Feb 8, 2023
d5797bb
test(e2e): add common commands
jamesckhsiao Feb 8, 2023
e6089c2
test(e2e): add new test suits
jamesckhsiao Feb 8, 2023
52bb126
test(e2e): modify plugin to select test target by env vars
jamesckhsiao Feb 8, 2023
9eb3d14
test(cypress): apply env plugin
jamesckhsiao Feb 8, 2023
d014350
test(cypress): add @cypress/grep plugin to run filtered specs
jamesckhsiao Feb 8, 2023
b27fba9
test(cypress): add combined common command 'loginWalletWith'
jamesckhsiao Feb 8, 2023
f962a5b
test(e2e): add e2e case without real transfer
jamesckhsiao Feb 8, 2023
ffad78b
chore(cypress): init README
jamesckhsiao Feb 8, 2023
d899533
test(cypress): modify loginWalletWith command to support custom priva…
jamesckhsiao Feb 10, 2023
fdf73c3
test(e2e): complete normal case of x to c
jamesckhsiao Feb 10, 2023
107221e
Merge pull request #73 from Jameshsiao/TECH-622_e2eXtoC
c4t-sumacher Feb 10, 2023
53c1dcb
fix deleting account in account management (#74)
aeddaqqa Feb 10, 2023
0afeb6c
test(cypress): disable grep filter by default to allow running untagg…
jamesckhsiao Feb 10, 2023
991accc
Merge pull request #75 from Jameshsiao/TECH-622_e2eXtoC
c4t-sumacher Feb 10, 2023
6c40557
fix saving account from ManageKeys Section (#76)
aeddaqqa Feb 10, 2023
babbdf5
remove caching
mo-c4t Feb 10, 2023
d88ccaf
upload wallet dist to suite bucket
mo-c4t Feb 11, 2023
0b4c53d
fix publicpath
mo-c4t Feb 11, 2023
c785fba
Add AliasPicker.vue, fetch and let user choose default address (#77)
Chriserus Feb 13, 2023
3db2dbe
Changed port number to maintain consistency with the suite. (#80)
Ayagoumi Feb 13, 2023
3cfbd0b
feat(Send): add e2e send c to c
Feb 14, 2023
b45d15b
test(prettier): tidy code by using prettier write
Feb 14, 2023
fb544e5
Fix cypress (#84)
mo-c4t Feb 14, 2023
09422a1
Signavault connection url (#78)
Chriserus Feb 14, 2023
b6c099f
Suite style fix3 (#79)
Ayagoumi Feb 14, 2023
24508a3
Add back notifications (#83)
aeddaqqa Feb 14, 2023
7193427
remove caching for suite and explorer (#85)
mo-c4t Feb 14, 2023
e4d8ee3
test(e2e): send x-chain transaction
Feb 15, 2023
9407943
test(Send): add decision request method in cy.intercept
Feb 15, 2023
aef795b
Merge pull request #82 from riversoft-henry/TECH-618_e2eSendCtoC
Jameshsiao Feb 15, 2023
26b13be
Merge branch 'suite_e2e' of https://github.com/chain4travel/camino-wa…
Feb 15, 2023
0b7caa8
test(e2e): add wallet has x-chain balance
Feb 15, 2023
cea7da7
test(e2e): add command and modify declaration file
jamesckhsiao Feb 15, 2023
6a794a1
Merge pull request #86 from c4t-sumacher/suite_e2e
Jameshsiao Feb 15, 2023
a0ef2cc
test(e2e): add command and modify declaration file
jamesckhsiao Feb 15, 2023
11c85a6
test(cross-chain): add test case c-to-x and refactor x-to-c
jamesckhsiao Feb 15, 2023
174046b
Merge branch 'suite_e2e' of github.com:chain4travel/camino-wallet int…
jamesckhsiao Feb 15, 2023
244cc3b
ci(cypress): run prettier to prettify codes
jamesckhsiao Feb 15, 2023
ebe5225
Merge branch 'TECH-623_e2eCtoX' of github.com:Jameshsiao/camino-walle…
jamesckhsiao Feb 15, 2023
f5b33c7
Merge pull request #87 from Jameshsiao/TECH-623_e2eCtoX
c4t-sumacher Feb 15, 2023
97d9d85
Merge branch 'suite' of github.com:chain4travel/camino-wallet into su…
jamesckhsiao Feb 15, 2023
f97738a
ci(prettier): formatting cypress test case
jamesckhsiao Feb 15, 2023
828e1ce
ci(prettier): formatting cypress files
jamesckhsiao Feb 15, 2023
f168e10
Correct URL field data-cy attribute (#91)
Chriserus Feb 16, 2023
72f2967
Extend timeout for default network test from 4s to 8s (#92)
Chriserus Feb 16, 2023
a7071b5
AddValidator.vue corrections, readonly NodeId, state fixes (#90)
Chriserus Feb 16, 2023
d3ba401
adapt KYC verification to v2 of the KYC service (#96)
aeddaqqa Feb 16, 2023
9e3ad5d
Correct error handling on getRegisteredShortIDLink (#95)
Chriserus Feb 17, 2023
f2bebf5
add view pkey to manage keys section (#97)
aeddaqqa Feb 17, 2023
ae3af9f
Add explorer url to cdefined columbus network (#98)
Ayagoumi Feb 17, 2023
7760e1a
deploy on cloudrun (#94)
mo-c4t Feb 17, 2023
f831cd7
Suite Automated Tests
Esteban100k Feb 17, 2023
5adf2f4
wallet manage keys
Esteban100k Feb 17, 2023
1647152
wallet transactions
Feb 17, 2023
96ea45c
Add public key to manage keys section (#100)
aeddaqqa Feb 19, 2023
a56b484
Merge branch 'suite' of github.com:chain4travel/camino-wallet into su…
jamesckhsiao Feb 20, 2023
ce8baf3
chore(yarn.lock): update lockfile
jamesckhsiao Feb 20, 2023
05068e1
Alias button style adjustmnent (#99)
Ayagoumi Feb 20, 2023
7f41f4e
Wallet activity transactions
Esteban100k Feb 20, 2023
2e886c0
create collectibles test
danilocha Feb 20, 2023
2a098ee
intercepts create collectibles
Esteban100k Feb 21, 2023
a8b5e6a
add kopernikus and access private key
Esteban100k Feb 21, 2023
8908393
describes
Esteban100k Feb 21, 2023
4454448
Merge branch 'suite' into suite_automated_tests
Esteban100k Feb 21, 2023
bd4af46
suite automated tests
Esteban100k Feb 21, 2023
0510277
should be visible address in wallet
Esteban100k Feb 21, 2023
bd5f633
change input time validation
Esteban100k Feb 22, 2023
b871f41
Merge branch 'suite' of github.com:chain4travel/camino-wallet into su…
jamesckhsiao Feb 22, 2023
fe6adfa
ci(prettier): fix format-check syntax
jamesckhsiao Feb 22, 2023
4b5a45e
Merge pull request #104 from Jameshsiao/suite_e2e
c4t-sumacher Feb 22, 2023
e81ab43
skip wallet activity transactions (temporally)
Esteban100k Feb 22, 2023
06025e1
wrapping arguments with single quotes with prettier command (#105)
c4t-sumacher Feb 22, 2023
94e425b
Merge suite and solve conflicts
Esteban100k Feb 22, 2023
341cf6a
ci(yarn.lock): fix prettier check error
jamesckhsiao Feb 22, 2023
19892f5
Fix Hour
Esteban100k Feb 22, 2023
0969021
Merge pull request #108 from Jameshsiao/suite_e2e
c4t-sumacher Feb 23, 2023
f0f9105
Merge branch 'suite' into suite_e2e
c4t-sumacher Feb 23, 2023
ae6b949
Removal of Avalanche network as a default network (#110)
Ayagoumi Feb 23, 2023
e65da7b
Adjust routing to explorer in activities and txHistory (#102)
Ayagoumi Feb 23, 2023
5595af6
ci(cypress): correct baseUrl of e2e testing
jamesckhsiao Feb 24, 2023
44dfc92
Merge pull request #113 from Jameshsiao/suite_e2e
c4t-sumacher Feb 24, 2023
52b8361
ci(cypress): correct local env baseUrl in plugin
jamesckhsiao Feb 24, 2023
f34586c
Merge pull request #114 from Jameshsiao/suite_e2e
c4t-sumacher Feb 24, 2023
7af72ac
Adjust padding of the camino wallet (#112)
Ayagoumi Feb 24, 2023
d13ed3a
fix fetching utxos multiple time when the alias is not changed (#111)
aeddaqqa Feb 24, 2023
ea14dfd
refactor routing in transaction history panel (#116)
aeddaqqa Feb 27, 2023
d494b1e
add new notifications (#117)
aeddaqqa Feb 28, 2023
54720f1
show the address when the account is logged out (#118)
aeddaqqa Feb 28, 2023
8c19ca6
test(e2e): skip real cases in CI by tags filtering
jamesckhsiao Mar 1, 2023
2d8075c
Merge pull request #121 from Jameshsiao/suite_e2e
c4t-sumacher Mar 1, 2023
110f1c0
Merge branch 'suite' into suite_e2e
Jameshsiao Mar 1, 2023
b0e45f2
Merge branch 'suite' into fix_cypress_cases_with_new_add_network_modal
c4t-sumacher Mar 1, 2023
09848b5
chainId replaces in interceptor
Esteban100k Mar 1, 2023
1cf88cf
today using moment js
Esteban100k Mar 1, 2023
33de5cf
Merge pull request #106 from chain4travel/fix_cypress_cases_with_new_…
c4t-sumacher Mar 2, 2023
5a6836f
Merge branch 'suite' of github.com:chain4travel/camino-wallet into su…
jamesckhsiao Mar 2, 2023
d3a5285
Merge pull request #123 from Jameshsiao/suite_e2e
c4t-sumacher Mar 2, 2023
45629af
Merge pull request #88 from chain4travel/suite_e2e
c4t-sumacher Mar 2, 2023
402a64c
add check if the network exists before removing it (#119)
aeddaqqa Mar 2, 2023
d059942
Fixes (#125)
aeddaqqa Mar 2, 2023
d9b2a2f
fix: lint (#126)
Ayagoumi Mar 2, 2023
0b00649
test(cross chain): e2e send x to p
Mar 3, 2023
44e1ef1
test(cross chain): add tag in context
Mar 3, 2023
76b05eb
Merge pull request #128 from riversoft-henry/TECH-625_e2eXtoP
Jameshsiao Mar 3, 2023
82c4108
edit BUILD_ENV variable (#129)
mo-c4t Mar 6, 2023
7b9e588
fix updating theme selected for KYC modal and QRcode background (#131)
aeddaqqa Mar 7, 2023
05a776f
Validator Pending and Validator Suspended screen and loading
Esteban100k Mar 3, 2023
79fb0d4
# Esta es una combinación de 2 commits.
aeddaqqa Mar 7, 2023
5a86779
edit BUILD_ENV variable (#129)
mo-c4t Mar 6, 2023
8ec8230
fix validator screen
Esteban100k Mar 14, 2023
53ca8f6
Merge branch 'suite' into validator_process
Esteban100k Mar 14, 2023
dc20a39
Merge pull request #133 from chain4travel/validator_process
Esteban100k Mar 14, 2023
68627c8
fix updating theme selected for KYC modal and QRcode background (#131)
aeddaqqa Mar 7, 2023
bc2d047
fix validator screen
Esteban100k Mar 14, 2023
269ad67
Merge branch 'suite' into validator_process
Esteban100k Mar 14, 2023
2cbfec2
Merge pull request #136 from chain4travel/validator_process
Esteban100k Mar 15, 2023
f6eddee
test(send): add mock e2e send c chain
Mar 16, 2023
e71da50
Merge pull request #137 from riversoft-henry/TECH-618_e2eCtoC_refactor
c4t-sumacher Mar 16, 2023
88a680c
Merge branch 'suite' into suite_e2e
riversoft-henry Mar 17, 2023
678793f
validator requeriments
Esteban100k Mar 17, 2023
fb2f192
delete unnecessary console logs
Esteban100k Mar 17, 2023
1924721
add send x-chain tx with mock data and refactoring for commands
Mar 21, 2023
d7c7b06
ci(package): adjust cypress version
Mar 21, 2023
bd03d19
Merge pull request #145 from riversoft-henry/TECH-618_e2eCtoC_refactor
riversoft-henry Mar 21, 2023
10a6246
Merge pull request #144 from c4t-sumacher/suite_e2e
riversoft-henry Mar 21, 2023
4a615ba
update cypress version
Esteban100k Mar 21, 2023
e70ea47
Merge pull request #139 from chain4travel/validator_requeriments
Esteban100k Mar 21, 2023
871c81c
refine login wallet workflow
Mar 22, 2023
c7fd0bb
Merge pull request #146 from c4t-sumacher/suite_e2e
riversoft-henry Mar 22, 2023
e70f6b8
cleanup of ts errors, remove duplication of routing (#147)
aeddaqqa Mar 22, 2023
477030f
test(send): ajdust to check p-chain test case
Mar 23, 2023
0068796
Manage keys to suite (#142)
Chriserus Mar 23, 2023
0e86b16
Fix multisig aliases importing (#149)
Chriserus Mar 24, 2023
3dab85f
fix(send): fix displaying transation hash error
Mar 24, 2023
6af63fb
test(cross chain): add cross chain e2e testing by mock and adjust ori…
Mar 26, 2023
8d6c5d1
Merge pull request #152 from riversoft-henry/refactor-cross-chain
c4t-sumacher Mar 27, 2023
f44d24d
test(send): remove transaction receipt intercept
Mar 27, 2023
4f6daaf
Merge pull request #148 from riversoft-henry/TECH-618_e2eCtoC_refactor
c4t-sumacher Mar 27, 2023
70ece3e
Merge branch 'suite' into suite_e2e
riversoft-henry Mar 27, 2023
894a3a6
change validator pending text and validator suspend
danilocha Mar 27, 2023
82e54e3
Merge pull request #155 from chain4travel/feature/change-pending-and-…
danilocha Mar 27, 2023
628ad47
test(send): adjust send x chain mock data
Mar 27, 2023
b9f7397
repair of the validator remaining time calculation
Mar 27, 2023
98cd02f
repair of the validator remaining time calculation
Mar 27, 2023
6c9589e
repair of the validator remaining time calculation
Mar 27, 2023
b2df081
Merge pull request #158 from riversoft-henry/suite_e2e
c4t-sumacher Mar 28, 2023
0e7ece5
Merge pull request #159 from chain4travel/TECH_764
Esteban100k Mar 28, 2023
5bd0b4c
test: add mock balance
Mar 29, 2023
deac262
Merge pull request #160 from riversoft-henry/suite_e2e
c4t-sumacher Mar 29, 2023
6ee96f1
Merge branch 'suite' into suite_e2e
riversoft-henry Mar 29, 2023
67aa1f9
test: remove non-mock testing
Mar 29, 2023
044c2c4
Merge pull request #161 from riversoft-henry/suite_e2e
riversoft-henry Mar 29, 2023
50da1aa
test: adjust import folder address
Mar 29, 2023
b5796bd
Multisig logic to suite (#151)
Chriserus Mar 29, 2023
5b8d9bc
Merge branch 'suite' into suite_e2e
riversoft-henry Mar 30, 2023
2426f42
Expose MyKeys Component to the suite (#163)
aeddaqqa Mar 30, 2023
12ca977
fix mainnet urls (#153)
mo-c4t Mar 30, 2023
6fdcc90
fix logout to update keystore (#150)
aeddaqqa Mar 30, 2023
3234f1a
minimum time 6 months
Esteban100k Mar 29, 2023
2751bbb
fix clickable amount
Esteban100k Mar 29, 2023
8824178
replace NodeInfo with ValidatorRaw
Esteban100k Mar 29, 2023
23ae0a1
fix onNodeRegistered
Esteban100k Mar 30, 2023
0ac54e3
ci(cypress): resovle webpack compilation error in cypress
riversoft-henry Mar 31, 2023
d06ea43
Merge pull request #167 from riversoft-henry/suite_e2e
c4t-sumacher Mar 31, 2023
025661d
Merge branch 'suite' into suite_e2e
riversoft-henry Mar 31, 2023
2382107
test(send): adjust to get transfer buttion element method
riversoft-henry Mar 31, 2023
28683cc
Merge pull request #168 from riversoft-henry/suite_e2e
riversoft-henry Mar 31, 2023
2e72655
ci(cypress): add yarn.lock
riversoft-henry Mar 31, 2023
acbc7c9
Merge pull request #169 from riversoft-henry/suite_e2e
riversoft-henry Mar 31, 2023
7ace2ae
Merge pull request #138 from chain4travel/suite_e2e
riversoft-henry Mar 31, 2023
d8b7bb6
Merge branch 'suite' into TECH_761_and_TECH_762
Esteban100k Mar 31, 2023
b9844d6
Merge pull request #170 from chain4travel/TECH_761_and_TECH_762
Esteban100k Mar 31, 2023
e78510e
Dev to suite (#166)
Chriserus Mar 31, 2023
84b4388
change name of Stake End Date to Validator Period End Date
danilocha Mar 31, 2023
6b3370e
fix icons color in importKeys component (#174)
aeddaqqa Apr 4, 2023
f05c680
Merge branch 'suite' into change-name-stakeEndDate
danilocha Apr 4, 2023
c5c832e
Multisig register node flow
Apr 4, 2023
47c14b6
Merge branch 'suite' into suite_multisig_node_registration
Apr 4, 2023
5974432
Remove console.log
Apr 5, 2023
e545521
Merge pull request #172 from chain4travel/change-name-stakeEndDate
danilocha Apr 5, 2023
8de5638
display import aliases functionality in manage keys section (#176)
aeddaqqa Apr 6, 2023
a62ad4c
Add validator, handle multisig flow and save to signavult
Apr 6, 2023
cbe86b3
fix(style): adjust button coloring and capitalize texts (#177)
Ayagoumi Apr 7, 2023
fc221bb
adjust fetching chains aliases (#179)
aeddaqqa Apr 7, 2023
152062d
add transaction expiration date picker
aeddaqqa Apr 7, 2023
34675c0
MultisigWallet: Properly catch Signature error
Apr 10, 2023
391fb4f
Add Validator Node UI implementation
Apr 10, 2023
96c4800
add updating the state of showing wallet switcher component (#182)
aeddaqqa Apr 10, 2023
d9f589a
Merge branch 'suite' into suite_multisig_node_registration
Apr 10, 2023
a09f9f0
Fix lint issues
Apr 11, 2023
2508351
Fix formating issues
Apr 11, 2023
f4a7ce9
Pending multisig: Fix refresh handler
Apr 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/node_modules
**/npm-debug.log
build
dist
5 changes: 2 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
node_modules/
dist/
tests/
../slopes
../avalanche.js/
../hw-app-avalanche/
camino-wallet-sdk/
patches
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ module.exports = {
'vue/multiline-html-element-content-newline': 'off',
'no-unreachable': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'prefer-const': 'off',
'no-unused-vars': 'off',
'no-var': 'off',
'vue/multi-word-component-names': 'off',
},
}
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@peak3d
@Noctunus
82 changes: 82 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: build-app
on:
push:
branches-ignore: ['**']

jobs:
yarn-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '15'
- run: yarn install
- run: yarn build
# this might need --frozen-lockfile but it seems to break build
# TODO add this when we fixed the builds in genreal

bump-version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.output.outputs.version }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }} # checkout the correct branch name
fetch-depth: 0 # fetch the whole repo history
- id: setversion
uses: codacy/git-version@2.4.0
name: Git Version
with:
release-branch: c4t
dev-branch: dev
- id: output
run: echo "::set-output name=version::${{ steps.setversion.outputs.version }}"

tag-commit:
runs-on: ubuntu-latest
needs: bump-version
if: github.ref == 'refs/heads/c4t'
steps:
- uses: actions/checkout@v3
- name: Create Git tag
uses: actions/github-script@v4
with:
script: |
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/${{ needs.bump-version.outputs.version }}",
sha: context.sha
})
docker-build:
runs-on: ubuntu-latest
needs: bump-version
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v1
name: Login to DockerHub
with:
username: ${{ secrets.docker_username }}
password: ${{ secrets.docker_pass }}
- name: Set tag variables
id: setTagVariables
run: |
BRANCH_NAME=${{ github.ref_name }}
if [[ "${{ github.ref_name }}" == "c4t" ]]; then
echo "::set-output name=stable::c4tplatform/camino-wallet:stable"
fi
if [[ "${{ github.ref_name }}" == "dev" ]]; then
echo "::set-output name=stable::c4tplatform/camino-wallet:dev"
fi
echo "::set-output name=branch::c4tplatform/camino-wallet:${BRANCH_NAME////-}-${{ github.run_id }}"
- name: Build image and push to Docker Hub and GitHub Container Registry
uses: docker/build-push-action@v2
with:
context: ./
tags: |
${{ steps.setTagVariables.outputs.branch }}
c4tplatform/camino-wallet:${{ needs.bump-version.outputs.version }}
${{ steps.setTagVariables.outputs.stable }}
push: ${{ github.ref == 'refs/heads/c4t' || github.ref == 'refs/heads/dev' }}
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
pull_request:
branches-ignore: [c4t, dev, suite]

env:
CI: true
Expand All @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [15]
node-version: [16]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn install
- run: yarn format-check
63 changes: 63 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: build-docker-image

on:
pull_request:
branches:
- c4t
- dev
- suite
push:
branches:
- c4t
- dev
- suite

env:
node_version: 16

jobs:
build_docker:
name: Build Docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Prepare Image Tag
id: setDefaults
run: |
DOCKER_IMAGE_NAME="europe-west3-docker.pkg.dev/pwk-c4t-dev/internal-camino-dev/camino-suite"
if [[ "${{ github.ref }}" == "refs/heads/c4t" ]]; then
echo "docker_image=$DOCKER_IMAGE_NAME:stage" >> $GITHUB_OUTPUT
echo "build_env=stage" >> $GITHUB_OUTPUT
elif [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then
echo "docker_image=$DOCKER_IMAGE_NAME:dev" >> $GITHUB_OUTPUT
echo "build_env=dev" >> $GITHUB_OUTPUT
elif [[ "${{ github.ref }}" == "refs/heads/suite" ]]; then
echo "docker_image=$DOCKER_IMAGE_NAME:dev" >> $GITHUB_OUTPUT
echo "build_env=dev" >> $GITHUB_OUTPUT
else
echo "docker_image=$DOCKER_IMAGE_NAME:temp" >> $GITHUB_OUTPUT
echo "build_env=dev" >> $GITHUB_OUTPUT
fi

- name: create docker image
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
docker build . -t ${{ steps.setDefaults.outputs.docker_image }} --build-arg BUILD_ENV=build:${{ steps.setDefaults.outputs.build_env }} --build-arg SUITE_BRANCH=${{ github.base_ref }} --build-arg EXPLORER_BRANCH=${{ github.base_ref }}
else
docker build . -t ${{ steps.setDefaults.outputs.docker_image }} --build-arg BUILD_ENV=build:${{ steps.setDefaults.outputs.build_env }} --build-arg SUITE_BRANCH=${{ github.ref_name }} --build-arg EXPLORER_BRANCH=${{ github.ref_name }}
fi

- name: Cloud authentication
if: github.event_name == 'push'
id: auth
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'

- name: push and deploy docker
if: github.event_name == 'push'
run: |
gcloud auth configure-docker --quiet europe-west3-docker.pkg.dev
docker push ${{ steps.setDefaults.outputs.docker_image }}
gcloud run deploy camino-suite-${{ steps.setDefaults.outputs.build_env }} --image ${{ steps.setDefaults.outputs.docker_image }} --region=europe-west1
135 changes: 78 additions & 57 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,86 @@
name: Main Commit Checks
on: [push]
name: main-commit-checks

jobs:
build:
runs-on: macos-latest

strategy:
matrix:
# The node version, you can put one or many versions in here to test with
node: [15.6.0]
steps:
- name: Checkout
uses: actions/checkout@v1
on:
push:
branches: [c4t, dev, suite]
pull_request:
branches: [c4t, dev, suite]

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
env:
suite_branch: 'suite'

# This should be caching node modules, hashing the cache key with the yarn lock code and busting that when yarn lock changes
- name: cache modules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- run: sudo npm install -g yarn
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# The node version, you can put one or many versions in here to test with
node: [16]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- run: yarn install --network-timeout 1000000
env:
CYPRESS_CACHE_FOLDER: ~/.cache/Cypress
- name: get branch name
id: setBranch
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "branch=${{ github.base_ref }}" >> $GITHUB_OUTPUT
else
echo "branch=${{ github.ref_name }}" >> $GITHUB_OUTPUT
fi

- name: linting
run: yarn run lint
# This should be caching node modules, hashing the cache key with the yarn lock code and busting that when yarn lock changes
- name: cache modules
uses: actions/cache@v3
with:
path: './node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('./yarn.lock') }}
- run: sudo npm install -g yarn
- run: yarn install --network-timeout 1000000
env:
CYPRESS_CACHE_FOLDER: ~/.cache/Cypress

- name: jest-run
run: yarn test
- name: start suite
run: |
git clone -b ${{ steps.setBranch.outputs.branch }} https://github.com/chain4travel/camino-suite.git
git clone -b ${{ steps.setBranch.outputs.branch }} https://github.com/chain4travel/camino-block-explorer.git
cd camino-suite
yarn install
(yarn start&)
cd ../camino-block-explorer
yarn install
(yarn start&)

- name: cypress-run
uses: cypress-io/github-action@v2
env:
USE_HTTP: true
with:
start: yarn serve --mode e2e
wait-on: 'http://localhost:5000/'
# wait for 3 minutes for the server to respond
wait-on-timeout: 180
browser: chrome
headless: true
- name: jest-run
run: yarn test

# These extract all artifacts out from the container to git so they can be previewed
- name: extract screenshots to git
uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Test run video was always captured, so this action uses "always()" condition
- name: extract videos to git
uses: actions/upload-artifact@v2
if: always()
with:
name: cypress-videos
path: cypress/videos
- name: cypress-run
uses: cypress-io/github-action@v5
env:
USE_HTTP: true
with:
wait-on: 'http://localhost:5003/'
start: yarn start
# wait for 3 minutes for the server to respond
wait-on-timeout: 180
browser: chrome
headless: true
config-file: ./cypress.config.ts
# These extract all artifacts out from the container to git so they can be previewed
- name: extract screenshots to git
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Test run video was always captured, so this action uses "always()" condition
- name: extract videos to git
uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-videos
path: cypress/videos
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ yarn-error.log*
*.sln
*.sw?
/cypress/videos
/cypress/screenshots
/cypress/screenshots
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "camino-wallet-sdk"]
path = camino-wallet-sdk
url = https://github.com/chain4travel/camino-wallet-sdk.git
branch = dist
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v15
v18
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
dist
node_modules
node_modules
camino-wallet-sdk
patches
20 changes: 14 additions & 6 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true,
"printWidth": 100,
"htmlWhitespaceSensitivity": "ignore"
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true,
"printWidth": 100,
"htmlWhitespaceSensitivity": "ignore",
"overrides": [
{
"files": ["*.yml", "*.yaml"],
"options": {
"tabWidth": 2
}
}
]
}
Loading