v13.0.0-rc.2
Pre-release
Pre-release
v13.0.0-rc.2
Breaking Changes
- The
ClientOptions.signTransactiontype has been updated to reflect the latest SEP-43 protocol, which matches the latest major version of Freighter and other wallets. It now acceptsaddress,submit, andsubmitUrloptions, and it returns a promise containing thesignedTxXdrand thesignerAddress. It now also returns anErrortype if an error occurs during signing.basicNodeSignerhas been updated to reflect the new type.
ClientOptions.signAuthEntrytype has also been updated to reflect the SEP-43 protocol, which also returns a promise containing thesignerAddressin addition to thesignAuthEntrythat was returned previously. It also can return anErrortype.
Added
contract.Clientnow has a staticdeploymethod that can be used to deploy a contract instance from an existing uploaded/"installed" Wasm hash. The first arguments to this method are the arguments for the contract's__constructormethod in accordance with CAP-42 (#1086).
For example, using the increment test contract as modified in https://github.com/stellar/soroban-test-examples/pull/2/files#diff-8734809100be3803c3ce38064730b4578074d7c2dc5fb7c05ca802b2248b18afR10-R45:
const tx = await contract.Client.deploy(
{ counter: 42 },
{
networkPassphrase,
rpcUrl,
wasmHash: uploadedWasmHash,
publicKey: someKeypair.publicKey(),
...basicNodeSigner(someKeypair, networkPassphrase),
},
);
const { result: client } = await tx.signAndSend();
const t = await client.get();
expect(t.result, 42);Horizon.ServerApinow has anEffectTypeexported so that you can compare and infer effect types directly (#1099).Horizon.ServerApi.Tradetype now has atype_ifield for type inference.- All effects now expose their type as an exact string (#947).
stellartoml-Resolver.resolvenow has aallowedRedirectsoption to configure the number of allowed redirects to follow when resolving a stellar toml file.