@wopr-network/crypto-plugins 1.0.1 → 1.0.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.
Files changed (70) hide show
  1. package/.github/workflows/ci.yml +0 -2
  2. package/dist/bitcoin/encoder.d.ts +1 -1
  3. package/dist/bitcoin/encoder.d.ts.map +1 -1
  4. package/dist/bitcoin/index.d.ts +1 -1
  5. package/dist/bitcoin/index.d.ts.map +1 -1
  6. package/dist/dogecoin/encoder.d.ts +1 -1
  7. package/dist/dogecoin/encoder.d.ts.map +1 -1
  8. package/dist/dogecoin/index.d.ts +1 -1
  9. package/dist/dogecoin/index.d.ts.map +1 -1
  10. package/dist/evm/encoder.d.ts +1 -1
  11. package/dist/evm/encoder.d.ts.map +1 -1
  12. package/dist/evm/eth-watcher.d.ts +1 -1
  13. package/dist/evm/eth-watcher.d.ts.map +1 -1
  14. package/dist/evm/index.d.ts +1 -1
  15. package/dist/evm/index.d.ts.map +1 -1
  16. package/dist/evm/watcher.d.ts +1 -1
  17. package/dist/evm/watcher.d.ts.map +1 -1
  18. package/dist/litecoin/encoder.d.ts +1 -1
  19. package/dist/litecoin/encoder.d.ts.map +1 -1
  20. package/dist/litecoin/index.d.ts +1 -1
  21. package/dist/litecoin/index.d.ts.map +1 -1
  22. package/dist/shared/test-helpers/index.d.ts +1 -1
  23. package/dist/shared/test-helpers/index.d.ts.map +1 -1
  24. package/dist/shared/utxo/watcher.d.ts +1 -1
  25. package/dist/shared/utxo/watcher.d.ts.map +1 -1
  26. package/dist/solana/encoder.d.ts +1 -1
  27. package/dist/solana/encoder.d.ts.map +1 -1
  28. package/dist/solana/index.d.ts +1 -1
  29. package/dist/solana/index.d.ts.map +1 -1
  30. package/dist/solana/sweeper.d.ts +1 -1
  31. package/dist/solana/sweeper.d.ts.map +1 -1
  32. package/dist/solana/watcher.d.ts +1 -1
  33. package/dist/solana/watcher.d.ts.map +1 -1
  34. package/dist/sweep/evm-sweeper.d.ts +1 -1
  35. package/dist/sweep/evm-sweeper.d.ts.map +1 -1
  36. package/dist/sweep/tron-sweeper.d.ts +1 -1
  37. package/dist/sweep/tron-sweeper.d.ts.map +1 -1
  38. package/dist/sweep/utxo-sweeper.d.ts +1 -1
  39. package/dist/sweep/utxo-sweeper.d.ts.map +1 -1
  40. package/dist/tron/encoder.d.ts +1 -1
  41. package/dist/tron/encoder.d.ts.map +1 -1
  42. package/dist/tron/index.d.ts +1 -1
  43. package/dist/tron/index.d.ts.map +1 -1
  44. package/dist/tron/watcher.d.ts +1 -1
  45. package/dist/tron/watcher.d.ts.map +1 -1
  46. package/package.json +3 -3
  47. package/src/__tests__/registry.test.ts +1 -1
  48. package/src/bitcoin/encoder.ts +1 -1
  49. package/src/bitcoin/index.ts +1 -1
  50. package/src/dogecoin/encoder.ts +1 -1
  51. package/src/dogecoin/index.ts +1 -1
  52. package/src/evm/encoder.ts +1 -1
  53. package/src/evm/eth-watcher.ts +1 -1
  54. package/src/evm/index.ts +1 -1
  55. package/src/evm/watcher.ts +1 -1
  56. package/src/litecoin/encoder.ts +1 -1
  57. package/src/litecoin/index.ts +1 -1
  58. package/src/shared/test-helpers/index.ts +1 -1
  59. package/src/shared/utxo/watcher.ts +1 -1
  60. package/src/solana/encoder.ts +1 -1
  61. package/src/solana/index.ts +1 -1
  62. package/src/solana/sweeper.ts +1 -1
  63. package/src/solana/watcher.ts +1 -1
  64. package/src/sweep/evm-sweeper.ts +1 -1
  65. package/src/sweep/index.ts +1 -1
  66. package/src/sweep/tron-sweeper.ts +1 -1
  67. package/src/sweep/utxo-sweeper.ts +1 -1
  68. package/src/tron/encoder.ts +1 -1
  69. package/src/tron/index.ts +1 -1
  70. package/src/tron/watcher.ts +1 -1
@@ -13,8 +13,6 @@ jobs:
13
13
  - uses: actions/checkout@v4
14
14
 
15
15
  - uses: pnpm/action-setup@v4
16
- with:
17
- version: 9
18
16
 
19
17
  - uses: actions/setup-node@v4
20
18
  with:
@@ -1,4 +1,4 @@
1
- import type { IAddressEncoder } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IAddressEncoder } from "@wopr-network/platform-crypto-server/plugin";
2
2
  /** HASH160 = RIPEMD-160(SHA-256(data)). Standard Bitcoin address hash. */
3
3
  export declare function hash160(data: Uint8Array): Uint8Array;
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"encoder.d.ts","sourceRoot":"","sources":["../../src/bitcoin/encoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAkSjG,0EAA0E;AAC1E,wBAAgB,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAEpD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAK9E;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,eAQ3B,CAAC"}
1
+ {"version":3,"file":"encoder.d.ts","sourceRoot":"","sources":["../../src/bitcoin/encoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAkSnG,0EAA0E;AAC1E,wBAAgB,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAEpD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAK9E;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,eAQ3B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { IChainPlugin } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainPlugin } from "@wopr-network/platform-crypto-server/plugin";
2
2
  export { bech32Encoder, encodeBech32Address, hash160 } from "./encoder.js";
3
3
  export declare const bitcoinPlugin: IChainPlugin;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bitcoin/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,2CAA2C,CAAC;AAM3F,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE3E,eAAO,MAAM,aAAa,EAAE,YAc3B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bitcoin/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,6CAA6C,CAAC;AAM7F,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE3E,eAAO,MAAM,aAAa,EAAE,YAc3B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { IAddressEncoder } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IAddressEncoder } from "@wopr-network/platform-crypto-server/plugin";
2
2
  /**
3
3
  * Encode a compressed public key as a P2PKH (Base58Check) address.
4
4
  * Used for DOGE (version 0x1e), etc.
@@ -1 +1 @@
1
- {"version":3,"file":"encoder.d.ts","sourceRoot":"","sources":["../../src/dogecoin/encoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,2CAA2C,CAAC;AA6HjG;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAUrF;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,eAQ1B,CAAC"}
1
+ {"version":3,"file":"encoder.d.ts","sourceRoot":"","sources":["../../src/dogecoin/encoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,6CAA6C,CAAC;AA6HnG;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAUrF;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,eAQ1B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { IChainPlugin } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainPlugin } from "@wopr-network/platform-crypto-server/plugin";
2
2
  export { encodeP2pkhAddress, p2pkhEncoder } from "./encoder.js";
3
3
  export declare const dogecoinPlugin: IChainPlugin;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dogecoin/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,2CAA2C,CAAC;AAM3F,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEhE,eAAO,MAAM,cAAc,EAAE,YAc5B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dogecoin/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,6CAA6C,CAAC;AAM7F,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEhE,eAAO,MAAM,cAAc,EAAE,YAc5B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-crypto-server/plugin";
2
2
  /** EVM address encoder implementing IAddressEncoder. */
3
3
  export declare class EvmAddressEncoder implements IAddressEncoder {
4
4
  encode(publicKey: Uint8Array, _params: EncodingParams): string;
@@ -1 +1 @@
1
- {"version":3,"file":"encoder.d.ts","sourceRoot":"","sources":["../../src/evm/encoder.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAqCjG,wDAAwD;AACxD,qBAAa,iBAAkB,YAAW,eAAe;IACxD,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,GAAG,MAAM;IAI9D,YAAY,IAAI,MAAM;CAGtB"}
1
+ {"version":3,"file":"encoder.d.ts","sourceRoot":"","sources":["../../src/evm/encoder.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAqCnG,wDAAwD;AACxD,qBAAa,iBAAkB,YAAW,eAAe;IACxD,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,GAAG,MAAM;IAI9D,YAAY,IAAI,MAAM;CAGtB"}
@@ -1,4 +1,4 @@
1
- import type { IChainWatcher, PaymentEvent, WatcherOpts } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainWatcher, PaymentEvent, WatcherOpts } from "@wopr-network/platform-crypto-server/plugin";
2
2
  /**
3
3
  * Native ETH transfer watcher.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"eth-watcher.d.ts","sourceRoot":"","sources":["../../src/evm/eth-watcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EAGb,YAAY,EACZ,WAAW,EACX,MAAM,2CAA2C,CAAC;AAsBnD;;;;;;;;;;GAUG;AACH,qBAAa,UAAW,YAAW,aAAa;IAC/C,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAU;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IACvC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,iBAAiB,CAAc;gBAE3B,IAAI,EAAE,WAAW;IAYvB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAK3B,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI;IAI9C,SAAS,IAAI,MAAM;IAInB,IAAI,IAAI,IAAI;IAIZ;;;;;;OAMG;IACG,IAAI,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;CAgFrC"}
1
+ {"version":3,"file":"eth-watcher.d.ts","sourceRoot":"","sources":["../../src/evm/eth-watcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EAGb,YAAY,EACZ,WAAW,EACX,MAAM,6CAA6C,CAAC;AAsBrD;;;;;;;;;;GAUG;AACH,qBAAa,UAAW,YAAW,aAAa;IAC/C,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAU;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IACvC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,iBAAiB,CAAc;gBAE3B,IAAI,EAAE,WAAW;IAYvB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAK3B,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI;IAI9C,SAAS,IAAI,MAAM;IAInB,IAAI,IAAI,IAAI;IAIZ;;;;;;OAMG;IACG,IAAI,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;CAgFrC"}
@@ -1,4 +1,4 @@
1
- import type { IChainPlugin } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainPlugin } from "@wopr-network/platform-crypto-server/plugin";
2
2
  export { EvmAddressEncoder } from "./encoder.js";
3
3
  export { EthWatcher } from "./eth-watcher.js";
4
4
  export type { ChainConfig, EvmChain, RpcCall, RpcLog, RpcTransaction, StablecoinToken, TokenConfig, } from "./types.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/evm/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAA4B,MAAM,2CAA2C,CAAC;AAKxG,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EACX,WAAW,EACX,QAAQ,EACR,OAAO,EACP,MAAM,EACN,cAAc,EACd,eAAe,EACf,WAAW,GACX,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI3D;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,EAAE,YAgBvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/evm/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAA4B,MAAM,6CAA6C,CAAC;AAK1G,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EACX,WAAW,EACX,QAAQ,EACR,OAAO,EACP,MAAM,EACN,cAAc,EACd,eAAe,EACf,WAAW,GACX,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI3D;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,EAAE,YAgBvB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { IChainWatcher, PaymentEvent, WatcherOpts } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainWatcher, PaymentEvent, WatcherOpts } from "@wopr-network/platform-crypto-server/plugin";
2
2
  import type { RpcCall } from "./types.js";
3
3
  /** Create an RPC caller for a given URL (plain JSON-RPC over fetch). */
4
4
  export declare function createRpcCaller(rpcUrl: string, extraHeaders?: Record<string, string>): RpcCall;
@@ -1 +1 @@
1
- {"version":3,"file":"watcher.d.ts","sourceRoot":"","sources":["../../src/evm/watcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EAEb,YAAY,EACZ,WAAW,EACX,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAU,MAAM,YAAY,CAAC;AAIlD,wEAAwE;AACxE,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAqB9F;AAUD;;;;;;GAMG;AACH,qBAAa,UAAW,YAAW,aAAa;IAC/C,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAU;IAC9B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IACvC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IACzC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,iBAAiB,CAAW;gBAExB,IAAI,EAAE,WAAW;IAavB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAK3B,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,I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"}
@@ -1,4 +1,4 @@
1
- import type { IAddressEncoder } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IAddressEncoder } from "@wopr-network/platform-crypto-server/plugin";
2
2
  /**
3
3
  * Litecoin bech32 address encoder.
4
4
  * Implements IAddressEncoder for the litecoin plugin.
@@ -1 +1 @@
1
- {"version":3,"file":"encoder.d.ts","sourceRoot":"","sources":["../../src/litecoin/encoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAIjG;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,eAQ3B,CAAC"}
1
+ {"version":3,"file":"encoder.d.ts","sourceRoot":"","sources":["../../src/litecoin/encoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAInG;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,eAQ3B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { IChainPlugin } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainPlugin } from "@wopr-network/platform-crypto-server/plugin";
2
2
  export { bech32Encoder } from "./encoder.js";
3
3
  export declare const litecoinPlugin: IChainPlugin;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/litecoin/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,2CAA2C,CAAC;AAM3F,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,eAAO,MAAM,cAAc,EAAE,YAc5B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/litecoin/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,6CAA6C,CAAC;AAM7F,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,eAAO,MAAM,cAAc,EAAE,YAc5B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { IPriceOracle, IWatcherCursorStore } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IPriceOracle, IWatcherCursorStore } from "@wopr-network/platform-crypto-server/plugin";
2
2
  /** In-memory mock cursor store for testing UTXO watchers. */
3
3
  export declare function createMockCursorStore(): IWatcherCursorStore & {
4
4
  _cursors: Map<string, number>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/test-helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEnG,6DAA6D;AAC7D,wBAAgB,qBAAqB,IAAI,mBAAmB,GAAG;IAC9D,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC,CAoBA;AAED,oDAAoD;AACpD,wBAAgB,gBAAgB,CAAC,WAAW,SAAkB,GAAG,YAAY,CAM5E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/test-helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAErG,6DAA6D;AAC7D,wBAAgB,qBAAqB,IAAI,mBAAmB,GAAG;IAC9D,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC,CAoBA;AAED,oDAAoD;AACpD,wBAAgB,gBAAgB,CAAC,WAAW,SAAkB,GAAG,YAAY,CAM5E"}
@@ -1,4 +1,4 @@
1
- import type { IChainWatcher, IPriceOracle, IWatcherCursorStore, PaymentEvent, WatcherOpts } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainWatcher, IPriceOracle, IWatcherCursorStore, PaymentEvent, WatcherOpts } from "@wopr-network/platform-crypto-server/plugin";
2
2
  import type { RpcCall } from "./types.js";
3
3
  export interface UtxoWatcherConfig {
4
4
  /** JSON-RPC call function for the node. */
@@ -1 +1 @@
1
- {"version":3,"file":"watcher.d.ts","sourceRoot":"","sources":["../../../src/shared/utxo/watcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,MAAM,2CAA2C,CAAC;AAEnD,OAAO,KAAK,EAKX,OAAO,EACP,MAAM,YAAY,CAAC;AAqBpB,MAAM,WAAW,iBAAiB;IACjC,2CAA2C;IAC3C,GAAG,EAAE,OAAO,CAAC;IACb,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,KAAK,EAAE,MAAM,CAAC;IACd,kFAAkF;IAClF,QAAQ,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,aAAa,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,MAAM,EAAE,YAAY,CAAC;IACrB,wDAAwD;IACxD,WAAW,EAAE,mBAAmB,CAAC;CACjC;AAED;;;;;GAKG;AACH,qBAAa,WAAY,YAAW,aAAa;IAChD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAU;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA0B;IACpD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,MAAM,CAA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AS;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,OAAO,CAAS;gBAEZ,MAAM,EAAE,iBAAiB;IAW/B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAM3B,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI;IAK9C,SAAS,IAAI,MAAM;IAInB,IAAI,IAAI,IAAI;IAIZ;;;OAGG;IACG,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBnD;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;CAwDrC;AAED,oEAAoE;AACpE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,OAAO,GAAG,aAAa,CAUhF"}
@@ -1,4 +1,4 @@
1
- import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-crypto-server/plugin";
2
2
  /**
3
3
  * Encode a Uint8Array as a Base58 string (Bitcoin/Solana alphabet).
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"encoder.d.ts","sourceRoot":"","sources":["../../src/solana/encoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAKjG;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAqCtD;AAeD,2DAA2D;AAC3D,qBAAa,oBAAqB,YAAW,eAAe;IAC3D,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,GAAG,MAAM;IAI9D,YAAY,IAAI,MAAM;CAGtB"}
1
+ {"version":3,"file":"encoder.d.ts","sourceRoot":"","sources":["../../src/solana/encoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAKnG;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAqCtD;AAeD,2DAA2D;AAC3D,qBAAa,oBAAqB,YAAW,eAAe;IAC3D,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,GAAG,MAAM;IAI9D,YAAY,IAAI,MAAM;CAGtB"}
@@ -1,4 +1,4 @@
1
- import type { IChainPlugin } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainPlugin } from "@wopr-network/platform-crypto-server/plugin";
2
2
  export { base58Encode, SolanaAddressEncoder } from "./encoder.js";
3
3
  export { SolanaSweeper } from "./sweeper.js";
4
4
  export type { SignatureInfo, SolanaRpcCall, SolanaTransaction, TokenBalance, TransactionMeta } from "./types.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/solana/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAA4B,MAAM,2CAA2C,CAAC;AAKxG,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACjH,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAIpE;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,EAAE,YAa1B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/solana/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAA4B,MAAM,6CAA6C,CAAC;AAK1G,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACjH,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAIpE;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,EAAE,YAa1B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { DepositInfo, ISweepStrategy, KeyPair, SweeperOpts, SweepResult } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { DepositInfo, ISweepStrategy, KeyPair, SweeperOpts, SweepResult } from "@wopr-network/platform-crypto-server/plugin";
2
2
  /**
3
3
  * Solana sweep strategy.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sweeper.d.ts","sourceRoot":"","sources":["../../src/solana/sweeper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,cAAc,EACd,OAAO,EACP,WAAW,EACX,WAAW,EACX,MAAM,2CAA2C,CAAC;AAOnD;;;;;GAKG;AACH,qBAAa,aAAc,YAAW,cAAc;IACnD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEtB,IAAI,EAAE,WAAW;IAQ7B;;;;;;OAMG;IACG,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAuDtE;;;;;;;OAOG;IACG,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IA6DvF;;;;;OAKG;YACW,iBAAiB;IAa/B;;;;;OAKG;YACW,iBAAiB;CAK/B"}
1
+ {"version":3,"file":"sweeper.d.ts","sourceRoot":"","sources":["../../src/solana/sweeper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,cAAc,EACd,OAAO,EACP,WAAW,EACX,WAAW,EACX,MAAM,6CAA6C,CAAC;AAOrD;;;;;GAKG;AACH,qBAAa,aAAc,YAAW,cAAc;IACnD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEtB,IAAI,EAAE,WAAW;IAQ7B;;;;;;OAMG;IACG,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAuDtE;;;;;;;OAOG;IACG,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IA6DvF;;;;;OAKG;YACW,iBAAiB;IAa/B;;;;;OAKG;YACW,iBAAiB;CAK/B"}
@@ -1,4 +1,4 @@
1
- import type { IChainWatcher, PaymentEvent, WatcherOpts } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainWatcher, PaymentEvent, WatcherOpts } from "@wopr-network/platform-crypto-server/plugin";
2
2
  import type { SolanaRpcCall } from "./types.js";
3
3
  /** Create a Solana JSON-RPC caller. */
4
4
  export declare function createSolanaRpcCaller(rpcUrl: string, extraHeaders?: Record<string, string>): SolanaRpcCall;
@@ -1 +1 @@
1
- {"version":3,"file":"watcher.d.ts","sourceRoot":"","sources":["../../src/solana/watcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EAEb,YAAY,EACZ,WAAW,EACX,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAiB,aAAa,EAAqB,MAAM,YAAY,CAAC;AAQlF,uCAAuC;AACvC,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,aAAa,CAiB1G;AAaD;;;;;;;;GAQG;AACH,qBAAa,aAAc,YAAW,aAAa;IAClD,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IACvC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAS;IAC1C,OAAO,CAAC,iBAAiB,CAAc;gBAE3B,IAAI,EAAE,WAAW;IAavB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAK3B,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI;IAI9C,SAAS,IAAI,MAAM;IAInB,IAAI,IAAI,IAAI;IAIZ;;;;;;;;;OASG;I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ACG,IAAI,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAgDrC,0EAA0E;YAC5D,mBAAmB;IAOjC;;;;;OAKG;IACH,OAAO,CAAC,2BAA2B;IAkDnC;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;CAwDhC"}
@@ -6,7 +6,7 @@
6
6
  * 2. Fund gas -- treasury sends ETH to ERC-20 deposit addresses
7
7
  * 3. Sweep ERC-20s -- deposit addresses send all tokens to treasury
8
8
  */
9
- import type { DepositInfo, ISweepStrategy, KeyPair, SweepResult } from "@wopr-network/platform-core/crypto-plugin";
9
+ import type { DepositInfo, ISweepStrategy, KeyPair, SweepResult } from "@wopr-network/platform-crypto-server/plugin";
10
10
  import { type Address } from "viem";
11
11
  export interface EvmToken {
12
12
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"evm-sweeper.d.ts","sourceRoot":"","sources":["../../src/sweep/evm-sweeper.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACnH,OAAO,EACN,KAAK,OAAO,EAUZ,MAAM,MAAM,CAAC;AAuBd,MAAM,WAAW,QAAQ;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,QAAQ,EAAE,CAAC;CACnB;AAED,qBAAa,UAAW,YAAW,cAAc;IAChD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;IAC9B,OAAO,CAAC,QAAQ,CAAC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EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CA0KvF"}
@@ -8,7 +8,7 @@
8
8
  * 2. Fund energy -- treasury sends TRX to TRC-20 deposit addresses
9
9
  * 3. Sweep TRC-20s -- deposit addresses send all tokens to treasury
10
10
  */
11
- import type { DepositInfo, ISweepStrategy, KeyPair, SweepResult } from "@wopr-network/platform-core/crypto-plugin";
11
+ import type { DepositInfo, ISweepStrategy, KeyPair, SweepResult } from "@wopr-network/platform-crypto-server/plugin";
12
12
  export interface TronToken {
13
13
  name: string;
14
14
  contractAddress: string;
@@ -1 +1 @@
1
- {"version":3,"file":"tron-sweeper.d.ts","sourceRoot":"","sources":["../../src/sweep/tron-sweeper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAmBnH,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,SAAS,EAAE,CAAC;CACpB;AAuFD,qBAAa,WAAY,YAAW,cAAc;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;IACrC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;gBAEtC,IAAI,EAAE,eAAe;IAOjC,OAAO,CAAC,OAAO;YAQD,IAAI;YAUJ,aAAa;YAQb,eAAe;YAgBf,iBAAiB;YAejB,mBAAmB;IAqCjC,OAAO,CAAC,eAAe;YAsBT,oBAAoB;IAUlC,OAAO,CAAC,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,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAmJvF"}
@@ -4,7 +4,7 @@
4
4
  * UTXO chains require coin selection, fee estimation, and input signing
5
5
  * that is best handled by dedicated wallet software (Electrum, Sparrow, etc.).
6
6
  */
7
- import type { DepositInfo, ISweepStrategy, KeyPair, SweepResult } from "@wopr-network/platform-core/crypto-plugin";
7
+ import type { DepositInfo, ISweepStrategy, KeyPair, SweepResult } from "@wopr-network/platform-crypto-server/plugin";
8
8
  export declare class UtxoSweeper implements ISweepStrategy {
9
9
  private readonly chain;
10
10
  constructor(chain: string);
@@ -1 +1 @@
1
- {"version":3,"file":"utxo-sweeper.d.ts","sourceRoot":"","sources":["../../src/sweep/utxo-sweeper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAEnH,qBAAa,WAAY,YAAW,cAAc;IACjD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;gBAEnB,KAAK,EAAE,MAAM;IAInB,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAIjE,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAG1F"}
1
+ {"version":3,"file":"utxo-sweeper.d.ts","sourceRoot":"","sources":["../../src/sweep/utxo-sweeper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAErH,qBAAa,WAAY,YAAW,cAAc;IACjD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;gBAEnB,KAAK,EAAE,MAAM;IAInB,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAIjE,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAG1F"}
@@ -1,4 +1,4 @@
1
- import type { IAddressEncoder } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IAddressEncoder } from "@wopr-network/platform-crypto-server/plugin";
2
2
  /**
3
3
  * Encode a compressed public key as a Tron (keccak-b58check) address.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"encoder.d.ts","sourceRoot":"","sources":["../../src/tron/encoder.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAgCjG;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAazF;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,eAQ9B,CAAC"}
1
+ {"version":3,"file":"encoder.d.ts","sourceRoot":"","sources":["../../src/tron/encoder.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAgCnG;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAazF;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,eAQ9B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { IChainPlugin } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainPlugin } from "@wopr-network/platform-crypto-server/plugin";
2
2
  export { hexToTron, isTronAddress, tronToHex } from "./address-convert.js";
3
3
  export { encodeKeccakB58Address, keccakB58Encoder } from "./encoder.js";
4
4
  export { TronEvmWatcher } from "./watcher.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tron/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,2CAA2C,CAAC;AAK3F,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,UAAU,EAAE,YAaxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tron/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,6CAA6C,CAAC;AAK7F,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,UAAU,EAAE,YAaxB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { IChainWatcher, PaymentEvent, WatcherOpts } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainWatcher, PaymentEvent, WatcherOpts } from "@wopr-network/platform-crypto-server/plugin";
2
2
  /**
3
3
  * Tron EVM-compatible watcher.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"watcher.d.ts","sourceRoot":"","sources":["../../src/tron/watcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,aAAa,EAEb,YAAY,EACZ,WAAW,EACX,MAAM,2CAA2C,CAAC;AAkDnD;;;;;;;;;GASG;AACH,qBAAa,cAAe,YAAW,aAAa;IACn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C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IACzC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,4CAA4C;IAC5C,OAAO,CAAC,oBAAoB,CAAgB;IAC5C,0EAA0E;IAC1E,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAkC;gBAEpD,IAAI,EAAE,WAAW;IAYvB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAK3B;;;OAGG;IACH,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI;IAS9C,SAAS,IAAI,MAAM;IAInB,IAAI,IAAI,IAAI;IAIZ;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;CAoFrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wopr-network/crypto-plugins",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "packageManager": "pnpm@10.31.0",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,12 +22,12 @@
22
22
  "./shared/utxo": "./dist/shared/utxo/index.js"
23
23
  },
24
24
  "peerDependencies": {
25
- "@wopr-network/platform-core": "*"
25
+ "@wopr-network/platform-crypto-server": "*"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@biomejs/biome": "^2.4.8",
29
29
  "@types/node": "^25.5.0",
30
- "@wopr-network/platform-core": "^1.65.0",
30
+ "@wopr-network/platform-crypto-server": "^1.0.0",
31
31
  "typescript": "^6.0.2",
32
32
  "vitest": "^4.1.1"
33
33
  },
@@ -1,4 +1,4 @@
1
- import type { IChainPlugin } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainPlugin } from "@wopr-network/platform-crypto-server/plugin";
2
2
  import { describe, expect, it } from "vitest";
3
3
  import { bitcoinPlugin, dogecoinPlugin, evmPlugin, litecoinPlugin, solanaPlugin, tronPlugin } from "../index.js";
4
4
 
@@ -1,4 +1,4 @@
1
- import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-crypto-server/plugin";
2
2
 
3
3
  // ---------- bech32 encoding (pure implementation, no external deps) ----------
4
4
 
@@ -1,4 +1,4 @@
1
- import type { IChainPlugin, WatcherOpts } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainPlugin, WatcherOpts } from "@wopr-network/platform-crypto-server/plugin";
2
2
 
3
3
  import { createRpcFromOpts } from "../shared/utxo/index.js";
4
4
  import { createUtxoWatcher } from "../shared/utxo/watcher.js";
@@ -1,4 +1,4 @@
1
- import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-crypto-server/plugin";
2
2
 
3
3
  import { hash160 } from "../bitcoin/encoder.js";
4
4
 
@@ -1,4 +1,4 @@
1
- import type { IChainPlugin, WatcherOpts } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainPlugin, WatcherOpts } from "@wopr-network/platform-crypto-server/plugin";
2
2
 
3
3
  import { createRpcFromOpts } from "../shared/utxo/index.js";
4
4
  import { createUtxoWatcher } from "../shared/utxo/watcher.js";
@@ -1,6 +1,6 @@
1
1
  import { secp256k1 } from "@noble/curves/secp256k1.js";
2
2
  import { keccak_256 } from "@noble/hashes/sha3.js";
3
- import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-core/crypto-plugin";
3
+ import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-crypto-server/plugin";
4
4
 
5
5
  // secp256k1.Point exists at runtime but the ECDSA TS type doesn't expose it.
6
6
  // Access via the schnorr sub-object which does have the Point type.
@@ -4,7 +4,7 @@ import type {
4
4
  IWatcherCursorStore,
5
5
  PaymentEvent,
6
6
  WatcherOpts,
7
- } from "@wopr-network/platform-core/crypto-plugin";
7
+ } from "@wopr-network/platform-crypto-server/plugin";
8
8
  import type { RpcCall, RpcTransaction } from "./types.js";
9
9
  import { createRpcCaller } from "./watcher.js";
10
10
 
package/src/evm/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { IChainPlugin, SweeperOpts, WatcherOpts } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainPlugin, SweeperOpts, WatcherOpts } from "@wopr-network/platform-crypto-server/plugin";
2
2
  import { EvmAddressEncoder } from "./encoder.js";
3
3
  import { EthWatcher } from "./eth-watcher.js";
4
4
  import { EvmWatcher } from "./watcher.js";
@@ -3,7 +3,7 @@ import type {
3
3
  IWatcherCursorStore,
4
4
  PaymentEvent,
5
5
  WatcherOpts,
6
- } from "@wopr-network/platform-core/crypto-plugin";
6
+ } from "@wopr-network/platform-crypto-server/plugin";
7
7
  import type { RpcCall, RpcLog } from "./types.js";
8
8
 
9
9
  const TRANSFER_TOPIC = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef";
@@ -1,4 +1,4 @@
1
- import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-crypto-server/plugin";
2
2
 
3
3
  import { encodeBech32Address } from "../bitcoin/encoder.js";
4
4
 
@@ -1,4 +1,4 @@
1
- import type { IChainPlugin, WatcherOpts } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainPlugin, WatcherOpts } from "@wopr-network/platform-crypto-server/plugin";
2
2
 
3
3
  import { createRpcFromOpts } from "../shared/utxo/index.js";
4
4
  import { createUtxoWatcher } from "../shared/utxo/watcher.js";
@@ -1,4 +1,4 @@
1
- import type { IPriceOracle, IWatcherCursorStore } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IPriceOracle, IWatcherCursorStore } from "@wopr-network/platform-crypto-server/plugin";
2
2
 
3
3
  /** In-memory mock cursor store for testing UTXO watchers. */
4
4
  export function createMockCursorStore(): IWatcherCursorStore & {
@@ -4,7 +4,7 @@ import type {
4
4
  IWatcherCursorStore,
5
5
  PaymentEvent,
6
6
  WatcherOpts,
7
- } from "@wopr-network/platform-core/crypto-plugin";
7
+ } from "@wopr-network/platform-crypto-server/plugin";
8
8
 
9
9
  import type {
10
10
  DescriptorInfo,
@@ -1,4 +1,4 @@
1
- import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-crypto-server/plugin";
2
2
 
3
3
  /** Base58 alphabet used by Bitcoin/Solana. */
4
4
  const ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
@@ -1,4 +1,4 @@
1
- import type { IChainPlugin, SweeperOpts, WatcherOpts } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainPlugin, SweeperOpts, WatcherOpts } from "@wopr-network/platform-crypto-server/plugin";
2
2
  import { SolanaAddressEncoder } from "./encoder.js";
3
3
  import { SolanaSweeper } from "./sweeper.js";
4
4
  import { SolanaWatcher } from "./watcher.js";
@@ -4,7 +4,7 @@ import type {
4
4
  KeyPair,
5
5
  SweeperOpts,
6
6
  SweepResult,
7
- } from "@wopr-network/platform-core/crypto-plugin";
7
+ } from "@wopr-network/platform-crypto-server/plugin";
8
8
  import type { SolanaRpcCall } from "./types.js";
9
9
  import { createSolanaRpcCaller } from "./watcher.js";
10
10
 
@@ -3,7 +3,7 @@ import type {
3
3
  IWatcherCursorStore,
4
4
  PaymentEvent,
5
5
  WatcherOpts,
6
- } from "@wopr-network/platform-core/crypto-plugin";
6
+ } from "@wopr-network/platform-crypto-server/plugin";
7
7
  import type { SignatureInfo, SolanaRpcCall, SolanaTransaction } from "./types.js";
8
8
 
9
9
  /** Microdollars per cent. Used for oracle price conversion. */
@@ -6,7 +6,7 @@
6
6
  * 2. Fund gas -- treasury sends ETH to ERC-20 deposit addresses
7
7
  * 3. Sweep ERC-20s -- deposit addresses send all tokens to treasury
8
8
  */
9
- import type { DepositInfo, ISweepStrategy, KeyPair, SweepResult } from "@wopr-network/platform-core/crypto-plugin";
9
+ import type { DepositInfo, ISweepStrategy, KeyPair, SweepResult } from "@wopr-network/platform-crypto-server/plugin";
10
10
  import {
11
11
  type Address,
12
12
  type Chain,
@@ -25,7 +25,7 @@ import { keccak_256 } from "@noble/hashes/sha3.js";
25
25
  import { HDKey } from "@scure/bip32";
26
26
  import * as bip39 from "@scure/bip39";
27
27
  import { wordlist } from "@scure/bip39/wordlists/english.js";
28
- import type { KeyPair, SweepResult } from "@wopr-network/platform-core/crypto-plugin";
28
+ import type { KeyPair, SweepResult } from "@wopr-network/platform-crypto-server/plugin";
29
29
  import { privateKeyToAccount } from "viem/accounts";
30
30
  import { sha256 } from "../tron/sha256.js";
31
31
  import { EvmSweeper, type EvmToken } from "./evm-sweeper.js";
@@ -11,7 +11,7 @@
11
11
 
12
12
  import { secp256k1 } from "@noble/curves/secp256k1.js";
13
13
  import { keccak_256 } from "@noble/hashes/sha3.js";
14
- import type { DepositInfo, ISweepStrategy, KeyPair, SweepResult } from "@wopr-network/platform-core/crypto-plugin";
14
+ import type { DepositInfo, ISweepStrategy, KeyPair, SweepResult } from "@wopr-network/platform-crypto-server/plugin";
15
15
  import { sha256 } from "../tron/sha256.js";
16
16
 
17
17
  // TRX has 6 decimals (1 TRX = 1,000,000 SUN)
@@ -4,7 +4,7 @@
4
4
  * UTXO chains require coin selection, fee estimation, and input signing
5
5
  * that is best handled by dedicated wallet software (Electrum, Sparrow, etc.).
6
6
  */
7
- import type { DepositInfo, ISweepStrategy, KeyPair, SweepResult } from "@wopr-network/platform-core/crypto-plugin";
7
+ import type { DepositInfo, ISweepStrategy, KeyPair, SweepResult } from "@wopr-network/platform-crypto-server/plugin";
8
8
 
9
9
  export class UtxoSweeper implements ISweepStrategy {
10
10
  private readonly chain: string;
@@ -1,6 +1,6 @@
1
1
  import { secp256k1 } from "@noble/curves/secp256k1.js";
2
2
  import { keccak_256 } from "@noble/hashes/sha3.js";
3
- import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-core/crypto-plugin";
3
+ import type { EncodingParams, IAddressEncoder } from "@wopr-network/platform-crypto-server/plugin";
4
4
 
5
5
  import { sha256 } from "./sha256.js";
6
6
 
package/src/tron/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { IChainPlugin, WatcherOpts } from "@wopr-network/platform-core/crypto-plugin";
1
+ import type { IChainPlugin, WatcherOpts } from "@wopr-network/platform-crypto-server/plugin";
2
2
 
3
3
  import { keccakB58Encoder } from "./encoder.js";
4
4
  import { TronEvmWatcher } from "./watcher.js";
@@ -3,7 +3,7 @@ import type {
3
3
  IWatcherCursorStore,
4
4
  PaymentEvent,
5
5
  WatcherOpts,
6
- } from "@wopr-network/platform-core/crypto-plugin";
6
+ } from "@wopr-network/platform-crypto-server/plugin";
7
7
 
8
8
  import { hexToTron, tronToHex } from "./address-convert.js";
9
9