Skip to content

Instantly share code, notes, and snippets.

@Incede
Incede / Prove_Finalize
Last active May 22, 2025 08:20
Prove and finalize withdrawl transactions from OP stack chains
/*Before running script via `node Prove_Finalize`:
1. Run npm i viem inside the working dir
2. add the following to your package.json at the top level:
```
{
// ...
"type": "module",
}
```
3. Submit initiate withdrawl transaction on L2 adapter and insert the transaction hash at L41
#ifndef HFTLOB_H_
#define HFTLOB_H_
/**
* CUSTOM STRUCTS
*/
typedef struct Order{
char *tid;
unsigned buyOrSell;
double shares;
#include <math.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "order_matching.hpp"
/* Order Operations */
int pushOrder(Limit *limit, Order *newOrder){
This file has been truncated, but you can view the full file.
! function() {
var t, e, n;
(function() {
t = this
}).call(this),
function() {
var t = __meteor_runtime_config__;
e = t.meteorEnv, n = {
isProduction: "production" === e.NODE_ENV,
isDevelopment: "production" !== e.NODE_ENV,