Skip to content

Commit

Permalink
changing ledger sequence numbers to numbers instead of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotFriend committed Dec 15, 2023
1 parent b389a7f commit 46c95eb
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion src/contentDescriptors/StartLedger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"StartLedger": {
"name": "startLedger",
"summary": "ledger to begin searching from",
"description": "Stringified ledger sequence number to fetch events after (inclusive). This method will return an error if `startLedger` is less than the oldest ledger stored in this node, or greater than the latest ledger seen by this node. If a cursor is included in the request, `startLedger` must be omitted.",
"description": "Ledger sequence number to fetch events after (inclusive). This method will return an error if `startLedger` is less than the oldest ledger stored in this node, or greater than the latest ledger seen by this node. If a cursor is included in the request, `startLedger` must be omitted.",
"required": true,
"schema": {
"$ref": "#/components/schemas/LedgerSequence"
Expand Down
80 changes: 41 additions & 39 deletions src/examples/Events.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"StartLedger": {
"name": "startLedger",
"value": "2530000"
"value": 2530000
},
"NativeTransfersFilter": {
"name": "filters",
Expand Down Expand Up @@ -31,7 +31,7 @@
"events": [
{
"type": "contract",
"ledger": "2531021",
"ledger": 2531021,
"ledgerClosedAt": "2023-11-15T08:58:25Z",
"contractId": "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
"id": "0010870652420501504-0000000004",
Expand All @@ -49,7 +49,7 @@
},
{
"type": "contract",
"ledger": "2531273",
"ledger": 2531273,
"ledgerClosedAt": "2023-11-15T09:20:38Z",
"contractId": "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
"id": "0010871734752280576-0000000004",
Expand All @@ -66,46 +66,48 @@
"inSuccessfulContractCall": true
}
],
"latestLedger": "2539388"
"latestLedger": 2539388
}
},
"AnyTwoEvents": {
"name": "getEventsResult",
"value": {"events": [
{
"type": "diagnostic",
"ledger": "2530001",
"ledgerClosedAt": "2023-11-15T07:29:05Z",
"contractId": "",
"id": "0010866271553875968-0000000000",
"pagingToken": "0010866271553875968-0000000000",
"topic": [
"AAAADwAAAAdmbl9jYWxsAA==",
"AAAADQAAACCGE7Aj5EvXxmmTtyojmlFF/Qv3qMTyL7THd6SG4GHZxQ==",
"AAAADwAAABFzZXRfY3VycmVuY3lfcmF0ZQAAAA=="
],
"value": {
"xdr": "AAAAEAAAAAEAAAACAAAADwAAAAN1c2QAAAAACQAAAAAAAAAAAAAAAAASHQg="
},
"inSuccessfulContractCall": true
},
{
"type": "diagnostic",
"ledger": "2530001",
"ledgerClosedAt": "2023-11-15T07:29:05Z",
"contractId": "CCDBHMBD4RF5PRTJSO3SUI42KFC72C7XVDCPEL5UY532JBXAMHM4KOQ3",
"id": "0010866271553875968-0000000001",
"pagingToken": "0010866271553875968-0000000001",
"topic": [
"AAAADwAAAAlmbl9yZXR1cm4AAAA=",
"AAAADwAAABFzZXRfY3VycmVuY3lfcmF0ZQAAAA=="
],
"value": {
"xdr": "AAAAAQ=="
"value": {
"events": [
{
"type": "diagnostic",
"ledger": 2530001,
"ledgerClosedAt": "2023-11-15T07:29:05Z",
"contractId": "",
"id": "0010866271553875968-0000000000",
"pagingToken": "0010866271553875968-0000000000",
"topic": [
"AAAADwAAAAdmbl9jYWxsAA==",
"AAAADQAAACCGE7Aj5EvXxmmTtyojmlFF/Qv3qMTyL7THd6SG4GHZxQ==",
"AAAADwAAABFzZXRfY3VycmVuY3lfcmF0ZQAAAA=="
],
"value": {
"xdr": "AAAAEAAAAAEAAAACAAAADwAAAAN1c2QAAAAACQAAAAAAAAAAAAAAAAASHQg="
},
"inSuccessfulContractCall": true
},
"inSuccessfulContractCall": true
}
],
"latestLedger": "2539529"}
{
"type": "diagnostic",
"ledger": 2530001,
"ledgerClosedAt": "2023-11-15T07:29:05Z",
"contractId": "CCDBHMBD4RF5PRTJSO3SUI42KFC72C7XVDCPEL5UY532JBXAMHM4KOQ3",
"id": "0010866271553875968-0000000001",
"pagingToken": "0010866271553875968-0000000001",
"topic": [
"AAAADwAAAAlmbl9yZXR1cm4AAAA=",
"AAAADwAAABFzZXRfY3VycmVuY3lfcmF0ZQAAAA=="
],
"value": {
"xdr": "AAAAAQ=="
},
"inSuccessfulContractCall": true
}
],
"latestLedger": 2539529
}
}
}
14 changes: 7 additions & 7 deletions src/examples/LedgerEntries.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
{
"key": "AAAAB+qfy4GuVKKfazvyk4R9P9fpo2n9HICsr+xqvVcTF+DC",
"xdr": "AAAABgAAAAAAAAABzAP+dP0PsNzYvFF1pv7a8RQXwH5eg3uZBbbWjE9PwAsAAAAQAAAAAQAAAAIAAAAPAAAAB0NvdW50ZXIAAAAAEgAAAAAAAAAAIOHWwMbBgBiAnwRt4k9nChmEOoSuLCVs2eqK9Qub+hgAAAABAAAAAwAAAAw=",
"lastModifiedLedgerSeq": "2552504"
"lastModifiedLedgerSeq": 2552504
}
],
"latestLedger": "2552990"
"latestLedger": 2552990
}
},
"LedgerKeyContractBalance": {
Expand All @@ -35,10 +35,10 @@
{
"key": "AAAABgAAAAHXkotywnA8z+r365/0701QSlWouXn8m0UOoshCtNHOYQAAABAAAAABAAAAAgAAAA8AAAAHQmFsYW5jZQAAAAASAAAAAcwD/nT9D7Dc2LxRdab+2vEUF8B+XoN7mQW21oxPT8ALAAAAAQ==",
"xdr": "AAAABgAAAAAAAAAB15KLcsJwPM/q9+uf9O9NUEpVqLl5/JtFDqLIQrTRzmEAAAAQAAAAAQAAAAIAAAAPAAAAB0JhbGFuY2UAAAAAEgAAAAHMA/50/Q+w3Ni8UXWm/trxFBfAfl6De5kFttaMT0/ACwAAAAEAAAARAAAAAQAAAAMAAAAPAAAABmFtb3VudAAAAAAACgAAAAAAAAAAAAAAAB3NZQAAAAAPAAAACmF1dGhvcml6ZWQAAAAAAAAAAAABAAAADwAAAAhjbGF3YmFjawAAAAAAAAAA",
"lastModifiedLedgerSeq": "2553612"
"lastModifiedLedgerSeq": 2553612
}
],
"latestLedger": "2553713"
"latestLedger": 2553713
}
},
"CombinedLedgerKeys": {
Expand All @@ -57,15 +57,15 @@
{
"key": "AAAABgAAAAHMA/50/Q+w3Ni8UXWm/trxFBfAfl6De5kFttaMT0/ACwAAABAAAAABAAAAAgAAAA8AAAAHQ291bnRlcgAAAAASAAAAAAAAAAAg4dbAxsGAGICfBG3iT2cKGYQ6hK4sJWzZ6or1C5v6GAAAAAE=",
"xdr": "AAAABgAAAAAAAAAB15KLcsJwPM/q9+uf9O9NUEpVqLl5/JtFDqLIQrTRzmEAAAAQAAAAAQAAAAIAAAAPAAAAB0JhbGFuY2UAAAAAEgAAAAHMA/50/Q+w3Ni8UXWm/trxFBfAfl6De5kFttaMT0/ACwAAAAEAAAARAAAAAQAAAAMAAAAPAAAABmFtb3VudAAAAAAACgAAAAAAAAAAAAAAAB3NZQAAAAAPAAAACmF1dGhvcml6ZWQAAAAAAAAAAAABAAAADwAAAAhjbGF3YmFjawAAAAAAAAAA",
"lastModifiedLedgerSeq": "2553612"
"lastModifiedLedgerSeq": 2553612
},
{
"key": "AAAABgAAAAHXkotywnA8z+r365/0701QSlWouXn8m0UOoshCtNHOYQAAABAAAAABAAAAAgAAAA8AAAAHQmFsYW5jZQAAAAASAAAAAcwD/nT9D7Dc2LxRdab+2vEUF8B+XoN7mQW21oxPT8ALAAAAAQ==",
"xdr": "AAAABgAAAAAAAAABzAP+dP0PsNzYvFF1pv7a8RQXwH5eg3uZBbbWjE9PwAsAAAAQAAAAAQAAAAIAAAAPAAAAB0NvdW50ZXIAAAAAEgAAAAAAAAAAIOHWwMbBgBiAnwRt4k9nChmEOoSuLCVs2eqK9Qub+hgAAAABAAAAAwAAAAw=",
"lastModifiedLedgerSeq": "2552504"
"lastModifiedLedgerSeq": 2552504
}
],
"latestLedger": "2553767"
"latestLedger": 2553767
}
}
}
4 changes: 2 additions & 2 deletions src/examples/Simulations.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"cpuInsns": "1635562",
"memBytes": "1295756"
},
"latestLedger": "2552139"
"latestLedger": 2552139
}
},
"InvalidContractTransaction": {
Expand All @@ -45,7 +45,7 @@
"cpuInsns": "0",
"memBytes": "0"
},
"latestLedger": "2552013"
"latestLedger": 2552013
}
}
}
Loading

0 comments on commit 46c95eb

Please sign in to comment.