From b80b4132dfd5932d47147a6fe2dd97db443d37e5 Mon Sep 17 00:00:00 2001 From: George Date: Tue, 17 Sep 2024 11:06:59 -0700 Subject: [PATCH] Drop unused proof schemas --- .../stellarcore/getledgerentries_response.go | 38 ------------------- protocols/stellarcore/proof_response.go | 6 --- 2 files changed, 44 deletions(-) delete mode 100644 protocols/stellarcore/getledgerentries_response.go delete mode 100644 protocols/stellarcore/proof_response.go diff --git a/protocols/stellarcore/getledgerentries_response.go b/protocols/stellarcore/getledgerentries_response.go deleted file mode 100644 index 71635f1eea..0000000000 --- a/protocols/stellarcore/getledgerentries_response.go +++ /dev/null @@ -1,38 +0,0 @@ -package stellarcore - -const ( - // LiveState represents the state value returned by stellar-core when a - // ledger entry is live - LiveState = "live" - - // DeadState represents the state value returned by stellar-core when a - // ledger entry is dead - DeadState = "dead" - - // NewStateNoProof indicates the entry is new and does NOT require a proof - // of non-existence. - NewStateNoProof = "new_entry_no_proof" - - // NewStateNeedsProof indicates the entry is new and DOES require a proof of - // non-existence. - NewStateNeedsProof = "new_entry_proof" - - // ArchivedStateNoProof indicates the entry is archived and does NOT require - // a proof of existence. - ArchivedStateNoProof = "archived_no_proof" - - // ArchivedStateNeedsProof indicates the entry is archived and DOES require - // a proof of non-existence. - ArchivedStateNeedsProof = "archived_proof" -) - -// GetLedgerEntriesResponse is the response from Stellar Core for the getledgerentries endpoint -type GetLedgerEntriesResponse struct { - Ledger uint32 `json:"ledger"` - Entries []LedgerEntryResponse `json:"entries"` -} - -type LedgerEntryResponse struct { - Entry string `json:"e"` // base64-encoded xdr.LedgerEntry - State string `json:"state"` // one of the above State constants -} diff --git a/protocols/stellarcore/proof_response.go b/protocols/stellarcore/proof_response.go deleted file mode 100644 index 5b2bd6c659..0000000000 --- a/protocols/stellarcore/proof_response.go +++ /dev/null @@ -1,6 +0,0 @@ -package stellarcore - -type ProofResponse struct { - Ledger uint32 `json:"ledger"` - Proof string `json:"proof,omitempty"` -}