diff --git a/README.md b/README.md index be6b40e..015e3fe 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ isRevokedBefore #### Deploying Token Registry -This example provides how to deploy TradeTrust standard token-registry for [transferrable records](https://docs.tradetrust.io/docs/tutorial/transferable-records/overview/). It requires less gas compared to [standalone deployment](#deploying-standalone-token-registry), as it uses deployer and implementation addresses for deployment. Replace the values for `` and `` with your wallet private key and the JSON RPC url for desired network accordingly. Currently, it supports the following networks. +This example provides how to deploy TradeTrust token-registry for [transferrable records](https://docs.tradetrust.io/docs/tutorial/transferable-records/overview/). Replace the values for `` and `` with your wallet private key and the JSON RPC url for desired network accordingly. Currently, it supports the following networks. - ethereum - sepolia @@ -211,38 +211,6 @@ async function start() { start() ``` -#### Deploying Standalone Token Registry - -This example provides how to deploy TradeTrust standalone token-registry for [transferrable records](https://docs.tradetrust.io/docs/tutorial/transferable-records/overview/). Replace the values for `` and `` with your wallet private key and the JSON RPC url for desired network accordingly. It works on all the [supported networks](https://docs.tradetrust.io/docs/topics/introduction/supported-network/#tradetrust-supported-networks). - -```ts -import { - TradeTrustToken__factory, - TOKEN_REG_CONSTS, -} from '@tradetrust-tt/tradetrust-core' -import { Wallet, ethers } from 'ethers' - -async function start() { - const unconnectedWallet = new Wallet('') - const provider = new ethers.providers.JsonRpcProvider('') - const wallet = unconnectedWallet.connect(provider) - const tokenFactory = new TradeTrustToken__factory(wallet) - const CHAIN_ID = await wallet.getChainId() - // get the title escrow factory address for each network - const TitleEscrowFactory = - TOKEN_REG_CONSTS.contractAddress.TitleEscrowFactory[CHAIN_ID] - const tokenRegistry = await tokenFactory.deploy( - 'DemoTokenRegistry', - 'DTR', - TitleEscrowFactory - ) - const registryAddress = tokenRegistry.address - // new standalone token registry contract address - console.log(registryAddress) -} -start() -``` - #### Wrapping and Minting of Transferrable Record This example provides how to wrap the [raw transferrable document](https://docs.tradetrust.io/docs/tutorial/transferable-records/raw-document) and mint the tradetrust token for [transferrable record](https://docs.tradetrust.io/docs/tutorial/transferable-records/overview/) using the existing token registry address. Replace the place holders ``, ``, ``, `` and `` accordingly. After successfully minted, transaction hash will be displayed and the `wrappedDocument` should be successfully [verified](#verifying).