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

feat: V2 sidechain gauges and boosting #1

Open
wants to merge 23 commits into
base: v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
48fe9f8
feat: side chain and multireward
UrAvgDeveloper Aug 17, 2022
8c21411
feat: add sidechain gauge support
UrAvgDeveloper Aug 22, 2022
3288a6c
feat: minor refactoring
UrAvgDeveloper Aug 22, 2022
567898a
feat: sidechain root gauge refactoring
UrAvgDeveloper Aug 22, 2022
22803a9
feat: add logic for calculating src fees
UrAvgDeveloper Aug 23, 2022
db835e3
fix: sidechain gauge proxy issues
UrAvgDeveloper Aug 23, 2022
e38b256
fux: anycall client issues
UrAvgDeveloper Aug 23, 2022
6c0c82b
fix: update bridging logic
UrAvgDeveloper Sep 7, 2022
5c9d111
fix: fix object data update issue
UrAvgDeveloper Sep 7, 2022
7c063e0
wip: test bridging
UrAvgDeveloper Sep 7, 2022
49f0e94
feat: get all dill holders
UrAvgDeveloper Sep 14, 2022
7b9faf2
feat: contract to hold dill balances on side chain
UrAvgDeveloper Sep 14, 2022
2b82d19
feat: Dill eventlistner
UrAvgDeveloper Sep 14, 2022
7f0e959
fix: update provider
UrAvgDeveloper Sep 14, 2022
8dbaba4
fix: few fixes
UrAvgDeveloper Sep 19, 2022
f64c696
feat: delegate should vote for all its deligating addresses at once
UrAvgDeveloper Sep 26, 2022
80c8f56
feat: add balanceOfAt and totalSupplyAt
UrAvgDeveloper Sep 26, 2022
3d58a1e
fix: singular staking
UrAvgDeveloper Sep 28, 2022
059f5ae
fix: minor fix
UrAvgDeveloper Sep 28, 2022
2b98fd0
fix: update withdraw logic
UrAvgDeveloper Sep 28, 2022
60320f0
feat: singular staking
UrAvgDeveloper Sep 29, 2022
cd36dc0
fix: minor fix
UrAvgDeveloper Sep 29, 2022
f8a3ed7
feat: add addBalanceToStakeFor method
UrAvgDeveloper Sep 29, 2022
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
25,150 changes: 24,783 additions & 367 deletions package-lock.json

Large diffs are not rendered by default.

395 changes: 395 additions & 0 deletions scripts/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,395 @@
const abi = [
{
name: "CommitOwnership",
inputs: [{ type: "address", name: "admin", indexed: false }],
anonymous: false,
type: "event",
},
{
name: "ApplyOwnership",
inputs: [{ type: "address", name: "admin", indexed: false }],
anonymous: false,
type: "event",
},
{
name: "Deposit",
inputs: [
{ type: "address", name: "provider", indexed: true },
{ type: "uint256", name: "value", indexed: false },
{ type: "uint256", name: "locktime", indexed: true },
{ type: "int128", name: "type", indexed: false },
{ type: "uint256", name: "ts", indexed: false },
],
anonymous: false,
type: "event",
},
{
name: "Withdraw",
inputs: [
{ type: "address", name: "provider", indexed: true },
{ type: "uint256", name: "value", indexed: false },
{ type: "uint256", name: "ts", indexed: false },
],
anonymous: false,
type: "event",
},
{
name: "Supply",
inputs: [
{ type: "uint256", name: "prevSupply", indexed: false },
{ type: "uint256", name: "supply", indexed: false },
],
anonymous: false,
type: "event",
},
{
outputs: [],
inputs: [
{ type: "address", name: "token_addr" },
{ type: "string", name: "_name" },
{ type: "string", name: "_symbol" },
{ type: "string", name: "_version" },
],
stateMutability: "nonpayable",
type: "constructor",
},
{
name: "commit_transfer_ownership",
outputs: [],
inputs: [{ type: "address", name: "addr" }],
stateMutability: "nonpayable",
type: "function",
gas: 37597,
},
{
name: "apply_transfer_ownership",
outputs: [],
inputs: [],
stateMutability: "nonpayable",
type: "function",
gas: 38497,
},
{
name: "commit_smart_wallet_checker",
outputs: [],
inputs: [{ type: "address", name: "addr" }],
stateMutability: "nonpayable",
type: "function",
gas: 36307,
},
{
name: "apply_smart_wallet_checker",
outputs: [],
inputs: [],
stateMutability: "nonpayable",
type: "function",
gas: 37095,
},
{
name: "get_last_user_slope",
outputs: [{ type: "int128", name: "" }],
inputs: [{ type: "address", name: "addr" }],
stateMutability: "view",
type: "function",
gas: 2569,
},
{
name: "user_point_history__ts",
outputs: [{ type: "uint256", name: "" }],
inputs: [
{ type: "address", name: "_addr" },
{ type: "uint256", name: "_idx" },
],
stateMutability: "view",
type: "function",
gas: 1672,
},
{
name: "locked__end",
outputs: [{ type: "uint256", name: "" }],
inputs: [{ type: "address", name: "_addr" }],
stateMutability: "view",
type: "function",
gas: 1593,
},
{
name: "checkpoint",
outputs: [],
inputs: [],
stateMutability: "nonpayable",
type: "function",
gas: 37052342,
},
{
name: "deposit_for",
outputs: [],
inputs: [
{ type: "address", name: "_addr" },
{ type: "uint256", name: "_value" },
],
stateMutability: "nonpayable",
type: "function",
gas: 74279891,
},
{
name: "create_lock",
outputs: [],
inputs: [
{ type: "uint256", name: "_value" },
{ type: "uint256", name: "_unlock_time" },
],
stateMutability: "nonpayable",
type: "function",
gas: 74281465,
},
{
name: "increase_amount",
outputs: [],
inputs: [{ type: "uint256", name: "_value" }],
stateMutability: "nonpayable",
type: "function",
gas: 74280830,
},
{
name: "increase_unlock_time",
outputs: [],
inputs: [{ type: "uint256", name: "_unlock_time" }],
stateMutability: "nonpayable",
type: "function",
gas: 74281578,
},
{
name: "withdraw",
outputs: [],
inputs: [],
stateMutability: "nonpayable",
type: "function",
gas: 37223566,
},
{
name: "balanceOf",
outputs: [{ type: "uint256", name: "" }],
inputs: [{ type: "address", name: "addr" }],
stateMutability: "view",
type: "function",
},
{
name: "balanceOf",
outputs: [{ type: "uint256", name: "" }],
inputs: [
{ type: "address", name: "addr" },
{ type: "uint256", name: "_t" },
],
stateMutability: "view",
type: "function",
},
{
name: "balanceOfAt",
outputs: [{ type: "uint256", name: "" }],
inputs: [
{ type: "address", name: "addr" },
{ type: "uint256", name: "_block" },
],
stateMutability: "view",
type: "function",
gas: 514333,
},
{
name: "totalSupply",
outputs: [{ type: "uint256", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
},
{
name: "totalSupply",
outputs: [{ type: "uint256", name: "" }],
inputs: [{ type: "uint256", name: "t" }],
stateMutability: "view",
type: "function",
},
{
name: "totalSupplyAt",
outputs: [{ type: "uint256", name: "" }],
inputs: [{ type: "uint256", name: "_block" }],
stateMutability: "view",
type: "function",
gas: 812560,
},
{
name: "changeController",
outputs: [],
inputs: [{ type: "address", name: "_newController" }],
stateMutability: "nonpayable",
type: "function",
gas: 36907,
},
{
name: "token",
outputs: [{ type: "address", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
gas: 1841,
},
{
name: "supply",
outputs: [{ type: "uint256", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
gas: 1871,
},
{
name: "locked",
outputs: [
{ type: "int128", name: "amount" },
{ type: "uint256", name: "end" },
],
inputs: [{ type: "address", name: "arg0" }],
stateMutability: "view",
type: "function",
gas: 3359,
},
{
name: "epoch",
outputs: [{ type: "uint256", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
gas: 1931,
},
{
name: "point_history",
outputs: [
{ type: "int128", name: "bias" },
{ type: "int128", name: "slope" },
{ type: "uint256", name: "ts" },
{ type: "uint256", name: "blk" },
],
inputs: [{ type: "uint256", name: "arg0" }],
stateMutability: "view",
type: "function",
gas: 5550,
},
{
name: "user_point_history",
outputs: [
{ type: "int128", name: "bias" },
{ type: "int128", name: "slope" },
{ type: "uint256", name: "ts" },
{ type: "uint256", name: "blk" },
],
inputs: [
{ type: "address", name: "arg0" },
{ type: "uint256", name: "arg1" },
],
stateMutability: "view",
type: "function",
gas: 6079,
},
{
name: "user_point_epoch",
outputs: [{ type: "uint256", name: "" }],
inputs: [{ type: "address", name: "arg0" }],
stateMutability: "view",
type: "function",
gas: 2175,
},
{
name: "slope_changes",
outputs: [{ type: "int128", name: "" }],
inputs: [{ type: "uint256", name: "arg0" }],
stateMutability: "view",
type: "function",
gas: 2166,
},
{
name: "controller",
outputs: [{ type: "address", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
gas: 2081,
},
{
name: "transfersEnabled",
outputs: [{ type: "bool", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
gas: 2111,
},
{
name: "name",
outputs: [{ type: "string", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
gas: 8543,
},
{
name: "symbol",
outputs: [{ type: "string", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
gas: 7596,
},
{
name: "version",
outputs: [{ type: "string", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
gas: 7626,
},
{
name: "decimals",
outputs: [{ type: "uint256", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
gas: 2231,
},
{
name: "future_smart_wallet_checker",
outputs: [{ type: "address", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
gas: 2261,
},
{
name: "smart_wallet_checker",
outputs: [{ type: "address", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
gas: 2291,
},
{
name: "admin",
outputs: [{ type: "address", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
gas: 2321,
},
{
name: "future_admin",
outputs: [{ type: "address", name: "" }],
inputs: [],
stateMutability: "view",
type: "function",
gas: 2351,
},
];

const DillAddress = "0xbBCf169eE191A1Ba7371F30A1C344bFC498b29Cf";
const dillSidechainAddress = "";
module.exports = {
abi,
DillAddress,
dillSidechainAddress
};
Loading