Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build

on:
push:
pull_request:

permissions:
contents: read

jobs:
locked-production-build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
cache-dependency-path: |
npm-shrinkwrap.json
client/npm-shrinkwrap.json
prerender-server/npm-shrinkwrap.json
- name: Install locked dependencies
run: npm ci
- name: Build Elements explorer
env:
API_URL: /api
IS_ELEMENTS: "1"
NATIVE_ASSET_ID: 11b705a6eaa8ebcb8cbdb9ae162d415afd3ed787385e541dc3224b88c2089057
NATIVE_ASSET_LABEL: L-BTC
BLIND_PREFIX: "4"
SITE_TITLE: LayerTwoLabs Liquid Signet Explorer
HOME_TITLE: LayerTwoLabs Liquid Signet
run: npm run dist
- name: Verify drivechain bundle
run: |
test -s dist/index.html
test -s dist/app.js
test -s dist/style.css
grep -q 'drivechain/pegs' dist/app.js
grep -q 'Peg activity' dist/app.js
grep -q 'peg-event-row' dist/style.css
20 changes: 20 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,26 @@ Assets are returned in the same format as in `GET /asset/:asset_id`.

The total number of results will be returned as the `x-total-results` header.

### `GET /drivechain/pegs`

Get the versioned BIP300 deposit, withdrawal, bundle commitment, and optional L1
acknowledgement timeline for the active Elements sidechain.

Query string parameters:

- `start_height`: first sidechain height to scan. defaults to 0.
- `count`: number of sidechain blocks to scan. defaults to 10000, maximum 10000.
- `include_l1`: include normalized L1 CUSF lifecycle events. accepts `true`,
`false`, `1`, or `0` and defaults to `false`.

The response includes `schema_version`, `sidechain_id`, `sidechain_tip`, the
scanned `range`, and an `events` array. Event objects have stable `event_id`,
`source`, `kind`, and `status` fields plus identifiers, values, and chain
locations relevant to that lifecycle step.

When `include_l1=true`, an unavailable L1 lifecycle provider returns HTTP 502.
Clients can retry with `include_l1=false` to retain the sidechain-only timeline.

## Transaction format

- `txid`
Expand Down
2 changes: 1 addition & 1 deletion babel.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"presets": [ "@babel/env" ]
"presets": [[ "@babel/env", { "targets": { "ie": "11" } } ]]
, "babelrcRoots": [ ".", "client" ]
}
2 changes: 1 addition & 1 deletion client/.babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
presets: [ "@babel/env" ]
presets: [[ "@babel/env", { targets: { ie: "11" } } ]]
, plugins: [
["@babel/plugin-transform-react-jsx", {"pragma": "require('snabbdom-pragma').createElement"}]
]
Expand Down
Loading