@layerzerolabs/lz-v2-stellar-sdk 0.2.61 → 0.2.63
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/.turbo/turbo-test.log +422 -318
- package/dist/generated/bml.d.ts +2 -0
- package/dist/generated/counter.d.ts +2 -0
- package/dist/generated/dvn.d.ts +2 -0
- package/dist/generated/dvn_fee_lib.d.ts +2 -0
- package/dist/generated/endpoint.d.ts +2 -0
- package/dist/generated/executor.d.ts +2 -0
- package/dist/generated/executor_fee_lib.d.ts +2 -0
- package/dist/generated/executor_helper.d.ts +2 -0
- package/dist/generated/layerzero_view.d.ts +2 -0
- package/dist/generated/oft.d.ts +2 -0
- package/dist/generated/price_feed.d.ts +2 -0
- package/dist/generated/sac_manager.d.ts +2 -0
- package/dist/generated/sml.d.ts +2 -0
- package/dist/generated/treasury.d.ts +2 -0
- package/dist/generated/uln302.d.ts +2 -0
- package/dist/generated/upgrader.d.ts +2 -0
- package/package.json +5 -7
- package/src/generated/bml.ts +10 -0
- package/src/generated/counter.ts +10 -0
- package/src/generated/dvn.ts +10 -0
- package/src/generated/dvn_fee_lib.ts +10 -0
- package/src/generated/endpoint.ts +10 -0
- package/src/generated/executor.ts +10 -0
- package/src/generated/executor_fee_lib.ts +10 -0
- package/src/generated/executor_helper.ts +10 -0
- package/src/generated/layerzero_view.ts +10 -0
- package/src/generated/oft.ts +10 -0
- package/src/generated/price_feed.ts +10 -0
- package/src/generated/sac_manager.ts +10 -0
- package/src/generated/sml.ts +10 -0
- package/src/generated/treasury.ts +10 -0
- package/src/generated/uln302.ts +10 -0
- package/src/generated/upgrader.ts +10 -0
- package/test/suites/constants.ts +8 -4
- package/test/suites/deploy.ts +8 -2
- package/test/suites/localnet.ts +146 -71
package/dist/generated/bml.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import type { u32, u64, i128 } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 15398 bytes (15.04 KB)
|
|
@@ -4,6 +4,8 @@ import type { u32, u64, i128, Option } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 52090 bytes (50.87 KB)
|
package/dist/generated/dvn.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import type { u32, u64, u128, i128, Option } from '@stellar/stellar-sdk/contract
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 59983 bytes (58.58 KB)
|
|
@@ -4,6 +4,8 @@ import type { u32, u64, u128, i128, Option } from '@stellar/stellar-sdk/contract
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 22652 bytes (22.12 KB)
|
|
@@ -4,6 +4,8 @@ import type { u32, u64, i128, Option } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 59457 bytes (58.06 KB)
|
|
@@ -4,6 +4,8 @@ import type { u32, u64, u128, i128, Option } from '@stellar/stellar-sdk/contract
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 59531 bytes (58.14 KB)
|
|
@@ -4,6 +4,8 @@ import type { u32, u64, u128, i128, Option } from '@stellar/stellar-sdk/contract
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 35404 bytes (34.57 KB)
|
|
@@ -4,6 +4,8 @@ import type { u32, u64, u128, i128 } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 25110 bytes (24.52 KB)
|
|
@@ -4,6 +4,8 @@ import type { u32, u64, i128, Option } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 36531 bytes (35.67 KB)
|
package/dist/generated/oft.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import type { u32, u64, i128, Option } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 77986 bytes (76.16 KB)
|
|
@@ -4,6 +4,8 @@ import type { u32, u64, u128, i128, Option } from '@stellar/stellar-sdk/contract
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 33739 bytes (32.95 KB)
|
|
@@ -4,6 +4,8 @@ import type { u32, i128, Option } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 24101 bytes (23.54 KB)
|
package/dist/generated/sml.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import type { u32, u64, i128, Option } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 30929 bytes (30.20 KB)
|
|
@@ -4,6 +4,8 @@ import type { u32, u64, i128, Option } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 29508 bytes (28.82 KB)
|
|
@@ -4,6 +4,8 @@ import type { u32, u64, i128, Option } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 60571 bytes (59.15 KB)
|
|
@@ -4,6 +4,8 @@ import type { u32, Option } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
8
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
7
9
|
/**
|
|
8
10
|
* Embedded WASM bytecode (base64-encoded)
|
|
9
11
|
* Size: 7575 bytes (7.40 KB)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/lz-v2-stellar-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.63",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "TypeScript SDK for endpoint-v2 Stellar contract",
|
|
6
6
|
"repository": {
|
|
@@ -20,14 +20,12 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@layerzerolabs/lz-v2-utilities": "3.0.167",
|
|
23
|
-
"axios": "^1.13.5",
|
|
24
23
|
"typescript": "^5.8.2",
|
|
25
24
|
"vitest": "^3.2.3",
|
|
26
|
-
"
|
|
27
|
-
"@layerzerolabs/
|
|
28
|
-
"@layerzerolabs/
|
|
29
|
-
"@layerzerolabs/
|
|
30
|
-
"@layerzerolabs/tsup-configuration": "0.2.61"
|
|
25
|
+
"@layerzerolabs/common-node-utils": "0.2.63",
|
|
26
|
+
"@layerzerolabs/tsup-configuration": "0.2.63",
|
|
27
|
+
"@layerzerolabs/typescript-configuration": "0.2.63",
|
|
28
|
+
"@layerzerolabs/protocol-stellar-v2": "0.2.63"
|
|
31
29
|
},
|
|
32
30
|
"publishConfig": {
|
|
33
31
|
"access": "public",
|
package/src/generated/bml.ts
CHANGED
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 15398 bytes (15.04 KB)
|
package/src/generated/counter.ts
CHANGED
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 52090 bytes (50.87 KB)
|
package/src/generated/dvn.ts
CHANGED
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 59983 bytes (58.58 KB)
|
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 22652 bytes (22.12 KB)
|
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 59457 bytes (58.06 KB)
|
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 59531 bytes (58.14 KB)
|
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 35404 bytes (34.57 KB)
|
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 25110 bytes (24.52 KB)
|
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 36531 bytes (35.67 KB)
|
package/src/generated/oft.ts
CHANGED
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 77986 bytes (76.16 KB)
|
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 33739 bytes (32.95 KB)
|
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 24101 bytes (23.54 KB)
|
package/src/generated/sml.ts
CHANGED
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 30929 bytes (30.20 KB)
|
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 29508 bytes (28.82 KB)
|
package/src/generated/uln302.ts
CHANGED
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 60571 bytes (59.15 KB)
|
|
@@ -26,6 +26,16 @@ export * from '@stellar/stellar-sdk'
|
|
|
26
26
|
export * as contract from '@stellar/stellar-sdk/contract'
|
|
27
27
|
export * as rpc from '@stellar/stellar-sdk/rpc'
|
|
28
28
|
|
|
29
|
+
// Soroban SDK types referenced in contract specs but not defined in the contract itself.
|
|
30
|
+
// InvokerContractAuthEntry is a Soroban built-in encoded as ScVal:
|
|
31
|
+
// scvVec([symbol("Contract"), scvMap({
|
|
32
|
+
// context: scvMap({ args, contract, fn_name }),
|
|
33
|
+
// sub_invocations: scvVec([...])
|
|
34
|
+
// })])
|
|
35
|
+
// Must be manually constructed — the contract spec's nativeToScVal cannot serialize it.
|
|
36
|
+
import type { xdr } from '@stellar/stellar-sdk';
|
|
37
|
+
export type InvokerContractAuthEntry = xdr.ScVal;
|
|
38
|
+
|
|
29
39
|
/**
|
|
30
40
|
* Embedded WASM bytecode (base64-encoded)
|
|
31
41
|
* Size: 7575 bytes (7.40 KB)
|
package/test/suites/constants.ts
CHANGED
|
@@ -3,9 +3,13 @@ import { Asset, Keypair, Networks } from '@stellar/stellar-sdk';
|
|
|
3
3
|
import { Secp256k1KeyPair } from '../secp256k1';
|
|
4
4
|
|
|
5
5
|
const CORE_URL = 'http://localhost:8086';
|
|
6
|
-
export const
|
|
7
|
-
export const RPC_URL = `${CORE_URL}/rpc`;
|
|
6
|
+
export const RPC_URL = `${CORE_URL}/soroban/rpc`;
|
|
8
7
|
export const NETWORK_PASSPHRASE = Networks.STANDALONE;
|
|
8
|
+
|
|
9
|
+
// Pre-funded in the ECR localnet image (BIP39: "test test...junk", path m/44'/148'/0')
|
|
10
|
+
export const JUNK_WALLET = Keypair.fromSecret(
|
|
11
|
+
'SCZ5VBFVGE4SLZV5WJO33LEEU36EEOEHWO27KYJIIUWGOKZB2OSNAQBI',
|
|
12
|
+
);
|
|
9
13
|
export const DEFAULT_DEPLOYER = Keypair.fromSecret(
|
|
10
14
|
'SDLCA3JUES3G6R4FTI6XXDIWW7QCNMZNWPYQQIKQ26TEIZUFOLIVIUDK',
|
|
11
15
|
);
|
|
@@ -32,8 +36,8 @@ export const DVN_SIGNER = new Secp256k1KeyPair(
|
|
|
32
36
|
export const DVN_VID = 1;
|
|
33
37
|
|
|
34
38
|
// Two-chain EIDs for cross-chain testing
|
|
35
|
-
export const EID_A = 30401;
|
|
36
|
-
export const EID_B = 30402;
|
|
39
|
+
export const EID_A = 30401;
|
|
40
|
+
export const EID_B = 30402;
|
|
37
41
|
|
|
38
42
|
// Legacy single EID (kept for backwards compatibility)
|
|
39
43
|
export const EID = EID_A;
|
package/test/suites/deploy.ts
CHANGED
|
@@ -59,7 +59,7 @@ async function queryWasmTtl(wasmHash: string, server: rpc.Server, rpcUrl?: strin
|
|
|
59
59
|
|
|
60
60
|
const result = await response.json();
|
|
61
61
|
if (result.error) {
|
|
62
|
-
console.warn(
|
|
62
|
+
console.warn(`Warning: Could not retrieve WASM TTL: ${result.error.message}`);
|
|
63
63
|
} else if (result.result?.entries?.[0]?.liveUntilLedgerSeq) {
|
|
64
64
|
const liveUntilLedgerSeq = result.result.entries[0].liveUntilLedgerSeq;
|
|
65
65
|
const ttlLedgers = liveUntilLedgerSeq - currentLedger;
|
|
@@ -72,7 +72,7 @@ async function queryWasmTtl(wasmHash: string, server: rpc.Server, rpcUrl?: strin
|
|
|
72
72
|
// If querying TTL fails, it might be because the code isn't indexed yet
|
|
73
73
|
// This is non-fatal, so we just log a warning
|
|
74
74
|
console.warn(
|
|
75
|
-
|
|
75
|
+
`Warning: Could not retrieve WASM TTL: ${error instanceof Error ? error.message : String(error)}`,
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -287,6 +287,12 @@ export async function deployAssetSac(asset: Asset): Promise<string> {
|
|
|
287
287
|
|
|
288
288
|
// Check if simulation was successful
|
|
289
289
|
if (rpc.Api.isSimulationError(simulated)) {
|
|
290
|
+
// Soroban returns ExistingValue when the contract is already deployed.
|
|
291
|
+
// This is expected on container reuse (local dev reruns).
|
|
292
|
+
if (simulated.error?.includes('ExistingValue')) {
|
|
293
|
+
console.log(`SAC for ${asset.toString()} already deployed, skipping`);
|
|
294
|
+
return asset.contractId(NETWORK_PASSPHRASE);
|
|
295
|
+
}
|
|
290
296
|
throw new Error(`Transaction simulation failed: ${JSON.stringify(simulated)}`);
|
|
291
297
|
}
|
|
292
298
|
|