This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Було | |
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.6' | |
services: | |
vault: | |
image: vault:1.3.0 | |
restart: always | |
volumes: | |
- vault_data:/vault | |
command: | |
- server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Access system health status | |
path "sys/health" { | |
capabilities = ["read", "list"] | |
} | |
# Renew tokens | |
path "auth/token/renew" { | |
capabilities = [ "update" ] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
roles: | |
- superadmin | |
- admin | |
- manager | |
- accountant | |
- compliance | |
- support | |
- technical | |
- member | |
- broker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"iss": "yellow_logic", | |
"jti": "ef7640da-f295-4b36-b997-5edf87612ca7", | |
"iat": 1603702976, | |
"exp": 1603703036, | |
"event": { | |
"record": { | |
"user": { | |
"email": "aae@yellow.com", | |
"uid": "ID16421C020A", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
roles: | |
- superadmin | |
- admin | |
- manager | |
- accountant | |
- compliance | |
- support | |
- technical | |
- member | |
- broker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
roles: | |
- superadmin | |
- admin | |
- manager | |
- accountant | |
- compliance | |
- support | |
- technical | |
- member | |
- broker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder