@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
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { useContext, createContext, useState, useMemo, useRef, useEffect, useCallback } from 'react';
3
3
  import globalAxios, { isAxiosError } from 'axios';
4
- import { c as commonjsRequire, r as require$$0, b as bufferExports, g as getDefaultExportFromCjs, a as base58 } from './index-nt_HQVrk.esm.js';
4
+ import { c as commonjsRequire, r as require$$0, b as bufferExports, g as getDefaultExportFromCjs } from './index-BsY_Lgiu.esm.js';
5
5
  import { Transaction as Transaction$1, VersionedTransaction } from '@solana/web3.js';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import '@coral-xyz/anchor';
@@ -3534,17 +3534,17 @@ function requireSrc () {
3534
3534
  return src;
3535
3535
  }
3536
3536
 
3537
- var bs58$2;
3537
+ var bs58$3;
3538
3538
  var hasRequiredBs58;
3539
3539
 
3540
3540
  function requireBs58 () {
3541
- if (hasRequiredBs58) return bs58$2;
3541
+ if (hasRequiredBs58) return bs58$3;
3542
3542
  hasRequiredBs58 = 1;
3543
3543
  const basex = requireSrc();
3544
3544
  const ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
3545
3545
 
3546
- bs58$2 = basex(ALPHABET);
3547
- return bs58$2;
3546
+ bs58$3 = basex(ALPHABET);
3547
+ return bs58$3;
3548
3548
  }
3549
3549
 
3550
3550
  requireBs58();
@@ -11181,6 +11181,133 @@ class Transaction {
11181
11181
  }
11182
11182
  }
11183
11183
 
11184
+ // base-x encoding / decoding
11185
+ // Copyright (c) 2018 base-x contributors
11186
+ // Copyright (c) 2014-2018 The Bitcoin Core developers (base58.cpp)
11187
+ // Distributed under the MIT software license, see the accompanying
11188
+ // file LICENSE or http://www.opensource.org/licenses/mit-license.php.
11189
+ function base$3 (ALPHABET) {
11190
+ if (ALPHABET.length >= 255) { throw new TypeError('Alphabet too long') }
11191
+ const BASE_MAP = new Uint8Array(256);
11192
+ for (let j = 0; j < BASE_MAP.length; j++) {
11193
+ BASE_MAP[j] = 255;
11194
+ }
11195
+ for (let i = 0; i < ALPHABET.length; i++) {
11196
+ const x = ALPHABET.charAt(i);
11197
+ const xc = x.charCodeAt(0);
11198
+ if (BASE_MAP[xc] !== 255) { throw new TypeError(x + ' is ambiguous') }
11199
+ BASE_MAP[xc] = i;
11200
+ }
11201
+ const BASE = ALPHABET.length;
11202
+ const LEADER = ALPHABET.charAt(0);
11203
+ const FACTOR = Math.log(BASE) / Math.log(256); // log(BASE) / log(256), rounded up
11204
+ const iFACTOR = Math.log(256) / Math.log(BASE); // log(256) / log(BASE), rounded up
11205
+ function encode (source) {
11206
+ // eslint-disable-next-line no-empty
11207
+ if (source instanceof Uint8Array) ; else if (ArrayBuffer.isView(source)) {
11208
+ source = new Uint8Array(source.buffer, source.byteOffset, source.byteLength);
11209
+ } else if (Array.isArray(source)) {
11210
+ source = Uint8Array.from(source);
11211
+ }
11212
+ if (!(source instanceof Uint8Array)) { throw new TypeError('Expected Uint8Array') }
11213
+ if (source.length === 0) { return '' }
11214
+ // Skip & count leading zeroes.
11215
+ let zeroes = 0;
11216
+ let length = 0;
11217
+ let pbegin = 0;
11218
+ const pend = source.length;
11219
+ while (pbegin !== pend && source[pbegin] === 0) {
11220
+ pbegin++;
11221
+ zeroes++;
11222
+ }
11223
+ // Allocate enough space in big-endian base58 representation.
11224
+ const size = ((pend - pbegin) * iFACTOR + 1) >>> 0;
11225
+ const b58 = new Uint8Array(size);
11226
+ // Process the bytes.
11227
+ while (pbegin !== pend) {
11228
+ let carry = source[pbegin];
11229
+ // Apply "b58 = b58 * 256 + ch".
11230
+ let i = 0;
11231
+ for (let it1 = size - 1; (carry !== 0 || i < length) && (it1 !== -1); it1--, i++) {
11232
+ carry += (256 * b58[it1]) >>> 0;
11233
+ b58[it1] = (carry % BASE) >>> 0;
11234
+ carry = (carry / BASE) >>> 0;
11235
+ }
11236
+ if (carry !== 0) { throw new Error('Non-zero carry') }
11237
+ length = i;
11238
+ pbegin++;
11239
+ }
11240
+ // Skip leading zeroes in base58 result.
11241
+ let it2 = size - length;
11242
+ while (it2 !== size && b58[it2] === 0) {
11243
+ it2++;
11244
+ }
11245
+ // Translate the result into a string.
11246
+ let str = LEADER.repeat(zeroes);
11247
+ for (; it2 < size; ++it2) { str += ALPHABET.charAt(b58[it2]); }
11248
+ return str
11249
+ }
11250
+ function decodeUnsafe (source) {
11251
+ if (typeof source !== 'string') { throw new TypeError('Expected String') }
11252
+ if (source.length === 0) { return new Uint8Array() }
11253
+ let psz = 0;
11254
+ // Skip and count leading '1's.
11255
+ let zeroes = 0;
11256
+ let length = 0;
11257
+ while (source[psz] === LEADER) {
11258
+ zeroes++;
11259
+ psz++;
11260
+ }
11261
+ // Allocate enough space in big-endian base256 representation.
11262
+ const size = (((source.length - psz) * FACTOR) + 1) >>> 0; // log(58) / log(256), rounded up.
11263
+ const b256 = new Uint8Array(size);
11264
+ // Process the characters.
11265
+ while (psz < source.length) {
11266
+ // Find code of next character
11267
+ const charCode = source.charCodeAt(psz);
11268
+ // Base map can not be indexed using char code
11269
+ if (charCode > 255) { return }
11270
+ // Decode character
11271
+ let carry = BASE_MAP[charCode];
11272
+ // Invalid character
11273
+ if (carry === 255) { return }
11274
+ let i = 0;
11275
+ for (let it3 = size - 1; (carry !== 0 || i < length) && (it3 !== -1); it3--, i++) {
11276
+ carry += (BASE * b256[it3]) >>> 0;
11277
+ b256[it3] = (carry % 256) >>> 0;
11278
+ carry = (carry / 256) >>> 0;
11279
+ }
11280
+ if (carry !== 0) { throw new Error('Non-zero carry') }
11281
+ length = i;
11282
+ psz++;
11283
+ }
11284
+ // Skip leading zeroes in b256.
11285
+ let it4 = size - length;
11286
+ while (it4 !== size && b256[it4] === 0) {
11287
+ it4++;
11288
+ }
11289
+ const vch = new Uint8Array(zeroes + (size - it4));
11290
+ let j = zeroes;
11291
+ while (it4 !== size) {
11292
+ vch[j++] = b256[it4++];
11293
+ }
11294
+ return vch
11295
+ }
11296
+ function decode (string) {
11297
+ const buffer = decodeUnsafe(string);
11298
+ if (buffer) { return buffer }
11299
+ throw new Error('Non-base' + BASE + ' character')
11300
+ }
11301
+ return {
11302
+ encode,
11303
+ decodeUnsafe,
11304
+ decode
11305
+ }
11306
+ }
11307
+
11308
+ var ALPHABET$3 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
11309
+ var bs58$2 = base$3(ALPHABET$3);
11310
+
11184
11311
  // src/index.ts
11185
11312
  function parseSignMessageResponse(base64Response, networkId) {
11186
11313
  const networkPrefix = networkId.split(":")[0].toLowerCase();
@@ -11227,7 +11354,7 @@ function parseTransactionResponse(base64RawTransaction, networkId, hash) {
11227
11354
  function parseSolanaSignatureResponse(base64Response) {
11228
11355
  try {
11229
11356
  const signatureBytes = base64urlDecode(base64Response);
11230
- const signature = base58.encode(signatureBytes);
11357
+ const signature = bs58$2.encode(signatureBytes);
11231
11358
  return {
11232
11359
  signature,
11233
11360
  rawSignature: base64Response
@@ -19018,4 +19145,4 @@ function ConnectBox({ maxWidth = "350px", transparent = false, appIcon, appName
19018
19145
  }
19019
19146
 
19020
19147
  export { DerivationInfoAddressFormatEnum as AddressType, ConnectBox, ConnectButton, DebugLevel, NetworkId, PhantomProvider, darkTheme, debug, isMobileDevice, lightTheme, mergeTheme, useAccounts, useAutoConfirm, useConnect, useDisconnect, useDiscoveredWallets, useEthereum, useIsExtensionInstalled, useIsPhantomLoginAvailable, useModal, usePhantom, useSolana, useTheme };
19021
- //# sourceMappingURL=index-dcJIjFrs.esm.js.map
19148
+ //# sourceMappingURL=index-DWf2AOhe.esm.js.map