@theliem/xmarket-sdk 3.16.0 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +19 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -606,6 +606,16 @@ declare class FeeManagementClient {
|
|
|
606
606
|
buildEditMarketFeeTx(conditionPda: PublicKey, mergeFee: BN, redeemFee: BN, swapFee: BN, feeConfigOwner: PublicKey, authority: PublicKey, payer?: PublicKey): Promise<Transaction>;
|
|
607
607
|
/** @deprecated use buildEditMarketFeeTx */
|
|
608
608
|
setQuestionFee(conditionPda: PublicKey, mergeFee: BN, redeemFee: BN, swapFee: BN, feeConfigOwner: PublicKey, authority: PublicKey, payer: PublicKey): Promise<TxResult>;
|
|
609
|
+
/**
|
|
610
|
+
* Build addToWhitelist tx — authority (admin/owner) signs externally.
|
|
611
|
+
* Whitelist members can call editMarketFee / setQuestionFee.
|
|
612
|
+
*/
|
|
613
|
+
/** Build addToWhitelist tx — authority (admin/owner) signs externally. */
|
|
614
|
+
buildAddToWhitelistTx(address: PublicKey, feeConfigOwner: PublicKey, authority: PublicKey): Promise<Transaction>;
|
|
615
|
+
/** Build removeFromWhitelist tx — authority (admin/owner) signs externally. */
|
|
616
|
+
buildRemoveFromWhitelistTx(address: PublicKey, feeConfigOwner: PublicKey, authority: PublicKey): Promise<Transaction>;
|
|
617
|
+
/** Build setAdmin tx — only owner signs externally. */
|
|
618
|
+
buildSetAdminTx(newAdmin: PublicKey, feeConfigOwner: PublicKey, authority: PublicKey): Promise<Transaction>;
|
|
609
619
|
}
|
|
610
620
|
|
|
611
621
|
declare class ClobClient {
|
package/dist/index.d.ts
CHANGED
|
@@ -606,6 +606,16 @@ declare class FeeManagementClient {
|
|
|
606
606
|
buildEditMarketFeeTx(conditionPda: PublicKey, mergeFee: BN, redeemFee: BN, swapFee: BN, feeConfigOwner: PublicKey, authority: PublicKey, payer?: PublicKey): Promise<Transaction>;
|
|
607
607
|
/** @deprecated use buildEditMarketFeeTx */
|
|
608
608
|
setQuestionFee(conditionPda: PublicKey, mergeFee: BN, redeemFee: BN, swapFee: BN, feeConfigOwner: PublicKey, authority: PublicKey, payer: PublicKey): Promise<TxResult>;
|
|
609
|
+
/**
|
|
610
|
+
* Build addToWhitelist tx — authority (admin/owner) signs externally.
|
|
611
|
+
* Whitelist members can call editMarketFee / setQuestionFee.
|
|
612
|
+
*/
|
|
613
|
+
/** Build addToWhitelist tx — authority (admin/owner) signs externally. */
|
|
614
|
+
buildAddToWhitelistTx(address: PublicKey, feeConfigOwner: PublicKey, authority: PublicKey): Promise<Transaction>;
|
|
615
|
+
/** Build removeFromWhitelist tx — authority (admin/owner) signs externally. */
|
|
616
|
+
buildRemoveFromWhitelistTx(address: PublicKey, feeConfigOwner: PublicKey, authority: PublicKey): Promise<Transaction>;
|
|
617
|
+
/** Build setAdmin tx — only owner signs externally. */
|
|
618
|
+
buildSetAdminTx(newAdmin: PublicKey, feeConfigOwner: PublicKey, authority: PublicKey): Promise<Transaction>;
|
|
609
619
|
}
|
|
610
620
|
|
|
611
621
|
declare class ClobClient {
|
package/dist/index.js
CHANGED
|
@@ -2752,6 +2752,25 @@ var FeeManagementClient = class {
|
|
|
2752
2752
|
}).signers([]).rpc();
|
|
2753
2753
|
return { signature: sig };
|
|
2754
2754
|
}
|
|
2755
|
+
/**
|
|
2756
|
+
* Build addToWhitelist tx — authority (admin/owner) signs externally.
|
|
2757
|
+
* Whitelist members can call editMarketFee / setQuestionFee.
|
|
2758
|
+
*/
|
|
2759
|
+
/** Build addToWhitelist tx — authority (admin/owner) signs externally. */
|
|
2760
|
+
async buildAddToWhitelistTx(address, feeConfigOwner, authority) {
|
|
2761
|
+
const [feeConfigPda] = PDA.feeConfig(feeConfigOwner, this.programIds);
|
|
2762
|
+
return this.program.methods.addToWhitelist(address).accounts({ authority, feeConfig: feeConfigPda }).transaction();
|
|
2763
|
+
}
|
|
2764
|
+
/** Build removeFromWhitelist tx — authority (admin/owner) signs externally. */
|
|
2765
|
+
async buildRemoveFromWhitelistTx(address, feeConfigOwner, authority) {
|
|
2766
|
+
const [feeConfigPda] = PDA.feeConfig(feeConfigOwner, this.programIds);
|
|
2767
|
+
return this.program.methods.removeFromWhitelist(address).accounts({ authority, feeConfig: feeConfigPda }).transaction();
|
|
2768
|
+
}
|
|
2769
|
+
/** Build setAdmin tx — only owner signs externally. */
|
|
2770
|
+
async buildSetAdminTx(newAdmin, feeConfigOwner, authority) {
|
|
2771
|
+
const [feeConfigPda] = PDA.feeConfig(feeConfigOwner, this.programIds);
|
|
2772
|
+
return this.program.methods.setAdmin(newAdmin).accounts({ authority, feeConfig: feeConfigPda }).transaction();
|
|
2773
|
+
}
|
|
2755
2774
|
};
|
|
2756
2775
|
var PresaleClient = class {
|
|
2757
2776
|
constructor(program, provider, programIds) {
|
|
@@ -10977,11 +10996,6 @@ var fee_management_default = {
|
|
|
10977
10996
|
name: "authority",
|
|
10978
10997
|
signer: true
|
|
10979
10998
|
},
|
|
10980
|
-
{
|
|
10981
|
-
name: "payer",
|
|
10982
|
-
writable: true,
|
|
10983
|
-
signer: true
|
|
10984
|
-
},
|
|
10985
10999
|
{
|
|
10986
11000
|
name: "fee_config",
|
|
10987
11001
|
writable: true,
|
|
@@ -11273,11 +11287,6 @@ var fee_management_default = {
|
|
|
11273
11287
|
name: "authority",
|
|
11274
11288
|
signer: true
|
|
11275
11289
|
},
|
|
11276
|
-
{
|
|
11277
|
-
name: "payer",
|
|
11278
|
-
writable: true,
|
|
11279
|
-
signer: true
|
|
11280
|
-
},
|
|
11281
11290
|
{
|
|
11282
11291
|
name: "fee_config",
|
|
11283
11292
|
writable: true,
|
|
@@ -11331,11 +11340,6 @@ var fee_management_default = {
|
|
|
11331
11340
|
name: "authority",
|
|
11332
11341
|
signer: true
|
|
11333
11342
|
},
|
|
11334
|
-
{
|
|
11335
|
-
name: "payer",
|
|
11336
|
-
writable: true,
|
|
11337
|
-
signer: true
|
|
11338
|
-
},
|
|
11339
11343
|
{
|
|
11340
11344
|
name: "fee_config",
|
|
11341
11345
|
writable: true,
|