Skip to content

Commit

Permalink
update CONETianPlan
Browse files Browse the repository at this point in the history
  • Loading branch information
CoNETProject committed Nov 1, 2024
1 parent e1b3825 commit d24f791
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 258 deletions.
6 changes: 0 additions & 6 deletions src/localServer/define.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,6 @@ interface conet_tokens {

CONETianPlan?: {
Guardian: CryptoAsset
Sentinel: CryptoAsset
Conetian: CryptoAsset
Pioneer: CryptoAsset
Pioneer_referrer: CryptoAsset
Conetian_referrer: CryptoAsset
Sentinel_referrer: CryptoAsset
Guardian_referrer: CryptoAsset
}
}
Expand Down
166 changes: 13 additions & 153 deletions src/localServer/workers/utilities/smartContractABI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4211,19 +4211,6 @@ const CONETianPlan_ABI = [
"name": "URI",
"type": "event"
},
{
"inputs": [],
"name": "Conetian",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "Guardian",
Expand All @@ -4239,20 +4226,7 @@ const CONETianPlan_ABI = [
},
{
"inputs": [],
"name": "Pioneer",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "Sentinel",
"name": "GuardianReferrer",
"outputs": [
{
"internalType": "uint256",
Expand Down Expand Up @@ -4438,7 +4412,7 @@ const CONETianPlan_ABI = [
"outputs": [
{
"internalType": "bool",
"name": "",
"name": "existNFT",
"type": "bool"
}
],
Expand All @@ -4447,49 +4421,12 @@ const CONETianPlan_ABI = [
},
{
"inputs": [],
"name": "getAllLeft",
"name": "getAvailableBalance",
"outputs": [
{
"internalType": "uint256[4]",
"name": "nft",
"type": "uint256[4]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getAllSupply",
"outputs": [
{
"internalType": "uint256[4]",
"name": "nft",
"type": "uint256[4]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "getAssets",
"outputs": [
{
"internalType": "uint256[4]",
"name": "nft",
"type": "uint256[4]"
},
{
"internalType": "uint256[4]",
"name": "nft_referrer",
"type": "uint256[4]"
"internalType": "uint256",
"name": "available",
"type": "uint256"
}
],
"stateMutability": "view",
Expand Down Expand Up @@ -4557,19 +4494,6 @@ const CONETianPlan_ABI = [
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxConetian",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxGuardian",
Expand All @@ -4583,72 +4507,27 @@ const CONETianPlan_ABI = [
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxPioneer",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxSentinel",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "maxSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "address",
"name": "_referrer",
"type": "address"
},
{
"internalType": "string",
"name": "_tx",
"type": "string"
},
{
"internalType": "uint256[]",
"internalType": "uint256",
"name": "values",
"type": "uint256[]"
"type": "uint256"
},
{
"internalType": "address",
"name": "_referrer",
"type": "address"
}
],
"name": "mint",
Expand Down Expand Up @@ -4843,25 +4722,6 @@ const CONETianPlan_ABI = [
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down
23 changes: 4 additions & 19 deletions src/localServer/workers/utilities/utilV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,27 +75,12 @@ const claimable_BNB = '0xBE8184294613a6f2531A7EA996deD57cb8CAeB0B'
const claimable_ETH = '0xAD7dEC79BC005F699Ef80EB53fF1a7E21E24A456'
const claimable_Arb_ETH = '0xF406385E1A0389Ae35684D27c3Ef2799E88E2c4A'
const claimable_Arb_USDT = '0xF40A8EFc8Dd47929ba8Ee9d5B3f1534239E930Fe'
const CONETianPlanAddr = '0x27B9043873dE8684822DEC12F90bAE08f6a06657'
const CONETianPlanAddr = '0x6365DbbeeC743d14eA3BC4823E53bf6a7984bf70'

const Guardian = 0
const Sentinel = 1
const Conetian = 2
const Pioneer = 3

const maxGuardian = 250
const maxSentinel = 1000
const maxConetian = 2000
const maxPioneer = 5000

const Guardian_referrer = 100
const Sentinel_referrer = 101
const Conetian_referrer = 102
const Pioneer_referrer = 103

const GuardianPriceUSDT = 1200
const SentinelPriceUSDT = 700
const ConetianPriceUSDT = 500
const PioneerPriceUSDT = 100
const maxGuardian = 30000
const Guardian_referrer = 10
const GuardianPriceUSDT = 100

// ******************************************************************
const getAddress = (addr) => {
Expand Down
Loading

0 comments on commit d24f791

Please sign in to comment.