Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AA Support #554

Merged
merged 30 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f08e945
refactor: migrate to new SDK, to bigint, to viem, to react-query
solidovic Dec 2, 2024
96b49ab
Merge branch 'develop' into feature/si-1693-migrate-wrapunwrap-page-t…
solidovic Dec 2, 2024
639b933
fix: fix after resolved conflicts
solidovic Dec 2, 2024
8be3639
feat: aa
Jeday Nov 29, 2024
cbac748
refactor: naming
solidovic Dec 3, 2024
7462373
feat: withdrawal and claim aa
Jeday Dec 3, 2024
b24a0a7
fix: clean up
Jeday Dec 3, 2024
2eeb447
feat: aux funds support
Jeday Dec 3, 2024
7ab7e5e
Merge branch 'develop' into feature/si-1693-migrate-wrapunwrap-page-t…
solidovic Dec 4, 2024
6e44c12
refactor: small updates
solidovic Dec 4, 2024
3edc6a9
fix: remove lock ui for aa
Jeday Dec 4, 2024
de919da
Merge branch 'feature/si-1693-migrate-wrapunwrap-page-to-new-sdk' of …
Jeday Dec 4, 2024
3551467
fix: promise all
Jeday Dec 4, 2024
c19654b
refactor: aa flow
Jeday Dec 4, 2024
2369f42
fix: eth balance validation
Jeday Dec 5, 2024
3cf4b36
fix: isl2
Jeday Dec 5, 2024
3f09043
feat: request permit deadline
Jeday Dec 6, 2024
9b0c5cf
Merge branch 'develop' of github.com:lidofinance/ethereum-staking-wid…
Jeday Dec 9, 2024
cf3310f
fix: remove redun check
Jeday Dec 9, 2024
7550e8e
chore: import order
Jeday Dec 9, 2024
297296e
fix: build
Jeday Dec 10, 2024
c857e89
Merge branch 'develop' of github.com:lidofinance/ethereum-staking-wid…
Jeday Dec 10, 2024
c14f14b
Merge branch 'develop' into feature/si-1714-aa-on-the-widget
Jeday Dec 11, 2024
d0c1667
chore: refactor & up sdk
Jeday Dec 12, 2024
0463176
fix: build
Jeday Dec 12, 2024
75f1a0f
fix: aa flow only for atomicBatch
Jeday Dec 12, 2024
4ad4035
fix: parse AA errors
Jeday Dec 12, 2024
1d265a4
fix: error message
Jeday Dec 13, 2024
cff67de
Merge branch 'develop' of github.com:lidofinance/ethereum-staking-wid…
Jeday Dec 13, 2024
d7392f5
chore: bump rk
Jeday Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"presets": [
[
"next/babel",
{
"preset-env": {
"exclude": ["transform-exponentiation-operator"]
}
}
]
],
"plugins": [
"babel-plugin-styled-components"
]
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY package.json yarn.lock ./

RUN yarn install --frozen-lockfile --non-interactive --ignore-scripts && yarn cache clean
COPY . .
RUN NODE_NO_BUILD_DYNAMICS=true yarn typechain && yarn build
RUN NODE_NO_BUILD_DYNAMICS=true yarn build
# public/runtime is used to inject runtime vars; it should exist and user node should have write access there for it
RUN rm -rf /app/public/runtime && mkdir /app/public/runtime && chown node /app/public/runtime

Expand Down
201 changes: 201 additions & 0 deletions abi/aggregator-abi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
export const AggregatorAbi = [
{
inputs: [
{ internalType: 'address', name: '_aggregator', type: 'address' },
{ internalType: 'address', name: '_accessController', type: 'address' },
],
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'int256',
name: 'current',
type: 'int256',
},
{
indexed: true,
internalType: 'uint256',
name: 'roundId',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'updatedAt',
type: 'uint256',
},
],
name: 'AnswerUpdated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'roundId',
type: 'uint256',
},
{
indexed: true,
internalType: 'address',
name: 'startedBy',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'startedAt',
type: 'uint256',
},
],
name: 'NewRound',
type: 'event',
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'address', name: 'from', type: 'address' },
{ indexed: true, internalType: 'address', name: 'to', type: 'address' },
],
name: 'OwnershipTransferRequested',
type: 'event',
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'address', name: 'from', type: 'address' },
{ indexed: true, internalType: 'address', name: 'to', type: 'address' },
],
name: 'OwnershipTransferred',
type: 'event',
},
{
inputs: [],
name: 'acceptOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'accessController',
outputs: [
{
internalType: 'contract AccessControllerInterface',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'aggregator',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '_aggregator', type: 'address' }],
name: 'confirmAggregator',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'decimals',
outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'description',
outputs: [{ internalType: 'string', name: '', type: 'string' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '_roundId', type: 'uint256' }],
name: 'getAnswer',
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint80', name: '_roundId', type: 'uint80' }],
name: 'getRoundData',
outputs: [
{ internalType: 'uint80', name: 'roundId', type: 'uint80' },
{ internalType: 'int256', name: 'answer', type: 'int256' },
{ internalType: 'uint256', name: 'startedAt', type: 'uint256' },
{ internalType: 'uint256', name: 'updatedAt', type: 'uint256' },
{ internalType: 'uint80', name: 'answeredInRound', type: 'uint80' },
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '_roundId', type: 'uint256' }],
name: 'getTimestamp',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'latestAnswer',
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'latestRound',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'latestRoundData',
outputs: [
{ internalType: 'uint80', name: 'roundId', type: 'uint80' },
{ internalType: 'int256', name: 'answer', type: 'int256' },
{ internalType: 'uint256', name: 'startedAt', type: 'uint256' },
{ internalType: 'uint256', name: 'updatedAt', type: 'uint256' },
{ internalType: 'uint80', name: 'answeredInRound', type: 'uint80' },
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'owner',
outputs: [{ internalType: 'address payable', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '_to', type: 'address' }],
name: 'transferOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'version',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
] as const;
Loading
Loading