sporeprotocol / spore-sdk

The Ultimate TypeScript SDK for Spore Protocol
https://docs.spore.pro
MIT License
12 stars 10 forks source link

examples/acp/apis not work, #110

Open TheHeBoy opened 3 months ago

TheHeBoy commented 3 months ago

createAcpCluster.ts

why cluster's reveiver isn't CHARLIE.address in ckb explorer? Is it because public key hash string in args add min ckb?

createSporeWithAcpCluster.ts

  1. content cannot be string,throw error CodecExecuteError: Expect type undefined at input.content but got error: Invalid hex string.
      contentType: 'text/plain',
      content: 'spore with public cluster referenced',

    2 .anyone-can-pay utxo in input and output Capacity is same。 I think slice error at first, but update to below,but still cant charge service fee to anyone-can-pay utxo

    const argsMinCkb = clusterCell.cellOutput.lock.args.slice(42, 44);

please improve example for make it work.

ashuralyk commented 1 month ago

why cluster's reveiver isn't CHARLIE.address in ckb explorer? Is it because public key hash string in args add min ckb?

because ACP lock is in another script which differentiates the regular Secp256k1 lock, so it'll produce different CKB address