mintswap-rfq
v1.29.1
Published
MintSwap RFQ js package
Downloads
156
Maintainers
Readme
MintSwap-rfq
This package is SDK for other applications to use for swaping currencies.
Build yarn build
.env file used to specify chain specific parameters. This is used only by test cases to work.
Few test cases to execute yarn run testRates --- This is used to submit rates via Delegator
yarn run approveContract --- For contracts approval
yarn run testFull --- Used for full execution of currency pair --- submits rates , approves contracts , get Order details and submits swap
Publishing to npm
yarn publish --access public --verbose
Following are examples scripts for deploying contracts
Make sure use ERC20 deployer mnemonics npx hardhat run scripts/deploy-multicall-contract.ts --network codex_mainnet npx hardhat run scripts/deploy-balanace-checker-contract.ts --network codex_mainnet
npx hardhat run scripts/deploy-erc20-contracts.ts --network codex_mainnet
Make sure use Maker mnemonics npx hardhat run scripts/deploy-mct-contract.ts --network codex_mainnet
npx hardhat run scripts/deploy-mintswap-contracts.ts --network codex_mainnet