@thesingularitynetwork/darkswap-sdk 0.1.1 → 0.1.2
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.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +27 -19
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/config/index.d.ts +3 -0
- package/dist/{src → types/src}/index.d.ts +3 -0
- package/package.json +5 -8
- package/src/config/index.ts +3 -0
- package/src/index.ts +3 -0
- /package/dist/{src → types/src}/config/chain.d.ts +0 -0
- /package/dist/{src → types/src}/config/config.d.ts +0 -0
- /package/dist/{src → types/src}/config/contractConfig.d.ts +0 -0
- /package/dist/{src → types/src}/darkSwap.d.ts +0 -0
- /package/dist/{src → types/src}/entities/error.d.ts +0 -0
- /package/dist/{src → types/src}/entities/index.d.ts +0 -0
- /package/dist/{src → types/src}/entities/token.d.ts +0 -0
- /package/dist/{src → types/src}/entities/types.d.ts +0 -0
- /package/dist/{src → types/src}/proof/baseProofService.d.ts +0 -0
- /package/dist/{src → types/src}/proof/basic/depositProof.d.ts +0 -0
- /package/dist/{src → types/src}/proof/basic/joinProof.d.ts +0 -0
- /package/dist/{src → types/src}/proof/basic/tripleJoinProof.d.ts +0 -0
- /package/dist/{src → types/src}/proof/basic/withdrawProof.d.ts +0 -0
- /package/dist/{src → types/src}/proof/keyService.d.ts +0 -0
- /package/dist/{src → types/src}/proof/noteService.d.ts +0 -0
- /package/dist/{src → types/src}/proof/pro/orders/cancelOrderProof.d.ts +0 -0
- /package/dist/{src → types/src}/proof/pro/orders/createOrderProof.d.ts +0 -0
- /package/dist/{src → types/src}/proof/pro/orders/swapProof.d.ts +0 -0
- /package/dist/{src → types/src}/proof/retail/cancelOrderProof.d.ts +0 -0
- /package/dist/{src → types/src}/proof/retail/depositOrderProof.d.ts +0 -0
- /package/dist/{src → types/src}/proof/retail/swapProof.d.ts +0 -0
- /package/dist/{src → types/src}/services/BaseService.d.ts +0 -0
- /package/dist/{src → types/src}/services/EventService.d.ts +0 -0
- /package/dist/{src → types/src}/services/base/deposit.d.ts +0 -0
- /package/dist/{src → types/src}/services/base/index.d.ts +0 -0
- /package/dist/{src → types/src}/services/base/join.d.ts +0 -0
- /package/dist/{src → types/src}/services/base/tripleJoin.d.ts +0 -0
- /package/dist/{src → types/src}/services/base/withdraw.d.ts +0 -0
- /package/dist/{src → types/src}/services/index.d.ts +0 -0
- /package/dist/{src → types/src}/services/merkletree.d.ts +0 -0
- /package/dist/{src → types/src}/services/noteService.d.ts +0 -0
- /package/dist/{src → types/src}/services/pro/cancelOrder.d.ts +0 -0
- /package/dist/{src → types/src}/services/pro/createOrder.d.ts +0 -0
- /package/dist/{src → types/src}/services/pro/index.d.ts +0 -0
- /package/dist/{src → types/src}/services/pro/proSwap.d.ts +0 -0
- /package/dist/{src → types/src}/services/retail/cancelAndWithdrawOrder.d.ts +0 -0
- /package/dist/{src → types/src}/services/retail/depositAndCreateOrder.d.ts +0 -0
- /package/dist/{src → types/src}/services/retail/index.d.ts +0 -0
- /package/dist/{src → types/src}/types.d.ts +0 -0
- /package/dist/{src → types/src}/utils/constants.d.ts +0 -0
- /package/dist/{src → types/src}/utils/encoders.d.ts +0 -0
- /package/dist/{src → types/src}/utils/formatters.d.ts +0 -0
- /package/dist/{src → types/src}/utils/mimc.d.ts +0 -0
- /package/dist/{src → types/src}/utils/proofUtils.d.ts +0 -0
- /package/dist/{src → types/src}/utils/util.d.ts +0 -0
- /package/dist/{test → types/test}/proof/depositProof.test.d.ts +0 -0
- /package/dist/{test → types/test}/proof/keyService.test.d.ts +0 -0
- /package/dist/{test → types/test}/proof/retail/cancelOrderProof.test.d.ts +0 -0
- /package/dist/{test → types/test}/proof/retail/createOrderProof.test.d.ts +0 -0
- /package/dist/{test → types/test}/services/depositService.test.d.ts +0 -0
- /package/dist/{test → types/test}/utils/helpers.d.ts +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -5183,5 +5183,5 @@ class DarkSwap {
|
|
|
5183
5183
|
}
|
|
5184
5184
|
}
|
|
5185
5185
|
|
|
5186
|
-
export { DarkSwap, DarkSwapError, DepositContext, DepositService, EMPTY_PATH, JoinService, NoteOnChainStatus, ProCreateOrderService, RetailCancelOrderService, RetailCreateOrderService, TripleJoinService, WithdrawService, getMerklePathAndRoot, getNoteOnChainStatusByPublicKey, hexlify32, isAddressEquals, isHexEquals, isNativeAsset, isNoteActive, isNoteSpent, isNoteValid, multiGetMerklePathAndRoot };
|
|
5186
|
+
export { ChainId, DarkSwap, DarkSwapError, DarkSwapProofError, DepositContext, DepositService, EMPTY_FOOTER, EMPTY_NULLIFIER, EMPTY_PATH, FEE_RATIO, FEE_RATIO_PRECISION, JoinService, NoteOnChainStatus, PROOF_DOMAIN, ProCreateOrderService, RetailCancelOrderService, RetailCreateOrderService, TripleJoinService, WithdrawService, contractConfig, generateKeyPair, getMerklePathAndRoot, getNoteOnChainStatusByPublicKey, hexlify32, isAddressEquals, isHexEquals, isNativeAsset, isNoteActive, isNoteSpent, isNoteValid, legacyTokenConfig, multiGetMerklePathAndRoot };
|
|
5187
5187
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/index.js
CHANGED
|
@@ -5183,5 +5183,5 @@ class DarkSwap {
|
|
|
5183
5183
|
}
|
|
5184
5184
|
}
|
|
5185
5185
|
|
|
5186
|
-
export { DarkSwap, DarkSwapError, DepositContext, DepositService, EMPTY_PATH, JoinService, NoteOnChainStatus, ProCreateOrderService, RetailCancelOrderService, RetailCreateOrderService, TripleJoinService, WithdrawService, getMerklePathAndRoot, getNoteOnChainStatusByPublicKey, hexlify32, isAddressEquals, isHexEquals, isNativeAsset, isNoteActive, isNoteSpent, isNoteValid, multiGetMerklePathAndRoot };
|
|
5186
|
+
export { ChainId, DarkSwap, DarkSwapError, DarkSwapProofError, DepositContext, DepositService, EMPTY_FOOTER, EMPTY_NULLIFIER, EMPTY_PATH, FEE_RATIO, FEE_RATIO_PRECISION, JoinService, NoteOnChainStatus, PROOF_DOMAIN, ProCreateOrderService, RetailCancelOrderService, RetailCreateOrderService, TripleJoinService, WithdrawService, contractConfig, generateKeyPair, getMerklePathAndRoot, getNoteOnChainStatusByPublicKey, hexlify32, isAddressEquals, isHexEquals, isNativeAsset, isNoteActive, isNoteSpent, isNoteValid, legacyTokenConfig, multiGetMerklePathAndRoot };
|
|
5187
5187
|
//# sourceMappingURL=index.js.map
|
package/dist/index.umd.js
CHANGED
|
@@ -2411,7 +2411,7 @@
|
|
|
2411
2411
|
var ERC20_USDT = {
|
|
2412
2412
|
abi: abi$6};
|
|
2413
2413
|
|
|
2414
|
-
|
|
2414
|
+
exports.ChainId = void 0;
|
|
2415
2415
|
(function (ChainId) {
|
|
2416
2416
|
ChainId[ChainId["HARDHAT"] = 31337] = "HARDHAT";
|
|
2417
2417
|
ChainId[ChainId["HARDHAT_ARBITRUM"] = 31338] = "HARDHAT_ARBITRUM";
|
|
@@ -2420,11 +2420,11 @@
|
|
|
2420
2420
|
ChainId[ChainId["SEPOLIA"] = 11155111] = "SEPOLIA";
|
|
2421
2421
|
ChainId[ChainId["ARBITRUM_ONE"] = 42161] = "ARBITRUM_ONE";
|
|
2422
2422
|
ChainId[ChainId["BASE"] = 8453] = "BASE";
|
|
2423
|
-
})(ChainId || (ChainId = {}));
|
|
2423
|
+
})(exports.ChainId || (exports.ChainId = {}));
|
|
2424
2424
|
|
|
2425
2425
|
const legacyTokenConfig = {
|
|
2426
|
-
[ChainId.MAINNET]: ['0xdac17f958d2ee523a2206206994597c13d831ec7'],
|
|
2427
|
-
[ChainId.HARDHAT]: ['0xdac17f958d2ee523a2206206994597c13d831ec7']
|
|
2426
|
+
[exports.ChainId.MAINNET]: ['0xdac17f958d2ee523a2206206994597c13d831ec7'],
|
|
2427
|
+
[exports.ChainId.HARDHAT]: ['0xdac17f958d2ee523a2206206994597c13d831ec7']
|
|
2428
2428
|
};
|
|
2429
2429
|
const FEE_RATIO = 300n;
|
|
2430
2430
|
|
|
@@ -2633,7 +2633,7 @@
|
|
|
2633
2633
|
brillig_names: brillig_names$5
|
|
2634
2634
|
};
|
|
2635
2635
|
|
|
2636
|
-
|
|
2636
|
+
exports.PROOF_DOMAIN = void 0;
|
|
2637
2637
|
(function (PROOF_DOMAIN) {
|
|
2638
2638
|
PROOF_DOMAIN[PROOF_DOMAIN["DEPOSIT"] = 10001] = "DEPOSIT";
|
|
2639
2639
|
PROOF_DOMAIN[PROOF_DOMAIN["WITHDRAW"] = 10002] = "WITHDRAW";
|
|
@@ -2645,7 +2645,7 @@
|
|
|
2645
2645
|
PROOF_DOMAIN[PROOF_DOMAIN["JOIN"] = 10008] = "JOIN";
|
|
2646
2646
|
PROOF_DOMAIN[PROOF_DOMAIN["TRIPLE_JOIN"] = 10009] = "TRIPLE_JOIN";
|
|
2647
2647
|
PROOF_DOMAIN[PROOF_DOMAIN["RETAIL_SWAP"] = 10010] = "RETAIL_SWAP";
|
|
2648
|
-
})(PROOF_DOMAIN || (PROOF_DOMAIN = {}));
|
|
2648
|
+
})(exports.PROOF_DOMAIN || (exports.PROOF_DOMAIN = {}));
|
|
2649
2649
|
const EMPTY_NULLIFIER = 0n;
|
|
2650
2650
|
const EMPTY_FOOTER = 0n;
|
|
2651
2651
|
const FEE_RATIO_PRECISION = 1000000n;
|
|
@@ -2713,7 +2713,7 @@
|
|
|
2713
2713
|
const newBalanceFooter = getNoteFooter(param.newBalanceNote.rho, [fuzkPubKeyX, fuzkPubKeyY]);
|
|
2714
2714
|
const addressMod = encodeAddress(param.address);
|
|
2715
2715
|
const message = bn_to_hex(mimc_bn254([
|
|
2716
|
-
BigInt(PROOF_DOMAIN.DEPOSIT),
|
|
2716
|
+
BigInt(exports.PROOF_DOMAIN.DEPOSIT),
|
|
2717
2717
|
oldBalanceNullifier,
|
|
2718
2718
|
addressMod,
|
|
2719
2719
|
param.newBalanceNote.note,
|
|
@@ -3187,7 +3187,7 @@
|
|
|
3187
3187
|
const addressMod = encodeAddress(param.address);
|
|
3188
3188
|
const assetMod = encodeAddress(param.oldBalance.asset);
|
|
3189
3189
|
const message = bn_to_hex(mimc_bn254([
|
|
3190
|
-
BigInt(PROOF_DOMAIN.WITHDRAW),
|
|
3190
|
+
BigInt(exports.PROOF_DOMAIN.WITHDRAW),
|
|
3191
3191
|
addressMod,
|
|
3192
3192
|
oldBalanceNullifier,
|
|
3193
3193
|
param.newBalance.note,
|
|
@@ -3579,7 +3579,7 @@
|
|
|
3579
3579
|
const outNoteFooter = getNoteFooter(param.outNote.rho, [fuzkPubKeyX, fuzkPubKeyY]);
|
|
3580
3580
|
const addressMod = encodeAddress(param.address);
|
|
3581
3581
|
const message = bn_to_hex(mimc_bn254([
|
|
3582
|
-
BigInt(PROOF_DOMAIN.JOIN),
|
|
3582
|
+
BigInt(exports.PROOF_DOMAIN.JOIN),
|
|
3583
3583
|
inNullifier1,
|
|
3584
3584
|
inNullifier2,
|
|
3585
3585
|
param.outNote.note,
|
|
@@ -4043,7 +4043,7 @@
|
|
|
4043
4043
|
const outNoteFooter = getNoteFooter(param.outNote.rho, [fuzkPubKeyX, fuzkPubKeyY]);
|
|
4044
4044
|
const addressMod = encodeAddress(param.address);
|
|
4045
4045
|
const message = bn_to_hex(mimc_bn254([
|
|
4046
|
-
BigInt(PROOF_DOMAIN.TRIPLE_JOIN),
|
|
4046
|
+
BigInt(exports.PROOF_DOMAIN.TRIPLE_JOIN),
|
|
4047
4047
|
inNullifier1,
|
|
4048
4048
|
inNullifier2,
|
|
4049
4049
|
inNullifier3,
|
|
@@ -4245,7 +4245,7 @@
|
|
|
4245
4245
|
const orderNoteFooter = getNoteFooter(param.orderNote.rho, [fuzkPubKeyX, fuzkPubKeyY]);
|
|
4246
4246
|
const addressMod = encodeAddress(param.address);
|
|
4247
4247
|
const message = bn_to_hex(mimc_bn254([
|
|
4248
|
-
BigInt(PROOF_DOMAIN.PRO_CREATE_ORDER),
|
|
4248
|
+
BigInt(exports.PROOF_DOMAIN.PRO_CREATE_ORDER),
|
|
4249
4249
|
oldBalanceNullifier,
|
|
4250
4250
|
addressMod,
|
|
4251
4251
|
param.newBalanceNote.note,
|
|
@@ -4621,7 +4621,7 @@
|
|
|
4621
4621
|
const nullifier = calcNullifier(param.orderNote.rho, [fuzkPubKeyX, fuzkPubKeyY]);
|
|
4622
4622
|
const addressMod = encodeAddress(param.address);
|
|
4623
4623
|
const message = bn_to_hex(mimc_bn254([
|
|
4624
|
-
BigInt(PROOF_DOMAIN.RETAIL_CANCEL_ORDER),
|
|
4624
|
+
BigInt(exports.PROOF_DOMAIN.RETAIL_CANCEL_ORDER),
|
|
4625
4625
|
addressMod,
|
|
4626
4626
|
nullifier,
|
|
4627
4627
|
param.orderNote.feeRatio,
|
|
@@ -4916,7 +4916,7 @@
|
|
|
4916
4916
|
const addressMod = encodeAddress(address);
|
|
4917
4917
|
calcNullifier(orderNote.rho, pubKey);
|
|
4918
4918
|
const message = bn_to_hex(mimc_bn254([
|
|
4919
|
-
BigInt(PROOF_DOMAIN.RETAIL_CREATE_ORDER),
|
|
4919
|
+
BigInt(exports.PROOF_DOMAIN.RETAIL_CREATE_ORDER),
|
|
4920
4920
|
addressMod,
|
|
4921
4921
|
orderNote.note,
|
|
4922
4922
|
orderNote.feeRatio,
|
|
@@ -4944,7 +4944,7 @@
|
|
|
4944
4944
|
const swapInNoteFooter = getNoteFooter(param.swapInNote.rho, [fuzkPubKeyX, fuzkPubKeyY]);
|
|
4945
4945
|
const addressMod = encodeAddress(param.address);
|
|
4946
4946
|
const message = bn_to_hex(mimc_bn254([
|
|
4947
|
-
BigInt(PROOF_DOMAIN.RETAIL_CREATE_ORDER),
|
|
4947
|
+
BigInt(exports.PROOF_DOMAIN.RETAIL_CREATE_ORDER),
|
|
4948
4948
|
addressMod,
|
|
4949
4949
|
param.depositNote.note,
|
|
4950
4950
|
param.depositNote.feeRatio,
|
|
@@ -5091,7 +5091,7 @@
|
|
|
5091
5091
|
}
|
|
5092
5092
|
|
|
5093
5093
|
const contractConfig = {
|
|
5094
|
-
[ChainId.MAINNET]: {
|
|
5094
|
+
[exports.ChainId.MAINNET]: {
|
|
5095
5095
|
priceOracle: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8',
|
|
5096
5096
|
ethAddress: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
|
|
5097
5097
|
nativeWrapper: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -5100,7 +5100,7 @@
|
|
|
5100
5100
|
darkSwapFeeAssetManager: '0x0', //FIXME
|
|
5101
5101
|
drakpoolSubgraphUrl: 'https://subgraph.satsuma-prod.com/1c6a44a9ed6e/pgs-team--611591/singularity-subgraph/version/v0.0.1/api',
|
|
5102
5102
|
},
|
|
5103
|
-
[ChainId.ARBITRUM_ONE]: {
|
|
5103
|
+
[exports.ChainId.ARBITRUM_ONE]: {
|
|
5104
5104
|
priceOracle: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8',
|
|
5105
5105
|
ethAddress: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
|
|
5106
5106
|
nativeWrapper: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1',
|
|
@@ -5109,7 +5109,7 @@
|
|
|
5109
5109
|
darkSwapFeeAssetManager: '0x0', //FIXME
|
|
5110
5110
|
drakpoolSubgraphUrl: 'https://subgraph.satsuma-prod.com/1c6a44a9ed6e/pgs-team--611591/singularity-arb-subgraph/api'
|
|
5111
5111
|
},
|
|
5112
|
-
[ChainId.BASE]: {
|
|
5112
|
+
[exports.ChainId.BASE]: {
|
|
5113
5113
|
priceOracle: '0xf224a25453D76A41c4427DD1C05369BC9f498444',
|
|
5114
5114
|
ethAddress: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
|
|
5115
5115
|
nativeWrapper: '0x4200000000000000000000000000000000000006',
|
|
@@ -5118,7 +5118,7 @@
|
|
|
5118
5118
|
darkSwapFeeAssetManager: '0x0', //FIXME
|
|
5119
5119
|
drakpoolSubgraphUrl: 'https://subgraph.satsuma-prod.com/1c6a44a9ed6e/pgs-team--611591/singularity-base-subgraph/api'
|
|
5120
5120
|
},
|
|
5121
|
-
[ChainId.SEPOLIA]: {
|
|
5121
|
+
[exports.ChainId.SEPOLIA]: {
|
|
5122
5122
|
priceOracle: '0x4Fe44a9aC8Ef059Be2dB97f9e3bcA32Ab698C2f2',
|
|
5123
5123
|
ethAddress: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
|
|
5124
5124
|
nativeWrapper: '0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14',
|
|
@@ -5127,7 +5127,7 @@
|
|
|
5127
5127
|
darkSwapFeeAssetManager: '0x0', //FIXME
|
|
5128
5128
|
drakpoolSubgraphUrl: ''
|
|
5129
5129
|
},
|
|
5130
|
-
[ChainId.HARDHAT]: {
|
|
5130
|
+
[exports.ChainId.HARDHAT]: {
|
|
5131
5131
|
priceOracle: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8',
|
|
5132
5132
|
ethAddress: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
|
|
5133
5133
|
nativeWrapper: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
@@ -5185,15 +5185,22 @@
|
|
|
5185
5185
|
|
|
5186
5186
|
exports.DarkSwap = DarkSwap;
|
|
5187
5187
|
exports.DarkSwapError = DarkSwapError;
|
|
5188
|
+
exports.DarkSwapProofError = DarkSwapProofError;
|
|
5188
5189
|
exports.DepositContext = DepositContext;
|
|
5189
5190
|
exports.DepositService = DepositService;
|
|
5191
|
+
exports.EMPTY_FOOTER = EMPTY_FOOTER;
|
|
5192
|
+
exports.EMPTY_NULLIFIER = EMPTY_NULLIFIER;
|
|
5190
5193
|
exports.EMPTY_PATH = EMPTY_PATH;
|
|
5194
|
+
exports.FEE_RATIO = FEE_RATIO;
|
|
5195
|
+
exports.FEE_RATIO_PRECISION = FEE_RATIO_PRECISION;
|
|
5191
5196
|
exports.JoinService = JoinService;
|
|
5192
5197
|
exports.ProCreateOrderService = ProCreateOrderService;
|
|
5193
5198
|
exports.RetailCancelOrderService = RetailCancelOrderService;
|
|
5194
5199
|
exports.RetailCreateOrderService = RetailCreateOrderService;
|
|
5195
5200
|
exports.TripleJoinService = TripleJoinService;
|
|
5196
5201
|
exports.WithdrawService = WithdrawService;
|
|
5202
|
+
exports.contractConfig = contractConfig;
|
|
5203
|
+
exports.generateKeyPair = generateKeyPair;
|
|
5197
5204
|
exports.getMerklePathAndRoot = getMerklePathAndRoot;
|
|
5198
5205
|
exports.getNoteOnChainStatusByPublicKey = getNoteOnChainStatusByPublicKey;
|
|
5199
5206
|
exports.hexlify32 = hexlify32;
|
|
@@ -5203,6 +5210,7 @@
|
|
|
5203
5210
|
exports.isNoteActive = isNoteActive;
|
|
5204
5211
|
exports.isNoteSpent = isNoteSpent;
|
|
5205
5212
|
exports.isNoteValid = isNoteValid;
|
|
5213
|
+
exports.legacyTokenConfig = legacyTokenConfig;
|
|
5206
5214
|
exports.multiGetMerklePathAndRoot = multiGetMerklePathAndRoot;
|
|
5207
5215
|
|
|
5208
5216
|
}));
|
package/dist/index.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
"version": "0.1.2",
|
|
7
4
|
"description": "DarkSwap SDK for browser and Node.js",
|
|
8
5
|
"type": "module",
|
|
6
|
+
"types": "dist/types/index.d.ts",
|
|
9
7
|
"main": "dist/index.js",
|
|
10
|
-
"types": "dist/index.d.ts",
|
|
11
|
-
"module": "dist/index.esm.js",
|
|
12
8
|
"files": [
|
|
13
9
|
"dist",
|
|
14
10
|
"src"
|
|
15
11
|
],
|
|
16
12
|
"scripts": {
|
|
17
|
-
"build": "
|
|
13
|
+
"build:types": "tsc -p tsconfig.json",
|
|
14
|
+
"build:js": "rollup -c",
|
|
15
|
+
"build": "yarn build:types && yarn build:js",
|
|
18
16
|
"dev": "rollup -c --bundleConfigAsCjs -w",
|
|
19
17
|
"test": "vitest",
|
|
20
18
|
"lint": "eslint src --ext .ts",
|
|
@@ -39,7 +37,6 @@
|
|
|
39
37
|
"eslint": "^9.27.0",
|
|
40
38
|
"prettier": "^3.5.3",
|
|
41
39
|
"rollup": "^4.41.1",
|
|
42
|
-
"rollup-plugin-dts": "^6.2.1",
|
|
43
40
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
44
41
|
"ts-node": "^10.9.2",
|
|
45
42
|
"typescript": "^5.8.3",
|
package/src/index.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|