diff --git a/Account.html b/Account.html index 36c024b2..0a76da52 100644 --- a/Account.html +++ b/Account.html @@ -573,7 +573,7 @@
Returns:

diff --git a/Address.html b/Address.html index a10db453..db303ff4 100644 --- a/Address.html +++ b/Address.html @@ -1428,7 +1428,7 @@
Returns:

diff --git a/Asset.html b/Asset.html index 6963e584..18914d87 100644 --- a/Asset.html +++ b/Asset.html @@ -1890,7 +1890,7 @@
Returns:

diff --git a/Claimant.html b/Claimant.html index b8255d32..b19f0c8e 100644 --- a/Claimant.html +++ b/Claimant.html @@ -1625,7 +1625,7 @@
Returns:

diff --git a/Contract.html b/Contract.html index c5d0b228..79da3657 100644 --- a/Contract.html +++ b/Contract.html @@ -824,7 +824,7 @@
Returns:

diff --git a/Durability.html b/Durability.html index becbf263..c4b6b78b 100644 --- a/Durability.html +++ b/Durability.html @@ -403,7 +403,7 @@
Parameters:

diff --git a/FeeBumpTransaction.html b/FeeBumpTransaction.html index 3164ba2f..4193abae 100644 --- a/FeeBumpTransaction.html +++ b/FeeBumpTransaction.html @@ -2040,7 +2040,7 @@
Returns:

diff --git a/Int128_Int128.html b/Int128_Int128.html index 56455eb5..5a1a40ab 100644 --- a/Int128_Int128.html +++ b/Int128_Int128.html @@ -230,7 +230,7 @@
Parameters:

diff --git a/Int256_Int256.html b/Int256_Int256.html index 404b7894..343127fe 100644 --- a/Int256_Int256.html +++ b/Int256_Int256.html @@ -230,7 +230,7 @@
Parameters:

diff --git a/Keypair.html b/Keypair.html index 282544f0..370f4d6c 100644 --- a/Keypair.html +++ b/Keypair.html @@ -2462,7 +2462,7 @@
Returns:

diff --git a/LiquidityPoolAsset.html b/LiquidityPoolAsset.html index ce9ef268..7d612b92 100644 --- a/LiquidityPoolAsset.html +++ b/LiquidityPoolAsset.html @@ -919,7 +919,7 @@
Returns:

diff --git a/LiquidityPoolId.html b/LiquidityPoolId.html index 61a4a401..de0d7c8f 100644 --- a/LiquidityPoolId.html +++ b/LiquidityPoolId.html @@ -867,7 +867,7 @@
Returns:

diff --git a/Memo.html b/Memo.html index 1e8c9e30..702551ba 100644 --- a/Memo.html +++ b/Memo.html @@ -1386,7 +1386,7 @@
Returns:

diff --git a/MuxedAccount.html b/MuxedAccount.html index 8cde44f2..98fb8617 100644 --- a/MuxedAccount.html +++ b/MuxedAccount.html @@ -985,7 +985,7 @@
Returns:

diff --git a/Operation.html b/Operation.html index ef80f7bf..1930a89b 100644 --- a/Operation.html +++ b/Operation.html @@ -12122,7 +12122,7 @@
Returns:

diff --git a/ScInt.html b/ScInt.html index a8d5dbbd..b4ffbace 100644 --- a/ScInt.html +++ b/ScInt.html @@ -491,7 +491,7 @@

Classes


diff --git a/Server.html b/Server.html index d855b27f..edb90d13 100644 --- a/Server.html +++ b/Server.html @@ -202,7 +202,7 @@

(async) get
Source:
@@ -371,7 +371,7 @@

(async) Source:
@@ -645,7 +645,7 @@

(async) getE
Source:
@@ -782,7 +782,7 @@

(async) getH
Source:
@@ -899,7 +899,7 @@

(async) Source:
@@ -977,7 +977,7 @@
Example
-

(async) getLedgerEntries(key) → {Promise.<SorobanRpc.GetLedgerEntriesResponse>}

+

(async) getLedgerEntries(keys) → {Promise.<SorobanRpc.GetLedgerEntriesResponse>}

@@ -1024,7 +1024,7 @@

(async) Source:
@@ -1068,13 +1068,13 @@
Parameters:
- key + keys -xdr.ScVal +Array.<xdr.ScVal> @@ -1085,7 +1085,7 @@
Parameters:
-

The key of the contract data to load.

+

The ledger entry keys to load.

@@ -1204,7 +1204,7 @@

(async) get
Source:
@@ -1327,7 +1327,7 @@

(async) Source:
@@ -1515,7 +1515,7 @@

(async) Source:
@@ -1778,7 +1778,7 @@

(async) Source:
@@ -2004,7 +2004,7 @@

(async) Source:
@@ -2212,7 +2212,7 @@

(async) <
Source:
@@ -2391,7 +2391,7 @@
Example

- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/SignerKey.html b/SignerKey.html index 893ff355..4a61dc47 100644 --- a/SignerKey.html +++ b/SignerKey.html @@ -497,7 +497,7 @@
Returns:

- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/StrKey.html b/StrKey.html index 67dabc01..c81415d8 100644 --- a/StrKey.html +++ b/StrKey.html @@ -3145,7 +3145,7 @@
Returns:

- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/Transaction.html b/Transaction.html index c67c1819..c9bf0c60 100644 --- a/Transaction.html +++ b/Transaction.html @@ -2960,7 +2960,7 @@
Returns:

- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/TransactionBuilder.html b/TransactionBuilder.html index 46f772b3..f263dfe9 100644 --- a/TransactionBuilder.html +++ b/TransactionBuilder.html @@ -3313,7 +3313,7 @@
Returns:

- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/Uint128_Uint128.html b/Uint128_Uint128.html index 2ccd9bc0..7f2465fe 100644 --- a/Uint128_Uint128.html +++ b/Uint128_Uint128.html @@ -230,7 +230,7 @@
Parameters:

- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/Uint256_Uint256.html b/Uint256_Uint256.html index 29c72b1d..0a6e4876 100644 --- a/Uint256_Uint256.html +++ b/Uint256_Uint256.html @@ -230,7 +230,7 @@
Parameters:

- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/global.html b/global.html index ceb39fc1..65d81c09 100644 --- a/global.html +++ b/global.html @@ -3348,7 +3348,7 @@

(async) pos
Source:
@@ -3602,20 +3602,22 @@

scValToN
-

Given a smart contract value, attempt to convert to a native type.

-

Possible conversions include:

+

Given a smart contract value, attempt to convert it to a native type. +Possible conversions include:

    -
  • void -> null
  • -
  • u32, i32 -> number
  • -
  • u64, i64, u128, i128, u256, i256 -> bigint
  • -
  • vec -> array of any of the above (via recursion)
  • +
  • void -> null
  • +
  • u32, i32 -> number
  • +
  • u64, i64, u128, i128, u256, i256 -> bigint
  • +
  • vec -> Array of any of the above (via recursion)
  • map -> key-value object of any of the above (via recursion)
  • -
  • bool -> boolean
  • -
  • bytes -> Uint8Array
  • -
  • string, symbol -> string|Uint8Array
  • +
  • bool -> boolean
  • +
  • bytes -> Uint8Array
  • +
  • symbol -> string
  • +
  • string -> string IF the underlying buffer can be decoded as ascii/utf8, +Uint8Array of the raw contents in any error case
-

If no conversion can be made, this just "unwraps" the smart value to return -its underlying XDR value.

+

If no viable conversion can be determined, this just "unwraps" the smart +value to return its underlying XDR value.

@@ -3651,7 +3653,7 @@

scValToN
Source:
@@ -3936,7 +3938,7 @@

Returns:

- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/index.html b/index.html index 379f93c4..48cb48b8 100644 --- a/index.html +++ b/index.html @@ -222,7 +222,7 @@

License


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_account.js.html b/js-stellar-base_src_account.js.html index 17a90c69..f92ba0a3 100644 --- a/js-stellar-base_src_account.js.html +++ b/js-stellar-base_src_account.js.html @@ -113,7 +113,7 @@

js-stellar-base/src/account.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_address.js.html b/js-stellar-base_src_address.js.html index 3a7b964a..bb33ac18 100644 --- a/js-stellar-base_src_address.js.html +++ b/js-stellar-base_src_address.js.html @@ -189,7 +189,7 @@

js-stellar-base/src/address.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_asset.js.html b/js-stellar-base_src_asset.js.html index 595cb80a..b26628e8 100644 --- a/js-stellar-base_src_asset.js.html +++ b/js-stellar-base_src_asset.js.html @@ -318,7 +318,7 @@

js-stellar-base/src/asset.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_claimant.js.html b/js-stellar-base_src_claimant.js.html index 035ca1b5..f926997c 100644 --- a/js-stellar-base_src_claimant.js.html +++ b/js-stellar-base_src_claimant.js.html @@ -223,7 +223,7 @@

js-stellar-base/src/claimant.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_contract.js.html b/js-stellar-base_src_contract.js.html index e18a1db8..8f386aff 100644 --- a/js-stellar-base_src_contract.js.html +++ b/js-stellar-base_src_contract.js.html @@ -150,7 +150,7 @@

js-stellar-base/src/contract.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_fee_bump_transaction.js.html b/js-stellar-base_src_fee_bump_transaction.js.html index ccd56d30..669772e6 100644 --- a/js-stellar-base_src_fee_bump_transaction.js.html +++ b/js-stellar-base_src_fee_bump_transaction.js.html @@ -166,7 +166,7 @@

js-stellar-base/src/fee_bump_transaction.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_get_liquidity_pool_id.js.html b/js-stellar-base_src_get_liquidity_pool_id.js.html index 858383b4..9e04e22b 100644 --- a/js-stellar-base_src_get_liquidity_pool_id.js.html +++ b/js-stellar-base_src_get_liquidity_pool_id.js.html @@ -105,7 +105,7 @@

js-stellar-base/src/get_liquidity_pool_id.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_keypair.js.html b/js-stellar-base_src_keypair.js.html index 19585d2b..eb126d01 100644 --- a/js-stellar-base_src_keypair.js.html +++ b/js-stellar-base_src_keypair.js.html @@ -327,7 +327,7 @@

js-stellar-base/src/keypair.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_liquidity_pool_asset.js.html b/js-stellar-base_src_liquidity_pool_asset.js.html index 8252d229..61a1235d 100644 --- a/js-stellar-base_src_liquidity_pool_asset.js.html +++ b/js-stellar-base_src_liquidity_pool_asset.js.html @@ -171,7 +171,7 @@

js-stellar-base/src/liquidity_pool_asset.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_liquidity_pool_id.js.html b/js-stellar-base_src_liquidity_pool_id.js.html index 93a80885..1fdc5f2e 100644 --- a/js-stellar-base_src_liquidity_pool_id.js.html +++ b/js-stellar-base_src_liquidity_pool_id.js.html @@ -128,7 +128,7 @@

js-stellar-base/src/liquidity_pool_id.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_memo.js.html b/js-stellar-base_src_memo.js.html index 990e21b9..f7bbfdbc 100644 --- a/js-stellar-base_src_memo.js.html +++ b/js-stellar-base_src_memo.js.html @@ -296,7 +296,7 @@

js-stellar-base/src/memo.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_muxed_account.js.html b/js-stellar-base_src_muxed_account.js.html index 35ae7a36..4692d9eb 100644 --- a/js-stellar-base_src_muxed_account.js.html +++ b/js-stellar-base_src_muxed_account.js.html @@ -188,7 +188,7 @@

js-stellar-base/src/muxed_account.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_network.js.html b/js-stellar-base_src_network.js.html index 3f75f9c4..ffcfc549 100644 --- a/js-stellar-base_src_network.js.html +++ b/js-stellar-base_src_network.js.html @@ -64,7 +64,7 @@

js-stellar-base/src/network.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_numbers_index.js.html b/js-stellar-base_src_numbers_index.js.html index 067da3c5..acc5788c 100644 --- a/js-stellar-base_src_numbers_index.js.html +++ b/js-stellar-base_src_numbers_index.js.html @@ -112,7 +112,7 @@

js-stellar-base/src/numbers/index.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_numbers_int128.js.html b/js-stellar-base_src_numbers_int128.js.html index 0dbc7f91..515b696d 100644 --- a/js-stellar-base_src_numbers_int128.js.html +++ b/js-stellar-base_src_numbers_int128.js.html @@ -74,7 +74,7 @@

js-stellar-base/src/numbers/int128.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_numbers_int256.js.html b/js-stellar-base_src_numbers_int256.js.html index 7258b056..89610c85 100644 --- a/js-stellar-base_src_numbers_int256.js.html +++ b/js-stellar-base_src_numbers_int256.js.html @@ -74,7 +74,7 @@

js-stellar-base/src/numbers/int256.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_numbers_sc_int.js.html b/js-stellar-base_src_numbers_sc_int.js.html index a829a1fe..d15f1ec6 100644 --- a/js-stellar-base_src_numbers_sc_int.js.html +++ b/js-stellar-base_src_numbers_sc_int.js.html @@ -167,7 +167,7 @@

js-stellar-base/src/numbers/sc_int.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_numbers_uint128.js.html b/js-stellar-base_src_numbers_uint128.js.html index aed5cce1..3c4b8bd6 100644 --- a/js-stellar-base_src_numbers_uint128.js.html +++ b/js-stellar-base_src_numbers_uint128.js.html @@ -74,7 +74,7 @@

js-stellar-base/src/numbers/uint128.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_numbers_uint256.js.html b/js-stellar-base_src_numbers_uint256.js.html index bc63c77a..c74e45d3 100644 --- a/js-stellar-base_src_numbers_uint256.js.html +++ b/js-stellar-base_src_numbers_uint256.js.html @@ -74,7 +74,7 @@

js-stellar-base/src/numbers/uint256.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_numbers_xdr_large_int.js.html b/js-stellar-base_src_numbers_xdr_large_int.js.html index a21ec5eb..d7931ca4 100644 --- a/js-stellar-base_src_numbers_xdr_large_int.js.html +++ b/js-stellar-base_src_numbers_xdr_large_int.js.html @@ -291,7 +291,7 @@

js-stellar-base/src/numbers/xdr_large_int.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operation.js.html b/js-stellar-base_src_operation.js.html index 0f480209..597be3d5 100644 --- a/js-stellar-base_src_operation.js.html +++ b/js-stellar-base_src_operation.js.html @@ -727,7 +727,7 @@

js-stellar-base/src/operation.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_account_merge.js.html b/js-stellar-base_src_operations_account_merge.js.html index b018100a..6afe3c28 100644 --- a/js-stellar-base_src_operations_account_merge.js.html +++ b/js-stellar-base_src_operations_account_merge.js.html @@ -80,7 +80,7 @@

js-stellar-base/src/operations/account_merge.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_allow_trust.js.html b/js-stellar-base_src_operations_allow_trust.js.html index 7dd3ed9a..8377bb98 100644 --- a/js-stellar-base_src_operations_allow_trust.js.html +++ b/js-stellar-base_src_operations_allow_trust.js.html @@ -106,7 +106,7 @@

js-stellar-base/src/operations/allow_trust.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_begin_sponsoring_future_reserves.js.html b/js-stellar-base_src_operations_begin_sponsoring_future_reserves.js.html index eee01910..2ab0afb1 100644 --- a/js-stellar-base_src_operations_begin_sponsoring_future_reserves.js.html +++ b/js-stellar-base_src_operations_begin_sponsoring_future_reserves.js.html @@ -84,7 +84,7 @@

js-stellar-base/src/operations/begin_sponsoring_future_re
- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_bump_footprint_expiration.js.html b/js-stellar-base_src_operations_bump_footprint_expiration.js.html index 2e22a70a..3860038b 100644 --- a/js-stellar-base_src_operations_bump_footprint_expiration.js.html +++ b/js-stellar-base_src_operations_bump_footprint_expiration.js.html @@ -92,7 +92,7 @@

js-stellar-base/src/operations/bump_footprint_expiration.
- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_bump_sequence.js.html b/js-stellar-base_src_operations_bump_sequence.js.html index 28a42663..d409d94c 100644 --- a/js-stellar-base_src_operations_bump_sequence.js.html +++ b/js-stellar-base_src_operations_bump_sequence.js.html @@ -88,7 +88,7 @@

js-stellar-base/src/operations/bump_sequence.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_change_trust.js.html b/js-stellar-base_src_operations_change_trust.js.html index 86b1bc7f..3fa5e8fc 100644 --- a/js-stellar-base_src_operations_change_trust.js.html +++ b/js-stellar-base_src_operations_change_trust.js.html @@ -103,7 +103,7 @@

js-stellar-base/src/operations/change_trust.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_claim_claimable_balance.js.html b/js-stellar-base_src_operations_claim_claimable_balance.js.html index 0815a918..392d0d7a 100644 --- a/js-stellar-base_src_operations_claim_claimable_balance.js.html +++ b/js-stellar-base_src_operations_claim_claimable_balance.js.html @@ -92,7 +92,7 @@

js-stellar-base/src/operations/claim_claimable_balance.js
- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_clawback.js.html b/js-stellar-base_src_operations_clawback.js.html index ac230eb7..3ec05efe 100644 --- a/js-stellar-base_src_operations_clawback.js.html +++ b/js-stellar-base_src_operations_clawback.js.html @@ -93,7 +93,7 @@

js-stellar-base/src/operations/clawback.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_clawback_claimable_balance.js.html b/js-stellar-base_src_operations_clawback_claimable_balance.js.html index 089d43f7..20ad3324 100644 --- a/js-stellar-base_src_operations_clawback_claimable_balance.js.html +++ b/js-stellar-base_src_operations_clawback_claimable_balance.js.html @@ -88,7 +88,7 @@

js-stellar-base/src/operations/clawback_claimable_balance
- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_create_account.js.html b/js-stellar-base_src_operations_create_account.js.html index 66b0f603..8ea313ee 100644 --- a/js-stellar-base_src_operations_create_account.js.html +++ b/js-stellar-base_src_operations_create_account.js.html @@ -88,7 +88,7 @@

js-stellar-base/src/operations/create_account.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_create_claimable_balance.js.html b/js-stellar-base_src_operations_create_claimable_balance.js.html index 880a70f1..e4077840 100644 --- a/js-stellar-base_src_operations_create_claimable_balance.js.html +++ b/js-stellar-base_src_operations_create_claimable_balance.js.html @@ -120,7 +120,7 @@

js-stellar-base/src/operations/create_claimable_balance.j
- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_create_passive_sell_offer.js.html b/js-stellar-base_src_operations_create_passive_sell_offer.js.html index 258ad346..3739729d 100644 --- a/js-stellar-base_src_operations_create_passive_sell_offer.js.html +++ b/js-stellar-base_src_operations_create_passive_sell_offer.js.html @@ -93,7 +93,7 @@

js-stellar-base/src/operations/create_passive_sell_offer.
- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_end_sponsoring_future_reserves.js.html b/js-stellar-base_src_operations_end_sponsoring_future_reserves.js.html index b201433e..28e3b911 100644 --- a/js-stellar-base_src_operations_end_sponsoring_future_reserves.js.html +++ b/js-stellar-base_src_operations_end_sponsoring_future_reserves.js.html @@ -72,7 +72,7 @@

js-stellar-base/src/operations/end_sponsoring_future_rese
- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_inflation.js.html b/js-stellar-base_src_operations_inflation.js.html index 2f63b010..ff3f2fec 100644 --- a/js-stellar-base_src_operations_inflation.js.html +++ b/js-stellar-base_src_operations_inflation.js.html @@ -67,7 +67,7 @@

js-stellar-base/src/operations/inflation.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_invoke_host_function.js.html b/js-stellar-base_src_operations_invoke_host_function.js.html index 537cf005..47188964 100644 --- a/js-stellar-base_src_operations_invoke_host_function.js.html +++ b/js-stellar-base_src_operations_invoke_host_function.js.html @@ -88,7 +88,7 @@

js-stellar-base/src/operations/invoke_host_function.js
- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_liquidity_pool_deposit.js.html b/js-stellar-base_src_operations_liquidity_pool_deposit.js.html index 7aeb48d4..7ddce99a 100644 --- a/js-stellar-base_src_operations_liquidity_pool_deposit.js.html +++ b/js-stellar-base_src_operations_liquidity_pool_deposit.js.html @@ -111,7 +111,7 @@

js-stellar-base/src/operations/liquidity_pool_deposit.js<
- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_liquidity_pool_withdraw.js.html b/js-stellar-base_src_operations_liquidity_pool_withdraw.js.html index 0c21aff7..e36a678c 100644 --- a/js-stellar-base_src_operations_liquidity_pool_withdraw.js.html +++ b/js-stellar-base_src_operations_liquidity_pool_withdraw.js.html @@ -99,7 +99,7 @@

js-stellar-base/src/operations/liquidity_pool_withdraw.js
- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_manage_buy_offer.js.html b/js-stellar-base_src_operations_manage_buy_offer.js.html index f86353e9..0ac8c990 100644 --- a/js-stellar-base_src_operations_manage_buy_offer.js.html +++ b/js-stellar-base_src_operations_manage_buy_offer.js.html @@ -98,7 +98,7 @@

js-stellar-base/src/operations/manage_buy_offer.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_manage_data.js.html b/js-stellar-base_src_operations_manage_data.js.html index 96733437..62cea8c5 100644 --- a/js-stellar-base_src_operations_manage_data.js.html +++ b/js-stellar-base_src_operations_manage_data.js.html @@ -97,7 +97,7 @@

js-stellar-base/src/operations/manage_data.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_manage_sell_offer.js.html b/js-stellar-base_src_operations_manage_sell_offer.js.html index 881e5519..e205a01c 100644 --- a/js-stellar-base_src_operations_manage_sell_offer.js.html +++ b/js-stellar-base_src_operations_manage_sell_offer.js.html @@ -98,7 +98,7 @@

js-stellar-base/src/operations/manage_sell_offer.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_path_payment_strict_receive.js.html b/js-stellar-base_src_operations_path_payment_strict_receive.js.html index f4c7a87d..57a58739 100644 --- a/js-stellar-base_src_operations_path_payment_strict_receive.js.html +++ b/js-stellar-base_src_operations_path_payment_strict_receive.js.html @@ -117,7 +117,7 @@

js-stellar-base/src/operations/path_payment_strict_receiv
- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_path_payment_strict_send.js.html b/js-stellar-base_src_operations_path_payment_strict_send.js.html index 206cdac1..bdc2c2b3 100644 --- a/js-stellar-base_src_operations_path_payment_strict_send.js.html +++ b/js-stellar-base_src_operations_path_payment_strict_send.js.html @@ -116,7 +116,7 @@

js-stellar-base/src/operations/path_payment_strict_send.j
- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_payment.js.html b/js-stellar-base_src_operations_payment.js.html index 793edae3..baa956ec 100644 --- a/js-stellar-base_src_operations_payment.js.html +++ b/js-stellar-base_src_operations_payment.js.html @@ -96,7 +96,7 @@

js-stellar-base/src/operations/payment.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_restore_footprint.js.html b/js-stellar-base_src_operations_restore_footprint.js.html index e7217daf..6ffe98b8 100644 --- a/js-stellar-base_src_operations_restore_footprint.js.html +++ b/js-stellar-base_src_operations_restore_footprint.js.html @@ -77,7 +77,7 @@

js-stellar-base/src/operations/restore_footprint.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_revoke_sponsorship.js.html b/js-stellar-base_src_operations_revoke_sponsorship.js.html index 6619c57e..0b7c2540 100644 --- a/js-stellar-base_src_operations_revoke_sponsorship.js.html +++ b/js-stellar-base_src_operations_revoke_sponsorship.js.html @@ -367,7 +367,7 @@

js-stellar-base/src/operations/revoke_sponsorship.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_set_options.js.html b/js-stellar-base_src_operations_set_options.js.html index 51b9ce6f..09ef09f8 100644 --- a/js-stellar-base_src_operations_set_options.js.html +++ b/js-stellar-base_src_operations_set_options.js.html @@ -235,7 +235,7 @@

js-stellar-base/src/operations/set_options.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_operations_set_trustline_flags.js.html b/js-stellar-base_src_operations_set_trustline_flags.js.html index f82a3d9c..160ec279 100644 --- a/js-stellar-base_src_operations_set_trustline_flags.js.html +++ b/js-stellar-base_src_operations_set_trustline_flags.js.html @@ -137,7 +137,7 @@

js-stellar-base/src/operations/set_trustline_flags.js

- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_scval.js.html b/js-stellar-base_src_scval.js.html index 7469e8b4..4710e7bd 100644 --- a/js-stellar-base_src_scval.js.html +++ b/js-stellar-base_src_scval.js.html @@ -293,21 +293,22 @@

js-stellar-base/src/scval.js

} /** - * Given a smart contract value, attempt to convert to a native type. - * + * Given a smart contract value, attempt to convert it to a native type. * Possible conversions include: * - * - void -> null - * - u32, i32 -> number - * - u64, i64, u128, i128, u256, i256 -> bigint - * - vec -> array of any of the above (via recursion) + * - void -> `null` + * - u32, i32 -> `number` + * - u64, i64, u128, i128, u256, i256 -> `bigint` + * - vec -> `Array` of any of the above (via recursion) * - map -> key-value object of any of the above (via recursion) - * - bool -> boolean - * - bytes -> Uint8Array - * - string, symbol -> string|Uint8Array + * - bool -> `boolean` + * - bytes -> `Uint8Array` + * - symbol -> `string` + * - string -> `string` IF the underlying buffer can be decoded as ascii/utf8, + * `Uint8Array` of the raw contents in any error case * - * If no conversion can be made, this just "unwraps" the smart value to return - * its underlying XDR value. + * If no viable conversion can be determined, this just "unwraps" the smart + * value to return its underlying XDR value. * * @param {xdr.ScVal} scv - the input smart contract value * @@ -356,14 +357,26 @@

js-stellar-base/src/scval.js

case xdr.ScValType.scvBytes().value: return scv.value(); - case xdr.ScValType.scvString().value: - case xdr.ScValType.scvSymbol().value: { + // Symbols are limited to [a-zA-Z0-9_]+, so we can safely make ascii strings + // + // Strings, however, are "presented" as strings and we treat them as such + // (in other words, string = bytes with a hint that it's text). If the user + // encoded non-printable bytes in their string value, that's on them. + // + // Note that we assume a utf8 encoding (ascii-compatible). For other + // encodings, you should probably use bytes anyway. If it cannot be decoded, + // the raw bytes are returned. + case xdr.ScValType.scvSymbol().value: + case xdr.ScValType.scvString().value: { const v = scv.value(); // string|Buffer - if (Buffer.isBuffer(v)) { - // trying to avoid bubbling up problematic Buffer type - return Uint8Array.from(v); + if (Buffer.isBuffer(v) || ArrayBuffer.isView(v)) { + try { + return new TextDecoder().decode(v); + } catch (e) { + return new Uint8Array(v.buffer); // copy of bytes + } } - return v; // string + return v; // string already } // these can be converted to bigint @@ -405,7 +418,7 @@

js-stellar-base/src/scval.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_signerkey.js.html b/js-stellar-base_src_signerkey.js.html index f3628985..8c626d4c 100644 --- a/js-stellar-base_src_signerkey.js.html +++ b/js-stellar-base_src_signerkey.js.html @@ -143,7 +143,7 @@

js-stellar-base/src/signerkey.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_signing.js.html b/js-stellar-base_src_signing.js.html index 8dedc383..9f494f75 100644 --- a/js-stellar-base_src_signing.js.html +++ b/js-stellar-base_src_signing.js.html @@ -158,7 +158,7 @@

js-stellar-base/src/signing.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_strkey.js.html b/js-stellar-base_src_strkey.js.html index 895e9c2e..973792fe 100644 --- a/js-stellar-base_src_strkey.js.html +++ b/js-stellar-base_src_strkey.js.html @@ -449,7 +449,7 @@

js-stellar-base/src/strkey.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_transaction.js.html b/js-stellar-base_src_transaction.js.html index 27dae24a..8b93c34c 100644 --- a/js-stellar-base_src_transaction.js.html +++ b/js-stellar-base_src_transaction.js.html @@ -419,7 +419,7 @@

js-stellar-base/src/transaction.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_transaction_base.js.html b/js-stellar-base_src_transaction_base.js.html index 4fdfa422..6a1d60c9 100644 --- a/js-stellar-base_src_transaction_base.js.html +++ b/js-stellar-base_src_transaction_base.js.html @@ -268,7 +268,7 @@

js-stellar-base/src/transaction_base.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_transaction_builder.js.html b/js-stellar-base_src_transaction_builder.js.html index 29cffc8d..cc1bddb6 100644 --- a/js-stellar-base_src_transaction_builder.js.html +++ b/js-stellar-base_src_transaction_builder.js.html @@ -773,7 +773,7 @@

js-stellar-base/src/transaction_builder.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/js-stellar-base_src_util_decode_encode_muxed_account.js.html b/js-stellar-base_src_util_decode_encode_muxed_account.js.html index 69085070..1e0d8eb6 100644 --- a/js-stellar-base_src_util_decode_encode_muxed_account.js.html +++ b/js-stellar-base_src_util_decode_encode_muxed_account.js.html @@ -175,7 +175,7 @@

js-stellar-base/src/util/decode_encode_muxed_account.js
- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/lib_axios.js.html b/lib_axios.js.html index 67d11f29..ddec5815 100644 --- a/lib_axios.js.html +++ b/lib_axios.js.html @@ -125,7 +125,7 @@

lib/axios.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/lib_jsonrpc.js.html b/lib_jsonrpc.js.html index 965f6309..850348af 100644 --- a/lib_jsonrpc.js.html +++ b/lib_jsonrpc.js.html @@ -52,10 +52,7 @@

lib/jsonrpc.js

/** * Sends the jsonrpc 'params' as an array. */ -async function post(url, method) { - for (var _len = arguments.length, params = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - params[_key - 2] = arguments[_key]; - } +async function post(url, method, ...params) { if (params && params.length < 1) { params = null; } @@ -101,7 +98,7 @@

lib/jsonrpc.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.
diff --git a/lib_server.js.html b/lib_server.js.html index b43a69f9..4541a3b1 100644 --- a/lib_server.js.html +++ b/lib_server.js.html @@ -86,8 +86,7 @@

lib/server.js

* Soroban-RPC Server URL (ex. `http://localhost:8000/soroban/rpc`). */ - constructor(serverURL) { - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + constructor(serverURL, opts = {}) { this.serverURL = (0, _urijs.default)(serverURL); const customHeaders = {}; if (opts.appName) { @@ -127,11 +126,11 @@

lib/server.js

accountId: _stellarBase.xdr.PublicKey.publicKeyTypeEd25519(_stellarBase.StrKey.decodeEd25519PublicKey(address)) })).toXDR("base64"); const data = await jsonrpc.post(this.serverURL.toString(), "getLedgerEntries", [ledgerKey]); - const ledgerEntries = data.entries; + const ledgerEntries = data.entries ?? []; if (ledgerEntries.length === 0) { return Promise.reject({ code: 404, - message: "Ledger entry not found. Key: " + ledgerKey + message: `Account not found: ${address}` }); } const ledgerEntryData = ledgerEntries[0].xdr; @@ -190,8 +189,7 @@

lib/server.js

* entirely possible that it has expired out of existence. Future versions * of this client may provide abstractions to handle that. */ - async getContractData(contract, key) { - let durability = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Durability.Persistent; + async getContractData(contract, key, durability = Durability.Persistent) { // coalesce `contract` param variants to an ScAddress let scAddress; if (typeof contract === 'string') { @@ -221,13 +219,14 @@

lib/server.js

bodyType: _stellarBase.xdr.ContractEntryBodyType.dataEntry() // expirationExtension is internal })).toXDR("base64"); return jsonrpc.post(this.serverURL.toString(), "getLedgerEntries", [contractKey]).then(response => { - if (response.entries.length !== 1) { + const ledgerEntries = response.entries ?? []; + if (ledgerEntries.length !== 1) { return Promise.reject({ code: 404, - message: `Ledger entry not found. Key: ${contractKey}` + message: `Contract data not found. Contract: ${_stellarBase.Address.fromScAddress(scAddress).toString()}, Key: ${key.toXDR("base64")}, Durability: ${durability}` }); } - return response.entries[0]; + return ledgerEntries[0]; }); } @@ -254,7 +253,7 @@

lib/server.js

* console.log("latestLedger:", response.latestLedger); * }); * - * @param {xdr.ScVal} key - The key of the contract data to load. + * @param {xdr.ScVal[]} keys - The ledger entry keys to load. * * @returns {Promise<SorobanRpc.GetLedgerEntriesResponse>} Returns a promise * to the {@link SorobanRpc.GetLedgerEntriesResponse} object with the @@ -651,33 +650,11 @@

lib/server.js

if (data.switch() !== _stellarBase.xdr.LedgerEntryType.account()) { continue; } - const account = data.account(); - const seqNum = account.seqNum(); - return bigIntFromBytes(!seqNum.unsigned, seqNum.high, seqNum.low).toString(); + return data.account().seqNum().toString(); } } throw new Error("No account created in transaction"); } -function bigIntFromBytes(signed) { - let sign = BigInt(1); - for (var _len = arguments.length, bytes = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - bytes[_key - 1] = arguments[_key]; - } - if (signed && bytes[0] === 0x80) { - // top bit is set, negative number. - sign = BigInt(-1); - // tslint:disable-next-line:no-bitwise - bytes[0] &= 0x7f; - } - let b = BigInt(0); - for (const byte of bytes) { - // tslint:disable-next-line:no-bitwise - b <<= BigInt(8); - // tslint:disable-next-line:no-bitwise - b |= BigInt(byte); - } - return b * sign; -} (function (_Server) {})(Server || (exports.Server = Server = {})); @@ -690,7 +667,7 @@

lib/server.js


- Generated by JSDoc 4.0.2 on Wed Jul 12 2023 14:29:39 GMT+0000 (Coordinated Universal Time) using the Minami theme. + Generated by JSDoc 4.0.2 on Mon Jul 17 2023 23:40:25 GMT+0000 (Coordinated Universal Time) using the Minami theme.