Skip to content

Commit

Permalink
chore: automatic abi and types generation
Browse files Browse the repository at this point in the history
  • Loading branch information
evandrosaturnino committed May 9, 2024
1 parent 998d25e commit bd908cc
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 52 deletions.
11 changes: 11 additions & 0 deletions packages/lib-ethers/abi/PCV.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
[
{
"inputs": [
{
"internalType": "uint256",
"name": "_governanceTimeDelay",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
Expand Down
20 changes: 6 additions & 14 deletions packages/lib-ethers/abi/THUSDToken.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"internalType": "address",
"name": "_borrowerOperationsAddress2",
"type": "address"
},
{
"internalType": "uint256",
"name": "_governanceTimeDelay",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
Expand Down Expand Up @@ -411,19 +416,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getGovernanceTimeDelay",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "governanceTimeDelay",
Expand Down Expand Up @@ -465,7 +457,7 @@
"inputs": [
{
"internalType": "uint256",
"name": "_governanceTimeDelay",
"name": "_newGovernanceTimeDelay",
"type": "uint256"
}
],
Expand Down
36 changes: 18 additions & 18 deletions packages/lib-ethers/deployments/default/eth/v1/bob_testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
"chainId": 111,
"version": "v1",
"collateralSymbol": "eth",
"deploymentDate": 1715109105282,
"deploymentDate": 1715234247717,
"_useRealPriceFeed": false,
"_isDev": false,
"startBlock": 9087865,
"startBlock": 9150436,
"addresses": {
"activePool": "0x537763B4163DaFCA478c3b8C3b967D5a0231A722",
"borrowerOperations": "0x8806F2c6CC3Ba359036F966B2Df8BA28FDb51320",
"troveManager": "0x4d09f1B7018fd71803d01b23591eb44Ec1c26d3c",
"collSurplusPool": "0xe8f6EC81a4432d64EAd66a1e0c2C184b6A99f567",
"defaultPool": "0x9685c87d3b6CB779CC4843249Fa4563E9FD39389",
"hintHelpers": "0x05B78C0648594953788F46AbA18779E1EB682Ec9",
"pcv": "0x4244FA2297dC55F39b10af095232F8361dF6990A",
"sortedTroves": "0xbC3196d42a2e8B5A4f0F4503C67f0D82AC1DFdaA",
"stabilityPool": "0x65fD26D1d998abb62Ff45A9ce899213eeEF32024",
"bLens": "0x001fB55ac1C0e33ec3f589610CF1E60552881b30",
"gasPool": "0x28Fc52EcC65ab4574F1086c83dd977850971bE02",
"activePool": "0x2F8ABb97C115c2B1B6BbBe2c310FfEa664943B5f",
"borrowerOperations": "0x3432c7113F9CdB993a60901379ebb077048B6bEA",
"troveManager": "0xd4EbA67d0c9049750fbA52fAb502968Cdcb56d5E",
"collSurplusPool": "0x1e47BEc93c137F8E7a06ec4FAc40295c4d51A59C",
"defaultPool": "0x1F58E40DbbD086Da811652EA3D7B0B4b5578e1A7",
"hintHelpers": "0x5A1ea6C8Be19357A9cE69f27a78F02E19105ad80",
"pcv": "0xBB522C8D5b6742D7AC076894f40F2a99C3A31d89",
"sortedTroves": "0x0817c5c687F67d245E0ed22e879f82F32E9DF8b1",
"stabilityPool": "0x07056730ea78356713c23612Cf66467c5B10b0c9",
"bLens": "0x3d2A240A554c5533F7B3B2e25969d0847D44FAC4",
"gasPool": "0x4AE3C8992Ef19Fd501d2e4e6C3Ff304Db8FE6126",
"erc20": "0x0000000000000000000000000000000000000000",
"priceFeed": "0x93F598246C81B94be88C767B457e4E8859E740d7",
"chainlink": "0x2AE267E85F33853ce585A4Ee0DDD46122ec9224b",
"multiTroveGetter": "0x08399485f671bb32Ea61d4172C029d2E1Ec143db",
"thusdToken": "0xBA6cA2f917c707C6348f08a2Ddf0Da2Ff01363D0",
"bamm": "0xe80165C7AB883Cb676e8bcec37c45D9d46bDe166"
"priceFeed": "0xdf3b16B89fEe7c602baD9d08B0038d201D95ce69",
"chainlink": "0xc806511Ca4Aab87f639999EfbC6a1296FBD0dF99",
"multiTroveGetter": "0x2c397601B8c252FFAa06752D3e3F6FFEbf515804",
"thusdToken": "0x147011744C59878E5eB73432E7C36f1b65281DfC",
"bamm": "0x61fFb3624bAB4687df6f4aaF7dbDa8F37BD34ed6"
}
}
36 changes: 18 additions & 18 deletions packages/lib-ethers/deployments/default/tbtc/v1/bob_testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
"chainId": 111,
"version": "v1",
"collateralSymbol": "tbtc",
"deploymentDate": 1715109195319,
"deploymentDate": 1715234340182,
"_useRealPriceFeed": false,
"_isDev": false,
"startBlock": 9087910,
"startBlock": 9150482,
"addresses": {
"activePool": "0xf3f5202Df1e548567329b66fbff8ec30b5d2349e",
"borrowerOperations": "0x98E124A6e738A47725932ccbad091BaBc2A588e0",
"troveManager": "0xf727242e610482a40182e589b6eb5c743A1145c2",
"collSurplusPool": "0xfB1a93f29E34aA1F4740925CB243C04805542154",
"defaultPool": "0x8b90A6bBDC54647e3688c47314240a4818eA1c10",
"hintHelpers": "0xccdd0c89bd483e2493eDd560e145B3DA2E1c7541",
"pcv": "0xeb85A4A38701c0a251AdAe42b4b9b8F9f2A00b9c",
"sortedTroves": "0xe33f2186E058dF4F659c637B4B6e1f5Ae9F179AC",
"stabilityPool": "0x4a1784bA973b09A8005564Ff638F0b20Be83EAA1",
"bLens": "0x579614F72cf8AeD3018189BF98451CE1cd0caA41",
"gasPool": "0x2fFE2A38e280E32f28eAFB845B004D0d405f6859",
"activePool": "0x0bE3489550CE1aADE8cfE3d86771Fc422C7126E0",
"borrowerOperations": "0xDA51DDaf6d46089d9c36DBAaa41de5FA47225575",
"troveManager": "0x9c6146F670159a56d89c35c778E7132ddD539899",
"collSurplusPool": "0xd48De41b1F7E4761C417bF0b7da746097c2e3443",
"defaultPool": "0xc66876Cb888a52087f196e3F36DeD8C5773F294C",
"hintHelpers": "0x9a6F93b61Eb3B19962c9c00489c14fD30c15A7A5",
"pcv": "0xf1fB1b52D6960b1d37691f315b56731D0aaa6eF0",
"sortedTroves": "0xEf02D2ED45D144eF6216fB7412A464Ae00aF7C60",
"stabilityPool": "0xd8FD878D6C5e629dce4197d724b9289F4deDc832",
"bLens": "0xf8DFcA26457f01A31e1Ce82a806EfF78938Ac1Be",
"gasPool": "0xf332D022D12aEC4edb22B7Afa660C5EFf64E5FF8",
"erc20": "0xf87766ab34f863503d36394b624a436f436daf87",
"priceFeed": "0x18cCc17C2f41114fA1E3c32BEaCfD7F0e9abC2bF",
"chainlink": "0xAbC44e42faAC13aA19dfF988958aAf1119f59E32",
"multiTroveGetter": "0x9651bBa7F9Ef4b475654494F2177E2f16B4e1A0D",
"thusdToken": "0xBA6cA2f917c707C6348f08a2Ddf0Da2Ff01363D0",
"bamm": "0x84d035502ee3759Ad97C09A117EaA387a05c599f"
"priceFeed": "0x24e2490a6A1D3B9aDA3A23E55964CFF165da3c89",
"chainlink": "0xf7b8F31BEa60F095f42C77ebE199c1F8a98C6BCE",
"multiTroveGetter": "0xf557A684A9336C87baad06597A0DbfbABA03e5Ec",
"thusdToken": "0x147011744C59878E5eB73432E7C36f1b65281DfC",
"bamm": "0x8b7186CD5c95F994BD5c4031A182DeDB00d43664"
}
}
3 changes: 1 addition & 2 deletions packages/lib-ethers/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ interface THUSDTokenCalls {
burnList(arg0: string, _overrides?: CallOverrides): Promise<boolean>;
decimals(_overrides?: CallOverrides): Promise<number>;
domainSeparator(_overrides?: CallOverrides): Promise<string>;
getGovernanceTimeDelay(_overrides?: CallOverrides): Promise<BigNumber>;
governanceTimeDelay(_overrides?: CallOverrides): Promise<BigNumber>;
isOwner(_overrides?: CallOverrides): Promise<boolean>;
mintList(arg0: string, _overrides?: CallOverrides): Promise<boolean>;
Expand Down Expand Up @@ -392,7 +391,7 @@ interface THUSDTokenTransactions {
finalizeRevokeBurnList(_overrides?: Overrides): Promise<void>;
finalizeRevokeMintList(_overrides?: Overrides): Promise<void>;
increaseAllowance(spender: string, addedValue: BigNumberish, _overrides?: Overrides): Promise<boolean>;
increaseGovernanceTimeDelay(_governanceTimeDelay: BigNumberish, _overrides?: Overrides): Promise<void>;
increaseGovernanceTimeDelay(_newGovernanceTimeDelay: BigNumberish, _overrides?: Overrides): Promise<void>;
mint(_account: string, _amount: BigNumberish, _overrides?: Overrides): Promise<void>;
permit(owner: string, spender: string, amount: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike, _overrides?: Overrides): Promise<void>;
startAddContracts(_troveManagerAddress: string, _stabilityPoolAddress: string, _borrowerOperationsAddress: string, _overrides?: Overrides): Promise<void>;
Expand Down

0 comments on commit bd908cc

Please sign in to comment.