@pooflabs/web 0.0.81 → 0.0.82

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 (81) hide show
  1. package/dist/{index-B2WGCssJ.js → index-BicMkamC.js} +221 -116
  2. package/dist/index-BicMkamC.js.map +1 -0
  3. package/dist/{index-nt_HQVrk.esm.js → index-BsY_Lgiu.esm.js} +222 -116
  4. package/dist/index-BsY_Lgiu.esm.js.map +1 -0
  5. package/dist/index-CHWmdXHE.esm.js +6 -0
  6. package/dist/index-CHWmdXHE.esm.js.map +1 -0
  7. package/dist/{index-CjHbp7Dq.esm.js → index-CK_2Zn89.esm.js} +135 -8
  8. package/dist/index-CK_2Zn89.esm.js.map +1 -0
  9. package/dist/{index-DXPkkq81.js → index-Ci3m3diI.js} +134 -7
  10. package/dist/index-Ci3m3diI.js.map +1 -0
  11. package/dist/{index-dcJIjFrs.esm.js → index-DWf2AOhe.esm.js} +134 -7
  12. package/dist/index-DWf2AOhe.esm.js.map +1 -0
  13. package/dist/{index-D_DiP8XQ.js → index-DlKo76M3.js} +135 -8
  14. package/dist/index-DlKo76M3.js.map +1 -0
  15. package/dist/index-Dz0bPXrU.js +8 -0
  16. package/dist/index-Dz0bPXrU.js.map +1 -0
  17. package/dist/{index.browser-CT6PUv9G.js → index.browser-BkMiHSON.js} +1366 -1569
  18. package/dist/index.browser-BkMiHSON.js.map +1 -0
  19. package/dist/index.browser-C-_FEr5M.esm.js +1134 -0
  20. package/dist/index.browser-C-_FEr5M.esm.js.map +1 -0
  21. package/dist/index.browser-C9bFQZyQ.esm.js +1373 -0
  22. package/dist/index.browser-C9bFQZyQ.esm.js.map +1 -0
  23. package/dist/{index.browser-BNdFfyIg.esm.js → index.browser-DCOvqSUT.esm.js} +1366 -1569
  24. package/dist/index.browser-DCOvqSUT.esm.js.map +1 -0
  25. package/dist/index.browser-Dbq5Qf1G.esm.js +242 -0
  26. package/dist/index.browser-Dbq5Qf1G.esm.js.map +1 -0
  27. package/dist/index.browser-Df7yN8D5.js +245 -0
  28. package/dist/index.browser-Df7yN8D5.js.map +1 -0
  29. package/dist/index.browser-DjEZSiqI.js +1137 -0
  30. package/dist/index.browser-DjEZSiqI.js.map +1 -0
  31. package/dist/index.browser-dszs5oe5.js +1376 -0
  32. package/dist/index.browser-dszs5oe5.js.map +1 -0
  33. package/dist/index.esm.js +1 -1
  34. package/dist/index.js +1 -1
  35. package/dist/{index.native-CyA-RdvW.js → index.native-11supFRU.js} +2683 -207
  36. package/dist/index.native-11supFRU.js.map +1 -0
  37. package/dist/{index.native-BqYr--vb.esm.js → index.native-CLaHKvDv.esm.js} +2682 -207
  38. package/dist/index.native-CLaHKvDv.esm.js.map +1 -0
  39. package/dist/index.native.esm.js +1 -1
  40. package/dist/index.native.js +1 -1
  41. package/dist/{phantom-wallet-provider-K2V96G-G.esm.js → phantom-wallet-provider-BN47klTp.esm.js} +4 -4
  42. package/dist/{phantom-wallet-provider-K2V96G-G.esm.js.map → phantom-wallet-provider-BN47klTp.esm.js.map} +1 -1
  43. package/dist/{phantom-wallet-provider-DWCaMkyz.js → phantom-wallet-provider-Xb070-O6.js} +4 -4
  44. package/dist/{phantom-wallet-provider-DWCaMkyz.js.map → phantom-wallet-provider-Xb070-O6.js.map} +1 -1
  45. package/dist/{privy-wallet-provider-BMg_S_d0.js → privy-wallet-provider-Ch22rj_G.js} +4 -4
  46. package/dist/privy-wallet-provider-Ch22rj_G.js.map +1 -0
  47. package/dist/{privy-wallet-provider-DoX8q99w.esm.js → privy-wallet-provider-DUJS5viU.esm.js} +4 -4
  48. package/dist/privy-wallet-provider-DUJS5viU.esm.js.map +1 -0
  49. package/dist/{solana-mobile-wallet-provider-Cmphb3oB.esm.js → solana-mobile-wallet-provider-BF04Xp8P.esm.js} +4 -4
  50. package/dist/{solana-mobile-wallet-provider-Cmphb3oB.esm.js.map → solana-mobile-wallet-provider-BF04Xp8P.esm.js.map} +1 -1
  51. package/dist/{solana-mobile-wallet-provider-t22Ie8lY.js → solana-mobile-wallet-provider-BXm94fqW.js} +4 -4
  52. package/dist/{solana-mobile-wallet-provider-t22Ie8lY.js.map → solana-mobile-wallet-provider-BXm94fqW.js.map} +1 -1
  53. package/package.json +2 -2
  54. package/dist/index-B2WGCssJ.js.map +0 -1
  55. package/dist/index-Bdcc5821.js +0 -2375
  56. package/dist/index-Bdcc5821.js.map +0 -1
  57. package/dist/index-CjHbp7Dq.esm.js.map +0 -1
  58. package/dist/index-CrOVJFX9.esm.js +0 -2373
  59. package/dist/index-CrOVJFX9.esm.js.map +0 -1
  60. package/dist/index-DXPkkq81.js.map +0 -1
  61. package/dist/index-D_DiP8XQ.js.map +0 -1
  62. package/dist/index-dcJIjFrs.esm.js.map +0 -1
  63. package/dist/index-nt_HQVrk.esm.js.map +0 -1
  64. package/dist/index.browser-BNdFfyIg.esm.js.map +0 -1
  65. package/dist/index.browser-CT6PUv9G.js.map +0 -1
  66. package/dist/index.browser-Cy21yaX0.esm.js +0 -1096
  67. package/dist/index.browser-Cy21yaX0.esm.js.map +0 -1
  68. package/dist/index.browser-OvGNsMPu.esm.js +0 -1002
  69. package/dist/index.browser-OvGNsMPu.esm.js.map +0 -1
  70. package/dist/index.browser-ZD7Tz2bn.js +0 -1099
  71. package/dist/index.browser-ZD7Tz2bn.js.map +0 -1
  72. package/dist/index.browser-d0PlOXpF.js +0 -105
  73. package/dist/index.browser-d0PlOXpF.js.map +0 -1
  74. package/dist/index.browser-pE1s68e9.esm.js +0 -102
  75. package/dist/index.browser-pE1s68e9.esm.js.map +0 -1
  76. package/dist/index.browser-vuTr40so.js +0 -1008
  77. package/dist/index.browser-vuTr40so.js.map +0 -1
  78. package/dist/index.native-BqYr--vb.esm.js.map +0 -1
  79. package/dist/index.native-CyA-RdvW.js.map +0 -1
  80. package/dist/privy-wallet-provider-BMg_S_d0.js.map +0 -1
  81. package/dist/privy-wallet-provider-DoX8q99w.esm.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  var React = require('react');
4
4
  var globalAxios = require('axios');
5
- var index = require('./index-B2WGCssJ.js');
5
+ var index = require('./index-BicMkamC.js');
6
6
  var web3_js = require('@solana/web3.js');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
  require('@coral-xyz/anchor');
@@ -3554,17 +3554,17 @@ function requireSrc () {
3554
3554
  return src;
3555
3555
  }
3556
3556
 
3557
- var bs58$2;
3557
+ var bs58$3;
3558
3558
  var hasRequiredBs58;
3559
3559
 
3560
3560
  function requireBs58 () {
3561
- if (hasRequiredBs58) return bs58$2;
3561
+ if (hasRequiredBs58) return bs58$3;
3562
3562
  hasRequiredBs58 = 1;
3563
3563
  const basex = requireSrc();
3564
3564
  const ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
3565
3565
 
3566
- bs58$2 = basex(ALPHABET);
3567
- return bs58$2;
3566
+ bs58$3 = basex(ALPHABET);
3567
+ return bs58$3;
3568
3568
  }
3569
3569
 
3570
3570
  requireBs58();
@@ -11201,6 +11201,133 @@ class Transaction {
11201
11201
  }
11202
11202
  }
11203
11203
 
11204
+ // base-x encoding / decoding
11205
+ // Copyright (c) 2018 base-x contributors
11206
+ // Copyright (c) 2014-2018 The Bitcoin Core developers (base58.cpp)
11207
+ // Distributed under the MIT software license, see the accompanying
11208
+ // file LICENSE or http://www.opensource.org/licenses/mit-license.php.
11209
+ function base$3 (ALPHABET) {
11210
+ if (ALPHABET.length >= 255) { throw new TypeError('Alphabet too long') }
11211
+ const BASE_MAP = new Uint8Array(256);
11212
+ for (let j = 0; j < BASE_MAP.length; j++) {
11213
+ BASE_MAP[j] = 255;
11214
+ }
11215
+ for (let i = 0; i < ALPHABET.length; i++) {
11216
+ const x = ALPHABET.charAt(i);
11217
+ const xc = x.charCodeAt(0);
11218
+ if (BASE_MAP[xc] !== 255) { throw new TypeError(x + ' is ambiguous') }
11219
+ BASE_MAP[xc] = i;
11220
+ }
11221
+ const BASE = ALPHABET.length;
11222
+ const LEADER = ALPHABET.charAt(0);
11223
+ const FACTOR = Math.log(BASE) / Math.log(256); // log(BASE) / log(256), rounded up
11224
+ const iFACTOR = Math.log(256) / Math.log(BASE); // log(256) / log(BASE), rounded up
11225
+ function encode (source) {
11226
+ // eslint-disable-next-line no-empty
11227
+ if (source instanceof Uint8Array) ; else if (ArrayBuffer.isView(source)) {
11228
+ source = new Uint8Array(source.buffer, source.byteOffset, source.byteLength);
11229
+ } else if (Array.isArray(source)) {
11230
+ source = Uint8Array.from(source);
11231
+ }
11232
+ if (!(source instanceof Uint8Array)) { throw new TypeError('Expected Uint8Array') }
11233
+ if (source.length === 0) { return '' }
11234
+ // Skip & count leading zeroes.
11235
+ let zeroes = 0;
11236
+ let length = 0;
11237
+ let pbegin = 0;
11238
+ const pend = source.length;
11239
+ while (pbegin !== pend && source[pbegin] === 0) {
11240
+ pbegin++;
11241
+ zeroes++;
11242
+ }
11243
+ // Allocate enough space in big-endian base58 representation.
11244
+ const size = ((pend - pbegin) * iFACTOR + 1) >>> 0;
11245
+ const b58 = new Uint8Array(size);
11246
+ // Process the bytes.
11247
+ while (pbegin !== pend) {
11248
+ let carry = source[pbegin];
11249
+ // Apply "b58 = b58 * 256 + ch".
11250
+ let i = 0;
11251
+ for (let it1 = size - 1; (carry !== 0 || i < length) && (it1 !== -1); it1--, i++) {
11252
+ carry += (256 * b58[it1]) >>> 0;
11253
+ b58[it1] = (carry % BASE) >>> 0;
11254
+ carry = (carry / BASE) >>> 0;
11255
+ }
11256
+ if (carry !== 0) { throw new Error('Non-zero carry') }
11257
+ length = i;
11258
+ pbegin++;
11259
+ }
11260
+ // Skip leading zeroes in base58 result.
11261
+ let it2 = size - length;
11262
+ while (it2 !== size && b58[it2] === 0) {
11263
+ it2++;
11264
+ }
11265
+ // Translate the result into a string.
11266
+ let str = LEADER.repeat(zeroes);
11267
+ for (; it2 < size; ++it2) { str += ALPHABET.charAt(b58[it2]); }
11268
+ return str
11269
+ }
11270
+ function decodeUnsafe (source) {
11271
+ if (typeof source !== 'string') { throw new TypeError('Expected String') }
11272
+ if (source.length === 0) { return new Uint8Array() }
11273
+ let psz = 0;
11274
+ // Skip and count leading '1's.
11275
+ let zeroes = 0;
11276
+ let length = 0;
11277
+ while (source[psz] === LEADER) {
11278
+ zeroes++;
11279
+ psz++;
11280
+ }
11281
+ // Allocate enough space in big-endian base256 representation.
11282
+ const size = (((source.length - psz) * FACTOR) + 1) >>> 0; // log(58) / log(256), rounded up.
11283
+ const b256 = new Uint8Array(size);
11284
+ // Process the characters.
11285
+ while (psz < source.length) {
11286
+ // Find code of next character
11287
+ const charCode = source.charCodeAt(psz);
11288
+ // Base map can not be indexed using char code
11289
+ if (charCode > 255) { return }
11290
+ // Decode character
11291
+ let carry = BASE_MAP[charCode];
11292
+ // Invalid character
11293
+ if (carry === 255) { return }
11294
+ let i = 0;
11295
+ for (let it3 = size - 1; (carry !== 0 || i < length) && (it3 !== -1); it3--, i++) {
11296
+ carry += (BASE * b256[it3]) >>> 0;
11297
+ b256[it3] = (carry % 256) >>> 0;
11298
+ carry = (carry / 256) >>> 0;
11299
+ }
11300
+ if (carry !== 0) { throw new Error('Non-zero carry') }
11301
+ length = i;
11302
+ psz++;
11303
+ }
11304
+ // Skip leading zeroes in b256.
11305
+ let it4 = size - length;
11306
+ while (it4 !== size && b256[it4] === 0) {
11307
+ it4++;
11308
+ }
11309
+ const vch = new Uint8Array(zeroes + (size - it4));
11310
+ let j = zeroes;
11311
+ while (it4 !== size) {
11312
+ vch[j++] = b256[it4++];
11313
+ }
11314
+ return vch
11315
+ }
11316
+ function decode (string) {
11317
+ const buffer = decodeUnsafe(string);
11318
+ if (buffer) { return buffer }
11319
+ throw new Error('Non-base' + BASE + ' character')
11320
+ }
11321
+ return {
11322
+ encode,
11323
+ decodeUnsafe,
11324
+ decode
11325
+ }
11326
+ }
11327
+
11328
+ var ALPHABET$3 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
11329
+ var bs58$2 = base$3(ALPHABET$3);
11330
+
11204
11331
  // src/index.ts
11205
11332
  function parseSignMessageResponse(base64Response, networkId) {
11206
11333
  const networkPrefix = networkId.split(":")[0].toLowerCase();
@@ -11247,7 +11374,7 @@ function parseTransactionResponse(base64RawTransaction, networkId, hash) {
11247
11374
  function parseSolanaSignatureResponse(base64Response) {
11248
11375
  try {
11249
11376
  const signatureBytes = base64urlDecode(base64Response);
11250
- const signature = index.base58.encode(signatureBytes);
11377
+ const signature = bs58$2.encode(signatureBytes);
11251
11378
  return {
11252
11379
  signature,
11253
11380
  rawSignature: base64Response
@@ -19059,4 +19186,4 @@ exports.useModal = useModal;
19059
19186
  exports.usePhantom = usePhantom;
19060
19187
  exports.useSolana = useSolana;
19061
19188
  exports.useTheme = useTheme;
19062
- //# sourceMappingURL=index-DXPkkq81.js.map
19189
+ //# sourceMappingURL=index-Ci3m3diI.js.map