Skip to content

Latest commit

 

History

History
198 lines (144 loc) · 6.49 KB

File metadata and controls

198 lines (144 loc) · 6.49 KB

Chainlink External Adapter for Enzyme

2.0.21 v2

Adapter to interact with Enzyme contracts.

This document was generated automatically. Please see README Generator for more info.

Environment Variables

Required? Name Description Type Options Default
ETHEREUM_RPC_URL An http(s) RPC URL to a blockchain node that can read the Enzyme contracts string
ETHEREUM_CHAIN_ID The chain id to connect to string 1

Data Provider Rate Limits

There are no rate limits for this adapter.


Input Parameters

Every EA supports base input parameters from this list

Required? Name Description Type Options Default
endpoint The endpoint to use string calcGav, calcNav, calcNetShareValueInAsset, calcNetValueForSharesHolder calcNav

CalcGav Endpoint

Endpoint to call the calcGav function on the contract.

calcGav is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
calculatorContract string
vaultProxy string

Example

Request:

{
  "id": "1",
  "data": {
    "calculatorContract": "0x0b2cBB1974f17700531439E3e4AfF5e5D2AADD4A",
    "vaultProxy": "0x44902e5a88371224d9ac172e391C64257B701Ade",
    "endpoint": "calcGav"
  },
  "debug": {
    "cacheKey": "yUw9SO6VrH2QFaTp1fXS40T8Kzg="
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "gav": "19995161270996618818245984471",
    "result": "19995161270996618818245984471"
  },
  "result": "19995161270996618818245984471",
  "statusCode": 200,
  "providerStatusCode": 200
}

CalcNav Endpoint

Endpoint to call the calcNav function on the contract.

calcNav is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
calculatorContract string
vaultProxy string

Example

Request:

{
  "id": "1",
  "data": {
    "calculatorContract": "0x0b2cBB1974f17700531439E3e4AfF5e5D2AADD4A",
    "vaultProxy": "0x44902e5a88371224d9ac172e391C64257B701Ade",
    "endpoint": "calcNav"
  },
  "debug": {
    "cacheKey": "940HZR6f+3OIPsgqg47sxUwf0zE="
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "nav": "19995161270996618818245984400",
    "result": "19995161270996618818245984400"
  },
  "result": "19995161270996618818245984400",
  "statusCode": 200,
  "providerStatusCode": 200
}

CalcNetValueForSharesHolder Endpoint

Endpoint to call the calcNetValueForSharesHolder function on the contract.

calcNetValueForSharesHolder is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
calculatorContract string
vaultProxy string
sharesHolder string

Example

There are no examples for this endpoint.


CalcNetShareValueInAsset Endpoint

Endpoint to call the calcNetShareValueInAsset function on the contract.

calcNetShareValueInAsset is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
calculatorContract string
vaultProxy string
quoteAsset string

Example

Request:

{
  "id": "1",
  "data": {
    "calculatorContract": "0x7c728cd0CfA92401E01A4849a01b57EE53F5b2b9",
    "vaultProxy": "0x27f23c710dd3d878fe9393d93465fed1302f2ebd",
    "quoteAsset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "endpoint": "calcNetShareValueInAsset"
  },
  "debug": {
    "cacheKey": "9rFUwiSU6BgwE7qJE+7u/8Vftd8="
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "netValue": "10000000000000000000",
    "result": "10000000000000000000"
  },
  "result": "10000000000000000000",
  "statusCode": 200,
  "providerStatusCode": 200
}

MIT License