diff --git a/protocols/horizon/operations/main.go b/protocols/horizon/operations/main.go index 741c7ff95e..b11ec2ad5b 100644 --- a/protocols/horizon/operations/main.go +++ b/protocols/horizon/operations/main.go @@ -375,10 +375,14 @@ type HostFunctionParameter struct { } // Type - refers to the source SAC Event -// it can only be one of 'transfer', 'mint', 'clawback' or 'burn' +// +// it can only be one of 'transfer', 'mint', 'clawback' or 'burn' +// // From - this is classic account that asset balance was changed. // To - this is the classic account that asset balance was changed, or if not applicable -// for asset contract event type, it can be absent such as 'burn' +// +// for asset contract event type, it can be absent such as 'burn' +// // Amount - expressed as a signed decimal to 7 digits precision. // Asset - the classic asset expressed as issuer and code. type AssetContractBalanceChange struct { diff --git a/services/horizon/internal/db2/schema/bindata.go b/services/horizon/internal/db2/schema/bindata.go index faf527ff6e..c5ba115e79 100644 --- a/services/horizon/internal/db2/schema/bindata.go +++ b/services/horizon/internal/db2/schema/bindata.go @@ -1617,11 +1617,13 @@ var _bindata = map[string]func() (*asset, error){ // directory embedded in the file by go-bindata. // For example if you run go-bindata on data/... and data contains the // following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png +// +// data/ +// foo.txt +// img/ +// a.png +// b.png +// // then AssetDir("data") would return []string{"foo.txt", "img"}, // AssetDir("data/img") would return []string{"a.png", "b.png"}, // AssetDir("foo.txt") and AssetDir("notexist") would return an error, and diff --git a/services/horizon/internal/ingest/processors/operations_processor.go b/services/horizon/internal/ingest/processors/operations_processor.go index d5260df17f..cf2676fa33 100644 --- a/services/horizon/internal/ingest/processors/operations_processor.go +++ b/services/horizon/internal/ingest/processors/operations_processor.go @@ -714,13 +714,14 @@ func (operation *transactionOperationWrapper) Details() (map[string]interface{}, // then it will be skipped and not ingested as a balance change into the operation details. // // SAC events have a one-to-one association to SAC contract fn invocations, -// i.e. invoke the 'mint' function, will trigger one Mint Event to be emitted capturing the fn args. +// +// i.e. invoke the 'mint' function, will trigger one Mint Event to be emitted capturing the fn args. // // SAC events that involve asset balance changes follow some standard data formats: -// The 'amount' in the event is expressed as Int128Parts, which carries a sign, however it's expected -// that value will not be signed as it represents a absolute delta, the event type can provide the -// context of whether an amount was considered incremental or decremental, i.e. credit or debit to a balance. // +// The 'amount' in the event is expressed as Int128Parts, which carries a sign, however it's expected +// that value will not be signed as it represents a absolute delta, the event type can provide the +// context of whether an amount was considered incremental or decremental, i.e. credit or debit to a balance. func (operation *transactionOperationWrapper) parseAssetBalanceChangesFromContractEvents() ([]map[string]interface{}, error) { balanceChanges := []map[string]interface{}{} diff --git a/services/horizon/internal/test/scenarios/bindata.go b/services/horizon/internal/test/scenarios/bindata.go index 81fff1ae09..6426a764b0 100644 --- a/services/horizon/internal/test/scenarios/bindata.go +++ b/services/horizon/internal/test/scenarios/bindata.go @@ -649,11 +649,13 @@ var _bindata = map[string]func() (*asset, error){ // directory embedded in the file by go-bindata. // For example if you run go-bindata on data/... and data contains the // following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png +// +// data/ +// foo.txt +// img/ +// a.png +// b.png +// // then AssetDir("data") would return []string{"foo.txt", "img"}, // AssetDir("data/img") would return []string{"a.png", "b.png"}, // AssetDir("foo.txt") and AssetDir("notexist") would return an error, and