Skip to content

Instantly share code, notes, and snippets.

View abdelghafour's full-sized avatar

Harraz Abdel abdelghafour

View GitHub Profile
@abdelghafour
abdelghafour / Runes Swapping.md
Last active June 9, 2024 13:42
Runestone Swapping

Swap TX

Build the swap TX

import axios from "axios";

const headers = { Authorization: MY_COMPANY_API_KEY };
const data = {
 fee: SUGGESTED_NETWORK_FEE_RATE,

Offer

Build an offer

import axios from "axios";

const headers = { Authorization: MY_COMPANY_API_KEY };
const data = {
  fee: SUGGESTED_NETWORK_FEES,

Create the Collateral:

import axios from "axios";


const headers = { };
const data = {
  collateralizer: {
    cardinal: {
@abdelghafour
abdelghafour / wager.md
Last active January 20, 2024 14:45
Wagers using Deep Lake API

Create the collateral:

const qs = require("qs");
const axios = require("axios");
const headers = { Authorization: MY_COMPANY_API_KEY };
const data = {
  fee: 100,
  locks: [
 {
@abdelghafour
abdelghafour / Deep Lake Follower Node Setup.md
Last active December 23, 2023 20:54
Deep Lake Follower Node Setup

Deep Lake Oracle Follower Node Setup

Introduction

Welcome to the Deep Lake Oracle Follower Node documentation. This README will guide you through setting up and running the Oracle Follower Node system, which consists of three main components: the database (Postgres), the follower node app, and the runner app.

The entire system is orchestrated using Docker and Docker Compose, ensuring ease of setup and consistent environments across different setups.

System Architecture

@abdelghafour
abdelghafour / Ordinals Lending.md
Last active June 6, 2024 15:09
Inscription Lending

Offer

Build an offer

import axios from "axios";

const headers = { Authorization: MY_COMPANY_API_KEY };
const data = {
  fee: SUGGESTED_NETWORK_FEES,
@abdelghafour
abdelghafour / BTC Collateralization.md
Last active March 6, 2024 20:27
BTC Collateralization Through Flow API

Create the Stake:

import axios from "axios";


const headers = { Authorization: MY_COMPANY_API_KEY };
const data = {
  fee: SUGGESTED_NETWORK_FEES,
  staker: {