@seedprotocol/publish 0.7.3-next.654.g52217f6 → 0.7.3

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 (42) hide show
  1. package/README.md +4 -2
  2. package/dist/chainConfig-RhKIuGtN.js +5289 -0
  3. package/dist/chainConfig-RhKIuGtN.js.map +1 -0
  4. package/dist/config.d.ts +3 -1
  5. package/dist/config.d.ts.map +1 -1
  6. package/dist/{ensureAutomationSessionKey-D0bbWT8e.js → ensureAutomationSessionKey-CvUntLne.js} +25 -26
  7. package/dist/{ensureAutomationSessionKey-D0bbWT8e.js.map → ensureAutomationSessionKey-CvUntLne.js.map} +1 -1
  8. package/dist/{ensureModularPublishBootstrap-x1bmc__0.js → ensureModularPublishBootstrap-D9q246TT.js} +9 -11
  9. package/dist/{ensureModularPublishBootstrap-x1bmc__0.js.map → ensureModularPublishBootstrap-D9q246TT.js.map} +1 -1
  10. package/dist/ensureSmartWalletThenPublish-C_iS5Wb-.js +52 -0
  11. package/dist/ensureSmartWalletThenPublish-C_iS5Wb-.js.map +1 -0
  12. package/dist/helpers/ensureSmartWalletThenPublish.d.ts +1 -0
  13. package/dist/helpers/ensureSmartWalletThenPublish.d.ts.map +1 -1
  14. package/dist/helpers/ensureWalletThenPublish.d.ts +7 -0
  15. package/dist/helpers/ensureWalletThenPublish.d.ts.map +1 -1
  16. package/dist/helpers/publishItem.d.ts +21 -0
  17. package/dist/helpers/publishItem.d.ts.map +1 -0
  18. package/dist/index.d.ts +2 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +341 -476
  21. package/dist/index.js.map +1 -1
  22. package/dist/managedAccountAdmin-CLVRJEKI.js +26 -0
  23. package/dist/{managedAccountAdmin-CdS1SCA_.js.map → managedAccountAdmin-CLVRJEKI.js.map} +1 -1
  24. package/dist/publishAuthorization-DAarz1JK.js +176 -0
  25. package/dist/publishAuthorization-DAarz1JK.js.map +1 -0
  26. package/dist/{resolveRevokeAccount-D2RP6qcU.js → resolveRevokeAccount-TRcqJtIO.js} +13 -15
  27. package/dist/{resolveRevokeAccount-D2RP6qcU.js.map → resolveRevokeAccount-TRcqJtIO.js.map} +1 -1
  28. package/dist/services/upload/uploadMachine.d.ts +1 -1
  29. package/dist/thirdweb.js +144 -145
  30. package/dist/thirdweb.js.map +1 -1
  31. package/dist/{worker-BIQLQSjk.js → worker-CyuMiBB-.js} +2 -2
  32. package/dist/{worker-BIQLQSjk.js.map → worker-CyuMiBB-.js.map} +1 -1
  33. package/package.json +6 -6
  34. package/dist/chainConfig-bc_6IgAw.js +0 -1455
  35. package/dist/chainConfig-bc_6IgAw.js.map +0 -1
  36. package/dist/ensureSmartWalletThenPublish-DNkeFWvC.js +0 -47
  37. package/dist/ensureSmartWalletThenPublish-DNkeFWvC.js.map +0 -1
  38. package/dist/managedAccountAdmin-CdS1SCA_.js +0 -28
  39. package/dist/publishAuthorization-C5kXlbOT.js +0 -3833
  40. package/dist/publishAuthorization-C5kXlbOT.js.map +0 -1
  41. package/dist/publishThirdwebClient-VSG2MC38.js +0 -18
  42. package/dist/publishThirdwebClient-VSG2MC38.js.map +0 -1
@@ -1,18 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { o as t } from "./chainConfig-bc_6IgAw.js";
3
- import { createThirdwebClient as n } from "thirdweb";
4
- //#region src/helpers/publishThirdwebClient.ts
5
- var r = /* @__PURE__ */ e({ getClient: () => o }), i = null, a = null;
6
- function o() {
7
- let { thirdwebClientId: e, thirdwebSecretKey: r } = t();
8
- if (!e && !r) throw Error("@seedprotocol/publish/thirdweb: thirdwebClientId or thirdwebSecretKey is required. Pass one in initPublish / PublishProvider config.");
9
- let o = `${e ?? ""}\0${r ?? ""}`;
10
- return (!i || a !== o) && (a = o, i = n(e ? {
11
- clientId: e,
12
- ...r ? { secretKey: r } : {}
13
- } : { secretKey: r })), i;
14
- }
15
- //#endregion
16
- export { r as n, o as t };
17
-
18
- //# sourceMappingURL=publishThirdwebClient-VSG2MC38.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publishThirdwebClient-VSG2MC38.js","names":["__exportAll","getPublishConfig","publishThirdwebClient_exports","getClient","_client","_clientKey","thirdwebClientId","thirdwebSecretKey","key","createThirdwebClient"],"sources":["../src/helpers/publishThirdwebClient.ts"],"sourcesContent":["import { createThirdwebClient, type ThirdwebClient } from 'thirdweb'\nimport { getPublishConfig } from '../config'\n\nlet _client: ThirdwebClient | null = null\nlet _clientKey: string | null = null\n\n/**\n * Thirdweb client for publish sends and contract calls.\n * Uses `thirdwebSecretKey` when set so server-side RPC is not limited to browser origins.\n * Recreates the client when the client id or secret key changes.\n */\nexport function getClient(): ThirdwebClient {\n const { thirdwebClientId, thirdwebSecretKey } = getPublishConfig()\n if (!thirdwebClientId && !thirdwebSecretKey) {\n throw new Error(\n '@seedprotocol/publish/thirdweb: thirdwebClientId or thirdwebSecretKey is required. Pass one in initPublish / PublishProvider config.',\n )\n }\n const key = `${thirdwebClientId ?? ''}\\0${thirdwebSecretKey ?? ''}`\n if (!_client || _clientKey !== key) {\n _clientKey = key\n _client = thirdwebClientId\n ? createThirdwebClient({\n clientId: thirdwebClientId,\n ...(thirdwebSecretKey ? { secretKey: thirdwebSecretKey } : {}),\n })\n : createThirdwebClient({ secretKey: thirdwebSecretKey! })\n }\n return _client\n}\n\n/** Drop the cached client (tests). */\nexport function resetPublishThirdwebClient(): void {\n _client = null\n _clientKey = null\n}\n"],"mappings":";;;;mDAGII,IAAiC,MACjCC,IAA4B;AAOhC,SAAgBF,IAA4B;CAC1C,IAAM,EAAE,qBAAkB,yBAAsBF,EAAiB;CACjE,IAAI,CAACK,KAAoB,CAACC,GACxB,MAAU,MACR,sIACF;CAEF,IAAMC,IAAM,GAAGF,KAAoB,GAAG,IAAIC,KAAqB;CAU/D,QATI,CAACH,KAAWC,MAAeG,OAC7B,IAAaA,GACb,IACIC,EADMH,IACe;EACnB,UAAUA;EACV,GAAIC,IAAoB,EAAE,WAAWA,EAAkB,IAAI,CAAC;CAC9D,IACqB,EAAE,WAAWA,EAAmB,CAAC,IAErDH;AACT"}