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

Upgrade Helpers (development -> master) #222

Merged
merged 16 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
169 changes: 32 additions & 137 deletions src/abis/Distributor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ export default [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'address',
name: 'dest',
type: 'address',
},
{ indexed: true, internalType: 'address', name: 'dest', type: 'address' },
{
indexed: false,
internalType: 'uint16',
Expand All @@ -59,12 +54,7 @@ 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 @@ -85,7 +75,7 @@ export default [
type: 'address',
},
{
indexed: true,
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
Expand All @@ -110,103 +100,58 @@ 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 @@ -221,48 +166,24 @@ 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 @@ -280,16 +201,8 @@ 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 @@ -301,11 +214,7 @@ export default [
},
{
inputs: [
{
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
{ internalType: 'address', name: 'newImplementation', type: 'address' },
],
name: 'upgradeTo',
outputs: [],
Expand All @@ -314,16 +223,8 @@ 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 @@ -333,13 +234,7 @@ export default [
{
inputs: [],
name: 'version',
outputs: [
{
internalType: 'string',
name: '',
type: 'string',
},
],
outputs: [{ internalType: 'string', name: '', type: 'string' }],
stateMutability: 'pure',
type: 'function',
},
Expand Down
Loading
Loading