kyc.api.proxy's People
kyc.api.proxy's Issues
add readme
Update package `KYC.DataBase` to `1.0.6`
test
please add test
Create `KycWebHook` lambda
Lambda which represent work with WebHook
Use latest version of `KYC.DataBase` package
Migrate from API3 to API4
Need to get address from AuthDB, via token
Adapt `AdminKycProxy` to constantly update the database
add `proxy`
the proxy will have the wallet it came from.
in case when its not the original wallet
Integrate `SonarCloud`
using System.Linq - part 2
KYC.API.Proxy/src/KYC.API.Proxy/LambdaFunction.cs
Lines 43 to 50 in fa83269
var validResponse = wallets
.Select(wallet => httpCall.GetBlockPassResponse(wallet))
.FirstOrDefault(response => response.Status != RequestStatus.error);
if (validResponse != null)
{
return BuildOutputData(validResponse);
}
using System.Linq
KYC.API.Proxy/src/KYC.API.Proxy/Utils/DynamoDb.cs
Lines 19 to 41 in fa83269
public virtual string[] GetWallets(string wallet)
{
var user = GetItem(wallet);
if (user == null || !user.ContainsKey("EvmWallets"))
return Array.Empty<string>();
var associatedWallets = user["EvmWallets"].L.Select(x => x.S).ToArray();
return associatedWallets
.Select(associatedWallet => GetItem(associatedWallet))
.Where(associatedUser => associatedUser != null && associatedUser.ContainsKey("EvmWallets"))
.Where(associatedUser => associatedUser["EvmWallets"].L.Exists(x => x.S == wallet))
.Select(associatedUser => associatedUser["EvmWallet"].S)
.ToArray();
}
Update readme.md
check for other wallets
If the KYC result is false,
We want to check other EVM wallets, if none, return the result
Then we check if any of the wallets are linked back (wallet A got wallet B and wallet B got wallet A)
We check the KYC status for all the wallets who follow this rule. if any is true, return the valid object.
Use custom object instead of `JObject` in `HttpCall`
`RefId` is null possible
I receive some users with null address (RefId)
{
"Status": "approved",
"RecordId": "123",
"RefId": null,
"SubmitCount": 1,
"BlockPassID": "321",
"IsArchived": false,
"InreviewDate": "0000-00-00",
"WaitingDate": "0000-00-00",
"ApprovedDate": "0000-00-00"
}
IDK it's bug or not, what we need to do if RefId
is null?
add get name
remove name
use envaerment variables
Update `sonarcloud.yml`
Add two envs to possible download private package:
GITHUB_PACKAGE_USER_NAME: ${{ github.actor }}
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Add IO models
Add `AdminKycProxy` lambda
Create `Kyc` DB
Add check authorization header for `KycWebHook` lambda
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.