Skip to content

Instantly share code, notes, and snippets.

Altura Deposit Flow 1

op:usdt --bridge--> hyper:usdt0 --deposit--> hyper:altv --bridge--> op:altv

Request

curl -X 'POST' \
  'https://api.enso.finance/api/v1/shortcuts/bundle?chainId=10&fromAddress=0xd8da6bf26964af9d7eed9e03e53415d37aa96045&referralCode=0123456789ABCDEF&routingStrategy=router&receiver=0xd8da6bf26964af9d7eed9e03e53415d37aa96045' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer 1e02632d-6feb-4a75-a157-documentation' \

Stablewatch.io Flow

  1. take in USDT0 on Plasma
  2. bridge to Ethereum mainnet using LZ
  3. Swap into USDC
  4. plug into the Sky PSM to swap from USDC to USDS or sUSDS
  5. Bridge back to Plasma using the USDS / sUSDS LZ bridge that we are currently working on

Request

@vnavascues
vnavascues / EVM_Regex_Decompiler.md
Created December 29, 2022 16:08 — forked from vicnaum/EVM_Regex_Decompiler.md
EVM Regex Decompiler
@vnavascues
vnavascues / get-location-current-conditions.toml
Created October 29, 2021 17:38
A TOML jobspec for the AccuWeather EA
type = "directrequest"
schemaVersion = 1
minContractPaymentLinkJuels = "1000000000000000000" # 0.1 LINK or 1 LINK
name = "AW AccuWeather Get Current Conditions by Location Coordinates 3"
contractAddress = "0x0000000000000000000000000000000000000000" # Replace with Operator.sol address (also in submit_tx task)
maxTaskDuration = "0s"
observationSource = """
decode_log [type=ethabidecodelog
abi="OracleRequest(bytes32 indexed specId, address requester, bytes32 requestId, uint256 payment, address callbackAddr, bytes4 callbackFunctionId, uint256 cancelExpiration, uint256 dataVersion, bytes data)"
data="$(jobRun.logData)"
@vnavascues
vnavascues / AccuweatherConsumer.sol
Last active November 28, 2021 19:34
An AccuWeather Consumer contract
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "@chainlink/contracts/src/v0.8/ChainlinkClient.sol";
/**
* **** Data Conversions ****
*
* countryCode (bytes2)
* --------------------
@vnavascues
vnavascues / get-location-current-conditions.json
Created October 25, 2021 19:11
A JSON jobspec for the AccuWeather EA
{
"name": "AW AccuWeather Get Current Conditions by Location Coordinates",
"initiators": [
{
"type": "runlog",
"params": {
"address": "0x0000000000000000000000000000000000000000"
}
}
],
@vnavascues
vnavascues / get-location-current-conditions.toml
Last active October 29, 2021 17:36
A TOML jobspec for the AccuWeather EA
type = "directrequest"
schemaVersion = 1
minContractPaymentLinkJuels = "1000000000000000000" # 0.1 LINK or 1 LINK
name = "AW AccuWeather Get Current Conditions by Location Coordinates"
contractAddress = "0x0000000000000000000000000000000000000000" # Replace with Operator.sol address (also in submit_tx task)
maxTaskDuration = "0s"
observationSource = """
decode_log [type=ethabidecodelog
abi="OracleRequest(bytes32 indexed specId, address requester, bytes32 requestId, uint256 payment, address callbackAddr, bytes4 callbackFunctionId, uint256 cancelExpiration, uint256 dataVersion, bytes data)"
data="$(jobRun.logData)"
@vnavascues
vnavascues / AccuweatherConsumer.sol
Created October 25, 2021 17:57
An AccuWeather Consumer contract
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "@chainlink/contracts/src/v0.8/ChainlinkClient.sol";
/**
* **** Data Conversions ****
*
* countryCode (bytes2)
* --------------------
def test_pnl():
# Address
# 0x49a2DcC237a65Cc1F412ed47E0594602f6141936
# Pool
# 0x6b9887422E2a4aE11577F59EA9c01a6C998752E2
# Events below (all mints)
# 0xb387d1131d3914c62dc85b0434dbd750167b502f3ddb189d9ae0c23a638e37eb
mint1 = [
FVal("211.012433028763012105"), # WETH added
FVal("3931.525865515694335575"), # BAL added
{
"0x000001f568875F378Bf6d170B790967FE429C81A": [
232
],
"0x01199307A3FeB7474fbdeaA9f68d5C8b1aF85Ad3": [
232
],
"0x03653B34D2bD05D82c8Ae879d7096D02b94aA010": [
232
],