Skip to content

Commit

Permalink
Revert "Feature/base hyusd zaps" (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatmittal authored Oct 13, 2023
1 parent ef6bbe2 commit 224c293
Show file tree
Hide file tree
Showing 12 changed files with 345 additions and 760 deletions.
Binary file removed bun.lockb
Binary file not shown.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@popperjs/core": "^2.11.5",
"@rainbow-me/rainbowkit": "1.0.11",
"@react-spring/web": "^9.7.1",
"@reserve-protocol/token-zapper": "2.5.6",
"@reserve-protocol/token-zapper": "2.5.5",
"@uiw/react-md-editor": "^3.20.5",
"@uniswap/permit2-sdk": "^1.2.0",
"@viem/anvil": "^0.0.6",
Expand Down
169 changes: 137 additions & 32 deletions src/abis/Distributor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ export default [
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'address', name: 'dest', type: 'address' },
{
indexed: false,
internalType: 'address',
name: 'dest',
type: 'address',
},
{
indexed: false,
internalType: 'uint16',
Expand All @@ -54,7 +59,12 @@ export default [
{
anonymous: false,
inputs: [
{ indexed: false, internalType: 'uint8', name: 'version', type: 'uint8' },
{
indexed: false,
internalType: 'uint8',
name: 'version',
type: 'uint8',
},
],
name: 'Initialized',
type: 'event',
Expand All @@ -75,7 +85,7 @@ export default [
type: 'address',
},
{
indexed: false,
indexed: true,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
Expand All @@ -100,58 +110,103 @@ export default [
{
inputs: [],
name: 'FURNACE',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'MAX_DESTINATIONS_ALLOWED',
outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
outputs: [
{
internalType: 'uint8',
name: '',
type: 'uint8',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'ST_RSR',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'cacheComponents',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'contract IERC20', name: 'erc20', type: 'address' },
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
{
internalType: 'contract IERC20',
name: 'erc20',
type: 'address',
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'distribute',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '', type: 'address' }],
inputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
name: 'distribution',
outputs: [
{ internalType: 'uint16', name: 'rTokenDist', type: 'uint16' },
{ internalType: 'uint16', name: 'rsrDist', type: 'uint16' },
{
internalType: 'uint16',
name: 'rTokenDist',
type: 'uint16',
},
{
internalType: 'uint16',
name: 'rsrDist',
type: 'uint16',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'contract IMain', name: 'main_', type: 'address' },
{
internalType: 'contract IMain',
name: 'main_',
type: 'address',
},
{
components: [
{ internalType: 'uint16', name: 'rTokenDist', type: 'uint16' },
{ internalType: 'uint16', name: 'rsrDist', type: 'uint16' },
{
internalType: 'uint16',
name: 'rTokenDist',
type: 'uint16',
},
{
internalType: 'uint16',
name: 'rsrDist',
type: 'uint16',
},
],
internalType: 'struct RevenueShare',
name: 'dist',
Expand All @@ -166,24 +221,48 @@ export default [
{
inputs: [],
name: 'main',
outputs: [{ internalType: 'contract IMain', name: '', type: 'address' }],
outputs: [
{
internalType: 'contract IMain',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'proxiableUUID',
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: 'dest', type: 'address' },
{
internalType: 'address',
name: 'dest',
type: 'address',
},
{
components: [
{ internalType: 'uint16', name: 'rTokenDist', type: 'uint16' },
{ internalType: 'uint16', name: 'rsrDist', type: 'uint16' },
{
internalType: 'uint16',
name: 'rTokenDist',
type: 'uint16',
},
{
internalType: 'uint16',
name: 'rsrDist',
type: 'uint16',
},
],
internalType: 'struct RevenueShare',
name: 'share',
Expand All @@ -201,8 +280,16 @@ export default [
outputs: [
{
components: [
{ internalType: 'uint24', name: 'rTokenTotal', type: 'uint24' },
{ internalType: 'uint24', name: 'rsrTotal', type: 'uint24' },
{
internalType: 'uint24',
name: 'rTokenTotal',
type: 'uint24',
},
{
internalType: 'uint24',
name: 'rsrTotal',
type: 'uint24',
},
],
internalType: 'struct RevenueTotals',
name: 'revTotals',
Expand All @@ -214,7 +301,11 @@ export default [
},
{
inputs: [
{ internalType: 'address', name: 'newImplementation', type: 'address' },
{
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
],
name: 'upgradeTo',
outputs: [],
Expand All @@ -223,8 +314,16 @@ export default [
},
{
inputs: [
{ internalType: 'address', name: 'newImplementation', type: 'address' },
{ internalType: 'bytes', name: 'data', type: 'bytes' },
{
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
{
internalType: 'bytes',
name: 'data',
type: 'bytes',
},
],
name: 'upgradeToAndCall',
outputs: [],
Expand All @@ -234,7 +333,13 @@ export default [
{
inputs: [],
name: 'version',
outputs: [{ internalType: 'string', name: '', type: 'string' }],
outputs: [
{
internalType: 'string',
name: '',
type: 'string',
},
],
stateMutability: 'pure',
type: 'function',
},
Expand Down
Loading

0 comments on commit 224c293

Please sign in to comment.