Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fix: update ME token contract address and abi
Browse files Browse the repository at this point in the history
  • Loading branch information
sincerely91 authored and stiartsly committed Apr 19, 2022
1 parent d4a8ada commit 456e5f9
Show file tree
Hide file tree
Showing 4 changed files with 182 additions and 34 deletions.
30 changes: 22 additions & 8 deletions src/contracts/METokenBase.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const METEAST_BASE_TOKEN_CONTRACT_ADDRESS = '0xA2027C4032AA1062442D1a0b4Ae48FDF277fD5fa';
export const METEAST_BASE_TOKEN_CONTRACT_ADDRESS = '0x22A991dd3421deD6139CA32464C08b8d334cD56c';
export const METEAST_BASE_TOKEN_CONTRACT_ABI = [
{
inputs: [],
Expand Down Expand Up @@ -51,8 +51,15 @@ export const METEAST_BASE_TOKEN_CONTRACT_ABI = [
},
{
anonymous: false,
inputs: [],
name: 'Pause',
inputs: [
{
indexed: false,
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'Paused',
type: 'event',
},
{
Expand Down Expand Up @@ -82,8 +89,15 @@ export const METEAST_BASE_TOKEN_CONTRACT_ABI = [
},
{
anonymous: false,
inputs: [],
name: 'Unpause',
inputs: [
{
indexed: false,
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'Unpaused',
type: 'event',
},
{
Expand Down Expand Up @@ -328,7 +342,7 @@ export const METEAST_BASE_TOKEN_CONTRACT_ABI = [
inputs: [
{
internalType: 'address',
name: 'to',
name: 'recipient',
type: 'address',
},
{
Expand All @@ -352,12 +366,12 @@ export const METEAST_BASE_TOKEN_CONTRACT_ABI = [
inputs: [
{
internalType: 'address',
name: 'from',
name: 'sender',
type: 'address',
},
{
internalType: 'address',
name: 'to',
name: 'recipient',
type: 'address',
},
{
Expand Down
78 changes: 77 additions & 1 deletion src/contracts/METokenMiningReward.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const METEAST_MINING_REWARD_TOKEN_CONTRACT_ADDRESS = '0x3B2F405C2BFE0B9A1364148f21fEa50e28C310E5';
export const METEAST_MINING_REWARD_TOKEN_CONTRACT_ADDRESS = '0x9277f45FF70B1484d462c574d6454dD67092f43d';
export const METEAST_MINING_REWARD_TOKEN_CONTRACT_ABI = [
{
inputs: [
Expand Down Expand Up @@ -174,6 +174,82 @@ export const METEAST_MINING_REWARD_TOKEN_CONTRACT_ABI = [
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'getReceivedReward',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'getReceivedRewardAsBuyer',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'getReceivedRewardAsCreator',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'getReceivedRewardAsStaker',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/METokenStaking.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const METEAST_STAKING_TOKEN_CONTRACT_ADDRESS = '0x6E142e7Af08089510303C9464360b93f108175Ea';
export const METEAST_STAKING_TOKEN_CONTRACT_ADDRESS = '0x171bCA4E078f5EA44Bd4Ea5e8e07c5154726bd48';
export const METEAST_STAKING_TOKEN_CONTRACT_ABI = [
{
inputs: [
Expand Down
106 changes: 82 additions & 24 deletions src/contracts/METokenVesting.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const METEAST_VESTING_TOKEN_CONTRACT_ADDRESS = '0x8F998086823DE4023b27d8b5a748d7E467FF8fe2';
export const METEAST_VESTING_TOKEN_CONTRACT_ADDRESS = '0x4F6bf04FFA734864A80981e4bf4e2e1275093a1D';
export const METEAST_VESTING_TOKEN_CONTRACT_ABI = [
{
inputs: [
Expand Down Expand Up @@ -30,6 +30,19 @@ export const METEAST_VESTING_TOKEN_CONTRACT_ABI = [
name: 'OwnershipTransferred',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'Paused',
type: 'event',
},
{
anonymous: false,
inputs: [],
Expand All @@ -43,26 +56,21 @@ export const METEAST_VESTING_TOKEN_CONTRACT_ABI = [
type: 'event',
},
{
stateMutability: 'payable',
type: 'fallback',
},
{
anonymous: false,
inputs: [
{
internalType: 'string',
name: 'beneficiaryString',
type: 'string',
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
indexed: false,
internalType: 'address',
name: 'account',
type: 'address',
},
],
name: 'createVestingSchedule',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
name: 'Unpaused',
type: 'event',
},
{
stateMutability: 'payable',
type: 'fallback',
},
{
inputs: [
Expand Down Expand Up @@ -213,6 +221,36 @@ export const METEAST_VESTING_TOKEN_CONTRACT_ABI = [
name: 'startTime_',
type: 'uint256',
},
{
internalType: 'address',
name: 'miningPoolAddr_',
type: 'address',
},
{
internalType: 'address',
name: 'marketerAddr_',
type: 'address',
},
{
internalType: 'address',
name: 'daoAddr_',
type: 'address',
},
{
internalType: 'address',
name: 'foundationAddr_',
type: 'address',
},
{
internalType: 'address',
name: 'ecoAddr_',
type: 'address',
},
{
internalType: 'address',
name: 'teamAddr_',
type: 'address',
},
],
name: 'initialize',
outputs: [],
Expand All @@ -232,6 +270,26 @@ export const METEAST_VESTING_TOKEN_CONTRACT_ABI = [
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'pause',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'paused',
outputs: [
{
internalType: 'bool',
name: '',
type: 'bool',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'releaseDao',
Expand Down Expand Up @@ -317,13 +375,6 @@ export const METEAST_VESTING_TOKEN_CONTRACT_ABI = [
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'revoke',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
Expand Down Expand Up @@ -375,6 +426,13 @@ export const METEAST_VESTING_TOKEN_CONTRACT_ABI = [
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'unpause',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
Expand Down

2 comments on commit 456e5f9

@vercel
Copy link

@vercel vercel bot commented on 456e5f9 Apr 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blockchaindev91 is attempting to deploy a commit to a Personal Account on Vercel that is not owned by them.

In order for the commit to be deployed, @blockchaindev91 must be granted access to the connected Vercel project.

If you're the owner of the Personal Account, transfer the project to a Vercel Team and start collaborating, or learn more.

@vercel
Copy link

@vercel vercel bot commented on 456e5f9 Apr 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

met-east – ./

met-east-git-main-lifayi2008.vercel.app
met-east-lifayi2008.vercel.app
testnet.meteast.io

Please sign in to comment.