Create sales of gated token

In this guide we will go through how to create a sale of a token that is gated by a ComPilot workflow

Prerequesites

  1. Create a project and deploy a market with vesting
  2. Have access to a ComPilot instance
  3. Link your Compilot instance with your token project

Create a signature-gating workflow in ComPilot

In your ComPilot instance,

  1. go in settings > workflow:
  2. create a Signature gating workflow (or ask your account manager)
  1. and navigate inside the workflow page
  2. in order to copy the workflow id

Deploy a signature gated token

On your project on evergonlabs:

  1. As an issuer or admin, go on the asset tab
  2. Click on create Asset
  3. Select the standard or your choice and select the gated version.
    1. This will ensure that only users that pass your compliance workflow can hold your token
  1. Fill the contract information
  2. and sign the transaction to deploy your contract.

Add the token contract in the workflow allowlist

Get the token information on the marketplace

On the asset tab of the marketplace, click on the "instruction" button on your asset to fetch 2 pieces of information you will input in Compilot in the next steps:

  1. Contract address
  2. Contract ABI

Navigate on ComPilot workflow page

On ComPilot we now want to add the contract address that you have deployed in the allowlist of the workflow:

  1. Navigate on the workflow page in the ComPilot dashboard
  2. Click on "Add contract" in the "contract allowlist" section


Add contract in the whitelist

Then in the drawer add the following information

  1. Contract name for internal reference only
  2. The contract address of the asset you have deployed
  3. The ABI of the contract
    1. that you can find the instruction button in the marketplace "asset" tab.
  4. and finally the chain on which the asset is deployed