Skip to content

Commit 1b63281

Browse files
authored
New Nexus Kiln EA (#3499)
* New Nexus Kiln EA * Use staticCall
1 parent a7a2ded commit 1b63281

28 files changed

+1487
-18
lines changed

.changeset/soft-pillows-attack.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chainlink/nexus-kiln-adapter': major
3+
---
4+
5+
New Nexus Kiln EA

.pnp.cjs

+61-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
Binary file not shown.

packages/composites/nexus-kiln/CHANGELOG.md

Whitespace-only changes.
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Chainlink External Adapter for nexus-kiln
2+
3+
This README will be generated automatically when code is merged to `main`. If you would like to generate a preview of the README, please run `yarn generate:readme nexus-kiln`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "@chainlink/nexus-kiln-adapter",
3+
"version": "0.0.0",
4+
"description": "Chainlink nexus-kiln adapter.",
5+
"keywords": [
6+
"Chainlink",
7+
"LINK",
8+
"blockchain",
9+
"oracle",
10+
"nexus-kiln"
11+
],
12+
"main": "dist/index.js",
13+
"types": "dist/index.d.ts",
14+
"files": [
15+
"dist"
16+
],
17+
"repository": {
18+
"url": "https://github.com/smartcontractkit/external-adapters-js",
19+
"type": "git"
20+
},
21+
"license": "MIT",
22+
"scripts": {
23+
"clean": "rm -rf dist && rm -f tsconfig.tsbuildinfo",
24+
"prepack": "yarn build",
25+
"build": "tsc -b",
26+
"server": "node -e 'require(\"./index.js\").server()'",
27+
"server:dist": "node -e 'require(\"./dist/index.js\").server()'",
28+
"start": "yarn server:dist"
29+
},
30+
"devDependencies": {
31+
"@types/jest": "27.5.2",
32+
"@types/node": "16.18.115",
33+
"ethers": "6.13.4",
34+
"nock": "13.5.4",
35+
"typescript": "5.5.4"
36+
},
37+
"dependencies": {
38+
"@chainlink/external-adapter-framework": "1.5.0",
39+
"tslib": "2.4.1"
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
[
2+
{
3+
"inputs": [
4+
{ "internalType": "address", "name": "_dispatcher", "type": "address" },
5+
{ "internalType": "address[]", "name": "_fundDeployers", "type": "address[]" },
6+
{ "internalType": "address[]", "name": "_fundValueCalculators", "type": "address[]" }
7+
],
8+
"stateMutability": "nonpayable",
9+
"type": "constructor"
10+
},
11+
{
12+
"anonymous": false,
13+
"inputs": [
14+
{ "indexed": true, "internalType": "address", "name": "fundDeployer", "type": "address" },
15+
{
16+
"indexed": false,
17+
"internalType": "address",
18+
"name": "fundValueCalculator",
19+
"type": "address"
20+
}
21+
],
22+
"name": "FundValueCalculatorUpdated",
23+
"type": "event"
24+
},
25+
{
26+
"inputs": [{ "internalType": "address", "name": "_vaultProxy", "type": "address" }],
27+
"name": "calcGav",
28+
"outputs": [
29+
{ "internalType": "address", "name": "denominationAsset_", "type": "address" },
30+
{ "internalType": "uint256", "name": "gav_", "type": "uint256" }
31+
],
32+
"stateMutability": "nonpayable",
33+
"type": "function"
34+
},
35+
{
36+
"inputs": [
37+
{ "internalType": "address", "name": "_vaultProxy", "type": "address" },
38+
{ "internalType": "address", "name": "_quoteAsset", "type": "address" }
39+
],
40+
"name": "calcGavInAsset",
41+
"outputs": [{ "internalType": "uint256", "name": "gav_", "type": "uint256" }],
42+
"stateMutability": "nonpayable",
43+
"type": "function"
44+
},
45+
{
46+
"inputs": [{ "internalType": "address", "name": "_vaultProxy", "type": "address" }],
47+
"name": "calcGrossShareValue",
48+
"outputs": [
49+
{ "internalType": "address", "name": "denominationAsset_", "type": "address" },
50+
{ "internalType": "uint256", "name": "grossShareValue_", "type": "uint256" }
51+
],
52+
"stateMutability": "nonpayable",
53+
"type": "function"
54+
},
55+
{
56+
"inputs": [
57+
{ "internalType": "address", "name": "_vaultProxy", "type": "address" },
58+
{ "internalType": "address", "name": "_quoteAsset", "type": "address" }
59+
],
60+
"name": "calcGrossShareValueInAsset",
61+
"outputs": [{ "internalType": "uint256", "name": "grossShareValue_", "type": "uint256" }],
62+
"stateMutability": "nonpayable",
63+
"type": "function"
64+
},
65+
{
66+
"inputs": [{ "internalType": "address", "name": "_vaultProxy", "type": "address" }],
67+
"name": "calcNav",
68+
"outputs": [
69+
{ "internalType": "address", "name": "denominationAsset_", "type": "address" },
70+
{ "internalType": "uint256", "name": "nav_", "type": "uint256" }
71+
],
72+
"stateMutability": "nonpayable",
73+
"type": "function"
74+
},
75+
{
76+
"inputs": [
77+
{ "internalType": "address", "name": "_vaultProxy", "type": "address" },
78+
{ "internalType": "address", "name": "_quoteAsset", "type": "address" }
79+
],
80+
"name": "calcNavInAsset",
81+
"outputs": [{ "internalType": "uint256", "name": "nav_", "type": "uint256" }],
82+
"stateMutability": "nonpayable",
83+
"type": "function"
84+
},
85+
{
86+
"inputs": [{ "internalType": "address", "name": "_vaultProxy", "type": "address" }],
87+
"name": "calcNetShareValue",
88+
"outputs": [
89+
{ "internalType": "address", "name": "denominationAsset_", "type": "address" },
90+
{ "internalType": "uint256", "name": "netShareValue_", "type": "uint256" }
91+
],
92+
"stateMutability": "nonpayable",
93+
"type": "function"
94+
},
95+
{
96+
"inputs": [
97+
{ "internalType": "address", "name": "_vaultProxy", "type": "address" },
98+
{ "internalType": "address", "name": "_quoteAsset", "type": "address" }
99+
],
100+
"name": "calcNetShareValueInAsset",
101+
"outputs": [{ "internalType": "uint256", "name": "netShareValue_", "type": "uint256" }],
102+
"stateMutability": "nonpayable",
103+
"type": "function"
104+
},
105+
{
106+
"inputs": [
107+
{ "internalType": "address", "name": "_vaultProxy", "type": "address" },
108+
{ "internalType": "address", "name": "_sharesHolder", "type": "address" }
109+
],
110+
"name": "calcNetValueForSharesHolder",
111+
"outputs": [
112+
{ "internalType": "address", "name": "denominationAsset_", "type": "address" },
113+
{ "internalType": "uint256", "name": "netValue_", "type": "uint256" }
114+
],
115+
"stateMutability": "nonpayable",
116+
"type": "function"
117+
},
118+
{
119+
"inputs": [
120+
{ "internalType": "address", "name": "_vaultProxy", "type": "address" },
121+
{ "internalType": "address", "name": "_sharesHolder", "type": "address" },
122+
{ "internalType": "address", "name": "_quoteAsset", "type": "address" }
123+
],
124+
"name": "calcNetValueForSharesHolderInAsset",
125+
"outputs": [{ "internalType": "uint256", "name": "netValue_", "type": "uint256" }],
126+
"stateMutability": "nonpayable",
127+
"type": "function"
128+
},
129+
{
130+
"inputs": [],
131+
"name": "getDispatcher",
132+
"outputs": [{ "internalType": "address", "name": "dispatcher_", "type": "address" }],
133+
"stateMutability": "view",
134+
"type": "function"
135+
},
136+
{
137+
"inputs": [{ "internalType": "address", "name": "_fundDeployer", "type": "address" }],
138+
"name": "getFundValueCalculatorForFundDeployer",
139+
"outputs": [{ "internalType": "address", "name": "fundValueCalculator_", "type": "address" }],
140+
"stateMutability": "view",
141+
"type": "function"
142+
},
143+
{
144+
"inputs": [{ "internalType": "address", "name": "_vaultProxy", "type": "address" }],
145+
"name": "getFundValueCalculatorForVault",
146+
"outputs": [
147+
{
148+
"internalType": "contract IFundValueCalculator",
149+
"name": "fundValueCalculatorContract_",
150+
"type": "address"
151+
}
152+
],
153+
"stateMutability": "view",
154+
"type": "function"
155+
},
156+
{
157+
"inputs": [
158+
{ "internalType": "address[]", "name": "_fundDeployers", "type": "address[]" },
159+
{ "internalType": "address[]", "name": "_fundValueCalculators", "type": "address[]" }
160+
],
161+
"name": "setFundValueCalculators",
162+
"outputs": [],
163+
"stateMutability": "nonpayable",
164+
"type": "function"
165+
}
166+
]

0 commit comments

Comments
 (0)