Skip to content

Instantly share code, notes, and snippets.

View chumaknadya's full-sized avatar
:octocat:
Focusing

chumaknadya

:octocat:
Focusing
  • Kyiv,Ukraine
View GitHub Profile
func (s *ServiceETH) GetBalance(req *WalletBalanceRequest) (*big.Int, error) {
client, err := ethclient.Dial(req.GatewayURL)
if err != nil {
return nil, err
}
rctx, cancel := context.WithDeadline(context.Background(), time.Now().Add(DefaultTimeout))
defer cancel()
walletAddress := common.HexToAddress(req.Address)
Було
get '/deposit_address/:currency'
Стало
1. get '/deposit_address/:currency'
Params: + blockchain_key
Response: все те саме + blockchain_key(string)
2. get 'api/v2/account/transactions'
Response: все те саме + blockchain_key(string)
version: '3.6'
services:
vault:
image: vault:1.3.0
restart: always
volumes:
- vault_data:/vault
command:
- server
@chumaknadya
chumaknadya / vault
Last active November 12, 2020 15:51
# Access system health status
path "sys/health" {
capabilities = ["read", "list"]
}
# Renew tokens
path "auth/token/renew" {
capabilities = [ "update" ]
}
roles:
- superadmin
- admin
- manager
- accountant
- compliance
- support
- technical
- member
- broker
{
"iss": "yellow_logic",
"jti": "ef7640da-f295-4b36-b997-5edf87612ca7",
"iat": 1603702976,
"exp": 1603703036,
"event": {
"record": {
"user": {
"email": "aae@yellow.com",
"uid": "ID16421C020A",
roles:
- superadmin
- admin
- manager
- accountant
- compliance
- support
- technical
- member
- broker
roles:
- superadmin
- admin
- manager
- accountant
- compliance
- support
- technical
- member
- broker
{"roles"=>["admin", "manager", "accountant", "superadmin", "technical", "compliance", "support"], "permissions"=>{"admin"=>{"read"=>["Order", "Trade", "Member", "Account", "PaymentAddress"], "update"=>["Order", {"Member"=>["uid"]}], "manage"=>["Operations::Account", "Operations::Asset", "Operations::Expense", "Operations::Liability", "Operations::Revenue", "Engine", "Market", "Currency", "Blockchain", "Wallet", "TradingFee", "Adjustment", "Deposit", "Withdraw"]}, "accountant"=>{"read"=>["Operations::Account", "Operations::Asset", "Operations::Expense", "Operations::Liability", "Operations::Revenue", "Member", "Deposit", "Withdraw", "Account", "PaymentAddress"], "write"=>["Deposit", "Withdraw"], "create"=>["Deposits::Fiat", "Adjustment"]}, "compliance"=>{"read"=>["Operations::Account", "Operations::Asset", "Operations::Expense", "Operations::Liability", "Operations::Revenue", "Member", "Deposit", "Withdraw", "Account", "PaymentAddress"], "write"=>["Deposit", "Withdraw"]}, "manager"=>{"read"=>["Operations::Acco
PUT admin/tokens/:code
params, які ти кидаєш
code - string
name - string
total_supply - decimal
description - text
rank - integer
description - text
icon_url - string
expected_initial_price - decimal