Skip to content

Test #185

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

Draft
wants to merge 151 commits into
base: main
Choose a base branch
from
Draft

Test #185

wants to merge 151 commits into from

Conversation

ocasta181
Copy link
Contributor

No description provided.

akfoster and others added 30 commits February 15, 2023 15:01
* fixed go build

* Update .github/workflows/dev-deploy.yml

* Update .github/workflows/dev-deploy.yml
* create unknown device at user creation if no fingerprint data

* Update pkg/service/user.go

Co-authored-by: Auroter <[email protected]>

* fix

---------

Co-authored-by: Auroter <[email protected]>
* get instrument types sending properly again

* remove CustomData and empty LocationData

* Turns out they lied...

* replace ioutil.ReadAll with io.ReadAll (#122)

* fix go build on CI (#123)

* fixed go build

* Update .github/workflows/dev-deploy.yml

* Update .github/workflows/dev-deploy.yml

* use zero logs instead of log (#124)

* merge conflicts

* get instrument types sending properly again

* remove CustomData and empty LocationData

* Turns out they lied...

* remove new lines

* pull from master

* replace ioutil.ReadAll with io.ReadAll (#122)

* get instrument types sending properly again

* Turns out they lied...

* pull from master

* allow nil device IPAddress

* await unit21CreateInstrument

* refactor unit21 for dependency injection; create wallet instrument on user creation

---------

Co-authored-by: saito-sv <[email protected]>
Co-authored-by: Sean <[email protected]>
* change to 'Card Payment'

* change to 'Fiat to Crypto'
* update unit21 on email capture

* fix-off-by-one error in transaction db
* wip

* dont use terragrunt for now

* sandbox api

* updated to 4.37

* fixed ssm naming
* reorganize transaction service; add string-user name to checkout authentication

* ID -> Id or id; fix unit21 unit tests; Get Contact by UserId and PlatformId

* add GetByUserIdAndPlatformId

* fix query; add customer email, and payment IP to checkout auth

* Update pkg/model/transaction.go

Co-authored-by: Frostbourne <[email protected]>

* Update pkg/repository/auth.go

Co-authored-by: Frostbourne <[email protected]>

* Update pkg/internal/common/receipt.go

Co-authored-by: Frostbourne <[email protected]>

* Update pkg/service/checkout.go

Co-authored-by: Frostbourne <[email protected]>

* Update migrations/0003_contact-to-platform_device-to-instrument_tx-leg_transaction.sql

Co-authored-by: Frostbourne <[email protected]>

* Update pkg/internal/common/sign.go

Co-authored-by: Frostbourne <[email protected]>

* Update pkg/internal/common/sign.go

Co-authored-by: Frostbourne <[email protected]>

* Update pkg/repository/device.go

Co-authored-by: Frostbourne <[email protected]>

* Update pkg/internal/common/receipt.go

Co-authored-by: Frostbourne <[email protected]>

* Update pkg/internal/common/receipt.go

Co-authored-by: Frostbourne <[email protected]>

* Update api/middleware/middleware.go

* ensure email gets passed

* make 'written' ID all caps

* Update pkg/repository/auth.go

Co-authored-by: saito-sv <[email protected]>

* Update pkg/internal/unit21/evaluate_test.go

Co-authored-by: saito-sv <[email protected]>

---------

Co-authored-by: Frostbourne <[email protected]>
Co-authored-by: saito-sv <[email protected]>
do not abort transaction if user email is not found
…cision

Fix/sean/quote payload float precision
* setup debugger

* add .DS_Store to gitignore

---------

Co-authored-by: Sean <[email protected]>
* only create a new card if none was provided

* remove prints

* remove printed value
* use httperror from go-lib

* use go-libe repository

* common package

* redis

* validator

* common middleware

* string error

* rename go-lib common to commonlib

* rename commonlib to libCommon

* fixes

* lowercase ib

* fix middleware

* fix

* fix ctx in background functions

* fix bad merge conflict
* use platform-api apikeys

* unhash

* use go-lib v1.3.0
* Added tracing, find all addresses in trace

* fix .air.toml

* resolved data seeding error

* optional debugging

* include .env.example

* current progress

* merge

* update migration 7

* use pkgerrors in executor.go

* remove uncessary comment

* remove some unused methods

* make name not null

* be sure to add name to db row creation

---------

Co-authored-by: Sean <[email protected]>
Co-authored-by: Auroter <[email protected]>
* who did this

* adding erc20 forward logic

* Fixed post process aborting due to trying to get ERC721 data from ERC20 transfer events

* stashing

* coingecko id lookup using address, enable multiple transactions

* improved error message

* sanitize coingecko checksums

* cull bunk address data from coingecko

* added mock cost lookup for String USDc, fixed EVM estimation and execution of multiple calls, added calls for NFT and Token Forwarding (not complete yet)

* stashing

* Fix Coingecko Data Caching

* Added subnet token proxies quick-fix / hack, fixed a bug where coingecko always appeared to be down, fixed an issue with updating the timestamp of a cached token value even when failing to retrieve a new value

* Refactor call to repos.Contract.GetForValidation after resolving merge conflicts

* fix unit21 error from giving it comma delineated txIds

* Removed TX IDs from approvals from all front-facing stuff (receipt, transact return body) and unit21

* Don't dereference nil in code which isn't doing anything yet

* Cull Approve txIds where needed
@auroter auroter temporarily deployed to development July 14, 2023 00:27 — with GitHub Actions Inactive
* updated for consistency with service/user.go:162

* remove references to asset.network; update asset.Create()
@ocasta181 ocasta181 temporarily deployed to development July 17, 2023 23:44 — with GitHub Actions Inactive
@saito-sv saito-sv temporarily deployed to development July 18, 2023 04:16 — with GitHub Actions Inactive
* who did this

* adding erc20 forward logic

* Fixed post process aborting due to trying to get ERC721 data from ERC20 transfer events

* stashing

* coingecko id lookup using address, enable multiple transactions

* improved error message

* sanitize coingecko checksums

* cull bunk address data from coingecko

* added mock cost lookup for String USDc, fixed EVM estimation and execution of multiple calls, added calls for NFT and Token Forwarding (not complete yet)

* stashing

* Fix Coingecko Data Caching

* Added subnet token proxies quick-fix / hack, fixed a bug where coingecko always appeared to be down, fixed an issue with updating the timestamp of a cached token value even when failing to retrieve a new value

* Refactor call to repos.Contract.GetForValidation after resolving merge conflicts

* fix unit21 error from giving it comma delineated txIds

* Removed TX IDs from approvals from all front-facing stuff (receipt, transact return body) and unit21

* Don't dereference nil in code which isn't doing anything yet

* Cull Approve txIds where needed

* Fixed a bug where Confirming an EVM TX would hang on failure!!!! Fixed a bug where finding 0 tokens to forward for ERC721 or ERC20 reported an error, fixed a bug where forwards failed because they were using safeTransferFrom without an approve, added true max gas caching for each transaction request, fixed a bug where forwarding would be attempted when there was nothing to forward, added true gas summing including forwarding

* Fix snake_case_variables

* fix issue from merge

* Fix another merge issue

* Fixed a bug where max cached gas value was overwritten before returning quote
@auroter auroter temporarily deployed to development July 18, 2023 16:55 — with GitHub Actions Inactive
* who did this

* adding erc20 forward logic

* Fixed post process aborting due to trying to get ERC721 data from ERC20 transfer events

* stashing

* coingecko id lookup using address, enable multiple transactions

* improved error message

* sanitize coingecko checksums

* cull bunk address data from coingecko

* added mock cost lookup for String USDc, fixed EVM estimation and execution of multiple calls, added calls for NFT and Token Forwarding (not complete yet)

* stashing

* Fix Coingecko Data Caching

* Added subnet token proxies quick-fix / hack, fixed a bug where coingecko always appeared to be down, fixed an issue with updating the timestamp of a cached token value even when failing to retrieve a new value

* Refactor call to repos.Contract.GetForValidation after resolving merge conflicts

* fix unit21 error from giving it comma delineated txIds

* Removed TX IDs from approvals from all front-facing stuff (receipt, transact return body) and unit21

* Don't dereference nil in code which isn't doing anything yet

* Cull Approve txIds where needed

* Fixed a bug where Confirming an EVM TX would hang on failure!!!! Fixed a bug where finding 0 tokens to forward for ERC721 or ERC20 reported an error, fixed a bug where forwards failed because they were using safeTransferFrom without an approve, added true max gas caching for each transaction request, fixed a bug where forwarding would be attempted when there was nothing to forward, added true gas summing including forwarding

* Fix snake_case_variables

* fix issue from merge

* Fix another merge issue

* Fixed a bug where max cached gas value was overwritten before returning quote

* Created internal Gas Rate calculation method + function.  Defer to this during Cost estimation if network oracle name is set to "internal" in the db.  Also use this value when generating the real evm transaction request.
@auroter auroter temporarily deployed to development July 19, 2023 18:15 — with GitHub Actions Inactive
@frostbournesb frostbournesb temporarily deployed to development July 19, 2023 20:52 — with GitHub Actions Inactive
@brianspierce brianspierce temporarily deployed to development July 23, 2023 22:20 — with GitHub Actions Inactive
@auroter auroter temporarily deployed to development July 24, 2023 22:28 — with GitHub Actions Inactive
* Added "transfer()" commands to token cost analysis

* stash

* Add new coins to asset table on Quote

* fix unit21 tests
@auroter auroter temporarily deployed to development July 25, 2023 18:26 — with GitHub Actions Inactive
* persona api wrapper

* types

* accounts and inquiries

* verification

* made some modifications

* get verification

* tests

* pass test

* one more unit

* fixed an issue with creating an enquiry
* webhooks

* testing middleware

* tests for persona handle

* remove unncessary comments

* small bug on paths check

* fixed typo
* first pass

* fix some bugs, clear unneeded code

* create identity on user creation, and update on email verification

* add kyc service

* Update pkg/service/kyc.go

Co-authored-by: saito-sv <[email protected]>

* simplify KYC function names

* unit tests passing

* add route

* update annotations

* ensure the identity actually get's built

* handle noRows in sql selects

* use enum

---------

Co-authored-by: saito-sv <[email protected]>
Co-authored-by: frostbournesb <[email protected]>
* added checkout and person webhooks env vars to dev

* sandbox envs

* removed duplicates

* use same env var names
@saito-sv saito-sv temporarily deployed to development July 28, 2023 22:38 — with GitHub Actions Inactive
* first pass

* fix some bugs, clear unneeded code

* check and identify priviledge, assess true cost, true priviledge level after transaction

* create identity on user creation, and update on email verification

* add kyc service

* Update pkg/service/kyc.go

Co-authored-by: saito-sv <[email protected]>

* simplify KYC function names

* unit tests passing

* add route

* update annotations

* ensure the identity actually get's built

* handle noRows in sql selects

* adjust logic to use KYC object

* Update pkg/internal/common/util.go

Co-authored-by: saito-sv <[email protected]>

* cast KYCLevel to int when comparing

* make webhook secret keys optional

* undo prior changes -- these are required

* ensure unsigned quote payload is returned with 403 if KYC level is not sufficient

* stop dereferencing nil

* Update pkg/service/transaction.go

Co-authored-by: akfoster <[email protected]>

---------

Co-authored-by: Ocasta <[email protected]>
Co-authored-by: akfoster <[email protected]>
Co-authored-by: saito-sv <[email protected]>
Co-authored-by: frostbournesb <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants