Closed xhliu closed 1 year ago
const hashPuzzle = new HashPuzzle(..., h0)
await hashPuzzle.connect(getDefaultSigner())
await hashPuzzle.deploy()
https://github.com/sCrypt-Inc/scrypt-ord/blob/0cb3d5f49cb7f6cbdfc14af3f921929ac3e84fad/tests/specs/hashPuzzle.spec.ts#L42-L85 Should be as simple as sth like
hashPuzzle.transfer([new HashPuzzle(...,h1), new HashPuzzle(...,h2), new HashPuzzle(...,h0)], [amt1, amt2, changeAmt])
Be default, transfer to a new instance, with 0-th output being the instance w/ h1
of amt1
, 1st w/ h2 of amt2
, 2nd token change output, plus satoshi change output if any.
Make it customizable by customizing the txBuilder.
This contains the inscription script? https://github.com/sCrypt-Inc/scrypt-ord/blob/0cb3d5f49cb7f6cbdfc14af3f921929ac3e84fad/tests/specs/hashPuzzle.spec.ts#L66
Remove
@prop
s, since they r not on chain.