Skip to content

Commit

Permalink
Weekly update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexx855 committed Aug 21, 2024
1 parent 8d14ac7 commit 622c43f
Show file tree
Hide file tree
Showing 11 changed files with 2,357 additions and 26 deletions.
414 changes: 414 additions & 0 deletions src/contracts/check_in.ts

Large diffs are not rendered by default.

154 changes: 154 additions & 0 deletions src/contracts/check_in_proxy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
import { Contract } from '@/contract'
const abi = [
{
inputs: [
{
internalType: 'address',
name: 'implementationAddress',
type: 'address',
},
{
internalType: 'address',
name: 'ownerAddress',
type: 'address',
},
{
internalType: 'bytes',
name: 'data',
type: 'bytes',
},
],
stateMutability: 'payable',
type: 'constructor',
},
{
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: true,
internalType: 'address',
name: 'previousImplementation',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
],
name: 'ProxyImplementationUpdated',
type: 'event',
},
{
stateMutability: 'payable',
type: 'fallback',
},
{
inputs: [],
name: 'owner',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes4',
name: 'id',
type: 'bytes4',
},
],
name: 'supportsInterface',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'newOwner',
type: 'address',
},
],
name: 'transferOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
],
name: 'upgradeTo',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
{
internalType: 'bytes',
name: 'data',
type: 'bytes',
},
],
name: 'upgradeToAndCall',
outputs: [],
stateMutability: 'payable',
type: 'function',
},
{
stateMutability: 'payable',
type: 'receive',
},
] as const
const CHECK_IN_PROXY: Contract<typeof abi> = {
name: 'Check In Proxy',
address: '0xda1c8c1d7df35ecf91186e3cb410ecdb4fb29a3a',
is_deprecated: false,
created_at: 1723443814,
abi: abi,
}
export default CHECK_IN_PROXY
125 changes: 125 additions & 0 deletions src/contracts/daily_donut.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
import { Contract } from '@/contract'
const abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'from',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'to',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'claimId',
type: 'uint256',
},
],
name: 'Transfer',
type: 'event',
},
{
inputs: [
{
internalType: 'address',
name: '_address',
type: 'address',
},
],
name: 'canClaimToday',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'claimDonut',
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'claimId',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'getCurrentDay',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
name: 'lastClaimDay',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: '_address',
type: 'address',
},
],
name: 'timeUntilNextClaim',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
] as const
const DAILY_DONUT: Contract<typeof abi> = {
name: 'Daily Donut',
address: '0xe969cc48458ed2e40fa63d5287a81a4e4748b98b',
is_deprecated: false,
created_at: 1723637642,
abi: abi,
}
export default DAILY_DONUT
4 changes: 2 additions & 2 deletions src/contracts/level_merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -747,9 +747,9 @@ const abi = [
] as const
const LEVEL_MERGE: Contract<typeof abi> = {
name: 'Level Merge',
address: '0x5775572682d08bdb6e6e531cbfe938b91b3816b1',
address: '0x99aeb4179a9e0011ef9630f40cfe7813f036a3bd',
is_deprecated: false,
created_at: 1721984068,
created_at: 1722838366,
abi: abi,
}
export default LEVEL_MERGE
50 changes: 32 additions & 18 deletions src/contracts/minter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ const abi = [
name: 'MainnetNotAllowed',
type: 'error',
},
{
inputs: [],
name: 'MintExpired',
type: 'error',
},
{
inputs: [],
name: 'NoValidatorContract',
Expand All @@ -164,6 +159,11 @@ const abi = [
name: 'SignatureAlreadyUsed',
type: 'error',
},
{
inputs: [],
name: 'SignatureExpired',
type: 'error',
},
{
inputs: [
{
Expand Down Expand Up @@ -201,6 +201,25 @@ const abi = [
name: 'UnknownNetwork',
type: 'error',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'treasuryAddress',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'FundsSentToTreasury',
type: 'event',
},
{
anonymous: false,
inputs: [
Expand Down Expand Up @@ -627,22 +646,17 @@ const abi = [
{
inputs: [
{
internalType: 'contract IMintableToken',
name: 'tokenContract',
internalType: 'address',
name: 'recipient',
type: 'address',
},
{
internalType: 'address[]',
name: 'accounts',
type: 'address[]',
},
{
internalType: 'uint256[]',
name: 'amounts',
type: 'uint256[]',
internalType: 'string',
name: 'details',
type: 'string',
},
],
name: 'adminMintTokens',
name: 'adminGiftOffchainItem',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
Expand Down Expand Up @@ -1142,9 +1156,9 @@ const abi = [
] as const
const MINTER: Contract<typeof abi> = {
name: 'Minter',
address: '0x88bc7541153374fac167428cbc8d9d1bccb069ca',
address: '0xd831d7245726e7a0fc400c8f3fb48071866655d8',
is_deprecated: false,
created_at: 1715931102,
created_at: 1722488740,
abi: abi,
}
export default MINTER
Loading

0 comments on commit 622c43f

Please sign in to comment.