How to use the dcl-catalyst-client.ContentClient function in dcl-catalyst-client

To help you get started, we’ve selected a few dcl-catalyst-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github decentraland / explorer / kernel / packages / shared / profiles / sagas.ts View on Github external
async function deploy(url: string, identity: ExplorerIdentity, metadata: any, contentFiles: Map) {
  // Build entity and group all files
  const preparationData = await DeploymentBuilder.buildEntity(
    EntityType.PROFILE,
    [identity.address],
    contentFiles,
    metadata
  )
  // sign the entity id fetchMetaContentServer
  const authChain = Authenticator.signPayload(identity, preparationData.entityId)
  // Build the client
  const catalyst = new ContentClient(url, 'explorer-kernel-profile')
  // Build the deploy data
  const deployData: DeploymentData = { ...preparationData, authChain }
  // Deploy the actual entity
  return catalyst.deployEntity(deployData)
}

dcl-catalyst-client

A client to query and perform changes on Decentraland's catalyst servers

Apache-2.0
Latest version published 18 days ago

Package Health Score

75 / 100
Full package analysis