Skip to content

Instantly share code, notes, and snippets.

Flow 1

arb:pyusd -bridge-> eth:pyusd -swap-> eth:usds -swap-> eth:usdc -bridge-> arb:usdc

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

Enso <> Gami

Lagoon Vaults

msaDEF

Deposit:

curl -X 'GET' \

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)
* --------------------