diff --git a/internal/transform/asset_test.go b/internal/transform/asset_test.go index cc1da7c9..3270c7b7 100644 --- a/internal/transform/asset_test.go +++ b/internal/transform/asset_test.go @@ -103,15 +103,16 @@ func makeAssetTestOutput() (transformedAssets []AssetOutput) { AssetCode: "USDT", AssetIssuer: "GBVVRXLMNCJQW3IDDXC3X6XCH35B5Q7QXNMMFPENSOGUPQO7WO7HGZPA", AssetType: "credit_alphanum4", - AssetID: 1229977787683536144, - ID: -8205667356306085451, + AssetID: -8205667356306085451, + + ID: 1229977787683536144, }, AssetOutput{ AssetCode: "", AssetIssuer: "", AssetType: "native", - AssetID: 12638146518625398189, - ID: -5706705804583548011, + AssetID: -5706705804583548011, + ID: 12638146518625398189, }, } return diff --git a/internal/transform/claimable_balance.go b/internal/transform/claimable_balance.go index 7db3ef8f..d7c6d1ab 100644 --- a/internal/transform/claimable_balance.go +++ b/internal/transform/claimable_balance.go @@ -50,7 +50,7 @@ func TransformClaimableBalance(ledgerChange ingest.Change) (ClaimableBalanceOutp AssetCode: outputAsset.AssetCode, AssetIssuer: outputAsset.AssetIssuer, AssetType: outputAsset.AssetType, - AssetID: outputAsset.ID, + AssetID: outputAsset.AssetID, Claimants: outputClaimants, AssetAmount: float64(outputAmount) / 1.0e7, Sponsor: ledgerEntrySponsorToNullString(ledgerEntry), diff --git a/internal/transform/offer.go b/internal/transform/offer.go index c0cc787e..5f44a3c9 100644 --- a/internal/transform/offer.go +++ b/internal/transform/offer.go @@ -74,11 +74,11 @@ func TransformOffer(ledgerChange ingest.Change) (OfferOutput, error) { SellingAssetType: outputSellingAsset.AssetType, SellingAssetCode: outputSellingAsset.AssetCode, SellingAssetIssuer: outputSellingAsset.AssetIssuer, - SellingAssetID: outputSellingAsset.ID, + SellingAssetID: outputSellingAsset.AssetID, BuyingAssetType: outputBuyingAsset.AssetType, BuyingAssetCode: outputBuyingAsset.AssetCode, BuyingAssetIssuer: outputBuyingAsset.AssetIssuer, - BuyingAssetID: outputBuyingAsset.ID, + BuyingAssetID: outputBuyingAsset.AssetID, Amount: utils.ConvertStroopValueToReal(outputAmount), PriceN: outputPriceN, PriceD: outputPriceD,