Skip to content

Commit

Permalink
Weekly update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexx855 committed Jun 3, 2024
1 parent c446ba8 commit 5099cc8
Show file tree
Hide file tree
Showing 35 changed files with 11,678 additions and 234 deletions.
740 changes: 640 additions & 100 deletions src/contracts/affiliate_router.ts

Large diffs are not rendered by default.

186 changes: 178 additions & 8 deletions src/contracts/allowlist_stage_logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ const abi = [
name: 'ErrInvalidStageType',
type: 'error',
},
{
inputs: [],
name: 'ErrInvalidTierId',
type: 'error',
},
{
inputs: [],
name: 'ErrInvalidTokenStandard',
Expand Down Expand Up @@ -243,12 +248,7 @@ const abi = [
inputs: [
{
internalType: 'uint256',
name: 'maxSupply',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'remainSupply',
name: 'remainingSupply',
type: 'uint256',
},
{
Expand Down Expand Up @@ -318,6 +318,11 @@ const abi = [
name: 'ErrNotOwnRequirementToken',
type: 'error',
},
{
inputs: [],
name: 'ErrNotZeroSupplyForPublicStage',
type: 'error',
},
{
inputs: [],
name: 'ErrStageEnded',
Expand Down Expand Up @@ -360,6 +365,11 @@ const abi = [
name: 'ErrTooMuchConditionalStages',
type: 'error',
},
{
inputs: [],
name: 'ErrUnsupportedNFTInterface',
type: 'error',
},
{
inputs: [
{
Expand Down Expand Up @@ -550,6 +560,12 @@ const abi = [
name: 'launchpadSupply',
type: 'uint256',
},
{
indexed: false,
internalType: 'bool',
name: 'allowCumulativeLimit',
type: 'bool',
},
{
components: [
{
Expand Down Expand Up @@ -689,6 +705,12 @@ const abi = [
name: 'launchpadSupply',
type: 'uint256',
},
{
indexed: false,
internalType: 'bool',
name: 'allowCumulativeLimit',
type: 'bool',
},
{
components: [
{
Expand Down Expand Up @@ -770,6 +792,11 @@ const abi = [
name: 'stageIndex',
type: 'uint8',
},
{
internalType: 'bytes',
name: 'extraData',
type: 'bytes',
},
],
indexed: false,
internalType: 'struct ILaunchpadStructs.MintParam',
Expand Down Expand Up @@ -812,6 +839,12 @@ const abi = [
name: 'mintedIds',
type: 'uint256[]',
},
{
indexed: false,
internalType: 'uint256[]',
name: 'mintedAmounts',
type: 'uint256[]',
},
{
components: [
{
Expand Down Expand Up @@ -890,6 +923,54 @@ const abi = [
name: 'NewStageInfoAdded',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'nftContract',
type: 'address',
},
{
indexed: true,
internalType: 'uint8',
name: 'stageIndex',
type: 'uint8',
},
{
indexed: true,
internalType: 'uint8',
name: 'tierId',
type: 'uint8',
},
{
components: [
{
internalType: 'uint80',
name: 'mintPrice',
type: 'uint80',
},
{
internalType: 'uint32',
name: 'mintableLimit',
type: 'uint32',
},
{
internalType: 'uint144',
name: '_reserved',
type: 'uint144',
},
],
indexed: false,
internalType: 'struct ILaunchpadStructs.UserTier',
name: 'userTier',
type: 'tuple',
},
],
name: 'NewTierAdded',
type: 'event',
},
{
anonymous: false,
inputs: [
Expand Down Expand Up @@ -1053,6 +1134,85 @@ const abi = [
name: 'SwapForwarderUpdated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'nftContract',
type: 'address',
},
{
indexed: true,
internalType: 'uint8',
name: 'stageIndex',
type: 'uint8',
},
{
indexed: true,
internalType: 'uint8',
name: 'tierId',
type: 'uint8',
},
{
components: [
{
internalType: 'uint80',
name: 'mintPrice',
type: 'uint80',
},
{
internalType: 'uint32',
name: 'mintableLimit',
type: 'uint32',
},
{
internalType: 'uint144',
name: '_reserved',
type: 'uint144',
},
],
indexed: false,
internalType: 'struct ILaunchpadStructs.UserTier',
name: 'userTier',
type: 'tuple',
},
],
name: 'TierInfoUpdated',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'nftContract',
type: 'address',
},
{
indexed: true,
internalType: 'uint8',
name: 'stageIndex',
type: 'uint8',
},
{
indexed: false,
internalType: 'uint8[]',
name: 'tierIds',
type: 'uint8[]',
},
{
indexed: false,
internalType: 'address[][]',
name: 'usersByTier',
type: 'address[][]',
},
],
name: 'UsersAssignedToTier',
type: 'event',
},
{
anonymous: false,
inputs: [
Expand Down Expand Up @@ -1114,6 +1274,11 @@ const abi = [
name: 'stageIndex',
type: 'uint8',
},
{
internalType: 'bytes',
name: 'extraData',
type: 'bytes',
},
],
internalType: 'struct ILaunchpadStructs.MintParam',
name: 'param',
Expand Down Expand Up @@ -1293,6 +1458,11 @@ const abi = [
name: 'stageIndex',
type: 'uint8',
},
{
internalType: 'bytes',
name: 'extraData',
type: 'bytes',
},
],
internalType: 'struct ILaunchpadStructs.MintParam',
name: 'param',
Expand Down Expand Up @@ -1398,9 +1568,9 @@ const abi = [
] as const
const ALLOWLIST_STAGE_LOGIC: Contract<typeof abi> = {
name: 'Allowlist Stage Logic',
address: '0x1040e33db4bb6098e80c2668f47826b0c07e9546',
address: '0x26c9f7799e876d3024286a20a8e799a0e093d38f',
is_deprecated: false,
updated_at: 1712288276,
updated_at: 1716444623,
abi: abi,
}
export default ALLOWLIST_STAGE_LOGIC
52 changes: 50 additions & 2 deletions src/contracts/apeiron_vesting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,54 @@ const abi = [
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address[]',
name: '_beneficiarys',
type: 'address[]',
},
{
internalType: 'uint256[]',
name: '_initialUnlockPercentages',
type: 'uint256[]',
},
{
internalType: 'uint256[]',
name: '_cliffs',
type: 'uint256[]',
},
{
internalType: 'uint256[]',
name: '_starts',
type: 'uint256[]',
},
{
internalType: 'uint256[]',
name: '_durations',
type: 'uint256[]',
},
{
internalType: 'uint256[]',
name: '_releaseds',
type: 'uint256[]',
},
{
internalType: 'uint256[]',
name: '_totalAmounts',
type: 'uint256[]',
},
{
internalType: 'bool[]',
name: '_affectedByFDVs',
type: 'bool[]',
},
],
name: 'addMultiVestingAccount',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
Expand Down Expand Up @@ -660,9 +708,9 @@ const abi = [
] as const
const APEIRON_VESTING: Contract<typeof abi> = {
name: 'Apeiron Vesting',
address: '0x7ba6220c4ab971bdfd47c5f96b656d611e75a4f6',
address: '0x755023679f7b23ec67c366d96783ac7dfc0d6e16',
is_deprecated: false,
updated_at: 1711423494,
updated_at: 1716884030,
abi: abi,
}
export default APEIRON_VESTING
Loading

0 comments on commit 5099cc8

Please sign in to comment.