-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
2,357 additions
and
26 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.