Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Milestone2 docs - #142

Merged
forgetso merged 10 commits into
developfrom
milestone2-docs
Jun 27, 2022
Merged

Milestone2 docs#142
forgetso merged 10 commits into
developfrom
milestone2-docs

Conversation

@forgetso

Copy link
Copy Markdown
Member

No description provided.

forgetso added 10 commits June 17, 2022 10:41
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError
…json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError
@forgetso
forgetso merged commit 43c0092 into develop Jun 27, 2022
forgetso added a commit that referenced this pull request Jun 27, 2022
* tests update

* Fix build

* Mongo import fix

* Fix mongo import

* Make captcha items actually save in the db

* WIP

* depcheck

* depcheck

* mv abi/prosopo.json to contract

* merge

* Fix exports and add optional dataset field to captcha type

* Fix the provider addres

* Change datasetId name

* Allow build to succeed

* Revert "Allow build to succeed"

This reverts commit 7f0146f.

* Allow build to succeed (#112)

* Don't check for hex value for user account when saving to db. Address has already been validated

* Remove debug and fix import

* update database populator

* make sendFuns rotate funders

* update tests

* Make sure process exits (#119)

* types pt1

* Fix the provider's stake so that it is ten times the minimum stake amount

* imageserver

* test captchas

* clean

* ******debuggg*****

* ******debuggg*****

* debug

* deprecate handleFileProtocol

* reduce tests fund spending

* env

* build

* loadjsonfile logger...

* reduce funding

* fix build client...

* .env.test

* .env.test

* Remove redundant deployer address config variable (#123)

* npm ws setup

* path

* path

* tidy

* tidy

* rm ../../.env

* tidy

* yarn setup

* rm --api

* tidy

* up pkg

* codec

* npm ws

* mv types

* Fix for buildDecodeVector

* tidy

* tidy

* tidy

* Substrate test node (#131)

* - Config loader utility
- In-memory database for tests
- Changes to config in populator script to allow specifying the number of accounts
- Last traces of redspot removed and ts-mocha used for testing
- New test substrate node in docker compose config
- Switch to findup-sync from find-up
- mocha types added to tsconfig

* All but one test passing

* All tests passing

* path fixes

* fix mocha test command for npm

* Error handler (#133)

* Improved error handling using shared handler from contract package

* Fix cli commands

* Milestone2 docs (#139)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* test env

* merge

* rm ts-config-node

* Some new datasets (#136)

* Some new datasets

* fix target

* fix target

* Additional dataset

* fix: move express json command to the correct place

* rm docker-compose

* Milestone2 docs (#142)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Milestone2 docs - update config filename (#143)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Update config filename

Co-authored-by: Sinisa Canak <sinisa.canak997@gmail.com>
Co-authored-by: seht <seht@hyx.net>
Co-authored-by: Seth Montenegro <seth@hyx.net>
forgetso added a commit that referenced this pull request Jul 28, 2022
* tests update

* Fix build

* Mongo import fix

* Fix mongo import

* Make captcha items actually save in the db

* WIP

* depcheck

* depcheck

* mv abi/prosopo.json to contract

* merge

* Fix exports and add optional dataset field to captcha type

* Fix the provider addres

* Change datasetId name

* Allow build to succeed

* Revert "Allow build to succeed"

This reverts commit 7f0146f.

* Allow build to succeed (#112)

* Don't check for hex value for user account when saving to db. Address has already been validated

* Remove debug and fix import

* update database populator

* make sendFuns rotate funders

* update tests

* Make sure process exits (#119)

* types pt1

* Fix the provider's stake so that it is ten times the minimum stake amount

* imageserver

* test captchas

* clean

* ******debuggg*****

* ******debuggg*****

* debug

* deprecate handleFileProtocol

* reduce tests fund spending

* env

* build

* loadjsonfile logger...

* reduce funding

* fix build client...

* .env.test

* .env.test

* Remove redundant deployer address config variable (#123)

* npm ws setup

* path

* path

* tidy

* tidy

* rm ../../.env

* tidy

* yarn setup

* rm --api

* tidy

* up pkg

* codec

* npm ws

* mv types

* Fix for buildDecodeVector

* tidy

* tidy

* tidy

* Substrate test node (#131)

* - Config loader utility
- In-memory database for tests
- Changes to config in populator script to allow specifying the number of accounts
- Last traces of redspot removed and ts-mocha used for testing
- New test substrate node in docker compose config
- Switch to findup-sync from find-up
- mocha types added to tsconfig

* All but one test passing

* All tests passing

* path fixes

* fix mocha test command for npm

* Error handler (#133)

* Improved error handling using shared handler from contract package

* Fix cli commands

* Milestone2 docs (#139)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* test env

* merge

* rm ts-config-node

* Some new datasets (#136)

* Some new datasets

* fix target

* fix target

* Additional dataset

* fix: move express json command to the correct place

* rm docker-compose

* clean test

* provider container

* update lib v deps

* Milestone2 docs (#142)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Milestone2 docs - update config filename (#143)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Update config filename

* Script to send funds from dev accounts to any other account

* eb deploy...

* tsconfig

* add partialFee to dappUserSolution response

* merge

* contract v

* env tpl

* env

* env

* minor fix

* rename CaptchaSolutionResponse to DappUserSolutionResult

* add captchaBlockRecency config

* add captcha block recency check

* demo build

* demo build

* demo build

* env, up pkgs

* up pkgs

* tsconfig.package.json

* tsconfig.build.json

* env

* rm artifacts

* git rm --cached

* dockerfile entrypoint

* license

* tidy

* tsconfig.docker.json

* docker env

* docker img

* env fix

* clean

* setup to cli

* dockerignore

* fix imports

* env.test

* Bigger dataset (#160)

* Add test for empty solutions (#162)

* add and configure eslint (#163)

Co-authored-by: Sinisa Canak <sinisa.canak997@gmail.com>
Co-authored-by: seht <seht@hyx.net>
Co-authored-by: Seth Montenegro <seth@hyx.net>
forgetso added a commit that referenced this pull request Jul 28, 2022
* Develop (#165)

* tests update

* Fix build

* Mongo import fix

* Fix mongo import

* Make captcha items actually save in the db

* WIP

* depcheck

* depcheck

* mv abi/prosopo.json to contract

* merge

* Fix exports and add optional dataset field to captcha type

* Fix the provider addres

* Change datasetId name

* Allow build to succeed

* Revert "Allow build to succeed"

This reverts commit 7f0146f.

* Allow build to succeed (#112)

* Don't check for hex value for user account when saving to db. Address has already been validated

* Remove debug and fix import

* update database populator

* make sendFuns rotate funders

* update tests

* Make sure process exits (#119)

* types pt1

* Fix the provider's stake so that it is ten times the minimum stake amount

* imageserver

* test captchas

* clean

* ******debuggg*****

* ******debuggg*****

* debug

* deprecate handleFileProtocol

* reduce tests fund spending

* env

* build

* loadjsonfile logger...

* reduce funding

* fix build client...

* .env.test

* .env.test

* Remove redundant deployer address config variable (#123)

* npm ws setup

* path

* path

* tidy

* tidy

* rm ../../.env

* tidy

* yarn setup

* rm --api

* tidy

* up pkg

* codec

* npm ws

* mv types

* Fix for buildDecodeVector

* tidy

* tidy

* tidy

* Substrate test node (#131)

* - Config loader utility
- In-memory database for tests
- Changes to config in populator script to allow specifying the number of accounts
- Last traces of redspot removed and ts-mocha used for testing
- New test substrate node in docker compose config
- Switch to findup-sync from find-up
- mocha types added to tsconfig

* All but one test passing

* All tests passing

* path fixes

* fix mocha test command for npm

* Error handler (#133)

* Improved error handling using shared handler from contract package

* Fix cli commands

* Milestone2 docs (#139)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* test env

* merge

* rm ts-config-node

* Some new datasets (#136)

* Some new datasets

* fix target

* fix target

* Additional dataset

* fix: move express json command to the correct place

* rm docker-compose

* clean test

* provider container

* update lib v deps

* Milestone2 docs (#142)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Milestone2 docs - update config filename (#143)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Update config filename

* Script to send funds from dev accounts to any other account

* eb deploy...

* tsconfig

* add partialFee to dappUserSolution response

* merge

* contract v

* env tpl

* env

* env

* minor fix

* rename CaptchaSolutionResponse to DappUserSolutionResult

* add captchaBlockRecency config

* add captcha block recency check

* demo build

* demo build

* demo build

* env, up pkgs

* up pkgs

* tsconfig.package.json

* tsconfig.build.json

* env

* rm artifacts

* git rm --cached

* dockerfile entrypoint

* license

* tidy

* tsconfig.docker.json

* docker env

* docker img

* env fix

* clean

* setup to cli

* dockerignore

* fix imports

* env.test

* Bigger dataset (#160)

* Add test for empty solutions (#162)

* add and configure eslint (#163)

Co-authored-by: Sinisa Canak <sinisa.canak997@gmail.com>
Co-authored-by: seht <seht@hyx.net>
Co-authored-by: Seth Montenegro <seth@hyx.net>

* Update licenses

Co-authored-by: Sinisa Canak <sinisa.canak997@gmail.com>
Co-authored-by: seht <seht@hyx.net>
Co-authored-by: Seth Montenegro <seth@hyx.net>
forgetso added a commit that referenced this pull request Jul 28, 2022
* tests update

* Fix build

* Mongo import fix

* Fix mongo import

* Make captcha items actually save in the db

* WIP

* depcheck

* depcheck

* mv abi/prosopo.json to contract

* merge

* Fix exports and add optional dataset field to captcha type

* Fix the provider addres

* Change datasetId name

* Allow build to succeed

* Revert "Allow build to succeed"

This reverts commit 7f0146f.

* Allow build to succeed (#112)

* Don't check for hex value for user account when saving to db. Address has already been validated

* Remove debug and fix import

* update database populator

* make sendFuns rotate funders

* update tests

* Make sure process exits (#119)

* types pt1

* Fix the provider's stake so that it is ten times the minimum stake amount

* imageserver

* test captchas

* clean

* ******debuggg*****

* ******debuggg*****

* debug

* deprecate handleFileProtocol

* reduce tests fund spending

* env

* build

* loadjsonfile logger...

* reduce funding

* fix build client...

* .env.test

* .env.test

* Remove redundant deployer address config variable (#123)

* npm ws setup

* path

* path

* tidy

* tidy

* rm ../../.env

* tidy

* yarn setup

* rm --api

* tidy

* up pkg

* codec

* npm ws

* mv types

* Fix for buildDecodeVector

* tidy

* tidy

* tidy

* Substrate test node (#131)

* - Config loader utility
- In-memory database for tests
- Changes to config in populator script to allow specifying the number of accounts
- Last traces of redspot removed and ts-mocha used for testing
- New test substrate node in docker compose config
- Switch to findup-sync from find-up
- mocha types added to tsconfig

* All but one test passing

* All tests passing

* path fixes

* fix mocha test command for npm

* Error handler (#133)

* Improved error handling using shared handler from contract package

* Fix cli commands

* Milestone2 docs (#139)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* test env

* merge

* rm ts-config-node

* Some new datasets (#136)

* Some new datasets

* fix target

* fix target

* Additional dataset

* fix: move express json command to the correct place

* rm docker-compose

* clean test

* provider container

* update lib v deps

* Milestone2 docs (#142)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Milestone2 docs - update config filename (#143)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Update config filename

* Script to send funds from dev accounts to any other account

* eb deploy...

* tsconfig

* add partialFee to dappUserSolution response

* merge

* contract v

* env tpl

* env

* env

* minor fix

* rename CaptchaSolutionResponse to DappUserSolutionResult

* add captchaBlockRecency config

* add captcha block recency check

* demo build

* demo build

* demo build

* env, up pkgs

* up pkgs

* tsconfig.package.json

* tsconfig.build.json

* env

* rm artifacts

* git rm --cached

* dockerfile entrypoint

* license

* tidy

* tsconfig.docker.json

* docker env

* docker img

* env fix

* clean

* setup to cli

* dockerignore

* fix imports

* env.test

* Bigger dataset (#160)

* Add test for empty solutions (#162)

* add and configure eslint (#163)

* License update (#166)

* Develop (#165)

* tests update

* Fix build

* Mongo import fix

* Fix mongo import

* Make captcha items actually save in the db

* WIP

* depcheck

* depcheck

* mv abi/prosopo.json to contract

* merge

* Fix exports and add optional dataset field to captcha type

* Fix the provider addres

* Change datasetId name

* Allow build to succeed

* Revert "Allow build to succeed"

This reverts commit 7f0146f.

* Allow build to succeed (#112)

* Don't check for hex value for user account when saving to db. Address has already been validated

* Remove debug and fix import

* update database populator

* make sendFuns rotate funders

* update tests

* Make sure process exits (#119)

* types pt1

* Fix the provider's stake so that it is ten times the minimum stake amount

* imageserver

* test captchas

* clean

* ******debuggg*****

* ******debuggg*****

* debug

* deprecate handleFileProtocol

* reduce tests fund spending

* env

* build

* loadjsonfile logger...

* reduce funding

* fix build client...

* .env.test

* .env.test

* Remove redundant deployer address config variable (#123)

* npm ws setup

* path

* path

* tidy

* tidy

* rm ../../.env

* tidy

* yarn setup

* rm --api

* tidy

* up pkg

* codec

* npm ws

* mv types

* Fix for buildDecodeVector

* tidy

* tidy

* tidy

* Substrate test node (#131)

* - Config loader utility
- In-memory database for tests
- Changes to config in populator script to allow specifying the number of accounts
- Last traces of redspot removed and ts-mocha used for testing
- New test substrate node in docker compose config
- Switch to findup-sync from find-up
- mocha types added to tsconfig

* All but one test passing

* All tests passing

* path fixes

* fix mocha test command for npm

* Error handler (#133)

* Improved error handling using shared handler from contract package

* Fix cli commands

* Milestone2 docs (#139)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* test env

* merge

* rm ts-config-node

* Some new datasets (#136)

* Some new datasets

* fix target

* fix target

* Additional dataset

* fix: move express json command to the correct place

* rm docker-compose

* clean test

* provider container

* update lib v deps

* Milestone2 docs (#142)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Milestone2 docs - update config filename (#143)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Update config filename

* Script to send funds from dev accounts to any other account

* eb deploy...

* tsconfig

* add partialFee to dappUserSolution response

* merge

* contract v

* env tpl

* env

* env

* minor fix

* rename CaptchaSolutionResponse to DappUserSolutionResult

* add captchaBlockRecency config

* add captcha block recency check

* demo build

* demo build

* demo build

* env, up pkgs

* up pkgs

* tsconfig.package.json

* tsconfig.build.json

* env

* rm artifacts

* git rm --cached

* dockerfile entrypoint

* license

* tidy

* tsconfig.docker.json

* docker env

* docker img

* env fix

* clean

* setup to cli

* dockerignore

* fix imports

* env.test

* Bigger dataset (#160)

* Add test for empty solutions (#162)

* add and configure eslint (#163)

Co-authored-by: Sinisa Canak <sinisa.canak997@gmail.com>
Co-authored-by: seht <seht@hyx.net>
Co-authored-by: Seth Montenegro <seth@hyx.net>

* Update licenses

Co-authored-by: Sinisa Canak <sinisa.canak997@gmail.com>
Co-authored-by: seht <seht@hyx.net>
Co-authored-by: Seth Montenegro <seth@hyx.net>

Co-authored-by: Sinisa Canak <sinisa.canak997@gmail.com>
Co-authored-by: seht <seht@hyx.net>
Co-authored-by: Seth Montenegro <seth@hyx.net>
forgetso added a commit that referenced this pull request Jul 28, 2022
* tests update

* Fix build

* Mongo import fix

* Fix mongo import

* Make captcha items actually save in the db

* WIP

* depcheck

* depcheck

* mv abi/prosopo.json to contract

* merge

* Fix exports and add optional dataset field to captcha type

* Fix the provider addres

* Change datasetId name

* Allow build to succeed

* Revert "Allow build to succeed"

This reverts commit 7f0146f.

* Allow build to succeed (#112)

* Don't check for hex value for user account when saving to db. Address has already been validated

* Remove debug and fix import

* update database populator

* make sendFuns rotate funders

* update tests

* Make sure process exits (#119)

* types pt1

* Fix the provider's stake so that it is ten times the minimum stake amount

* imageserver

* test captchas

* clean

* ******debuggg*****

* ******debuggg*****

* debug

* deprecate handleFileProtocol

* reduce tests fund spending

* env

* build

* loadjsonfile logger...

* reduce funding

* fix build client...

* .env.test

* .env.test

* Remove redundant deployer address config variable (#123)

* npm ws setup

* path

* path

* tidy

* tidy

* rm ../../.env

* tidy

* yarn setup

* rm --api

* tidy

* up pkg

* codec

* npm ws

* mv types

* Fix for buildDecodeVector

* tidy

* tidy

* tidy

* Substrate test node (#131)

* - Config loader utility
- In-memory database for tests
- Changes to config in populator script to allow specifying the number of accounts
- Last traces of redspot removed and ts-mocha used for testing
- New test substrate node in docker compose config
- Switch to findup-sync from find-up
- mocha types added to tsconfig

* All but one test passing

* All tests passing

* path fixes

* fix mocha test command for npm

* Error handler (#133)

* Improved error handling using shared handler from contract package

* Fix cli commands

* Milestone2 docs (#139)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* test env

* merge

* rm ts-config-node

* Some new datasets (#136)

* Some new datasets

* fix target

* fix target

* Additional dataset

* fix: move express json command to the correct place

* rm docker-compose

* clean test

* provider container

* update lib v deps

* Milestone2 docs (#142)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Milestone2 docs - update config filename (#143)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Update config filename

* Script to send funds from dev accounts to any other account

* eb deploy...

* tsconfig

* add partialFee to dappUserSolution response

* merge

* contract v

* env tpl

* env

* env

* minor fix

* rename CaptchaSolutionResponse to DappUserSolutionResult

* add captchaBlockRecency config

* add captcha block recency check

* demo build

* demo build

* demo build

* env, up pkgs

* up pkgs

* tsconfig.package.json

* tsconfig.build.json

* env

* rm artifacts

* git rm --cached

* dockerfile entrypoint

* license

* tidy

* tsconfig.docker.json

* docker env

* docker img

* env fix

* clean

* setup to cli

* dockerignore

* fix imports

* env.test

* Bigger dataset (#160)

* Add test for empty solutions (#162)

* add and configure eslint (#163)

* License update (#166)

* Develop (#165)

* tests update

* Fix build

* Mongo import fix

* Fix mongo import

* Make captcha items actually save in the db

* WIP

* depcheck

* depcheck

* mv abi/prosopo.json to contract

* merge

* Fix exports and add optional dataset field to captcha type

* Fix the provider addres

* Change datasetId name

* Allow build to succeed

* Revert "Allow build to succeed"

This reverts commit 7f0146f.

* Allow build to succeed (#112)

* Don't check for hex value for user account when saving to db. Address has already been validated

* Remove debug and fix import

* update database populator

* make sendFuns rotate funders

* update tests

* Make sure process exits (#119)

* types pt1

* Fix the provider's stake so that it is ten times the minimum stake amount

* imageserver

* test captchas

* clean

* ******debuggg*****

* ******debuggg*****

* debug

* deprecate handleFileProtocol

* reduce tests fund spending

* env

* build

* loadjsonfile logger...

* reduce funding

* fix build client...

* .env.test

* .env.test

* Remove redundant deployer address config variable (#123)

* npm ws setup

* path

* path

* tidy

* tidy

* rm ../../.env

* tidy

* yarn setup

* rm --api

* tidy

* up pkg

* codec

* npm ws

* mv types

* Fix for buildDecodeVector

* tidy

* tidy

* tidy

* Substrate test node (#131)

* - Config loader utility
- In-memory database for tests
- Changes to config in populator script to allow specifying the number of accounts
- Last traces of redspot removed and ts-mocha used for testing
- New test substrate node in docker compose config
- Switch to findup-sync from find-up
- mocha types added to tsconfig

* All but one test passing

* All tests passing

* path fixes

* fix mocha test command for npm

* Error handler (#133)

* Improved error handling using shared handler from contract package

* Fix cli commands

* Milestone2 docs (#139)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* test env

* merge

* rm ts-config-node

* Some new datasets (#136)

* Some new datasets

* fix target

* fix target

* Additional dataset

* fix: move express json command to the correct place

* rm docker-compose

* clean test

* provider container

* update lib v deps

* Milestone2 docs (#142)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Milestone2 docs - update config filename (#143)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Update config filename

* Script to send funds from dev accounts to any other account

* eb deploy...

* tsconfig

* add partialFee to dappUserSolution response

* merge

* contract v

* env tpl

* env

* env

* minor fix

* rename CaptchaSolutionResponse to DappUserSolutionResult

* add captchaBlockRecency config

* add captcha block recency check

* demo build

* demo build

* demo build

* env, up pkgs

* up pkgs

* tsconfig.package.json

* tsconfig.build.json

* env

* rm artifacts

* git rm --cached

* dockerfile entrypoint

* license

* tidy

* tsconfig.docker.json

* docker env

* docker img

* env fix

* clean

* setup to cli

* dockerignore

* fix imports

* env.test

* Bigger dataset (#160)

* Add test for empty solutions (#162)

* add and configure eslint (#163)

Co-authored-by: Sinisa Canak <sinisa.canak997@gmail.com>
Co-authored-by: seht <seht@hyx.net>
Co-authored-by: Seth Montenegro <seth@hyx.net>

* Update licenses

Co-authored-by: Sinisa Canak <sinisa.canak997@gmail.com>
Co-authored-by: seht <seht@hyx.net>
Co-authored-by: Seth Montenegro <seth@hyx.net>

* Run lint --fix

Co-authored-by: Sinisa Canak <sinisa.canak997@gmail.com>
Co-authored-by: seht <seht@hyx.net>
Co-authored-by: Seth Montenegro <seth@hyx.net>
forgetso added a commit that referenced this pull request Jul 29, 2022
* tests update

* Fix build

* Mongo import fix

* Fix mongo import

* Make captcha items actually save in the db

* WIP

* depcheck

* depcheck

* mv abi/prosopo.json to contract

* merge

* Fix exports and add optional dataset field to captcha type

* Fix the provider addres

* Change datasetId name

* Allow build to succeed

* Revert "Allow build to succeed"

This reverts commit 7f0146f.

* Allow build to succeed (#112)

* Don't check for hex value for user account when saving to db. Address has already been validated

* Remove debug and fix import

* update database populator

* make sendFuns rotate funders

* update tests

* Make sure process exits (#119)

* types pt1

* Fix the provider's stake so that it is ten times the minimum stake amount

* imageserver

* test captchas

* clean

* ******debuggg*****

* ******debuggg*****

* debug

* deprecate handleFileProtocol

* reduce tests fund spending

* env

* build

* loadjsonfile logger...

* reduce funding

* fix build client...

* .env.test

* .env.test

* Remove redundant deployer address config variable (#123)

* npm ws setup

* path

* path

* tidy

* tidy

* rm ../../.env

* tidy

* yarn setup

* rm --api

* tidy

* up pkg

* codec

* npm ws

* mv types

* Fix for buildDecodeVector

* tidy

* tidy

* tidy

* Substrate test node (#131)

* - Config loader utility
- In-memory database for tests
- Changes to config in populator script to allow specifying the number of accounts
- Last traces of redspot removed and ts-mocha used for testing
- New test substrate node in docker compose config
- Switch to findup-sync from find-up
- mocha types added to tsconfig

* All but one test passing

* All tests passing

* path fixes

* fix mocha test command for npm

* Error handler (#133)

* Improved error handling using shared handler from contract package

* Fix cli commands

* Milestone2 docs (#139)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* test env

* merge

* rm ts-config-node

* Some new datasets (#136)

* Some new datasets

* fix target

* fix target

* Additional dataset

* fix: move express json command to the correct place

* rm docker-compose

* clean test

* provider container

* update lib v deps

* Milestone2 docs (#142)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Milestone2 docs - update config filename (#143)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Update config filename

* Script to send funds from dev accounts to any other account

* eb deploy...

* tsconfig

* add partialFee to dappUserSolution response

* merge

* contract v

* env tpl

* env

* env

* minor fix

* rename CaptchaSolutionResponse to DappUserSolutionResult

* add captchaBlockRecency config

* add captcha block recency check

* demo build

* demo build

* demo build

* env, up pkgs

* up pkgs

* tsconfig.package.json

* tsconfig.build.json

* env

* rm artifacts

* git rm --cached

* dockerfile entrypoint

* license

* tidy

* tsconfig.docker.json

* docker env

* docker img

* env fix

* clean

* setup to cli

* dockerignore

* fix imports

* env.test

* Bigger dataset (#160)

* Add test for empty solutions (#162)

* add and configure eslint (#163)

* License update (#166)

* Develop (#165)

* tests update

* Fix build

* Mongo import fix

* Fix mongo import

* Make captcha items actually save in the db

* WIP

* depcheck

* depcheck

* mv abi/prosopo.json to contract

* merge

* Fix exports and add optional dataset field to captcha type

* Fix the provider addres

* Change datasetId name

* Allow build to succeed

* Revert "Allow build to succeed"

This reverts commit 7f0146f.

* Allow build to succeed (#112)

* Don't check for hex value for user account when saving to db. Address has already been validated

* Remove debug and fix import

* update database populator

* make sendFuns rotate funders

* update tests

* Make sure process exits (#119)

* types pt1

* Fix the provider's stake so that it is ten times the minimum stake amount

* imageserver

* test captchas

* clean

* ******debuggg*****

* ******debuggg*****

* debug

* deprecate handleFileProtocol

* reduce tests fund spending

* env

* build

* loadjsonfile logger...

* reduce funding

* fix build client...

* .env.test

* .env.test

* Remove redundant deployer address config variable (#123)

* npm ws setup

* path

* path

* tidy

* tidy

* rm ../../.env

* tidy

* yarn setup

* rm --api

* tidy

* up pkg

* codec

* npm ws

* mv types

* Fix for buildDecodeVector

* tidy

* tidy

* tidy

* Substrate test node (#131)

* - Config loader utility
- In-memory database for tests
- Changes to config in populator script to allow specifying the number of accounts
- Last traces of redspot removed and ts-mocha used for testing
- New test substrate node in docker compose config
- Switch to findup-sync from find-up
- mocha types added to tsconfig

* All but one test passing

* All tests passing

* path fixes

* fix mocha test command for npm

* Error handler (#133)

* Improved error handling using shared handler from contract package

* Fix cli commands

* Milestone2 docs (#139)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* test env

* merge

* rm ts-config-node

* Some new datasets (#136)

* Some new datasets

* fix target

* fix target

* Additional dataset

* fix: move express json command to the correct place

* rm docker-compose

* clean test

* provider container

* update lib v deps

* Milestone2 docs (#142)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Milestone2 docs - update config filename (#143)

* Updated readme and fixed provider update cli command

* Utility for encoding or decoding addresses, strings, and hexStrings

* Rename

* Fixes to commands, readme, and tests
- Fixes dev commands in package.json
- Adds coverage command in package.json
- Adds coverage package c8
- Adds env tests
- Removes the mockdb and uses the real db class with in-memory db in tests
- Update the error handling in the db layer to use ProsopoEnvError

* Fixes to commands, readme, and tests - Fixes dev commands in package.json - Adds coverage command in package.json - Adds coverage package c8 - Adds env tests - Removes the mockdb and uses the real db class with in-memory db in tests - Update the error handling in the db layer to use ProsopoEnvError

* Add license headers

* Remove coverage stat

* Always register provider and dapp during setup

* Update config filename

* Script to send funds from dev accounts to any other account

* eb deploy...

* tsconfig

* add partialFee to dappUserSolution response

* merge

* contract v

* env tpl

* env

* env

* minor fix

* rename CaptchaSolutionResponse to DappUserSolutionResult

* add captchaBlockRecency config

* add captcha block recency check

* demo build

* demo build

* demo build

* env, up pkgs

* up pkgs

* tsconfig.package.json

* tsconfig.build.json

* env

* rm artifacts

* git rm --cached

* dockerfile entrypoint

* license

* tidy

* tsconfig.docker.json

* docker env

* docker img

* env fix

* clean

* setup to cli

* dockerignore

* fix imports

* env.test

* Bigger dataset (#160)

* Add test for empty solutions (#162)

* add and configure eslint (#163)

Co-authored-by: Sinisa Canak <sinisa.canak997@gmail.com>
Co-authored-by: seht <seht@hyx.net>
Co-authored-by: Seth Montenegro <seth@hyx.net>

* Update licenses

Co-authored-by: Sinisa Canak <sinisa.canak997@gmail.com>
Co-authored-by: seht <seht@hyx.net>
Co-authored-by: Seth Montenegro <seth@hyx.net>

* Run lint --fix

* Remove TODOs

* Remove empty test file

Co-authored-by: Sinisa Canak <sinisa.canak997@gmail.com>
Co-authored-by: seht <seht@hyx.net>
Co-authored-by: Seth Montenegro <seth@hyx.net>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant