mirror of
https://github.com/hanzodao/api.git
synced 2026-10-30 20:01:09 +00:00
* feat(proposals): get proposals from azorius from factory events * fix(azorius): add more things to ensure its azorius * fix(metadata): parse JSON doesnt need a fallback, use standard
812 lines
15 KiB
TypeScript
812 lines
15 KiB
TypeScript
export const AzoriusAbi = [
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'previousAvatar',
|
|
type: 'address',
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'newAvatar',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'AvatarSet',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'creator',
|
|
type: 'address',
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'owner',
|
|
type: 'address',
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'avatar',
|
|
type: 'address',
|
|
},
|
|
{
|
|
indexed: false,
|
|
internalType: 'address',
|
|
name: 'target',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'AzoriusSetUp',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'address',
|
|
name: 'guard',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'ChangedGuard',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'address',
|
|
name: 'strategy',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'DisabledStrategy',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'address',
|
|
name: 'strategy',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'EnabledStrategy',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'uint32',
|
|
name: 'executionPeriod',
|
|
type: 'uint32',
|
|
},
|
|
],
|
|
name: 'ExecutionPeriodUpdated',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'uint8',
|
|
name: 'version',
|
|
type: 'uint8',
|
|
},
|
|
],
|
|
name: 'Initialized',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'previousOwner',
|
|
type: 'address',
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'newOwner',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'OwnershipTransferred',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'address',
|
|
name: 'strategy',
|
|
type: 'address',
|
|
},
|
|
{
|
|
indexed: false,
|
|
internalType: 'uint256',
|
|
name: 'proposalId',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
indexed: false,
|
|
internalType: 'address',
|
|
name: 'proposer',
|
|
type: 'address',
|
|
},
|
|
{
|
|
components: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'to',
|
|
type: 'address',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: 'value',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
internalType: 'bytes',
|
|
name: 'data',
|
|
type: 'bytes',
|
|
},
|
|
{
|
|
internalType: 'enum Enum.Operation',
|
|
name: 'operation',
|
|
type: 'uint8',
|
|
},
|
|
],
|
|
indexed: false,
|
|
internalType: 'struct IAzorius.Transaction[]',
|
|
name: 'transactions',
|
|
type: 'tuple[]',
|
|
},
|
|
{
|
|
indexed: false,
|
|
internalType: 'string',
|
|
name: 'metadata',
|
|
type: 'string',
|
|
},
|
|
],
|
|
name: 'ProposalCreated',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'uint32',
|
|
name: 'proposalId',
|
|
type: 'uint32',
|
|
},
|
|
{
|
|
indexed: false,
|
|
internalType: 'bytes32[]',
|
|
name: 'txHashes',
|
|
type: 'bytes32[]',
|
|
},
|
|
],
|
|
name: 'ProposalExecuted',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'previousTarget',
|
|
type: 'address',
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'newTarget',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'TargetSet',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'uint32',
|
|
name: 'timelockPeriod',
|
|
type: 'uint32',
|
|
},
|
|
],
|
|
name: 'TimelockPeriodUpdated',
|
|
type: 'event',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'DOMAIN_SEPARATOR_TYPEHASH',
|
|
outputs: [
|
|
{
|
|
internalType: 'bytes32',
|
|
name: '',
|
|
type: 'bytes32',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'TRANSACTION_TYPEHASH',
|
|
outputs: [
|
|
{
|
|
internalType: 'bytes32',
|
|
name: '',
|
|
type: 'bytes32',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'avatar',
|
|
outputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '',
|
|
type: 'address',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_prevStrategy',
|
|
type: 'address',
|
|
},
|
|
{
|
|
internalType: 'address',
|
|
name: '_strategy',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'disableStrategy',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_strategy',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'enableStrategy',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'uint32',
|
|
name: '_proposalId',
|
|
type: 'uint32',
|
|
},
|
|
{
|
|
internalType: 'address[]',
|
|
name: '_targets',
|
|
type: 'address[]',
|
|
},
|
|
{
|
|
internalType: 'uint256[]',
|
|
name: '_values',
|
|
type: 'uint256[]',
|
|
},
|
|
{
|
|
internalType: 'bytes[]',
|
|
name: '_data',
|
|
type: 'bytes[]',
|
|
},
|
|
{
|
|
internalType: 'enum Enum.Operation[]',
|
|
name: '_operations',
|
|
type: 'uint8[]',
|
|
},
|
|
],
|
|
name: 'executeProposal',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'executionPeriod',
|
|
outputs: [
|
|
{
|
|
internalType: 'uint32',
|
|
name: '',
|
|
type: 'uint32',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_to',
|
|
type: 'address',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: '_value',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
internalType: 'bytes',
|
|
name: '_data',
|
|
type: 'bytes',
|
|
},
|
|
{
|
|
internalType: 'enum Enum.Operation',
|
|
name: '_operation',
|
|
type: 'uint8',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: '_nonce',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
name: 'generateTxHashData',
|
|
outputs: [
|
|
{
|
|
internalType: 'bytes',
|
|
name: '',
|
|
type: 'bytes',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'getGuard',
|
|
outputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_guard',
|
|
type: 'address',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'uint32',
|
|
name: '_proposalId',
|
|
type: 'uint32',
|
|
},
|
|
],
|
|
name: 'getProposal',
|
|
outputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_strategy',
|
|
type: 'address',
|
|
},
|
|
{
|
|
internalType: 'bytes32[]',
|
|
name: '_txHashes',
|
|
type: 'bytes32[]',
|
|
},
|
|
{
|
|
internalType: 'uint32',
|
|
name: '_timelockPeriod',
|
|
type: 'uint32',
|
|
},
|
|
{
|
|
internalType: 'uint32',
|
|
name: '_executionPeriod',
|
|
type: 'uint32',
|
|
},
|
|
{
|
|
internalType: 'uint32',
|
|
name: '_executionCounter',
|
|
type: 'uint32',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'uint32',
|
|
name: '_proposalId',
|
|
type: 'uint32',
|
|
},
|
|
{
|
|
internalType: 'uint32',
|
|
name: '_txIndex',
|
|
type: 'uint32',
|
|
},
|
|
],
|
|
name: 'getProposalTxHash',
|
|
outputs: [
|
|
{
|
|
internalType: 'bytes32',
|
|
name: '',
|
|
type: 'bytes32',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'uint32',
|
|
name: '_proposalId',
|
|
type: 'uint32',
|
|
},
|
|
],
|
|
name: 'getProposalTxHashes',
|
|
outputs: [
|
|
{
|
|
internalType: 'bytes32[]',
|
|
name: '',
|
|
type: 'bytes32[]',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_startAddress',
|
|
type: 'address',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: '_count',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
name: 'getStrategies',
|
|
outputs: [
|
|
{
|
|
internalType: 'address[]',
|
|
name: '_strategies',
|
|
type: 'address[]',
|
|
},
|
|
{
|
|
internalType: 'address',
|
|
name: '_next',
|
|
type: 'address',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_to',
|
|
type: 'address',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: '_value',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
internalType: 'bytes',
|
|
name: '_data',
|
|
type: 'bytes',
|
|
},
|
|
{
|
|
internalType: 'enum Enum.Operation',
|
|
name: '_operation',
|
|
type: 'uint8',
|
|
},
|
|
],
|
|
name: 'getTxHash',
|
|
outputs: [
|
|
{
|
|
internalType: 'bytes32',
|
|
name: '',
|
|
type: 'bytes32',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'guard',
|
|
outputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '',
|
|
type: 'address',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_strategy',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'isStrategyEnabled',
|
|
outputs: [
|
|
{
|
|
internalType: 'bool',
|
|
name: '',
|
|
type: 'bool',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'owner',
|
|
outputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '',
|
|
type: 'address',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'uint32',
|
|
name: '_proposalId',
|
|
type: 'uint32',
|
|
},
|
|
],
|
|
name: 'proposalState',
|
|
outputs: [
|
|
{
|
|
internalType: 'enum IAzorius.ProposalState',
|
|
name: '',
|
|
type: 'uint8',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'renounceOwnership',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_avatar',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'setAvatar',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_guard',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'setGuard',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_target',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'setTarget',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'bytes',
|
|
name: 'initializeParams',
|
|
type: 'bytes',
|
|
},
|
|
],
|
|
name: 'setUp',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_strategy',
|
|
type: 'address',
|
|
},
|
|
{
|
|
internalType: 'bytes',
|
|
name: '_data',
|
|
type: 'bytes',
|
|
},
|
|
{
|
|
components: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'to',
|
|
type: 'address',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: 'value',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
internalType: 'bytes',
|
|
name: 'data',
|
|
type: 'bytes',
|
|
},
|
|
{
|
|
internalType: 'enum Enum.Operation',
|
|
name: 'operation',
|
|
type: 'uint8',
|
|
},
|
|
],
|
|
internalType: 'struct IAzorius.Transaction[]',
|
|
name: '_transactions',
|
|
type: 'tuple[]',
|
|
},
|
|
{
|
|
internalType: 'string',
|
|
name: '_metadata',
|
|
type: 'string',
|
|
},
|
|
],
|
|
name: 'submitProposal',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'target',
|
|
outputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '',
|
|
type: 'address',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'timelockPeriod',
|
|
outputs: [
|
|
{
|
|
internalType: 'uint32',
|
|
name: '',
|
|
type: 'uint32',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'totalProposalCount',
|
|
outputs: [
|
|
{
|
|
internalType: 'uint32',
|
|
name: '',
|
|
type: 'uint32',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'newOwner',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'transferOwnership',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'uint32',
|
|
name: '_executionPeriod',
|
|
type: 'uint32',
|
|
},
|
|
],
|
|
name: 'updateExecutionPeriod',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'uint32',
|
|
name: '_timelockPeriod',
|
|
type: 'uint32',
|
|
},
|
|
],
|
|
name: 'updateTimelockPeriod',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
] as const;
|
|
|