Skip to content

Commit

Permalink
chore: Add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
duanyytop committed Jun 24, 2024
1 parent 62e8d47 commit afe92c1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/new-numbers-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@joyid/common': minor
---

feat: Add witnessIndexes to SignCkbRawTxRequest
5 changes: 5 additions & 0 deletions .changeset/rich-taxis-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@joyid/ckb': major
---

feat: Add witnessIndexes to signRawTransaction
4 changes: 2 additions & 2 deletions packages/ckb/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export const initConfig = (config?: CkbDappConfig): CkbDappConfig => {
export const getConfig = (): CkbDappConfig => internalDappConfig

// The witnessIndexes represents the positions of the JoyID cells in inputs, the default value is [0..inputs.length)
// deprecated: The witnessIndex represents the position of the first JoyID cell in inputs, and the default value is 0.
// deprecated: The witnessLastIndex represents the position of the last JoyID cell in inputs, and the default value is inputs.length - 1
// deprecated: The witnessIndex represents the position of the first JoyID cell in inputs, and if it is undefined, witnessIndexes will work.
// deprecated: The witnessLastIndex represents the position of the last JoyID cell in inputs, and if it is undefined, witnessIndexes will work
// deprecated: The witnessLastIndex must not be smaller than witnessIndex.
// deprecated: For example: witnessIndex = 1, witnessLastIndex = 3, this means the inputs[1..3] are JoyID cell, and the other inputs are another lock scripts.
export type SignConfig = CkbDappConfig &
Expand Down

0 comments on commit afe92c1

Please sign in to comment.