Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8f70036
chore: formatted tvl data
hemantwasthere Oct 5, 2024
8fd4212
Merge branch 'dev' of https://github.com/hemantwasthere/starkfarm-cli…
hemantwasthere Oct 5, 2024
d929f2f
fix: added dollar sign before tvl data
hemantwasthere Oct 5, 2024
15a7884
fix: removed dollar sign : )
hemantwasthere Oct 5, 2024
a584239
fix: undefined tvl formatting issue
akiraonstarknet Oct 5, 2024
2ba8923
fix: compile error in TVL
hemantwasthere Oct 5, 2024
b0bdfc0
Merge branch 'dev' of https://github.com/hemantwasthere/starkfarm-cli…
hemantwasthere Oct 23, 2024
4d2754a
chore: raffle implementation
hemantwasthere Oct 25, 2024
1741d4d
Merge pull request #1 from hemantwasthere/feat/raffle
hemantwasthere Oct 25, 2024
93471cd
chore: deploy trigger
hemantwasthere Oct 25, 2024
8c0bfa5
chore: updated cron expression
hemantwasthere Oct 25, 2024
478fddf
chore: updated cron expression
hemantwasthere Oct 25, 2024
a5b131f
chore: updated cron expression
hemantwasthere Oct 25, 2024
4c15c9a
chore: update route method
hemantwasthere Oct 25, 2024
b8bb738
chore: update route logic
hemantwasthere Oct 25, 2024
31e651d
chore: updated cron expression
hemantwasthere Oct 25, 2024
898849c
chore: updated cron expression
hemantwasthere Oct 25, 2024
1a526da
chore: code refactor
hemantwasthere Oct 28, 2024
050619b
chore: updated lucky winner route
hemantwasthere Oct 28, 2024
78662f0
fix: added cron secret
hemantwasthere Oct 28, 2024
0dd8b16
chore: updated lucky winner route.ts
hemantwasthere Oct 29, 2024
b596f2a
chore: ui updates on raffle page
hemantwasthere Nov 1, 2024
e896679
fix: bugs and ui tweaks
hemantwasthere Nov 1, 2024
8775a62
chore: text update
hemantwasthere Nov 1, 2024
86cd737
fix: ekubo logo
hemantwasthere Nov 14, 2024
380c56c
Merge branch 'dev' of https://github.com/hemantwasthere/starkfarm-cli…
hemantwasthere Nov 14, 2024
20cfa93
Merge branch 'strkfarm:dev' into dev
hemantwasthere Nov 24, 2024
0053d70
chore: update home page banner
hemantwasthere Nov 24, 2024
ac2a319
Merge branch 'xstrk_strat' into dev
akiraonstarknet Nov 24, 2024
02a1a47
Merge pull request #107 from hemantwasthere/dev
akiraonstarknet Nov 24, 2024
98d2326
add endur
akiraonstarknet Nov 25, 2024
2414112
fix /strategies api
akiraonstarknet Nov 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ NEXT_PUBLIC_OG_NFT_CONTRACT=0x3cb654f2f557a7f71a0c16d97c05a2dec62a0b744979d11afc


CRON_SECRET=

# mainnet or sepolia
# Note: Not everything is supported on sepolia
# Default: mainnet
NEXT_PUBLIC_NETWORK=mainnet
6 changes: 3 additions & 3 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
const nextConfig = {
// output: 'export',
compiler: {
// removeConsole: {
// exclude: ['error', 'debug'],
// },
removeConsole: {
exclude: ['error'],
},
},
async rewrites() {
return [
Expand Down
62 changes: 62 additions & 0 deletions public/banners/endur.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions public/banners/endur_mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
213 changes: 164 additions & 49 deletions src/abi/master.abi.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[
{
"name": "ExternalImpl",
"type": "impl",
"name": "ExternalImpl",
"interface_name": "strkfarm::strats::master::IMaster"
},
{
"name": "core::integer::u256",
"type": "struct",
"name": "core::integer::u256",
"members": [
{
"name": "low",
Expand All @@ -19,12 +19,85 @@
]
},
{
"name": "strkfarm::strats::master::IMaster",
"type": "struct",
"name": "strkfarm::strats::master::Settings",
"members": [
{
"name": "nimbora_referral",
"type": "core::starknet::contract_address::ContractAddress"
}
]
},
{
"type": "interface",
"name": "strkfarm::strats::master::IMaster",
"items": [
{
"type": "function",
"name": "invest_auto_strk",
"inputs": [
{
"name": "strategy",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "amount",
"type": "core::integer::u256"
},
{
"name": "receiver",
"type": "core::starknet::contract_address::ContractAddress"
}
],
"outputs": [
{
"type": "core::integer::u256"
}
],
"state_mutability": "external"
},
{
"type": "function",
"name": "deposit_nimbora",
"inputs": [
{
"name": "nimbora_strategy_address",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "harvest_invest_strategy",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "token_address",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "assets",
"type": "core::integer::u256"
}
],
"outputs": [
{
"type": "core::integer::u256"
}
],
"state_mutability": "external"
},
{
"type": "function",
"name": "get_settings",
"inputs": [],
"outputs": [
{
"type": "strkfarm::strats::master::Settings"
}
],
"state_mutability": "view"
},
{
"type": "function",
"name": "invest_to_xstrk_auto",
"inputs": [
{
"name": "strategy",
Expand All @@ -47,8 +120,8 @@
"state_mutability": "external"
},
{
"name": "upgrade",
"type": "function",
"name": "upgrade",
"inputs": [
{
"name": "class_hash",
Expand All @@ -61,17 +134,17 @@
]
},
{
"name": "OwnableTwoStepImpl",
"type": "impl",
"interface_name": "openzeppelin::access::ownable::interface::IOwnableTwoStep"
"name": "OwnableTwoStepImpl",
"interface_name": "openzeppelin_access::ownable::interface::IOwnableTwoStep"
},
{
"name": "openzeppelin::access::ownable::interface::IOwnableTwoStep",
"type": "interface",
"name": "openzeppelin_access::ownable::interface::IOwnableTwoStep",
"items": [
{
"name": "owner",
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
Expand All @@ -81,8 +154,8 @@
"state_mutability": "view"
},
{
"name": "pending_owner",
"type": "function",
"name": "pending_owner",
"inputs": [],
"outputs": [
{
Expand All @@ -92,15 +165,15 @@
"state_mutability": "view"
},
{
"name": "accept_ownership",
"type": "function",
"name": "accept_ownership",
"inputs": [],
"outputs": [],
"state_mutability": "external"
},
{
"name": "transfer_ownership",
"type": "function",
"name": "transfer_ownership",
"inputs": [
{
"name": "new_owner",
Expand All @@ -111,124 +184,166 @@
"state_mutability": "external"
},
{
"name": "renounce_ownership",
"type": "function",
"name": "renounce_ownership",
"inputs": [],
"outputs": [],
"state_mutability": "external"
}
]
},
{
"name": "constructor",
"type": "struct",
"name": "strkfarm::interfaces::zkLend::IZkLendMarketDispatcher",
"members": [
{
"name": "contract_address",
"type": "core::starknet::contract_address::ContractAddress"
}
]
},
{
"type": "struct",
"name": "strkfarm::interfaces::oracle::IPriceOracleDispatcher",
"members": [
{
"name": "contract_address",
"type": "core::starknet::contract_address::ContractAddress"
}
]
},
{
"type": "struct",
"name": "strkfarm::components::zkLend::zkLendStruct",
"members": [
{
"name": "zkLendRouter",
"type": "strkfarm::interfaces::zkLend::IZkLendMarketDispatcher"
},
{
"name": "oracle",
"type": "strkfarm::interfaces::oracle::IPriceOracleDispatcher"
}
]
},
{
"type": "constructor",
"name": "constructor",
"inputs": [
{
"name": "owner",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "lend_settings",
"type": "strkfarm::components::zkLend::zkLendStruct"
},
{
"name": "nimbora_referral",
"type": "core::starknet::contract_address::ContractAddress"
}
]
},
{
"kind": "enum",
"name": "openzeppelin::security::reentrancyguard::ReentrancyGuardComponent::Event",
"type": "event",
"name": "openzeppelin_security::reentrancyguard::ReentrancyGuardComponent::Event",
"kind": "enum",
"variants": []
},
{
"kind": "struct",
"name": "openzeppelin::access::ownable::ownable::OwnableComponent::OwnershipTransferred",
"type": "event",
"name": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred",
"kind": "struct",
"members": [
{
"kind": "key",
"name": "previous_owner",
"type": "core::starknet::contract_address::ContractAddress"
"type": "core::starknet::contract_address::ContractAddress",
"kind": "key"
},
{
"kind": "key",
"name": "new_owner",
"type": "core::starknet::contract_address::ContractAddress"
"type": "core::starknet::contract_address::ContractAddress",
"kind": "key"
}
]
},
{
"kind": "struct",
"name": "openzeppelin::access::ownable::ownable::OwnableComponent::OwnershipTransferStarted",
"type": "event",
"name": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferStarted",
"kind": "struct",
"members": [
{
"kind": "key",
"name": "previous_owner",
"type": "core::starknet::contract_address::ContractAddress"
"type": "core::starknet::contract_address::ContractAddress",
"kind": "key"
},
{
"kind": "key",
"name": "new_owner",
"type": "core::starknet::contract_address::ContractAddress"
"type": "core::starknet::contract_address::ContractAddress",
"kind": "key"
}
]
},
{
"kind": "enum",
"name": "openzeppelin::access::ownable::ownable::OwnableComponent::Event",
"type": "event",
"name": "openzeppelin_access::ownable::ownable::OwnableComponent::Event",
"kind": "enum",
"variants": [
{
"kind": "nested",
"name": "OwnershipTransferred",
"type": "openzeppelin::access::ownable::ownable::OwnableComponent::OwnershipTransferred"
"type": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred",
"kind": "nested"
},
{
"kind": "nested",
"name": "OwnershipTransferStarted",
"type": "openzeppelin::access::ownable::ownable::OwnableComponent::OwnershipTransferStarted"
"type": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferStarted",
"kind": "nested"
}
]
},
{
"kind": "struct",
"name": "openzeppelin::upgrades::upgradeable::UpgradeableComponent::Upgraded",
"type": "event",
"name": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Upgraded",
"kind": "struct",
"members": [
{
"kind": "data",
"name": "class_hash",
"type": "core::starknet::class_hash::ClassHash"
"type": "core::starknet::class_hash::ClassHash",
"kind": "data"
}
]
},
{
"kind": "enum",
"name": "openzeppelin::upgrades::upgradeable::UpgradeableComponent::Event",
"type": "event",
"name": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Event",
"kind": "enum",
"variants": [
{
"kind": "nested",
"name": "Upgraded",
"type": "openzeppelin::upgrades::upgradeable::UpgradeableComponent::Upgraded"
"type": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Upgraded",
"kind": "nested"
}
]
},
{
"kind": "enum",
"name": "strkfarm::strats::master::Master::Event",
"type": "event",
"name": "strkfarm::strats::master::Master::Event",
"kind": "enum",
"variants": [
{
"kind": "flat",
"name": "ReentrancyGuardEvent",
"type": "openzeppelin::security::reentrancyguard::ReentrancyGuardComponent::Event"
"type": "openzeppelin_security::reentrancyguard::ReentrancyGuardComponent::Event",
"kind": "flat"
},
{
"kind": "flat",
"name": "OwnableEvent",
"type": "openzeppelin::access::ownable::ownable::OwnableComponent::Event"
"type": "openzeppelin_access::ownable::ownable::OwnableComponent::Event",
"kind": "flat"
},
{
"kind": "flat",
"name": "UpgradeableEvent",
"type": "openzeppelin::upgrades::upgradeable::UpgradeableComponent::Event"
"type": "openzeppelin_upgrades::upgradeable::UpgradeableComponent::Event",
"kind": "flat"
}
]
}
Expand Down
Loading