Skip to content

Commit

Permalink
feat: set dust amount as postage for BRC-20
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcrazycoder committed Nov 1, 2023
1 parent c5f7746 commit 391fa4e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/sdk/src/brc20/BRC20Deploy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { MINIMUM_AMOUNT_IN_SATS } from "../constants"
import { Inscriber } from "../transactions/Inscriber"
import { BRC20DeployOptions, BRC20DeployPayloadAttributes } from "./types"

Expand Down Expand Up @@ -25,7 +26,7 @@ export class BRC20Deploy extends Inscriber {
destinationAddress: destinationAddress || address,
publicKey: pubKey,
feeRate,
postage: 1000,
postage: MINIMUM_AMOUNT_IN_SATS,
mediaType: "<temp-type>", // Set on payload creation
mediaContent: "<temp-content>" // Set on payload creation
})
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/src/brc20/BRC20Mint.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { MINIMUM_AMOUNT_IN_SATS } from "../constants"
import { Inscriber } from "../transactions/Inscriber"
import { BRC20MintOptions, BRC20MintPayloadAttributes } from "./types"

Expand All @@ -13,7 +14,7 @@ export class BRC20Mint extends Inscriber {
destinationAddress: destinationAddress || address,
publicKey: pubKey,
feeRate,
postage: 1000,
postage: MINIMUM_AMOUNT_IN_SATS,
mediaType: "<temp-type>", // Set on payload creation
mediaContent: "<temp-content>" // Set on payload creation
})
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/src/brc20/BRC20TransferBase.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { JsonRpcDatasource } from ".."
import { MINIMUM_AMOUNT_IN_SATS } from "../constants"
import { Inscriber } from "../transactions/Inscriber"
import {
BRC20TransferBaseOptions,
Expand All @@ -20,7 +21,7 @@ export class BRC20TransferBase extends Inscriber {
publicKey: pubKey,
feeRate,
datasource,
postage: 1000,
postage: MINIMUM_AMOUNT_IN_SATS,
mediaType: "<temp-type>", // Set on payload creation
mediaContent: "<temp-content>" // Set on payload creation
})
Expand Down

0 comments on commit 391fa4e

Please sign in to comment.