threefoldtecharchive / tfchain_portal

A frontend to interact with Tfchain
0 stars 2 forks source link

easy way to cancel contracts #19

Closed xmonader closed 2 years ago

xmonader commented 2 years ago

right now the flow is from the graphql e.g https://graphql.dev.grid.tf/graphql

query MyQuery {

  nodeContracts(where: {twinId_eq: 70}) {
    twinId
    contractId
  }
}

I get all my contracts and then from polkadot UI I cancel them one by one

image

Also can be done using the script in grid3_client_ts https://github.com/threefoldtech/grid3_client_ts/blob/development/scripts/delete_all_contracts.ts , but needs to be more friendly.

DylanVerstraete commented 2 years ago

We did not integrate smart contract module yet, if we want to have this feature I think we also should support contract creation