-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/edit token contracts start (#91)
* edit token contracts start * contract edition * connected methods * contract calling fix * contract calling fix * fixes after review
- Loading branch information
Showing
23 changed files
with
1,554 additions
and
128 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { | ||
TOKEN_CONTRACT_METHODS, | ||
DISTRIBUTION_CONTRACT_METHODS, | ||
L1_SENDER_CONTRACT_METHODS, | ||
L2_MESSAGE_RECEIVER_CONTRACT_METHODS, | ||
L2_TOKEN_RECEIVER_CONTRACT_METHODS, | ||
} from '@/enums' | ||
|
||
export const CONTRACT_METHODS = { | ||
...TOKEN_CONTRACT_METHODS, | ||
...DISTRIBUTION_CONTRACT_METHODS, | ||
...L1_SENDER_CONTRACT_METHODS, | ||
...L2_MESSAGE_RECEIVER_CONTRACT_METHODS, | ||
...L2_TOKEN_RECEIVER_CONTRACT_METHODS, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export enum CONTRACT_TYPE { | ||
distribution = 'distribution', | ||
token = 'token', | ||
l1Sender = '1 Sender', | ||
l2TokenReceiver = 'l2 Token Receiver', | ||
l2MessageReceiver = 'l2 Message Receiver', | ||
} | ||
|
||
export enum TOKEN_CONTRACT_METHODS { | ||
mint = 'mint', | ||
transfer = 'transfer', | ||
transferOwnership = 'transfer ownership', | ||
approve = 'approve', | ||
burn = 'burn', | ||
increaseAllowance = 'increase allowance', | ||
} | ||
|
||
export enum DISTRIBUTION_CONTRACT_METHODS { | ||
bridgeOverplus = 'bridge overplus', | ||
createPool = 'create pool', | ||
} | ||
|
||
export enum L1_SENDER_CONTRACT_METHODS { | ||
sendDepositToken = 'send deposit token', | ||
sendMintMessage = 'send mint message', | ||
transferOwnership = 'transfer ownership', | ||
} | ||
|
||
export enum L2_MESSAGE_RECEIVER_CONTRACT_METHODS { | ||
transferOwnership = 'transfer ownership', | ||
} | ||
|
||
export enum L2_TOKEN_RECEIVER_CONTRACT_METHODS { | ||
transferOwnership = 'transfer ownership', | ||
collectFees = 'collect fees', | ||
decreaseLiquidityCurrentRange = 'decrease liquidity current range', | ||
increaseLiquidityCurrentRange = 'increase liquidity current range', | ||
withdrawToken = 'withdraw token', | ||
withdrawTokenId = 'withdraw token id', | ||
} |
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
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.