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
{ | |
"title": "Transaction Sign Request", | |
"body": "Transaction sign request for rEaWpUGCTE8nDmLR2DEQzkR1Erfrf1jRCu", | |
"data": { | |
"tx_ref": "https://api.test.sologenic.org/api/v1/signer/transactions/ca601a91-c86d-4a7f-a0d9-e034b3891ca9/open" | |
} | |
} |
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
{"level":"info","time":1610552536,"message":"Fetching ledger number: 14004515"} | |
E0113 15:42:16.413127 1 remote.go:520] websocket: close 1008 (policy violation): threshold exceeded | |
E0113 15:42:16.413156 1 remote.go:122] Connection closed by server | |
{"level":"info","time":1610552536,"message":"ws listener stopped: Client Error -1 Connection Closed"} | |
{"level":"info","time":1610552536,"message":"connecting to ws on ws://cs-ripple-testnet-ws.kube-cryptonodes:80"} | |
{"level":"info","time":1610552536,"message":"successfully connected to ws"} | |
{"level":"info","time":1610552536,"message":"Fetching ledger number: 14004515"} | |
E0113 15:42:16.415408 1 remote.go:520] websocket: close 1008 (policy violation): threshold exceeded | |
E0113 15:42:16.415431 1 remote.go:122] Connection closed by server | |
{"level":"info","time":1610552536,"message":"ws listener stopped: Client Error -1 Connection Closed"} |
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
require "influxdb" | |
require "active_support/all" | |
require "pry-byebug" | |
username = 'admin' | |
password = 'changeme' | |
database = 'dex_poc' | |
name = 'sins' | |
influxdb = InfluxDB::Client.new database, username: username, password: password, host: "127.0.0.1" |
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
{ | |
"data": { | |
"data": { | |
"data": { | |
"data": { | |
"data": { | |
"data": { | |
"data": { | |
"data": { | |
"data": { |
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
require "singleton" | |
require "faraday" | |
require "better-faraday" | |
require "execjs" | |
require "pry-byebug" | |
require "bigdecimal" | |
require "bigdecimal/util" | |
require "hash-tweaks" | |
GENESIS_ADDRESS = "rBVi9Lgh5ceGuvKvDtJRhHHN7ASaLaxBja" |
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
const RippleAPI = require('ripple-lib').RippleAPI; | |
const api = new RippleAPI({ | |
server: 'wss://testnet.xrpl-labs.com' // Public rippled server | |
}); | |
api.connect().then(() => { | |
/* begin custom code ------------------------------------ */ | |
const wallet_hot = 'r4fCw4QyjNdXQF1rYUo71EbZ13Gq8TwNuS'; | |
a_acc = { |
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
Private key used to sign the JWT: | |
Bag Attributes | |
localKeyID: 01 00 00 00 | |
friendlyName: tp-76fc7ba4-b689-416b-9992-59dddb6dd918 | |
Microsoft CSP Name: Microsoft Strong Cryptographic Provider | |
Key Attributes | |
X509v3 Key Usage: 80 | |
-----BEGIN PRIVATE KEY----- | |
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCw09UDZ6SnMhcf | |
QeEgNztlk0VI0iBBcwH7N5IRKZrEAx6U7YLSp114j4k+dbOPxb4IzqsSrkDcLb0z |
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
profile_id = 85311 | |
File.write("profile-#{profile_id}.json",Profile.find(profile_id).as_json.to_json) |
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
module Ethereum | |
class Blockchain < Peatio::Blockchain::Abstract | |
def build_erc20_transactions(txn_receipt) | |
# Build invalid transaction for failed withdrawals | |
if transaction_status(txn_receipt) == 'fail' && txn_receipt.fetch('logs').blank? | |
return build_invalid_erc20_transaction(txn_receipt) | |
end | |
txn_receipt.fetch('logs').each_with_object([]) do |log, formatted_txs| |
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
# To find unused email templates run next script in the rails console: | |
`ls app/views/application_mailer`.split(".html.erb\n") - ApplicationMailer.new.local_methods.map(&:to_s).filter {|mn| !mn.include?("_url") } | |
# To find missing email template for action: | |
ApplicationMailer.new.local_methods.map(&:to_s).filter {|mn| !mn.include?("_url") } - `ls app/views/application_mailer`.split(".html.erb\n") |
NewerOlder