Skip to content

Commit

Permalink
feat: generate new abis
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Jan 18, 2024
1 parent 7edbac4 commit b965549
Show file tree
Hide file tree
Showing 24 changed files with 3,834 additions and 3,676 deletions.
5 changes: 5 additions & 0 deletions scripts/configs/abis.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {SAFETY_MODULE} from '../generator/safetyModuleGenerator';
import {governanceConfigMainnet} from './governance/ethereum';
import {mainnetProtoV2Pool, mainnetProtoV3Pool} from './pools/ethereum';

Expand Down Expand Up @@ -45,4 +46,8 @@ export const DOWNLOAD_ABI_INTERFACES = [
address: mainnetProtoV3Pool.additionalAddresses.UI_POOL_DATA_PROVIDER,
name: 'IUiPoolDataProvider',
},
{
address: SAFETY_MODULE.STK_GHO,
name: 'IAggregatedStakeToken',
},
];
2 changes: 1 addition & 1 deletion scripts/generateABIs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ export async function generateABIs(removeExisting: boolean) {
}
}

generateABIs();
generateABIs(false);
2 changes: 1 addition & 1 deletion scripts/generator/safetyModuleGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from './utils';
import {ChainId} from '@bgd-labs/js-utils';

const SAFETY_MODULE = {
export const SAFETY_MODULE = {
STK_AAVE: '0x4da27a545c0c5B758a6BA100e3a049001de870f5',
STK_ABPT: '0xa1116930326D21fB917d5A27F1E9943A9595fb47',
STK_ABPT_ORACLE: '0x209Ad99bd808221293d03827B86cC544bcA0023b',
Expand Down
130 changes: 65 additions & 65 deletions src/ts/abis/AggregatorInterface.ts
Original file line number Diff line number Diff line change
@@ -1,130 +1,130 @@
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR
export const AggregatorInterface_ABI = [
{
type: 'function',
name: 'getAnswer',
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'int256',
name: 'current',
type: 'int256',
},
{
indexed: true,
internalType: 'uint256',
name: 'roundId',
type: 'uint256',
internalType: 'uint256',
},
],
outputs: [
{
name: '',
type: 'int256',
internalType: 'int256',
indexed: false,
internalType: 'uint256',
name: 'updatedAt',
type: 'uint256',
},
],
stateMutability: 'view',
name: 'AnswerUpdated',
type: 'event',
},
{
type: 'function',
name: 'getTimestamp',
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'roundId',
type: 'uint256',
internalType: 'uint256',
},
],
outputs: [
{
name: '',
type: 'uint256',
indexed: true,
internalType: 'address',
name: 'startedBy',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'startedAt',
type: 'uint256',
},
],
stateMutability: 'view',
name: 'NewRound',
type: 'event',
},
{
type: 'function',
name: 'latestAnswer',
inputs: [],
inputs: [
{
internalType: 'uint256',
name: 'roundId',
type: 'uint256',
},
],
name: 'getAnswer',
outputs: [
{
internalType: 'int256',
name: '',
type: 'int256',
internalType: 'int256',
},
],
stateMutability: 'view',
type: 'function',
},
{
type: 'function',
name: 'latestRound',
inputs: [],
inputs: [
{
internalType: 'uint256',
name: 'roundId',
type: 'uint256',
},
],
name: 'getTimestamp',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
internalType: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
type: 'function',
name: 'latestTimestamp',
inputs: [],
name: 'latestAnswer',
outputs: [
{
internalType: 'int256',
name: '',
type: 'uint256',
internalType: 'uint256',
type: 'int256',
},
],
stateMutability: 'view',
type: 'function',
},
{
type: 'event',
name: 'AnswerUpdated',
inputs: [
{
name: 'current',
type: 'int256',
indexed: true,
internalType: 'int256',
},
inputs: [],
name: 'latestRound',
outputs: [
{
name: 'roundId',
type: 'uint256',
indexed: true,
internalType: 'uint256',
},
{
name: 'updatedAt',
name: '',
type: 'uint256',
indexed: false,
internalType: 'uint256',
},
],
anonymous: false,
stateMutability: 'view',
type: 'function',
},
{
type: 'event',
name: 'NewRound',
inputs: [
inputs: [],
name: 'latestTimestamp',
outputs: [
{
name: 'roundId',
type: 'uint256',
indexed: true,
internalType: 'uint256',
},
{
name: 'startedBy',
type: 'address',
indexed: true,
internalType: 'address',
},
{
name: 'startedAt',
name: '',
type: 'uint256',
indexed: false,
internalType: 'uint256',
},
],
anonymous: false,
stateMutability: 'view',
type: 'function',
},
] as const;
Loading

0 comments on commit b965549

Please sign in to comment.