@tonconnect/sdk 2.0.6 → 2.1.0
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.
- package/README.md +81 -9
- package/dist/tonconnect-sdk.min.js +1 -1
- package/dist/tonconnect-sdk.min.js.map +1 -1
- package/lib/cjs/index.cjs +1613 -0
- package/lib/cjs/index.cjs.map +1 -0
- package/lib/esm/index.mjs +1583 -0
- package/lib/esm/index.mjs.map +1 -0
- package/lib/types/index.d.ts +597 -8
- package/package.json +15 -15
- package/lib/cjs/errors/address/index.js +0 -6
- package/lib/cjs/errors/address/index.js.map +0 -1
- package/lib/cjs/errors/address/wrong-address.error.js +0 -15
- package/lib/cjs/errors/address/wrong-address.error.js.map +0 -1
- package/lib/cjs/errors/binary/index.js +0 -6
- package/lib/cjs/errors/binary/index.js.map +0 -1
- package/lib/cjs/errors/binary/parse-hex.error.js +0 -15
- package/lib/cjs/errors/binary/parse-hex.error.js.map +0 -1
- package/lib/cjs/errors/dapp/dapp-metadata.error.js +0 -15
- package/lib/cjs/errors/dapp/dapp-metadata.error.js.map +0 -1
- package/lib/cjs/errors/index.js +0 -28
- package/lib/cjs/errors/index.js.map +0 -1
- package/lib/cjs/errors/protocol/events/connect/index.js +0 -6
- package/lib/cjs/errors/protocol/events/connect/index.js.map +0 -1
- package/lib/cjs/errors/protocol/events/connect/manifest-content-error.error.js +0 -16
- package/lib/cjs/errors/protocol/events/connect/manifest-content-error.error.js.map +0 -1
- package/lib/cjs/errors/protocol/events/connect/manifest-not-found.error.js +0 -16
- package/lib/cjs/errors/protocol/events/connect/manifest-not-found.error.js.map +0 -1
- package/lib/cjs/errors/protocol/events/connect/user-rejects.error.js +0 -15
- package/lib/cjs/errors/protocol/events/connect/user-rejects.error.js.map +0 -1
- package/lib/cjs/errors/protocol/events/index.js +0 -18
- package/lib/cjs/errors/protocol/events/index.js.map +0 -1
- package/lib/cjs/errors/protocol/index.js +0 -19
- package/lib/cjs/errors/protocol/index.js.map +0 -1
- package/lib/cjs/errors/protocol/responses/bad-request.error.js +0 -15
- package/lib/cjs/errors/protocol/responses/bad-request.error.js.map +0 -1
- package/lib/cjs/errors/protocol/responses/index.js +0 -8
- package/lib/cjs/errors/protocol/responses/index.js.map +0 -1
- package/lib/cjs/errors/protocol/responses/unknown-app.error.js +0 -15
- package/lib/cjs/errors/protocol/responses/unknown-app.error.js.map +0 -1
- package/lib/cjs/errors/storage/index.js +0 -6
- package/lib/cjs/errors/storage/index.js.map +0 -1
- package/lib/cjs/errors/storage/localstorage-not-found.error.js +0 -15
- package/lib/cjs/errors/storage/localstorage-not-found.error.js.map +0 -1
- package/lib/cjs/errors/ton-connect.error.js +0 -18
- package/lib/cjs/errors/ton-connect.error.js.map +0 -1
- package/lib/cjs/errors/unknown.error.js +0 -15
- package/lib/cjs/errors/unknown.error.js.map +0 -1
- package/lib/cjs/errors/wallet/index.js +0 -10
- package/lib/cjs/errors/wallet/index.js.map +0 -1
- package/lib/cjs/errors/wallet/wallet-already-connected.error.js +0 -15
- package/lib/cjs/errors/wallet/wallet-already-connected.error.js.map +0 -1
- package/lib/cjs/errors/wallet/wallet-not-connected.error.js +0 -15
- package/lib/cjs/errors/wallet/wallet-not-connected.error.js.map +0 -1
- package/lib/cjs/errors/wallet/wallet-not-injected.error.js +0 -15
- package/lib/cjs/errors/wallet/wallet-not-injected.error.js.map +0 -1
- package/lib/cjs/errors/wallet/wallet-not-support-feature.error.js +0 -15
- package/lib/cjs/errors/wallet/wallet-not-support-feature.error.js.map +0 -1
- package/lib/cjs/errors/wallets-manager/fetch-wallets.error.js +0 -15
- package/lib/cjs/errors/wallets-manager/fetch-wallets.error.js.map +0 -1
- package/lib/cjs/errors/wallets-manager/index.js +0 -6
- package/lib/cjs/errors/wallets-manager/index.js.map +0 -1
- package/lib/cjs/index.js +0 -27
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/models/dapp/dapp-metadata.js +0 -3
- package/lib/cjs/models/dapp/dapp-metadata.js.map +0 -1
- package/lib/cjs/models/index.js +0 -19
- package/lib/cjs/models/index.js.map +0 -1
- package/lib/cjs/models/methods/connect/connect-additional-request.js +0 -3
- package/lib/cjs/models/methods/connect/connect-additional-request.js.map +0 -1
- package/lib/cjs/models/methods/connect/index.js +0 -3
- package/lib/cjs/models/methods/connect/index.js.map +0 -1
- package/lib/cjs/models/methods/index.js +0 -19
- package/lib/cjs/models/methods/index.js.map +0 -1
- package/lib/cjs/models/methods/send-transaction/index.js +0 -3
- package/lib/cjs/models/methods/send-transaction/index.js.map +0 -1
- package/lib/cjs/models/methods/send-transaction/send-transaction-request.js +0 -3
- package/lib/cjs/models/methods/send-transaction/send-transaction-request.js.map +0 -1
- package/lib/cjs/models/methods/send-transaction/send-transaction-response.js +0 -3
- package/lib/cjs/models/methods/send-transaction/send-transaction-response.js.map +0 -1
- package/lib/cjs/models/ton-connect-options.js +0 -3
- package/lib/cjs/models/ton-connect-options.js.map +0 -1
- package/lib/cjs/models/wallet/account.js +0 -3
- package/lib/cjs/models/wallet/account.js.map +0 -1
- package/lib/cjs/models/wallet/index.js +0 -6
- package/lib/cjs/models/wallet/index.js.map +0 -1
- package/lib/cjs/models/wallet/wallet-connection-source.js +0 -8
- package/lib/cjs/models/wallet/wallet-connection-source.js.map +0 -1
- package/lib/cjs/models/wallet/wallet-info.js +0 -8
- package/lib/cjs/models/wallet/wallet-info.js.map +0 -1
- package/lib/cjs/models/wallet/wallet.js +0 -3
- package/lib/cjs/models/wallet/wallet.js.map +0 -1
- package/lib/cjs/parsers/connect-errors-parser.js +0 -27
- package/lib/cjs/parsers/connect-errors-parser.js.map +0 -1
- package/lib/cjs/parsers/rpc-parser.js +0 -10
- package/lib/cjs/parsers/rpc-parser.js.map +0 -1
- package/lib/cjs/parsers/send-transaction-parser.js +0 -35
- package/lib/cjs/parsers/send-transaction-parser.js.map +0 -1
- package/lib/cjs/provider/bridge/bridge-gateway.js +0 -110
- package/lib/cjs/provider/bridge/bridge-gateway.js.map +0 -1
- package/lib/cjs/provider/bridge/bridge-provider.js +0 -147
- package/lib/cjs/provider/bridge/bridge-provider.js.map +0 -1
- package/lib/cjs/provider/bridge/models/bridge-connection.js +0 -3
- package/lib/cjs/provider/bridge/models/bridge-connection.js.map +0 -1
- package/lib/cjs/provider/bridge/models/bridge-incomming-message.js +0 -3
- package/lib/cjs/provider/bridge/models/bridge-incomming-message.js.map +0 -1
- package/lib/cjs/provider/bridge/models/bridge-session-raw.js +0 -3
- package/lib/cjs/provider/bridge/models/bridge-session-raw.js.map +0 -1
- package/lib/cjs/provider/bridge/models/bridge-session.js +0 -3
- package/lib/cjs/provider/bridge/models/bridge-session.js.map +0 -1
- package/lib/cjs/provider/injected/injected-provider.js +0 -143
- package/lib/cjs/provider/injected/injected-provider.js.map +0 -1
- package/lib/cjs/provider/injected/models/injected-wallet-api.js +0 -3
- package/lib/cjs/provider/injected/models/injected-wallet-api.js.map +0 -1
- package/lib/cjs/provider/provider.js +0 -3
- package/lib/cjs/provider/provider.js.map +0 -1
- package/lib/cjs/resources/protocol.js +0 -5
- package/lib/cjs/resources/protocol.js.map +0 -1
- package/lib/cjs/storage/bridge-connection-storage.js +0 -101
- package/lib/cjs/storage/bridge-connection-storage.js.map +0 -1
- package/lib/cjs/storage/default-storage.js +0 -40
- package/lib/cjs/storage/default-storage.js.map +0 -1
- package/lib/cjs/storage/http-bridge-gateway-storage.js +0 -39
- package/lib/cjs/storage/http-bridge-gateway-storage.js.map +0 -1
- package/lib/cjs/storage/models/storage.interface.js +0 -3
- package/lib/cjs/storage/models/storage.interface.js.map +0 -1
- package/lib/cjs/ton-connect.interface.js +0 -3
- package/lib/cjs/ton-connect.interface.js.map +0 -1
- package/lib/cjs/ton-connect.js +0 -275
- package/lib/cjs/ton-connect.js.map +0 -1
- package/lib/cjs/utils/address.js +0 -98
- package/lib/cjs/utils/address.js.map +0 -1
- package/lib/cjs/utils/options.js +0 -16
- package/lib/cjs/utils/options.js.map +0 -1
- package/lib/cjs/utils/types.js +0 -3
- package/lib/cjs/utils/types.js.map +0 -1
- package/lib/cjs/utils/url.js +0 -15
- package/lib/cjs/utils/url.js.map +0 -1
- package/lib/cjs/utils/web-api.js +0 -27
- package/lib/cjs/utils/web-api.js.map +0 -1
- package/lib/cjs/wallets-list-manager.js +0 -123
- package/lib/cjs/wallets-list-manager.js.map +0 -1
- package/lib/esm/errors/address/index.js +0 -2
- package/lib/esm/errors/address/index.js.map +0 -1
- package/lib/esm/errors/address/wrong-address.error.js +0 -11
- package/lib/esm/errors/address/wrong-address.error.js.map +0 -1
- package/lib/esm/errors/binary/index.js +0 -2
- package/lib/esm/errors/binary/index.js.map +0 -1
- package/lib/esm/errors/binary/parse-hex.error.js +0 -11
- package/lib/esm/errors/binary/parse-hex.error.js.map +0 -1
- package/lib/esm/errors/dapp/dapp-metadata.error.js +0 -11
- package/lib/esm/errors/dapp/dapp-metadata.error.js.map +0 -1
- package/lib/esm/errors/index.js +0 -9
- package/lib/esm/errors/index.js.map +0 -1
- package/lib/esm/errors/protocol/events/connect/index.js +0 -2
- package/lib/esm/errors/protocol/events/connect/index.js.map +0 -1
- package/lib/esm/errors/protocol/events/connect/manifest-content-error.error.js +0 -12
- package/lib/esm/errors/protocol/events/connect/manifest-content-error.error.js.map +0 -1
- package/lib/esm/errors/protocol/events/connect/manifest-not-found.error.js +0 -12
- package/lib/esm/errors/protocol/events/connect/manifest-not-found.error.js.map +0 -1
- package/lib/esm/errors/protocol/events/connect/user-rejects.error.js +0 -11
- package/lib/esm/errors/protocol/events/connect/user-rejects.error.js.map +0 -1
- package/lib/esm/errors/protocol/events/index.js +0 -2
- package/lib/esm/errors/protocol/events/index.js.map +0 -1
- package/lib/esm/errors/protocol/index.js +0 -3
- package/lib/esm/errors/protocol/index.js.map +0 -1
- package/lib/esm/errors/protocol/responses/bad-request.error.js +0 -11
- package/lib/esm/errors/protocol/responses/bad-request.error.js.map +0 -1
- package/lib/esm/errors/protocol/responses/index.js +0 -3
- package/lib/esm/errors/protocol/responses/index.js.map +0 -1
- package/lib/esm/errors/protocol/responses/unknown-app.error.js +0 -11
- package/lib/esm/errors/protocol/responses/unknown-app.error.js.map +0 -1
- package/lib/esm/errors/storage/index.js +0 -2
- package/lib/esm/errors/storage/index.js.map +0 -1
- package/lib/esm/errors/storage/localstorage-not-found.error.js +0 -11
- package/lib/esm/errors/storage/localstorage-not-found.error.js.map +0 -1
- package/lib/esm/errors/ton-connect.error.js +0 -14
- package/lib/esm/errors/ton-connect.error.js.map +0 -1
- package/lib/esm/errors/unknown.error.js +0 -11
- package/lib/esm/errors/unknown.error.js.map +0 -1
- package/lib/esm/errors/wallet/index.js +0 -4
- package/lib/esm/errors/wallet/index.js.map +0 -1
- package/lib/esm/errors/wallet/wallet-already-connected.error.js +0 -11
- package/lib/esm/errors/wallet/wallet-already-connected.error.js.map +0 -1
- package/lib/esm/errors/wallet/wallet-not-connected.error.js +0 -11
- package/lib/esm/errors/wallet/wallet-not-connected.error.js.map +0 -1
- package/lib/esm/errors/wallet/wallet-not-injected.error.js +0 -11
- package/lib/esm/errors/wallet/wallet-not-injected.error.js.map +0 -1
- package/lib/esm/errors/wallet/wallet-not-support-feature.error.js +0 -11
- package/lib/esm/errors/wallet/wallet-not-support-feature.error.js.map +0 -1
- package/lib/esm/errors/wallets-manager/fetch-wallets.error.js +0 -11
- package/lib/esm/errors/wallets-manager/fetch-wallets.error.js.map +0 -1
- package/lib/esm/errors/wallets-manager/index.js +0 -2
- package/lib/esm/errors/wallets-manager/index.js.map +0 -1
- package/lib/esm/index.js +0 -7
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/models/dapp/dapp-metadata.js +0 -2
- package/lib/esm/models/dapp/dapp-metadata.js.map +0 -1
- package/lib/esm/models/index.js +0 -3
- package/lib/esm/models/index.js.map +0 -1
- package/lib/esm/models/methods/connect/connect-additional-request.js +0 -2
- package/lib/esm/models/methods/connect/connect-additional-request.js.map +0 -1
- package/lib/esm/models/methods/connect/index.js +0 -2
- package/lib/esm/models/methods/connect/index.js.map +0 -1
- package/lib/esm/models/methods/index.js +0 -3
- package/lib/esm/models/methods/index.js.map +0 -1
- package/lib/esm/models/methods/send-transaction/index.js +0 -2
- package/lib/esm/models/methods/send-transaction/index.js.map +0 -1
- package/lib/esm/models/methods/send-transaction/send-transaction-request.js +0 -2
- package/lib/esm/models/methods/send-transaction/send-transaction-request.js.map +0 -1
- package/lib/esm/models/methods/send-transaction/send-transaction-response.js +0 -2
- package/lib/esm/models/methods/send-transaction/send-transaction-response.js.map +0 -1
- package/lib/esm/models/ton-connect-options.js +0 -2
- package/lib/esm/models/ton-connect-options.js.map +0 -1
- package/lib/esm/models/wallet/account.js +0 -2
- package/lib/esm/models/wallet/account.js.map +0 -1
- package/lib/esm/models/wallet/index.js +0 -2
- package/lib/esm/models/wallet/index.js.map +0 -1
- package/lib/esm/models/wallet/wallet-connection-source.js +0 -4
- package/lib/esm/models/wallet/wallet-connection-source.js.map +0 -1
- package/lib/esm/models/wallet/wallet-info.js +0 -4
- package/lib/esm/models/wallet/wallet-info.js.map +0 -1
- package/lib/esm/models/wallet/wallet.js +0 -2
- package/lib/esm/models/wallet/wallet.js.map +0 -1
- package/lib/esm/parsers/connect-errors-parser.js +0 -24
- package/lib/esm/parsers/connect-errors-parser.js.map +0 -1
- package/lib/esm/parsers/rpc-parser.js +0 -6
- package/lib/esm/parsers/rpc-parser.js.map +0 -1
- package/lib/esm/parsers/send-transaction-parser.js +0 -32
- package/lib/esm/parsers/send-transaction-parser.js.map +0 -1
- package/lib/esm/provider/bridge/bridge-gateway.js +0 -106
- package/lib/esm/provider/bridge/bridge-gateway.js.map +0 -1
- package/lib/esm/provider/bridge/bridge-provider.js +0 -143
- package/lib/esm/provider/bridge/bridge-provider.js.map +0 -1
- package/lib/esm/provider/bridge/models/bridge-connection.js +0 -2
- package/lib/esm/provider/bridge/models/bridge-connection.js.map +0 -1
- package/lib/esm/provider/bridge/models/bridge-incomming-message.js +0 -2
- package/lib/esm/provider/bridge/models/bridge-incomming-message.js.map +0 -1
- package/lib/esm/provider/bridge/models/bridge-session-raw.js +0 -2
- package/lib/esm/provider/bridge/models/bridge-session-raw.js.map +0 -1
- package/lib/esm/provider/bridge/models/bridge-session.js +0 -2
- package/lib/esm/provider/bridge/models/bridge-session.js.map +0 -1
- package/lib/esm/provider/injected/injected-provider.js +0 -139
- package/lib/esm/provider/injected/injected-provider.js.map +0 -1
- package/lib/esm/provider/injected/models/injected-wallet-api.js +0 -2
- package/lib/esm/provider/injected/models/injected-wallet-api.js.map +0 -1
- package/lib/esm/provider/provider.js +0 -2
- package/lib/esm/provider/provider.js.map +0 -1
- package/lib/esm/resources/protocol.js +0 -2
- package/lib/esm/resources/protocol.js.map +0 -1
- package/lib/esm/storage/bridge-connection-storage.js +0 -97
- package/lib/esm/storage/bridge-connection-storage.js.map +0 -1
- package/lib/esm/storage/default-storage.js +0 -36
- package/lib/esm/storage/default-storage.js.map +0 -1
- package/lib/esm/storage/http-bridge-gateway-storage.js +0 -35
- package/lib/esm/storage/http-bridge-gateway-storage.js.map +0 -1
- package/lib/esm/storage/models/storage.interface.js +0 -2
- package/lib/esm/storage/models/storage.interface.js.map +0 -1
- package/lib/esm/ton-connect.interface.js +0 -2
- package/lib/esm/ton-connect.interface.js.map +0 -1
- package/lib/esm/ton-connect.js +0 -271
- package/lib/esm/ton-connect.js.map +0 -1
- package/lib/esm/utils/address.js +0 -94
- package/lib/esm/utils/address.js.map +0 -1
- package/lib/esm/utils/options.js +0 -9
- package/lib/esm/utils/options.js.map +0 -1
- package/lib/esm/utils/types.js +0 -2
- package/lib/esm/utils/types.js.map +0 -1
- package/lib/esm/utils/url.js +0 -10
- package/lib/esm/utils/url.js.map +0 -1
- package/lib/esm/utils/web-api.js +0 -21
- package/lib/esm/utils/web-api.js.map +0 -1
- package/lib/esm/wallets-list-manager.js +0 -119
- package/lib/esm/wallets-list-manager.js.map +0 -1
- package/lib/types/errors/address/index.d.ts +0 -1
- package/lib/types/errors/address/wrong-address.error.d.ts +0 -7
- package/lib/types/errors/binary/index.d.ts +0 -1
- package/lib/types/errors/binary/parse-hex.error.d.ts +0 -7
- package/lib/types/errors/dapp/dapp-metadata.error.d.ts +0 -7
- package/lib/types/errors/index.d.ts +0 -8
- package/lib/types/errors/protocol/events/connect/index.d.ts +0 -1
- package/lib/types/errors/protocol/events/connect/manifest-content-error.error.d.ts +0 -8
- package/lib/types/errors/protocol/events/connect/manifest-not-found.error.d.ts +0 -8
- package/lib/types/errors/protocol/events/connect/user-rejects.error.d.ts +0 -7
- package/lib/types/errors/protocol/events/index.d.ts +0 -1
- package/lib/types/errors/protocol/index.d.ts +0 -2
- package/lib/types/errors/protocol/responses/bad-request.error.d.ts +0 -7
- package/lib/types/errors/protocol/responses/index.d.ts +0 -2
- package/lib/types/errors/protocol/responses/unknown-app.error.d.ts +0 -7
- package/lib/types/errors/storage/index.d.ts +0 -1
- package/lib/types/errors/storage/localstorage-not-found.error.d.ts +0 -7
- package/lib/types/errors/ton-connect.error.d.ts +0 -7
- package/lib/types/errors/unknown.error.d.ts +0 -7
- package/lib/types/errors/wallet/index.d.ts +0 -3
- package/lib/types/errors/wallet/wallet-already-connected.error.d.ts +0 -7
- package/lib/types/errors/wallet/wallet-not-connected.error.d.ts +0 -7
- package/lib/types/errors/wallet/wallet-not-injected.error.d.ts +0 -7
- package/lib/types/errors/wallet/wallet-not-support-feature.error.d.ts +0 -7
- package/lib/types/errors/wallets-manager/fetch-wallets.error.d.ts +0 -7
- package/lib/types/errors/wallets-manager/index.d.ts +0 -1
- package/lib/types/models/dapp/dapp-metadata.d.ts +0 -18
- package/lib/types/models/index.d.ts +0 -4
- package/lib/types/models/methods/connect/connect-additional-request.d.ts +0 -6
- package/lib/types/models/methods/connect/index.d.ts +0 -1
- package/lib/types/models/methods/index.d.ts +0 -2
- package/lib/types/models/methods/send-transaction/index.d.ts +0 -2
- package/lib/types/models/methods/send-transaction/send-transaction-request.d.ts +0 -27
- package/lib/types/models/methods/send-transaction/send-transaction-response.d.ts +0 -6
- package/lib/types/models/ton-connect-options.d.ts +0 -21
- package/lib/types/models/wallet/account.d.ts +0 -16
- package/lib/types/models/wallet/index.d.ts +0 -4
- package/lib/types/models/wallet/wallet-connection-source.d.ts +0 -18
- package/lib/types/models/wallet/wallet-info.d.ts +0 -65
- package/lib/types/models/wallet/wallet.d.ts +0 -22
- package/lib/types/parsers/connect-errors-parser.d.ts +0 -7
- package/lib/types/parsers/rpc-parser.d.ts +0 -8
- package/lib/types/parsers/send-transaction-parser.d.ts +0 -13
- package/lib/types/provider/bridge/bridge-gateway.d.ts +0 -21
- package/lib/types/provider/bridge/bridge-provider.d.ts +0 -29
- package/lib/types/provider/bridge/models/bridge-connection.d.ts +0 -23
- package/lib/types/provider/bridge/models/bridge-incomming-message.d.ts +0 -4
- package/lib/types/provider/bridge/models/bridge-session-raw.d.ts +0 -5
- package/lib/types/provider/bridge/models/bridge-session.d.ts +0 -8
- package/lib/types/provider/injected/injected-provider.d.ts +0 -29
- package/lib/types/provider/injected/models/injected-wallet-api.d.ts +0 -11
- package/lib/types/provider/provider.d.ts +0 -19
- package/lib/types/resources/protocol.d.ts +0 -1
- package/lib/types/storage/bridge-connection-storage.d.ts +0 -13
- package/lib/types/storage/default-storage.d.ts +0 -8
- package/lib/types/storage/http-bridge-gateway-storage.d.ts +0 -9
- package/lib/types/storage/models/storage.interface.d.ts +0 -21
- package/lib/types/ton-connect.d.ts +0 -86
- package/lib/types/ton-connect.interface.d.ts +0 -53
- package/lib/types/utils/address.d.ts +0 -6
- package/lib/types/utils/options.d.ts +0 -1
- package/lib/types/utils/types.d.ts +0 -6
- package/lib/types/utils/url.d.ts +0 -2
- package/lib/types/utils/web-api.d.ts +0 -3
- package/lib/types/wallets-list-manager.d.ts +0 -11
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wrong-address.error.js","sourceRoot":"","sources":["../../../../src/errors/address/wrong-address.error.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAE/D;;GAEG;AACH,MAAa,iBAAkB,SAAQ,mCAAe;IAClD,YAAY,GAAG,IAAmD;QAC9D,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC;CACJ;AAND,8CAMC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ParseHexError = void 0;
|
|
4
|
-
var parse_hex_error_1 = require("./parse-hex.error");
|
|
5
|
-
Object.defineProperty(exports, "ParseHexError", { enumerable: true, get: function () { return parse_hex_error_1.ParseHexError; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/errors/binary/index.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAAzC,gHAAA,aAAa,OAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ParseHexError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("../ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Thrown when passed hex is in incorrect format.
|
|
7
|
-
*/
|
|
8
|
-
class ParseHexError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(...args) {
|
|
10
|
-
super(...args);
|
|
11
|
-
Object.setPrototypeOf(this, ParseHexError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.ParseHexError = ParseHexError;
|
|
15
|
-
//# sourceMappingURL=parse-hex.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-hex.error.js","sourceRoot":"","sources":["../../../../src/errors/binary/parse-hex.error.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAE/D;;GAEG;AACH,MAAa,aAAc,SAAQ,mCAAe;IAC9C,YAAY,GAAG,IAAmD;QAC9D,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IACzD,CAAC;CACJ;AAND,sCAMC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DappMetadataError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("../ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Thrown when passed DappMetadata is in incorrect format.
|
|
7
|
-
*/
|
|
8
|
-
class DappMetadataError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(...args) {
|
|
10
|
-
super(...args);
|
|
11
|
-
Object.setPrototypeOf(this, DappMetadataError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.DappMetadataError = DappMetadataError;
|
|
15
|
-
//# sourceMappingURL=dapp-metadata.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dapp-metadata.error.js","sourceRoot":"","sources":["../../../../src/errors/dapp/dapp-metadata.error.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAE/D;;GAEG;AACH,MAAa,iBAAkB,SAAQ,mCAAe;IAClD,YAAY,GAAG,IAAmD;QAC9D,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC;CACJ;AAND,8CAMC"}
|
package/lib/cjs/errors/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.UnknownError = exports.TonConnectError = void 0;
|
|
18
|
-
__exportStar(require("./protocol"), exports);
|
|
19
|
-
__exportStar(require("./wallet"), exports);
|
|
20
|
-
__exportStar(require("./storage"), exports);
|
|
21
|
-
__exportStar(require("./wallets-manager"), exports);
|
|
22
|
-
__exportStar(require("./address"), exports);
|
|
23
|
-
__exportStar(require("./binary"), exports);
|
|
24
|
-
var ton_connect_error_1 = require("./ton-connect.error");
|
|
25
|
-
Object.defineProperty(exports, "TonConnectError", { enumerable: true, get: function () { return ton_connect_error_1.TonConnectError; } });
|
|
26
|
-
var unknown_error_1 = require("./unknown.error");
|
|
27
|
-
Object.defineProperty(exports, "UnknownError", { enumerable: true, get: function () { return unknown_error_1.UnknownError; } });
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB;AACzB,4CAA0B;AAC1B,oDAAkC;AAClC,4CAA0B;AAC1B,2CAAyB;AACzB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA;AACxB,iDAA+C;AAAtC,6GAAA,YAAY,OAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserRejectsError = void 0;
|
|
4
|
-
var user_rejects_error_1 = require("./user-rejects.error");
|
|
5
|
-
Object.defineProperty(exports, "UserRejectsError", { enumerable: true, get: function () { return user_rejects_error_1.UserRejectsError; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/errors/protocol/events/connect/index.ts"],"names":[],"mappings":";;;AAAA,2DAAyF;AAAhF,sHAAA,gBAAgB,OAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManifestContentErrorError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("../../../ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Thrown when passed manifest contains errors.
|
|
7
|
-
*/
|
|
8
|
-
class ManifestContentErrorError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(message) {
|
|
10
|
-
super(message || '' + ManifestContentErrorError.additionalMessage);
|
|
11
|
-
Object.setPrototypeOf(this, ManifestContentErrorError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.ManifestContentErrorError = ManifestContentErrorError;
|
|
15
|
-
ManifestContentErrorError.additionalMessage = '\nPassed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest';
|
|
16
|
-
//# sourceMappingURL=manifest-content-error.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-content-error.error.js","sourceRoot":"","sources":["../../../../../../src/errors/protocol/events/connect/manifest-content-error.error.ts"],"names":[],"mappings":";;;AAAA,kEAA+D;AAE/D;;GAEG;AACH,MAAa,yBAA0B,SAAQ,mCAAe;IAI1D,YAAY,OAAgB;QACxB,KAAK,CAAC,OAAO,IAAI,EAAE,GAAG,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;QAEnE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;IACrE,CAAC;;AARL,8DASC;AARkB,2CAAiB,GAC5B,+KAA+K,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManifestNotFoundError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("../../../ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Thrown when wallet can't get manifest by passed manifestUrl.
|
|
7
|
-
*/
|
|
8
|
-
class ManifestNotFoundError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(message) {
|
|
10
|
-
super(message || '' + ManifestNotFoundError.additionalMessage);
|
|
11
|
-
Object.setPrototypeOf(this, ManifestNotFoundError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.ManifestNotFoundError = ManifestNotFoundError;
|
|
15
|
-
ManifestNotFoundError.additionalMessage = '\nManifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest';
|
|
16
|
-
//# sourceMappingURL=manifest-not-found.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-not-found.error.js","sourceRoot":"","sources":["../../../../../../src/errors/protocol/events/connect/manifest-not-found.error.ts"],"names":[],"mappings":";;;AAAA,kEAA+D;AAE/D;;GAEG;AACH,MAAa,qBAAsB,SAAQ,mCAAe;IAItD,YAAY,OAAgB;QACxB,KAAK,CAAC,OAAO,IAAI,EAAE,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;QAE/D,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IACjE,CAAC;;AARL,sDASC;AARkB,uCAAiB,GAC5B,uNAAuN,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserRejectsError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("../../../ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Thrown when user rejects the action in the wallet.
|
|
7
|
-
*/
|
|
8
|
-
class UserRejectsError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(...args) {
|
|
10
|
-
super(...args);
|
|
11
|
-
Object.setPrototypeOf(this, UserRejectsError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.UserRejectsError = UserRejectsError;
|
|
15
|
-
//# sourceMappingURL=user-rejects.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-rejects.error.js","sourceRoot":"","sources":["../../../../../../src/errors/protocol/events/connect/user-rejects.error.ts"],"names":[],"mappings":";;;AAAA,kEAA+D;AAE/D;;GAEG;AACH,MAAa,gBAAiB,SAAQ,mCAAe;IACjD,YAAY,GAAG,IAAmD;QAC9D,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC5D,CAAC;CACJ;AAND,4CAMC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./connect"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/errors/protocol/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./events"), exports);
|
|
18
|
-
__exportStar(require("./responses"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/errors/protocol/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BadRequestError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("../../ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Thrown when request to the wallet contains errors.
|
|
7
|
-
*/
|
|
8
|
-
class BadRequestError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(...args) {
|
|
10
|
-
super(...args);
|
|
11
|
-
Object.setPrototypeOf(this, BadRequestError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.BadRequestError = BadRequestError;
|
|
15
|
-
//# sourceMappingURL=bad-request.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bad-request.error.js","sourceRoot":"","sources":["../../../../../src/errors/protocol/responses/bad-request.error.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAE/D;;GAEG;AACH,MAAa,eAAgB,SAAQ,mCAAe;IAChD,YAAY,GAAG,IAAmD;QAC9D,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;CACJ;AAND,0CAMC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnknownAppError = exports.BadRequestError = void 0;
|
|
4
|
-
var bad_request_error_1 = require("./bad-request.error");
|
|
5
|
-
Object.defineProperty(exports, "BadRequestError", { enumerable: true, get: function () { return bad_request_error_1.BadRequestError; } });
|
|
6
|
-
var unknown_app_error_1 = require("./unknown-app.error");
|
|
7
|
-
Object.defineProperty(exports, "UnknownAppError", { enumerable: true, get: function () { return unknown_app_error_1.UnknownAppError; } });
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/errors/protocol/responses/index.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AAA7C,oHAAA,eAAe,OAAA;AACxB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnknownAppError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("../../ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Thrown when app tries to send rpc request to the injected wallet while not connected.
|
|
7
|
-
*/
|
|
8
|
-
class UnknownAppError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(...args) {
|
|
10
|
-
super(...args);
|
|
11
|
-
Object.setPrototypeOf(this, UnknownAppError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.UnknownAppError = UnknownAppError;
|
|
15
|
-
//# sourceMappingURL=unknown-app.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unknown-app.error.js","sourceRoot":"","sources":["../../../../../src/errors/protocol/responses/unknown-app.error.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAE/D;;GAEG;AACH,MAAa,eAAgB,SAAQ,mCAAe;IAChD,YAAY,GAAG,IAAmD;QAC9D,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;CACJ;AAND,0CAMC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LocalstorageNotFoundError = void 0;
|
|
4
|
-
var localstorage_not_found_error_1 = require("./localstorage-not-found.error");
|
|
5
|
-
Object.defineProperty(exports, "LocalstorageNotFoundError", { enumerable: true, get: function () { return localstorage_not_found_error_1.LocalstorageNotFoundError; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/errors/storage/index.ts"],"names":[],"mappings":";;;AAAA,+EAA2E;AAAlE,yIAAA,yBAAyB,OAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LocalstorageNotFoundError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("../ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Thrown when `Storage` was not specified in the `DappMetadata` and default `localStorage` was not detected in the environment.
|
|
7
|
-
*/
|
|
8
|
-
class LocalstorageNotFoundError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(...args) {
|
|
10
|
-
super(...args);
|
|
11
|
-
Object.setPrototypeOf(this, LocalstorageNotFoundError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.LocalstorageNotFoundError = LocalstorageNotFoundError;
|
|
15
|
-
//# sourceMappingURL=localstorage-not-found.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"localstorage-not-found.error.js","sourceRoot":"","sources":["../../../../src/errors/storage/localstorage-not-found.error.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAE/D;;GAEG;AACH,MAAa,yBAA0B,SAAQ,mCAAe;IAC1D,YAAY,GAAG,IAAmD;QAC9D,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;IACrE,CAAC;CACJ;AAND,8DAMC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TonConnectError = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Base class for TonConnect errors. You can check if the error was triggered by the @tonconnect/sdk using `err instanceof TonConnectError`.
|
|
6
|
-
*/
|
|
7
|
-
class TonConnectError extends Error {
|
|
8
|
-
constructor(message, options) {
|
|
9
|
-
if (message) {
|
|
10
|
-
message = TonConnectError.prefix + ' ' + message;
|
|
11
|
-
}
|
|
12
|
-
super(message, options);
|
|
13
|
-
Object.setPrototypeOf(this, TonConnectError.prototype);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.TonConnectError = TonConnectError;
|
|
17
|
-
TonConnectError.prefix = '[TON_CONNECT_SDK_ERROR]';
|
|
18
|
-
//# sourceMappingURL=ton-connect.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ton-connect.error.js","sourceRoot":"","sources":["../../../src/errors/ton-connect.error.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,eAAgB,SAAQ,KAAK;IAGtC,YAAY,OAAgB,EAAE,OAAsB;QAChD,IAAI,OAAO,EAAE;YACT,OAAO,GAAG,eAAe,CAAC,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC;SACpD;QACD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAExB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;;AAVL,0CAWC;AAVkB,sBAAM,GAAG,yBAAyB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnknownError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("./ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Unhanded unknown error.
|
|
7
|
-
*/
|
|
8
|
-
class UnknownError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(...args) {
|
|
10
|
-
super(...args);
|
|
11
|
-
Object.setPrototypeOf(this, UnknownError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.UnknownError = UnknownError;
|
|
15
|
-
//# sourceMappingURL=unknown.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unknown.error.js","sourceRoot":"","sources":["../../../src/errors/unknown.error.ts"],"names":[],"mappings":";;;AAAA,2DAA+D;AAE/D;;GAEG;AACH,MAAa,YAAa,SAAQ,mCAAe;IAC7C,YAAY,GAAG,IAAmD;QAC9D,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACxD,CAAC;CACJ;AAND,oCAMC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WalletNotInjectedError = exports.WalletNotConnectedError = exports.WalletAlreadyConnectedError = void 0;
|
|
4
|
-
var wallet_already_connected_error_1 = require("./wallet-already-connected.error");
|
|
5
|
-
Object.defineProperty(exports, "WalletAlreadyConnectedError", { enumerable: true, get: function () { return wallet_already_connected_error_1.WalletAlreadyConnectedError; } });
|
|
6
|
-
var wallet_not_connected_error_1 = require("./wallet-not-connected.error");
|
|
7
|
-
Object.defineProperty(exports, "WalletNotConnectedError", { enumerable: true, get: function () { return wallet_not_connected_error_1.WalletNotConnectedError; } });
|
|
8
|
-
var wallet_not_injected_error_1 = require("./wallet-not-injected.error");
|
|
9
|
-
Object.defineProperty(exports, "WalletNotInjectedError", { enumerable: true, get: function () { return wallet_not_injected_error_1.WalletNotInjectedError; } });
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/errors/wallet/index.ts"],"names":[],"mappings":";;;AAAA,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,yEAAqE;AAA5D,mIAAA,sBAAsB,OAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WalletAlreadyConnectedError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("../ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Thrown when wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection.
|
|
7
|
-
*/
|
|
8
|
-
class WalletAlreadyConnectedError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(...args) {
|
|
10
|
-
super(...args);
|
|
11
|
-
Object.setPrototypeOf(this, WalletAlreadyConnectedError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.WalletAlreadyConnectedError = WalletAlreadyConnectedError;
|
|
15
|
-
//# sourceMappingURL=wallet-already-connected.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-already-connected.error.js","sourceRoot":"","sources":["../../../../src/errors/wallet/wallet-already-connected.error.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAE/D;;GAEG;AACH,MAAa,2BAA4B,SAAQ,mCAAe;IAC5D,YAAY,GAAG,IAAmD;QAC9D,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,2BAA2B,CAAC,SAAS,CAAC,CAAC;IACvE,CAAC;CACJ;AAND,kEAMC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WalletNotConnectedError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("../ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Thrown when send transaction or other protocol methods called while wallet is not connected.
|
|
7
|
-
*/
|
|
8
|
-
class WalletNotConnectedError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(...args) {
|
|
10
|
-
super(...args);
|
|
11
|
-
Object.setPrototypeOf(this, WalletNotConnectedError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.WalletNotConnectedError = WalletNotConnectedError;
|
|
15
|
-
//# sourceMappingURL=wallet-not-connected.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-not-connected.error.js","sourceRoot":"","sources":["../../../../src/errors/wallet/wallet-not-connected.error.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAE/D;;GAEG;AACH,MAAa,uBAAwB,SAAQ,mCAAe;IACxD,YAAY,GAAG,IAAmD;QAC9D,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;IACnE,CAAC;CACJ;AAND,0DAMC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WalletNotInjectedError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("../ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Thrown when there is an attempt to connect to the injected wallet while it is not exists in the webpage.
|
|
7
|
-
*/
|
|
8
|
-
class WalletNotInjectedError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(...args) {
|
|
10
|
-
super(...args);
|
|
11
|
-
Object.setPrototypeOf(this, WalletNotInjectedError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.WalletNotInjectedError = WalletNotInjectedError;
|
|
15
|
-
//# sourceMappingURL=wallet-not-injected.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-not-injected.error.js","sourceRoot":"","sources":["../../../../src/errors/wallet/wallet-not-injected.error.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAE/D;;GAEG;AACH,MAAa,sBAAuB,SAAQ,mCAAe;IACvD,YAAY,GAAG,IAAmD;QAC9D,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAClE,CAAC;CACJ;AAND,wDAMC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WalletNotSupportFeatureError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("../ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Thrown when wallet doesn't support requested feature method.
|
|
7
|
-
*/
|
|
8
|
-
class WalletNotSupportFeatureError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(...args) {
|
|
10
|
-
super(...args);
|
|
11
|
-
Object.setPrototypeOf(this, WalletNotSupportFeatureError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.WalletNotSupportFeatureError = WalletNotSupportFeatureError;
|
|
15
|
-
//# sourceMappingURL=wallet-not-support-feature.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-not-support-feature.error.js","sourceRoot":"","sources":["../../../../src/errors/wallet/wallet-not-support-feature.error.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAE/D;;GAEG;AACH,MAAa,4BAA6B,SAAQ,mCAAe;IAC7D,YAAY,GAAG,IAAmD;QAC9D,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,4BAA4B,CAAC,SAAS,CAAC,CAAC;IACxE,CAAC;CACJ;AAND,oEAMC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FetchWalletsError = void 0;
|
|
4
|
-
const ton_connect_error_1 = require("../ton-connect.error");
|
|
5
|
-
/**
|
|
6
|
-
* Thrown when an error occurred while fetching the wallets list.
|
|
7
|
-
*/
|
|
8
|
-
class FetchWalletsError extends ton_connect_error_1.TonConnectError {
|
|
9
|
-
constructor(...args) {
|
|
10
|
-
super(...args);
|
|
11
|
-
Object.setPrototypeOf(this, FetchWalletsError.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.FetchWalletsError = FetchWalletsError;
|
|
15
|
-
//# sourceMappingURL=fetch-wallets.error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-wallets.error.js","sourceRoot":"","sources":["../../../../src/errors/wallets-manager/fetch-wallets.error.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAE/D;;GAEG;AACH,MAAa,iBAAkB,SAAQ,mCAAe;IAClD,YAAY,GAAG,IAAmD;QAC9D,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC;CACJ;AAND,8CAMC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FetchWalletsError = void 0;
|
|
4
|
-
var fetch_wallets_error_1 = require("./fetch-wallets.error");
|
|
5
|
-
Object.defineProperty(exports, "FetchWalletsError", { enumerable: true, get: function () { return fetch_wallets_error_1.FetchWalletsError; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/errors/wallets-manager/index.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA"}
|
package/lib/cjs/index.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.toUserFriendlyAddress = exports.CHAIN = exports.default = void 0;
|
|
18
|
-
__exportStar(require("./ton-connect"), exports);
|
|
19
|
-
__exportStar(require("./models"), exports);
|
|
20
|
-
__exportStar(require("./errors"), exports);
|
|
21
|
-
var ton_connect_1 = require("./ton-connect");
|
|
22
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return ton_connect_1.TonConnect; } });
|
|
23
|
-
var protocol_1 = require("@tonconnect/protocol");
|
|
24
|
-
Object.defineProperty(exports, "CHAIN", { enumerable: true, get: function () { return protocol_1.CHAIN; } });
|
|
25
|
-
var address_1 = require("./utils/address");
|
|
26
|
-
Object.defineProperty(exports, "toUserFriendlyAddress", { enumerable: true, get: function () { return address_1.toUserFriendlyAddress; } });
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,2CAAyB;AACzB,2CAAyB;AAEzB,6CAAsD;AAA7C,sGAAA,UAAU,OAAW;AAE9B,iDAAyD;AAAhD,iGAAA,KAAK,OAAA;AACd,2CAAwD;AAA/C,gHAAA,qBAAqB,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dapp-metadata.js","sourceRoot":"","sources":["../../../../src/models/dapp/dapp-metadata.ts"],"names":[],"mappings":""}
|
package/lib/cjs/models/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./wallet"), exports);
|
|
18
|
-
__exportStar(require("./methods"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,4CAA0B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connect-additional-request.js","sourceRoot":"","sources":["../../../../../src/models/methods/connect/connect-additional-request.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/methods/connect/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./connect"), exports);
|
|
18
|
-
__exportStar(require("./send-transaction"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/methods/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,qDAAmC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/methods/send-transaction/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-transaction-request.js","sourceRoot":"","sources":["../../../../../src/models/methods/send-transaction/send-transaction-request.ts"],"names":[],"mappings":""}
|