Skip to content

cowprotocol/custom-order-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoW Protocol Custom Orders

A tiny static HTML page for placing custom CoW Protocol orders with MetaMask.

Building

Building the static page requires:

  • POSIX environment, specifically make and sed
  • Deno for bundling JavaScript
  • Optionally cURL for uploading to IPFS
make # builds dist/index.html static page
make host # builds the static HTML page hosts it locally on port 8000
make ipfs # builds the static HTML page and uploads it to IPFS
make clean # cleans up the dist/ directory

Signing an order

Currently, the script doesn't check for allowance, and signing an order might end up with the insufficient allowance error. In that case, set the allowance manually:

cast send $TOKEN_ADDRESS "approve(address,uint256)" 0xC92E8bdf79f0507f65a392b0ab4667716BFE0110 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff \
  --private-key $PK \
  --rpc-url $RPC_URL

, where 0xC92E8bdf79f0507f65a392b0ab4667716BFE0110 is a VaultRelayer address

About

A tiny static HTML page for placing custom CoW Protocol orders with MetaMask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages