Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd committed Mar 12, 2024
1 parent befd3eb commit 9915850
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/client/api/signer/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export function create_account_api (signer : EscrowSigner) {
index = index ?? signer._gen_idx()
const deposit_pk = signer.pubkey
const spend_xpub = signer.wallet.get(index).xpub
return { deposit_pk, locktime, spend_xpub }
const stamp = index
return { deposit_pk, locktime, spend_xpub, stamp }
}
}

Expand Down
5 changes: 3 additions & 2 deletions src/schema/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import depo from './deposit.js'
import prop from './proposal.js'
import tx from './tx.js'

const { hash, hex, nonce, num, str } = base
const { hash, hex, nonce, num, stamp, str } = base
const { covenant, locktime } = depo
const { txspend } = tx

Expand All @@ -18,7 +18,8 @@ const contract_create_request = z.object({
const deposit_acct_req = z.object({
deposit_pk : hash,
locktime : locktime.optional(),
spend_xpub : str
spend_xpub : str,
stamp : stamp.optional()
})

const deposit_register_req = z.object({
Expand Down
1 change: 1 addition & 0 deletions src/types/api/deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface AccountRequest {
deposit_pk : string
locktime ?: number
spend_xpub : string
stamp ?: number
}

export interface RegisterRequest {
Expand Down

0 comments on commit 9915850

Please sign in to comment.