thirdweb 5.72.0-nightly-f64e0253d7de6fdb6f56ab49315cc4cdcdd75b20-20241127000345 → 5.72.0-nightly-e87eb2ff35eea1b94ab7bdae3585d819879ec53c-20241128000350

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 (167) hide show
  1. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.js +32 -0
  2. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.js.map +1 -0
  3. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.js +33 -0
  4. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.js.map +1 -0
  5. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.js +70 -0
  6. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.js.map +1 -0
  7. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.js +114 -0
  8. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.js.map +1 -0
  9. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.js +114 -0
  10. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.js.map +1 -0
  11. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.js +70 -0
  12. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.js.map +1 -0
  13. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/cancel.js +117 -0
  14. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/cancel.js.map +1 -0
  15. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/initialize.js +202 -0
  16. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/initialize.js.map +1 -0
  17. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.js +129 -0
  18. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.js.map +1 -0
  19. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.js +171 -0
  20. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.js.map +1 -0
  21. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/revoke.js +117 -0
  22. package/dist/cjs/extensions/erc721/__generated__/LoyaltyCard/write/revoke.js.map +1 -0
  23. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.js +33 -0
  24. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.js.map +1 -0
  25. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.js +33 -0
  26. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.js.map +1 -0
  27. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/contractType.js +70 -0
  28. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/contractType.js.map +1 -0
  29. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/contractVersion.js +70 -0
  30. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/contractVersion.js.map +1 -0
  31. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.js +133 -0
  32. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.js.map +1 -0
  33. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.js +70 -0
  34. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.js.map +1 -0
  35. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.js +114 -0
  36. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.js.map +1 -0
  37. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/tokenURI.js +114 -0
  38. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/read/tokenURI.js.map +1 -0
  39. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/write/initialize.js +175 -0
  40. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/write/initialize.js.map +1 -0
  41. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/write/unwrap.js +124 -0
  42. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/write/unwrap.js.map +1 -0
  43. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/write/wrap.js +162 -0
  44. package/dist/cjs/extensions/erc721/__generated__/Multiwrap/write/wrap.js.map +1 -0
  45. package/dist/cjs/extensions/prebuilts/deploy-erc721.js +21 -6
  46. package/dist/cjs/extensions/prebuilts/deploy-erc721.js.map +1 -1
  47. package/dist/cjs/version.js +1 -1
  48. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.js +29 -0
  49. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.js.map +1 -0
  50. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.js +30 -0
  51. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.js.map +1 -0
  52. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.js +64 -0
  53. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.js.map +1 -0
  54. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.js +106 -0
  55. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.js.map +1 -0
  56. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.js +106 -0
  57. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.js.map +1 -0
  58. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.js +64 -0
  59. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.js.map +1 -0
  60. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/cancel.js +110 -0
  61. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/cancel.js.map +1 -0
  62. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/initialize.js +195 -0
  63. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/initialize.js.map +1 -0
  64. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.js +122 -0
  65. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.js.map +1 -0
  66. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.js +164 -0
  67. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.js.map +1 -0
  68. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/revoke.js +110 -0
  69. package/dist/esm/extensions/erc721/__generated__/LoyaltyCard/write/revoke.js.map +1 -0
  70. package/dist/esm/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.js +30 -0
  71. package/dist/esm/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.js.map +1 -0
  72. package/dist/esm/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.js +30 -0
  73. package/dist/esm/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.js.map +1 -0
  74. package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/contractType.js +64 -0
  75. package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/contractType.js.map +1 -0
  76. package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/contractVersion.js +64 -0
  77. package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/contractVersion.js.map +1 -0
  78. package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.js +125 -0
  79. package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.js.map +1 -0
  80. package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.js +64 -0
  81. package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.js.map +1 -0
  82. package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.js +106 -0
  83. package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.js.map +1 -0
  84. package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/tokenURI.js +106 -0
  85. package/dist/esm/extensions/erc721/__generated__/Multiwrap/read/tokenURI.js.map +1 -0
  86. package/dist/esm/extensions/erc721/__generated__/Multiwrap/write/initialize.js +168 -0
  87. package/dist/esm/extensions/erc721/__generated__/Multiwrap/write/initialize.js.map +1 -0
  88. package/dist/esm/extensions/erc721/__generated__/Multiwrap/write/unwrap.js +117 -0
  89. package/dist/esm/extensions/erc721/__generated__/Multiwrap/write/unwrap.js.map +1 -0
  90. package/dist/esm/extensions/erc721/__generated__/Multiwrap/write/wrap.js +155 -0
  91. package/dist/esm/extensions/erc721/__generated__/Multiwrap/write/wrap.js.map +1 -0
  92. package/dist/esm/extensions/prebuilts/deploy-erc721.js +15 -0
  93. package/dist/esm/extensions/prebuilts/deploy-erc721.js.map +1 -1
  94. package/dist/esm/version.js +1 -1
  95. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.d.ts +54 -0
  96. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.d.ts.map +1 -0
  97. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.d.ts +95 -0
  98. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.d.ts.map +1 -0
  99. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.d.ts +44 -0
  100. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.d.ts.map +1 -0
  101. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.d.ts +83 -0
  102. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.d.ts.map +1 -0
  103. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.d.ts +83 -0
  104. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.d.ts.map +1 -0
  105. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.d.ts +44 -0
  106. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.d.ts.map +1 -0
  107. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/cancel.d.ts +79 -0
  108. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/cancel.d.ts.map +1 -0
  109. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/initialize.d.ts +142 -0
  110. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/initialize.d.ts.map +1 -0
  111. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.d.ts +86 -0
  112. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.d.ts.map +1 -0
  113. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.d.ts +128 -0
  114. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.d.ts.map +1 -0
  115. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/revoke.d.ts +79 -0
  116. package/dist/types/extensions/erc721/__generated__/LoyaltyCard/write/revoke.d.ts.map +1 -0
  117. package/dist/types/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.d.ts +61 -0
  118. package/dist/types/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.d.ts.map +1 -0
  119. package/dist/types/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.d.ts +77 -0
  120. package/dist/types/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.d.ts.map +1 -0
  121. package/dist/types/extensions/erc721/__generated__/Multiwrap/read/contractType.d.ts +44 -0
  122. package/dist/types/extensions/erc721/__generated__/Multiwrap/read/contractType.d.ts.map +1 -0
  123. package/dist/types/extensions/erc721/__generated__/Multiwrap/read/contractVersion.d.ts +44 -0
  124. package/dist/types/extensions/erc721/__generated__/Multiwrap/read/contractVersion.d.ts.map +1 -0
  125. package/dist/types/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.d.ts +93 -0
  126. package/dist/types/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.d.ts.map +1 -0
  127. package/dist/types/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.d.ts +44 -0
  128. package/dist/types/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.d.ts.map +1 -0
  129. package/dist/types/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.d.ts +83 -0
  130. package/dist/types/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.d.ts.map +1 -0
  131. package/dist/types/extensions/erc721/__generated__/Multiwrap/read/tokenURI.d.ts +83 -0
  132. package/dist/types/extensions/erc721/__generated__/Multiwrap/read/tokenURI.d.ts.map +1 -0
  133. package/dist/types/extensions/erc721/__generated__/Multiwrap/write/initialize.d.ts +121 -0
  134. package/dist/types/extensions/erc721/__generated__/Multiwrap/write/initialize.d.ts.map +1 -0
  135. package/dist/types/extensions/erc721/__generated__/Multiwrap/write/unwrap.d.ts +86 -0
  136. package/dist/types/extensions/erc721/__generated__/Multiwrap/write/unwrap.d.ts.map +1 -0
  137. package/dist/types/extensions/erc721/__generated__/Multiwrap/write/wrap.d.ts +111 -0
  138. package/dist/types/extensions/erc721/__generated__/Multiwrap/write/wrap.d.ts.map +1 -0
  139. package/dist/types/extensions/prebuilts/deploy-erc721.d.ts +1 -1
  140. package/dist/types/extensions/prebuilts/deploy-erc721.d.ts.map +1 -1
  141. package/dist/types/version.d.ts +1 -1
  142. package/package.json +1 -1
  143. package/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts +47 -0
  144. package/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts +55 -0
  145. package/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts +70 -0
  146. package/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts +130 -0
  147. package/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts +123 -0
  148. package/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts +70 -0
  149. package/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts +135 -0
  150. package/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts +255 -0
  151. package/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts +148 -0
  152. package/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts +209 -0
  153. package/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts +135 -0
  154. package/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts +55 -0
  155. package/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts +53 -0
  156. package/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts +70 -0
  157. package/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts +70 -0
  158. package/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts +146 -0
  159. package/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts +70 -0
  160. package/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts +130 -0
  161. package/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts +123 -0
  162. package/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts +216 -0
  163. package/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts +146 -0
  164. package/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts +197 -0
  165. package/src/extensions/prebuilts/deploy-erc721.test.ts +70 -2
  166. package/src/extensions/prebuilts/deploy-erc721.ts +17 -1
  167. package/src/version.ts +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revoke.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAM7C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC;IACvC,OAAO,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;CAC5E,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AASjD;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAK7D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,iBAEvD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,GAIL,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CAC5E;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,MAAM,CACpB,OAAO,EAAE,sBAAsB,CAC3B,YAAY,GACZ;IACE,WAAW,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC;CAC1C,CACJ,8MAwBF"}
@@ -0,0 +1,61 @@
1
+ import type { AbiParameterToPrimitiveType } from "abitype";
2
+ /**
3
+ * Represents the filters for the "TokensUnwrapped" event.
4
+ */
5
+ export type TokensUnwrappedEventFilters = Partial<{
6
+ unwrapper: AbiParameterToPrimitiveType<{
7
+ type: "address";
8
+ name: "unwrapper";
9
+ indexed: true;
10
+ }>;
11
+ recipientOfWrappedContents: AbiParameterToPrimitiveType<{
12
+ type: "address";
13
+ name: "recipientOfWrappedContents";
14
+ indexed: true;
15
+ }>;
16
+ tokenIdOfWrappedToken: AbiParameterToPrimitiveType<{
17
+ type: "uint256";
18
+ name: "tokenIdOfWrappedToken";
19
+ indexed: true;
20
+ }>;
21
+ }>;
22
+ /**
23
+ * Creates an event object for the TokensUnwrapped event.
24
+ * @param filters - Optional filters to apply to the event.
25
+ * @returns The prepared event object.
26
+ * @extension ERC721
27
+ * @example
28
+ * ```ts
29
+ * import { getContractEvents } from "thirdweb";
30
+ * import { tokensUnwrappedEvent } from "thirdweb/extensions/erc721";
31
+ *
32
+ * const events = await getContractEvents({
33
+ * contract,
34
+ * events: [
35
+ * tokensUnwrappedEvent({
36
+ * unwrapper: ...,
37
+ * recipientOfWrappedContents: ...,
38
+ * tokenIdOfWrappedToken: ...,
39
+ * })
40
+ * ],
41
+ * });
42
+ * ```
43
+ */
44
+ export declare function tokensUnwrappedEvent(filters?: TokensUnwrappedEventFilters): import("../../../../../event/prepare-event.js").PreparedEvent<{
45
+ readonly name: "TokensUnwrapped";
46
+ readonly type: "event";
47
+ readonly inputs: readonly [{
48
+ readonly type: "address";
49
+ readonly name: "unwrapper";
50
+ readonly indexed: true;
51
+ }, {
52
+ readonly type: "address";
53
+ readonly name: "recipientOfWrappedContents";
54
+ readonly indexed: true;
55
+ }, {
56
+ readonly type: "uint256";
57
+ readonly name: "tokenIdOfWrappedToken";
58
+ readonly indexed: true;
59
+ }];
60
+ }>;
61
+ //# sourceMappingURL=TokensUnwrapped.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TokensUnwrapped.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC;IAChD,SAAS,EAAE,2BAA2B,CAAC;QACrC,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,WAAW,CAAC;QAClB,OAAO,EAAE,IAAI,CAAC;KACf,CAAC,CAAC;IACH,0BAA0B,EAAE,2BAA2B,CAAC;QACtD,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,4BAA4B,CAAC;QACnC,OAAO,EAAE,IAAI,CAAC;KACf,CAAC,CAAC;IACH,qBAAqB,EAAE,2BAA2B,CAAC;QACjD,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,uBAAuB,CAAC;QAC9B,OAAO,EAAE,IAAI,CAAC;KACf,CAAC,CAAC;CACJ,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,GAAE,2BAAgC;;;;;;;;;;;;;;;;GAO1C"}
@@ -0,0 +1,77 @@
1
+ import type { AbiParameterToPrimitiveType } from "abitype";
2
+ /**
3
+ * Represents the filters for the "TokensWrapped" event.
4
+ */
5
+ export type TokensWrappedEventFilters = Partial<{
6
+ wrapper: AbiParameterToPrimitiveType<{
7
+ type: "address";
8
+ name: "wrapper";
9
+ indexed: true;
10
+ }>;
11
+ recipientOfWrappedToken: AbiParameterToPrimitiveType<{
12
+ type: "address";
13
+ name: "recipientOfWrappedToken";
14
+ indexed: true;
15
+ }>;
16
+ tokenIdOfWrappedToken: AbiParameterToPrimitiveType<{
17
+ type: "uint256";
18
+ name: "tokenIdOfWrappedToken";
19
+ indexed: true;
20
+ }>;
21
+ }>;
22
+ /**
23
+ * Creates an event object for the TokensWrapped event.
24
+ * @param filters - Optional filters to apply to the event.
25
+ * @returns The prepared event object.
26
+ * @extension ERC721
27
+ * @example
28
+ * ```ts
29
+ * import { getContractEvents } from "thirdweb";
30
+ * import { tokensWrappedEvent } from "thirdweb/extensions/erc721";
31
+ *
32
+ * const events = await getContractEvents({
33
+ * contract,
34
+ * events: [
35
+ * tokensWrappedEvent({
36
+ * wrapper: ...,
37
+ * recipientOfWrappedToken: ...,
38
+ * tokenIdOfWrappedToken: ...,
39
+ * })
40
+ * ],
41
+ * });
42
+ * ```
43
+ */
44
+ export declare function tokensWrappedEvent(filters?: TokensWrappedEventFilters): import("../../../../../event/prepare-event.js").PreparedEvent<{
45
+ readonly name: "TokensWrapped";
46
+ readonly type: "event";
47
+ readonly inputs: readonly [{
48
+ readonly type: "address";
49
+ readonly name: "wrapper";
50
+ readonly indexed: true;
51
+ }, {
52
+ readonly type: "address";
53
+ readonly name: "recipientOfWrappedToken";
54
+ readonly indexed: true;
55
+ }, {
56
+ readonly type: "uint256";
57
+ readonly name: "tokenIdOfWrappedToken";
58
+ readonly indexed: true;
59
+ }, {
60
+ readonly type: "tuple[]";
61
+ readonly components: readonly [{
62
+ readonly type: "address";
63
+ readonly name: "assetContract";
64
+ }, {
65
+ readonly type: "uint8";
66
+ readonly name: "tokenType";
67
+ }, {
68
+ readonly type: "uint256";
69
+ readonly name: "tokenId";
70
+ }, {
71
+ readonly type: "uint256";
72
+ readonly name: "amount";
73
+ }];
74
+ readonly name: "wrappedContents";
75
+ }];
76
+ }>;
77
+ //# sourceMappingURL=TokensWrapped.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TokensWrapped.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC;IAC9C,OAAO,EAAE,2BAA2B,CAAC;QACnC,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,SAAS,CAAC;QAChB,OAAO,EAAE,IAAI,CAAC;KACf,CAAC,CAAC;IACH,uBAAuB,EAAE,2BAA2B,CAAC;QACnD,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,yBAAyB,CAAC;QAChC,OAAO,EAAE,IAAI,CAAC;KACf,CAAC,CAAC;IACH,qBAAqB,EAAE,2BAA2B,CAAC;QACjD,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,uBAAuB,CAAC;QAC9B,OAAO,EAAE,IAAI,CAAC;KACf,CAAC,CAAC;CACJ,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,yBAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMzE"}
@@ -0,0 +1,44 @@
1
+ import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
2
+ import type { Hex } from "../../../../../utils/encoding/hex.js";
3
+ export declare const FN_SELECTOR: "0xcb2ef6f7";
4
+ /**
5
+ * Checks if the `contractType` method is supported by the given contract.
6
+ * @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
7
+ * @returns A boolean indicating if the `contractType` method is supported.
8
+ * @extension ERC721
9
+ * @example
10
+ * ```ts
11
+ * import { isContractTypeSupported } from "thirdweb/extensions/erc721";
12
+ * const supported = isContractTypeSupported(["0x..."]);
13
+ * ```
14
+ */
15
+ export declare function isContractTypeSupported(availableSelectors: string[]): boolean;
16
+ /**
17
+ * Decodes the result of the contractType function call.
18
+ * @param result - The hexadecimal result to decode.
19
+ * @returns The decoded result as per the FN_OUTPUTS definition.
20
+ * @extension ERC721
21
+ * @example
22
+ * ```ts
23
+ * import { decodeContractTypeResult } from "thirdweb/extensions/erc721";
24
+ * const result = decodeContractTypeResultResult("...");
25
+ * ```
26
+ */
27
+ export declare function decodeContractTypeResult(result: Hex): `0x${string}`;
28
+ /**
29
+ * Calls the "contractType" function on the contract.
30
+ * @param options - The options for the contractType function.
31
+ * @returns The parsed result of the function call.
32
+ * @extension ERC721
33
+ * @example
34
+ * ```ts
35
+ * import { contractType } from "thirdweb/extensions/erc721";
36
+ *
37
+ * const result = await contractType({
38
+ * contract,
39
+ * });
40
+ *
41
+ * ```
42
+ */
43
+ export declare function contractType(options: BaseTransactionOptions): Promise<`0x${string}`>;
44
+ //# sourceMappingURL=contractType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contractType.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AAQjD;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKnE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,GAAG,iBAEnD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,sBAAsB,0BAMjE"}
@@ -0,0 +1,44 @@
1
+ import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
2
+ import type { Hex } from "../../../../../utils/encoding/hex.js";
3
+ export declare const FN_SELECTOR: "0xa0a8e460";
4
+ /**
5
+ * Checks if the `contractVersion` method is supported by the given contract.
6
+ * @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
7
+ * @returns A boolean indicating if the `contractVersion` method is supported.
8
+ * @extension ERC721
9
+ * @example
10
+ * ```ts
11
+ * import { isContractVersionSupported } from "thirdweb/extensions/erc721";
12
+ * const supported = isContractVersionSupported(["0x..."]);
13
+ * ```
14
+ */
15
+ export declare function isContractVersionSupported(availableSelectors: string[]): boolean;
16
+ /**
17
+ * Decodes the result of the contractVersion function call.
18
+ * @param result - The hexadecimal result to decode.
19
+ * @returns The decoded result as per the FN_OUTPUTS definition.
20
+ * @extension ERC721
21
+ * @example
22
+ * ```ts
23
+ * import { decodeContractVersionResult } from "thirdweb/extensions/erc721";
24
+ * const result = decodeContractVersionResultResult("...");
25
+ * ```
26
+ */
27
+ export declare function decodeContractVersionResult(result: Hex): number;
28
+ /**
29
+ * Calls the "contractVersion" function on the contract.
30
+ * @param options - The options for the contractVersion function.
31
+ * @returns The parsed result of the function call.
32
+ * @extension ERC721
33
+ * @example
34
+ * ```ts
35
+ * import { contractVersion } from "thirdweb/extensions/erc721";
36
+ *
37
+ * const result = await contractVersion({
38
+ * contract,
39
+ * });
40
+ *
41
+ * ```
42
+ */
43
+ export declare function contractVersion(options: BaseTransactionOptions): Promise<number>;
44
+ //# sourceMappingURL=contractVersion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contractVersion.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AAQjD;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKtE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,GAAG,UAEtD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,sBAAsB,mBAMpE"}
@@ -0,0 +1,93 @@
1
+ import type { AbiParameterToPrimitiveType } from "abitype";
2
+ import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
3
+ import type { Hex } from "../../../../../utils/encoding/hex.js";
4
+ /**
5
+ * Represents the parameters for the "getWrappedContents" function.
6
+ */
7
+ export type GetWrappedContentsParams = {
8
+ tokenId: AbiParameterToPrimitiveType<{
9
+ type: "uint256";
10
+ name: "_tokenId";
11
+ }>;
12
+ };
13
+ export declare const FN_SELECTOR: "0xd5576d26";
14
+ /**
15
+ * Checks if the `getWrappedContents` method is supported by the given contract.
16
+ * @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
17
+ * @returns A boolean indicating if the `getWrappedContents` method is supported.
18
+ * @extension ERC721
19
+ * @example
20
+ * ```ts
21
+ * import { isGetWrappedContentsSupported } from "thirdweb/extensions/erc721";
22
+ * const supported = isGetWrappedContentsSupported(["0x..."]);
23
+ * ```
24
+ */
25
+ export declare function isGetWrappedContentsSupported(availableSelectors: string[]): boolean;
26
+ /**
27
+ * Encodes the parameters for the "getWrappedContents" function.
28
+ * @param options - The options for the getWrappedContents function.
29
+ * @returns The encoded ABI parameters.
30
+ * @extension ERC721
31
+ * @example
32
+ * ```ts
33
+ * import { encodeGetWrappedContentsParams } from "thirdweb/extensions/erc721";
34
+ * const result = encodeGetWrappedContentsParams({
35
+ * tokenId: ...,
36
+ * });
37
+ * ```
38
+ */
39
+ export declare function encodeGetWrappedContentsParams(options: GetWrappedContentsParams): `0x${string}`;
40
+ /**
41
+ * Encodes the "getWrappedContents" function into a Hex string with its parameters.
42
+ * @param options - The options for the getWrappedContents function.
43
+ * @returns The encoded hexadecimal string.
44
+ * @extension ERC721
45
+ * @example
46
+ * ```ts
47
+ * import { encodeGetWrappedContents } from "thirdweb/extensions/erc721";
48
+ * const result = encodeGetWrappedContents({
49
+ * tokenId: ...,
50
+ * });
51
+ * ```
52
+ */
53
+ export declare function encodeGetWrappedContents(options: GetWrappedContentsParams): `${typeof FN_SELECTOR}${string}`;
54
+ /**
55
+ * Decodes the result of the getWrappedContents function call.
56
+ * @param result - The hexadecimal result to decode.
57
+ * @returns The decoded result as per the FN_OUTPUTS definition.
58
+ * @extension ERC721
59
+ * @example
60
+ * ```ts
61
+ * import { decodeGetWrappedContentsResult } from "thirdweb/extensions/erc721";
62
+ * const result = decodeGetWrappedContentsResultResult("...");
63
+ * ```
64
+ */
65
+ export declare function decodeGetWrappedContentsResult(result: Hex): readonly {
66
+ assetContract: string;
67
+ tokenType: number;
68
+ tokenId: bigint;
69
+ amount: bigint;
70
+ }[];
71
+ /**
72
+ * Calls the "getWrappedContents" function on the contract.
73
+ * @param options - The options for the getWrappedContents function.
74
+ * @returns The parsed result of the function call.
75
+ * @extension ERC721
76
+ * @example
77
+ * ```ts
78
+ * import { getWrappedContents } from "thirdweb/extensions/erc721";
79
+ *
80
+ * const result = await getWrappedContents({
81
+ * contract,
82
+ * tokenId: ...,
83
+ * });
84
+ *
85
+ * ```
86
+ */
87
+ export declare function getWrappedContents(options: BaseTransactionOptions<GetWrappedContentsParams>): Promise<readonly {
88
+ assetContract: string;
89
+ tokenType: number;
90
+ tokenId: bigint;
91
+ amount: bigint;
92
+ }[]>;
93
+ //# sourceMappingURL=getWrappedContents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getWrappedContents.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;CAC7E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AAgCjD;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKzE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,wBAAwB,iBAGlC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,wBAAwB,GAMhE,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CACzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,GAAG;;;;;IAEzD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,sBAAsB,CAAC,wBAAwB,CAAC;;;;;KAO1D"}
@@ -0,0 +1,44 @@
1
+ import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
2
+ import type { Hex } from "../../../../../utils/encoding/hex.js";
3
+ export declare const FN_SELECTOR: "0x3b1475a7";
4
+ /**
5
+ * Checks if the `nextTokenIdToMint` method is supported by the given contract.
6
+ * @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
7
+ * @returns A boolean indicating if the `nextTokenIdToMint` method is supported.
8
+ * @extension ERC721
9
+ * @example
10
+ * ```ts
11
+ * import { isNextTokenIdToMintSupported } from "thirdweb/extensions/erc721";
12
+ * const supported = isNextTokenIdToMintSupported(["0x..."]);
13
+ * ```
14
+ */
15
+ export declare function isNextTokenIdToMintSupported(availableSelectors: string[]): boolean;
16
+ /**
17
+ * Decodes the result of the nextTokenIdToMint function call.
18
+ * @param result - The hexadecimal result to decode.
19
+ * @returns The decoded result as per the FN_OUTPUTS definition.
20
+ * @extension ERC721
21
+ * @example
22
+ * ```ts
23
+ * import { decodeNextTokenIdToMintResult } from "thirdweb/extensions/erc721";
24
+ * const result = decodeNextTokenIdToMintResultResult("...");
25
+ * ```
26
+ */
27
+ export declare function decodeNextTokenIdToMintResult(result: Hex): bigint;
28
+ /**
29
+ * Calls the "nextTokenIdToMint" function on the contract.
30
+ * @param options - The options for the nextTokenIdToMint function.
31
+ * @returns The parsed result of the function call.
32
+ * @extension ERC721
33
+ * @example
34
+ * ```ts
35
+ * import { nextTokenIdToMint } from "thirdweb/extensions/erc721";
36
+ *
37
+ * const result = await nextTokenIdToMint({
38
+ * contract,
39
+ * });
40
+ *
41
+ * ```
42
+ */
43
+ export declare function nextTokenIdToMint(options: BaseTransactionOptions): Promise<bigint>;
44
+ //# sourceMappingURL=nextTokenIdToMint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nextTokenIdToMint.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AAQjD;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKxE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,GAAG,UAExD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,sBAAsB,mBAMtE"}
@@ -0,0 +1,83 @@
1
+ import type { AbiParameterToPrimitiveType } from "abitype";
2
+ import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
3
+ import type { Hex } from "../../../../../utils/encoding/hex.js";
4
+ /**
5
+ * Represents the parameters for the "supportsInterface" function.
6
+ */
7
+ export type SupportsInterfaceParams = {
8
+ interfaceId: AbiParameterToPrimitiveType<{
9
+ type: "bytes4";
10
+ name: "interfaceId";
11
+ }>;
12
+ };
13
+ export declare const FN_SELECTOR: "0x01ffc9a7";
14
+ /**
15
+ * Checks if the `supportsInterface` method is supported by the given contract.
16
+ * @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
17
+ * @returns A boolean indicating if the `supportsInterface` method is supported.
18
+ * @extension ERC721
19
+ * @example
20
+ * ```ts
21
+ * import { isSupportsInterfaceSupported } from "thirdweb/extensions/erc721";
22
+ * const supported = isSupportsInterfaceSupported(["0x..."]);
23
+ * ```
24
+ */
25
+ export declare function isSupportsInterfaceSupported(availableSelectors: string[]): boolean;
26
+ /**
27
+ * Encodes the parameters for the "supportsInterface" function.
28
+ * @param options - The options for the supportsInterface function.
29
+ * @returns The encoded ABI parameters.
30
+ * @extension ERC721
31
+ * @example
32
+ * ```ts
33
+ * import { encodeSupportsInterfaceParams } from "thirdweb/extensions/erc721";
34
+ * const result = encodeSupportsInterfaceParams({
35
+ * interfaceId: ...,
36
+ * });
37
+ * ```
38
+ */
39
+ export declare function encodeSupportsInterfaceParams(options: SupportsInterfaceParams): `0x${string}`;
40
+ /**
41
+ * Encodes the "supportsInterface" function into a Hex string with its parameters.
42
+ * @param options - The options for the supportsInterface function.
43
+ * @returns The encoded hexadecimal string.
44
+ * @extension ERC721
45
+ * @example
46
+ * ```ts
47
+ * import { encodeSupportsInterface } from "thirdweb/extensions/erc721";
48
+ * const result = encodeSupportsInterface({
49
+ * interfaceId: ...,
50
+ * });
51
+ * ```
52
+ */
53
+ export declare function encodeSupportsInterface(options: SupportsInterfaceParams): `${typeof FN_SELECTOR}${string}`;
54
+ /**
55
+ * Decodes the result of the supportsInterface function call.
56
+ * @param result - The hexadecimal result to decode.
57
+ * @returns The decoded result as per the FN_OUTPUTS definition.
58
+ * @extension ERC721
59
+ * @example
60
+ * ```ts
61
+ * import { decodeSupportsInterfaceResult } from "thirdweb/extensions/erc721";
62
+ * const result = decodeSupportsInterfaceResultResult("...");
63
+ * ```
64
+ */
65
+ export declare function decodeSupportsInterfaceResult(result: Hex): boolean;
66
+ /**
67
+ * Calls the "supportsInterface" function on the contract.
68
+ * @param options - The options for the supportsInterface function.
69
+ * @returns The parsed result of the function call.
70
+ * @extension ERC721
71
+ * @example
72
+ * ```ts
73
+ * import { supportsInterface } from "thirdweb/extensions/erc721";
74
+ *
75
+ * const result = await supportsInterface({
76
+ * contract,
77
+ * interfaceId: ...,
78
+ * });
79
+ *
80
+ * ```
81
+ */
82
+ export declare function supportsInterface(options: BaseTransactionOptions<SupportsInterfaceParams>): Promise<boolean>;
83
+ //# sourceMappingURL=supportsInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportsInterface.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,EAAE,2BAA2B,CAAC;QACvC,IAAI,EAAE,QAAQ,CAAC;QACf,IAAI,EAAE,aAAa,CAAC;KACrB,CAAC,CAAC;CACJ,CAAC;AAEF,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AAajD;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAKxE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,uBAAuB,iBAGjC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,uBAAuB,GAM9D,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CACzC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,GAAG,WAExD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,sBAAsB,CAAC,uBAAuB,CAAC,oBAOzD"}
@@ -0,0 +1,83 @@
1
+ import type { AbiParameterToPrimitiveType } from "abitype";
2
+ import type { BaseTransactionOptions } from "../../../../../transaction/types.js";
3
+ import type { Hex } from "../../../../../utils/encoding/hex.js";
4
+ /**
5
+ * Represents the parameters for the "tokenURI" function.
6
+ */
7
+ export type TokenURIParams = {
8
+ tokenId: AbiParameterToPrimitiveType<{
9
+ type: "uint256";
10
+ name: "_tokenId";
11
+ }>;
12
+ };
13
+ export declare const FN_SELECTOR: "0xc87b56dd";
14
+ /**
15
+ * Checks if the `tokenURI` method is supported by the given contract.
16
+ * @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
17
+ * @returns A boolean indicating if the `tokenURI` method is supported.
18
+ * @extension ERC721
19
+ * @example
20
+ * ```ts
21
+ * import { isTokenURISupported } from "thirdweb/extensions/erc721";
22
+ * const supported = isTokenURISupported(["0x..."]);
23
+ * ```
24
+ */
25
+ export declare function isTokenURISupported(availableSelectors: string[]): boolean;
26
+ /**
27
+ * Encodes the parameters for the "tokenURI" function.
28
+ * @param options - The options for the tokenURI function.
29
+ * @returns The encoded ABI parameters.
30
+ * @extension ERC721
31
+ * @example
32
+ * ```ts
33
+ * import { encodeTokenURIParams } from "thirdweb/extensions/erc721";
34
+ * const result = encodeTokenURIParams({
35
+ * tokenId: ...,
36
+ * });
37
+ * ```
38
+ */
39
+ export declare function encodeTokenURIParams(options: TokenURIParams): `0x${string}`;
40
+ /**
41
+ * Encodes the "tokenURI" function into a Hex string with its parameters.
42
+ * @param options - The options for the tokenURI function.
43
+ * @returns The encoded hexadecimal string.
44
+ * @extension ERC721
45
+ * @example
46
+ * ```ts
47
+ * import { encodeTokenURI } from "thirdweb/extensions/erc721";
48
+ * const result = encodeTokenURI({
49
+ * tokenId: ...,
50
+ * });
51
+ * ```
52
+ */
53
+ export declare function encodeTokenURI(options: TokenURIParams): `${typeof FN_SELECTOR}${string}`;
54
+ /**
55
+ * Decodes the result of the tokenURI function call.
56
+ * @param result - The hexadecimal result to decode.
57
+ * @returns The decoded result as per the FN_OUTPUTS definition.
58
+ * @extension ERC721
59
+ * @example
60
+ * ```ts
61
+ * import { decodeTokenURIResult } from "thirdweb/extensions/erc721";
62
+ * const result = decodeTokenURIResultResult("...");
63
+ * ```
64
+ */
65
+ export declare function decodeTokenURIResult(result: Hex): string;
66
+ /**
67
+ * Calls the "tokenURI" function on the contract.
68
+ * @param options - The options for the tokenURI function.
69
+ * @returns The parsed result of the function call.
70
+ * @extension ERC721
71
+ * @example
72
+ * ```ts
73
+ * import { tokenURI } from "thirdweb/extensions/erc721";
74
+ *
75
+ * const result = await tokenURI({
76
+ * contract,
77
+ * tokenId: ...,
78
+ * });
79
+ *
80
+ * ```
81
+ */
82
+ export declare function tokenURI(options: BaseTransactionOptions<TokenURIParams>): Promise<string>;
83
+ //# sourceMappingURL=tokenURI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokenURI.d.ts","sourceRoot":"","sources":["../../../../../../../src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,2BAA2B,CAAC;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;CAC7E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAG,YAAqB,CAAC;AAajD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,kBAAkB,EAAE,MAAM,EAAE,WAK/D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,cAAc,iBAE3D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,cAAc,GAIP,GAAG,OAAO,WAAW,GAAG,MAAM,EAAE,CAC9E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,GAAG,UAE/C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,QAAQ,CAC5B,OAAO,EAAE,sBAAsB,CAAC,cAAc,CAAC,mBAOhD"}