Skip to content

Commit

Permalink
Weekly update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexx855 committed Apr 8, 2024
1 parent 500229b commit 8452bc9
Show file tree
Hide file tree
Showing 18 changed files with 6,178 additions and 1,833 deletions.
31 changes: 28 additions & 3 deletions src/contracts/allowlist_stage_logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,32 @@ const abi = [
type: 'address[]',
},
],
name: 'AllowUsersUpdated',
name: 'AllowUsersAdded',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'address',
name: 'nftContract',
type: 'address',
},
{
indexed: false,
internalType: 'uint8',
name: 'stageIndex',
type: 'uint8',
},
{
indexed: false,
internalType: 'address[]',
name: 'allowUsers',
type: 'address[]',
},
],
name: 'AllowUsersRemoved',
type: 'event',
},
{
Expand Down Expand Up @@ -1373,9 +1398,9 @@ const abi = [
] as const
const ALLOWLIST_STAGE_LOGIC: Contract<typeof abi> = {
name: 'Allowlist Stage Logic',
address: '0x536af4feacd3983898819bb293744d610ec3bb47',
address: '0x1040e33db4bb6098e80c2668f47826b0c07e9546',
is_deprecated: false,
updated_at: 1711516492,
updated_at: 1712288276,
abi: abi,
}
export default ALLOWLIST_STAGE_LOGIC
295 changes: 280 additions & 15 deletions src/contracts/consumer_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ const abi = [
name: '_vrfCoordinator',
type: 'address',
},
{
internalType: 'address',
name: 'sentry',
type: 'address',
},
],
stateMutability: 'payable',
type: 'constructor',
Expand All @@ -17,31 +22,91 @@ const abi = [
type: 'error',
},
{
anonymous: false,
inputs: [
{
internalType: 'uint256',
name: '_callbackGaslimit',
type: 'uint256',
indexed: true,
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
internalType: 'uint256',
name: '_gasPrice',
type: 'uint256',
indexed: true,
internalType: 'bytes32',
name: 'previousAdminRole',
type: 'bytes32',
},
{
indexed: true,
internalType: 'bytes32',
name: 'newAdminRole',
type: 'bytes32',
},
],
name: 'RoleAdminChanged',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
indexed: true,
internalType: 'address',
name: '_refundAddr',
name: 'account',
type: 'address',
},
{
internalType: 'uint256[]',
name: '_tokenIds',
type: 'uint256[]',
indexed: true,
internalType: 'address',
name: 'sender',
type: 'address',
},
],
name: 'bulkTestRequestRandomness',
outputs: [],
stateMutability: 'payable',
name: 'RoleGranted',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
indexed: true,
internalType: 'address',
name: 'account',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'sender',
type: 'address',
},
],
name: 'RoleRevoked',
type: 'event',
},
{
inputs: [],
name: 'DEFAULT_ADMIN_ROLE',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
{
Expand Down Expand Up @@ -82,6 +147,110 @@ const abi = [
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
],
name: 'getRoleAdmin',
outputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
internalType: 'uint256',
name: 'index',
type: 'uint256',
},
],
name: 'getRoleMember',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
],
name: 'getRoleMemberCount',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'grantRole',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'hasRole',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
Expand Down Expand Up @@ -157,6 +326,102 @@ const abi = [
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'renounceRole',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: 'role',
type: 'bytes32',
},
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'revokeRole',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: '_vrfCoordinator',
type: 'address',
},
],
name: 'setVrfCoordinator',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes4',
name: 'interfaceId',
type: 'bytes4',
},
],
name: 'supportsInterface',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: '_callbackGaslimit',
type: 'uint256',
},
{
internalType: 'uint256',
name: '_gasPrice',
type: 'uint256',
},
{
internalType: 'address',
name: '_refundAddr',
type: 'address',
},
{
internalType: 'uint256',
name: '_tokenId',
type: 'uint256',
},
],
name: 'testRequestRandomness',
outputs: [],
stateMutability: 'payable',
type: 'function',
},
{
inputs: [
{
Expand Down Expand Up @@ -201,9 +466,9 @@ const abi = [
] as const
const CONSUMER_TEST: Contract<typeof abi> = {
name: 'Consumer Test',
address: '0x35dc49cafab1e2e46723ad5e0a82e71cff73558e',
address: '0x2ab1afc50e63c0020cbb69662bcb9dc52424aa5e',
is_deprecated: false,
updated_at: 1711932093,
updated_at: 1712536796,
abi: abi,
}
export default CONSUMER_TEST
Loading

0 comments on commit 8452bc9

Please sign in to comment.