Skip to content

Commit 0a6534b

Browse files
Release 1.298.0 (packages/sources/view-function-multi-chain)
1 parent b7ab04e commit 0a6534b

File tree

3 files changed

+59
-17
lines changed

3 files changed

+59
-17
lines changed

packages/sources/view-function-multi-chain/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @chainlink/view-function-multi-chain-adapter
22

3+
## 1.8.0
4+
5+
### Minor Changes
6+
7+
- [#4729](https://github.com/smartcontractkit/external-adapters-js/pull/4729) [`2a178ed`](https://github.com/smartcontractkit/external-adapters-js/commit/2a178ed81dc5b791f89f7dc2316d8a339bb23637) Thanks [@dskloetc](https://github.com/dskloetc)! - Support aptos in calculated-multi-function
8+
9+
### Patch Changes
10+
11+
- [#4622](https://github.com/smartcontractkit/external-adapters-js/pull/4622) [`8488e03`](https://github.com/smartcontractkit/external-adapters-js/commit/8488e033e8783383b0a25d440b89b6e5d6d470b4) Thanks [@johnnymugs](https://github.com/johnnymugs)! - Bumped framework version
12+
313
## 1.7.0
414

515
### Minor Changes

packages/sources/view-function-multi-chain/README.md

Lines changed: 48 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# VIEW_FUNCTION_MULTI_CHAIN
22

3-
![1.7.0](https://img.shields.io/github/package-json/v/smartcontractkit/external-adapters-js?filename=packages/sources/view-function-multi-chain/package.json) ![v3](https://img.shields.io/badge/framework%20version-v3-blueviolet)
3+
![1.8.0](https://img.shields.io/github/package-json/v/smartcontractkit/external-adapters-js?filename=packages/sources/view-function-multi-chain/package.json) ![v3](https://img.shields.io/badge/framework%20version-v3-blueviolet)
44

55
This document was generated automatically. Please see [README Generator](../../scripts#readme-generator) for more info.
66

@@ -136,21 +136,28 @@ There are no examples for this endpoint.
136136

137137
### Input Params
138138

139-
| Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
140-
| :-------: | :-----------------------: | :-----: | :---------------------------------------------------------------------------------------------------------------------------------------------------------: | :------: | :---------------------------------------------------------------------------------: | :-----: | :--------: | :------------: |
141-
| | functionCalls | | Array view-function calls to be made to the blockchain | object[] | | | | |
142-
|| functionCalls.name | | Name of the function call result | string | | | | |
143-
|| functionCalls.signature | | Function signature. Should be formatted as [human readable ABI](https://docs.ethers.io/v5/single-page/#/v5/getting-started/-%23-getting-started--contracts) | string | | | | |
144-
|| functionCalls.address | | Address of the contract | string | | | | |
145-
| | functionCalls.inputParams | | Array of function parameters in order | string[] | | | | |
146-
|| functionCalls.network | | RPC network name | string | | | | |
147-
| | constants | | Constant value to be included in the response | object[] | | | | |
148-
|| constants.name | | Name of the constant result | string | | | | |
149-
|| constants.value | | Value of the constant | string | | | | |
150-
| | operations | | Results derived from other results by applying basic operations | object[] | | | | |
151-
|| operations.name | | Name of the derived result | string | | | | |
152-
|| operations.type | | The operation or source of the derived result | string | `add`, `assertZero`, `average`, `divide`, `equal`, `multiply`, `select`, `subtract` | | | |
153-
|| operations.args | | Inputs to the expression. Can be names of functionCalls or constants or specific values depending on the type of operation | string[] | | | | |
139+
| Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
140+
| :-------: | :-----------------------: | :--------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------: | :------: | :---------------------------------------------------------------------------------: | :-------: | :--------: | :------------: |
141+
| | functionCalls | | Array of EVM view-function calls to be made | object[] | | | | |
142+
|| functionCalls.name | | Name of the function call result | string | | | | |
143+
|| functionCalls.signature | | Function signature. Should be formatted as [human readable ABI](https://docs.ethers.io/v5/single-page/#/v5/getting-started/-%23-getting-started--contracts) | string | | | | |
144+
|| functionCalls.address | | Address of the contract | string | | | | |
145+
| | functionCalls.inputParams | | Array of function parameters in order | string[] | | | | |
146+
|| functionCalls.network | | RPC network name | string | | | | |
147+
| | aptosCalls | | Array of Aptos view-function calls to be made | object[] | | | | |
148+
|| aptosCalls.name | | Name of the function call result | string | | | | |
149+
|| aptosCalls.signature | `function` | Function signature. Format: {address}::{module name}::{function name} | string | | | | |
150+
| | aptosCalls.arguments | | Arguments of the function | string[] | | | | |
151+
| | aptosCalls.type | | Type arguments of the function | string[] | | | | |
152+
| | aptosCalls.index | | Which item in the function output array to return | number | | | | |
153+
| | aptosCalls.networkType | | testnet or mainnet | string | `mainnet`, `testnet` | `mainnet` | | |
154+
| | constants | | Constant value to be included in the response | object[] | | | | |
155+
|| constants.name | | Name of the constant result | string | | | | |
156+
|| constants.value | | Value of the constant | string | | | | |
157+
| | operations | | Results derived from other results by applying basic operations | object[] | | | | |
158+
|| operations.name | | Name of the derived result | string | | | | |
159+
|| operations.type | | The operation or source of the derived result | string | `add`, `assertZero`, `average`, `divide`, `equal`, `multiply`, `select`, `subtract` | | | |
160+
|| operations.args | | Inputs to the expression. Can be names of functionCalls or constants or specific values depending on the type of operation | string[] | | | | |
154161

155162
### Example
156163

@@ -176,6 +183,7 @@ Request:
176183
"network": "ethereum"
177184
}
178185
],
186+
"aptosCalls": [],
179187
"constants": [
180188
{
181189
"name": "constant_example",
@@ -211,6 +219,7 @@ Request:
211219
"inputParams": []
212220
}
213221
],
222+
"aptosCalls": [],
214223
"constants": [],
215224
"operations": [
216225
{
@@ -223,6 +232,29 @@ Request:
223232
}
224233
```
225234

235+
Request:
236+
237+
```json
238+
{
239+
"data": {
240+
"endpoint": "calculated-multi-function",
241+
"functionCalls": [],
242+
"aptosCalls": [
243+
{
244+
"name": "result",
245+
"signature": "0x6f8ca77dd0a4c65362f475adb1c26ae921b1d75aa6b70e53d0e340efd7d8bc80::staker::share_price",
246+
"arguments": [],
247+
"type": [],
248+
"index": 1,
249+
"networkType": "mainnet"
250+
}
251+
],
252+
"constants": [],
253+
"operations": []
254+
}
255+
}
256+
```
257+
226258
</details>
227259

228260
---

packages/sources/view-function-multi-chain/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chainlink/view-function-multi-chain-adapter",
3-
"version": "1.7.0",
3+
"version": "1.8.0",
44
"description": "Chainlink view-function-multi-chain adapter.",
55
"keywords": [
66
"Chainlink",

0 commit comments

Comments
 (0)