Skip to content

Instantly share code, notes, and snippets.

[
{
"memo": "6375332545341717",
"_links": {
"self": {
"href": "https://horizon.stellar.org/transactions/6fc37da9217c092dab9691a56ba6afc536d853c51c25fc0df180db398b3ec6dc"
},
"account": {
"href": "https://horizon.stellar.org/accounts/GB3RMPTL47E4ULVANHBNCXSXM2ZA5JFY5ISDRERPCXNJUDEO73QFZUNK"
},
[
{
"_links": {
"self": {
"href": "https://4a66d9db.ngrok.io/transactions/6644be14822dd9b66eae830cd6ec57c08f9be02ab048859cb27541941ad53650"
},
"account": {
"href": "https://4a66d9db.ngrok.io/accounts/GAMFIL3N6PN5JSYF2DN3M5BJIXRA6AWZFFI3ZMYMNSIWC3CKGN4WE2ZL"
},
"ledger": {
// AccountRequest contains data for making requests to the accounts
// endpoint of a horizon server.
//
// To fetch information for a single account:
// - Set `AccountID` to retrieve `AccountDetail`.
// - Set `AccountID` and `DataKey` to retrieve `AccountData`.
//
// To fetch information for multiple accounts:
// - Set `ForSigner` to retrieve all the `AccountDetail` who have the
// given account as a signer.
diff --git a/exp/ingest/io/postgres_temp_set.go b/exp/ingest/io/postgres_temp_set.go
index 4ca7432b..3d097a7c 100644
--- a/exp/ingest/io/postgres_temp_set.go
+++ b/exp/ingest/io/postgres_temp_set.go
@@ -31,7 +31,7 @@ const (
// If `Session` is passed, it will be cloned.
type PostgresTempSet struct {
DSN string
- Session *db.Session
+ Session db.SessionInterface
horizon_prod2=# select * from exp_history_effects where history_operation_id='119121304501768197' ORDER BY "order";
history_account_id | history_operation_id | order | type | details
--------------------+----------------------+-------+------+-----------------------------------------------------------------------------------------
7080 | 119121304501768197 | 1 | 12 | {"weight": 2, "public_key": "GAL3BHRWF6FR6L4AKSKYPYJCNWXNVCURMFRDMQM3V5OU25PARPJS52AT"}
7080 | 119121304501768197 | 2 | 12 | {"weight": 2, "public_key": "GCMJGZHL7C7KU4U5D6GQMMBMDFMVJO3V3JQPPBZXY7A6N5KSU4QQEGG6"}
7080 | 119121304501768197 | 3 | 10 | {"weight": 2, "public_key": "GATHCV4BJI7PE75C6FNFV25NFWSF5KH2AEA3NZ3JYUGVHSNKBYEUQ5RT"}
(3 rows)
horizon_prod2=# select * from history_effects where history_operation_id='119121304501768197' ORDER BY "order";
history_account_id | history_operation_id | order | type |
defmodule do
@moduledoc """
Automatically generated on 2019-11-15T09:08:26-05:00
DO NOT EDIT or your changes may be overwritten
Target implementation: exdr at https://hex.pm/packages/exdr
"""
use XDR.Base
+--------+--------+...+--------+--------+...+--------+
| byte 0 | byte 1 |...|byte n-1| 0 |...| 0 | BLOCK
+--------+--------+...+--------+--------+...+--------+
|<-----------n bytes---------->|<------r bytes------>|
|<-----------n+r (where (n+r) mod 4 = 0)>----------->|
// Follow the steps below to play with this:
// 1. git clone abuiles/json-xdr && cd json-xdr
// 2. yarn install (or npm install)
// 3. touch sandbox.js
// 4. Paste the content of this file in sandbox.js
// 5. Run like `node sandox`
const XDR = require('js-xdr')
const Cursor = require('cursor')
const jsonXDR = require('./dist/index')
defmodule Hub.JsonApiClient.Middleware.NormalizeAttributes do
@moduledoc """
JsonApiClient middleware to convert attributes from kebab-case to snake_case.
"""
@behaviour JsonApiClient.Middleware
alias JsonApiClient.{Request}
@impl JsonApiClient.Middleware
@doc """
Parse notifications from any of the supported banks to a YNAB
transaction.
## Examples
iex> notification = \"""
Apreciado(a) X:
Le informamos que se ha registrado el siguiente movimiento de su Tarjeta Crédito terminada en ****2020: