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

Subgraph #375

Merged
merged 22 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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
24 changes: 12 additions & 12 deletions contracts/src/scripts/DeployLiquity2.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ contract DeployLiquity2Script is Script, StdCheats, MetadataDeployment {
demoTroves[6] = DemoTroveParams(0, demoAccounts[6], 0, 33.92e18, 5500e18, 3.8e16);
demoTroves[7] = DemoTroveParams(0, demoAccounts[7], 0, 47.2e18, 6000e18, 4.3e16);

demoTroves[8] = DemoTroveParams(1, demoAccounts[0], 0, 21e18, 2000e18, 3.3e16);
demoTroves[8] = DemoTroveParams(1, demoAccounts[0], 1, 21e18, 2000e18, 3.3e16);
demoTroves[9] = DemoTroveParams(1, demoAccounts[1], 1, 16e18, 2000e18, 4.1e16);
demoTroves[10] = DemoTroveParams(1, demoAccounts[2], 1, 18e18, 2300e18, 3.8e16);
demoTroves[11] = DemoTroveParams(1, demoAccounts[3], 1, 22e18, 2200e18, 4.3e16);
Expand Down Expand Up @@ -263,17 +263,17 @@ contract DeployLiquity2Script is Script, StdCheats, MetadataDeployment {
}

IBorrowerOperations(contracts.borrowerOperations).openTrove(
vm.addr(trove.owner), // _owner
trove.ownerIndex, // _ownerIndex
trove.coll, // _collAmount
trove.debt, // _boldAmount
0, // _upperHint
0, // _lowerHint
0.05e18, // _annualInterestRate
type(uint256).max, // _maxUpfrontFee
address(0), // _addManager
address(0), // _removeManager
address(0) // _receiver
vm.addr(trove.owner), // _owner
trove.ownerIndex, // _ownerIndex
trove.coll, // _collAmount
trove.debt, // _boldAmount
0, // _upperHint
0, // _lowerHint
trove.annualInterestRate, // _annualInterestRate
type(uint256).max, // _maxUpfrontFee
address(0), // _addManager
address(0), // _removeManager
address(0) // _receiver
);

vm.stopBroadcast();
Expand Down
5 changes: 3 additions & 2 deletions dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"json": {},
"markdown": {},
"toml": {},
"includes": ["**/*.{ts,tsx,js,jsx,mjs,json,md,html,css}"],
"includes": ["**/*.{ts,tsx,js,jsx,mjs,json,md,html,css,graphql}"],
"excludes": [
"**/node_modules",
"**/*-lock.json",
Expand All @@ -20,6 +20,7 @@
"https://plugins.dprint.dev/json-0.19.2.wasm",
"https://plugins.dprint.dev/markdown-0.16.4.wasm",
"https://plugins.dprint.dev/toml-0.6.1.wasm",
"https://plugins.dprint.dev/g-plane/malva-v0.1.5.wasm"
"https://plugins.dprint.dev/g-plane/malva-v0.1.5.wasm",
"https://plugins.dprint.dev/g-plane/pretty_graphql-v0.2.0.wasm"
]
}
Loading
Loading