@layerzerolabs/onesig-stellar-sdk 0.2.41

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.
@@ -0,0 +1,73 @@
1
+ 'use strict';
2
+
3
+ var _4BTGVD44_js = require('../4BTGVD44.js');
4
+ require('../VUOMXK5T.js');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "AuthError", {
9
+ enumerable: true,
10
+ get: function () { return _4BTGVD44_js.AuthError; }
11
+ });
12
+ Object.defineProperty(exports, "BufferReaderError", {
13
+ enumerable: true,
14
+ get: function () { return _4BTGVD44_js.BufferReaderError; }
15
+ });
16
+ Object.defineProperty(exports, "BufferWriterError", {
17
+ enumerable: true,
18
+ get: function () { return _4BTGVD44_js.BufferWriterError; }
19
+ });
20
+ Object.defineProperty(exports, "BytesExtError", {
21
+ enumerable: true,
22
+ get: function () { return _4BTGVD44_js.BytesExtError; }
23
+ });
24
+ Object.defineProperty(exports, "Client", {
25
+ enumerable: true,
26
+ get: function () { return _4BTGVD44_js.Client; }
27
+ });
28
+ Object.defineProperty(exports, "MultiSigError", {
29
+ enumerable: true,
30
+ get: function () { return _4BTGVD44_js.MultiSigError; }
31
+ });
32
+ Object.defineProperty(exports, "OneSigError", {
33
+ enumerable: true,
34
+ get: function () { return _4BTGVD44_js.OneSigError; }
35
+ });
36
+ Object.defineProperty(exports, "OwnableError", {
37
+ enumerable: true,
38
+ get: function () { return _4BTGVD44_js.OwnableError; }
39
+ });
40
+ Object.defineProperty(exports, "RbacError", {
41
+ enumerable: true,
42
+ get: function () { return _4BTGVD44_js.RbacError; }
43
+ });
44
+ Object.defineProperty(exports, "TtlConfigurableError", {
45
+ enumerable: true,
46
+ get: function () { return _4BTGVD44_js.TtlConfigurableError; }
47
+ });
48
+ Object.defineProperty(exports, "UpgradeableError", {
49
+ enumerable: true,
50
+ get: function () { return _4BTGVD44_js.UpgradeableError; }
51
+ });
52
+ Object.defineProperty(exports, "WASM_BASE64", {
53
+ enumerable: true,
54
+ get: function () { return _4BTGVD44_js.WASM_BASE64; }
55
+ });
56
+ Object.defineProperty(exports, "WASM_HASH", {
57
+ enumerable: true,
58
+ get: function () { return _4BTGVD44_js.WASM_HASH; }
59
+ });
60
+ Object.defineProperty(exports, "contract", {
61
+ enumerable: true,
62
+ get: function () { return _4BTGVD44_js.contract; }
63
+ });
64
+ Object.defineProperty(exports, "getWasmBuffer", {
65
+ enumerable: true,
66
+ get: function () { return _4BTGVD44_js.getWasmBuffer; }
67
+ });
68
+ Object.defineProperty(exports, "rpc", {
69
+ enumerable: true,
70
+ get: function () { return _4BTGVD44_js.rpc; }
71
+ });
72
+ //# sourceMappingURL=index.js.map
73
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,4 @@
1
+ export { AuthError, BufferReaderError, BufferWriterError, BytesExtError, Client, MultiSigError, OneSigError, OwnableError, RbacError, TtlConfigurableError, UpgradeableError, WASM_BASE64, WASM_HASH, contract, getWasmBuffer, rpc } from '../LWB5RMS5.mjs';
2
+ import '../YYM473VY.mjs';
3
+ //# sourceMappingURL=index.mjs.map
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
@@ -0,0 +1,4 @@
1
+ export * from './generated/index';
2
+ export * from './leafGenerator';
3
+ export * from './calls';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,99 @@
1
+ 'use strict';
2
+
3
+ var WX2KPL4Q_js = require('./WX2KPL4Q.js');
4
+ var GSREWZBT_js = require('./GSREWZBT.js');
5
+ var _4BTGVD44_js = require('./4BTGVD44.js');
6
+ require('./VUOMXK5T.js');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "createSetExecutorCall", {
11
+ enumerable: true,
12
+ get: function () { return WX2KPL4Q_js.createSetExecutorCall; }
13
+ });
14
+ Object.defineProperty(exports, "createSetExecutorRequiredCall", {
15
+ enumerable: true,
16
+ get: function () { return WX2KPL4Q_js.createSetExecutorRequiredCall; }
17
+ });
18
+ Object.defineProperty(exports, "createSetSeedCall", {
19
+ enumerable: true,
20
+ get: function () { return WX2KPL4Q_js.createSetSeedCall; }
21
+ });
22
+ Object.defineProperty(exports, "createSetSignerCall", {
23
+ enumerable: true,
24
+ get: function () { return WX2KPL4Q_js.createSetSignerCall; }
25
+ });
26
+ Object.defineProperty(exports, "createSetThresholdCall", {
27
+ enumerable: true,
28
+ get: function () { return WX2KPL4Q_js.createSetThresholdCall; }
29
+ });
30
+ Object.defineProperty(exports, "stellarLeafGenerator", {
31
+ enumerable: true,
32
+ get: function () { return GSREWZBT_js.stellarLeafGenerator; }
33
+ });
34
+ Object.defineProperty(exports, "AuthError", {
35
+ enumerable: true,
36
+ get: function () { return _4BTGVD44_js.AuthError; }
37
+ });
38
+ Object.defineProperty(exports, "BufferReaderError", {
39
+ enumerable: true,
40
+ get: function () { return _4BTGVD44_js.BufferReaderError; }
41
+ });
42
+ Object.defineProperty(exports, "BufferWriterError", {
43
+ enumerable: true,
44
+ get: function () { return _4BTGVD44_js.BufferWriterError; }
45
+ });
46
+ Object.defineProperty(exports, "BytesExtError", {
47
+ enumerable: true,
48
+ get: function () { return _4BTGVD44_js.BytesExtError; }
49
+ });
50
+ Object.defineProperty(exports, "Client", {
51
+ enumerable: true,
52
+ get: function () { return _4BTGVD44_js.Client; }
53
+ });
54
+ Object.defineProperty(exports, "MultiSigError", {
55
+ enumerable: true,
56
+ get: function () { return _4BTGVD44_js.MultiSigError; }
57
+ });
58
+ Object.defineProperty(exports, "OneSigError", {
59
+ enumerable: true,
60
+ get: function () { return _4BTGVD44_js.OneSigError; }
61
+ });
62
+ Object.defineProperty(exports, "OwnableError", {
63
+ enumerable: true,
64
+ get: function () { return _4BTGVD44_js.OwnableError; }
65
+ });
66
+ Object.defineProperty(exports, "RbacError", {
67
+ enumerable: true,
68
+ get: function () { return _4BTGVD44_js.RbacError; }
69
+ });
70
+ Object.defineProperty(exports, "TtlConfigurableError", {
71
+ enumerable: true,
72
+ get: function () { return _4BTGVD44_js.TtlConfigurableError; }
73
+ });
74
+ Object.defineProperty(exports, "UpgradeableError", {
75
+ enumerable: true,
76
+ get: function () { return _4BTGVD44_js.UpgradeableError; }
77
+ });
78
+ Object.defineProperty(exports, "WASM_BASE64", {
79
+ enumerable: true,
80
+ get: function () { return _4BTGVD44_js.WASM_BASE64; }
81
+ });
82
+ Object.defineProperty(exports, "WASM_HASH", {
83
+ enumerable: true,
84
+ get: function () { return _4BTGVD44_js.WASM_HASH; }
85
+ });
86
+ Object.defineProperty(exports, "contract", {
87
+ enumerable: true,
88
+ get: function () { return _4BTGVD44_js.contract; }
89
+ });
90
+ Object.defineProperty(exports, "getWasmBuffer", {
91
+ enumerable: true,
92
+ get: function () { return _4BTGVD44_js.getWasmBuffer; }
93
+ });
94
+ Object.defineProperty(exports, "rpc", {
95
+ enumerable: true,
96
+ get: function () { return _4BTGVD44_js.rpc; }
97
+ });
98
+ //# sourceMappingURL=index.js.map
99
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
package/dist/index.mjs ADDED
@@ -0,0 +1,6 @@
1
+ export { createSetExecutorCall, createSetExecutorRequiredCall, createSetSeedCall, createSetSignerCall, createSetThresholdCall } from './F6ZSIYGU.mjs';
2
+ export { stellarLeafGenerator } from './E77JAAZY.mjs';
3
+ export { AuthError, BufferReaderError, BufferWriterError, BytesExtError, Client, MultiSigError, OneSigError, OwnableError, RbacError, TtlConfigurableError, UpgradeableError, WASM_BASE64, WASM_HASH, contract, getWasmBuffer, rpc } from './LWB5RMS5.mjs';
4
+ import './YYM473VY.mjs';
5
+ //# sourceMappingURL=index.mjs.map
6
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
@@ -0,0 +1,10 @@
1
+ import type { xdr } from '@stellar/stellar-sdk';
2
+ import { type BaseLeafData, type GenerateLeafsResult } from '@layerzerolabs/onesig-core';
3
+ export interface StellarCall {
4
+ contractAddress: string;
5
+ functionName: string;
6
+ args: xdr.ScVal[];
7
+ }
8
+ export type StellarLeafData = BaseLeafData<string, StellarCall>;
9
+ export declare function stellarLeafGenerator(leafs: StellarLeafData[]): GenerateLeafsResult<StellarLeafData>;
10
+ //# sourceMappingURL=leafGenerator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leafGenerator.d.ts","sourceRoot":"","sources":["../src/leafGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAuBzF,MAAM,WAAW,WAAW;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC;CACrB;AAED,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAGhE,wBAAgB,oBAAoB,CAChC,KAAK,EAAE,eAAe,EAAE,GACzB,mBAAmB,CAAC,eAAe,CAAC,CA4BtC"}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var GSREWZBT_js = require('./GSREWZBT.js');
4
+ require('./4BTGVD44.js');
5
+ require('./VUOMXK5T.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "stellarLeafGenerator", {
10
+ enumerable: true,
11
+ get: function () { return GSREWZBT_js.stellarLeafGenerator; }
12
+ });
13
+ //# sourceMappingURL=leafGenerator.js.map
14
+ //# sourceMappingURL=leafGenerator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"leafGenerator.js"}
@@ -0,0 +1,5 @@
1
+ export { stellarLeafGenerator } from './E77JAAZY.mjs';
2
+ import './LWB5RMS5.mjs';
3
+ import './YYM473VY.mjs';
4
+ //# sourceMappingURL=leafGenerator.mjs.map
5
+ //# sourceMappingURL=leafGenerator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"leafGenerator.mjs"}
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@layerzerolabs/onesig-stellar-sdk",
3
+ "version": "0.2.41",
4
+ "private": false,
5
+ "description": "TypeScript SDK for OneSig Stellar contract",
6
+ "license": "MIT",
7
+ "exports": {
8
+ "types": "./dist/index.d.ts",
9
+ "require": "./dist/index.js",
10
+ "import": "./dist/index.mjs",
11
+ "default": "./dist/index.js"
12
+ },
13
+ "main": "./dist/index.js",
14
+ "module": "./dist/index.mjs",
15
+ "types": "./dist/index.d.ts",
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "dependencies": {
20
+ "@stellar/stellar-sdk": "^14.1.1",
21
+ "@layerzerolabs/onesig-core": "0.2.41"
22
+ },
23
+ "devDependencies": {
24
+ "@types/node": "^22.18.6",
25
+ "ethers": "^5.8.0",
26
+ "tsup": "^8.4.0",
27
+ "typescript": "^5.8.2",
28
+ "vitest": "^3.2.3",
29
+ "@layerzerolabs/tsup-configuration": "0.2.41",
30
+ "@layerzerolabs/vm-tooling-stellar": "0.2.41",
31
+ "@layerzerolabs/typescript-configuration": "0.2.41",
32
+ "@layerzerolabs/onesig-stellar": "0.2.41"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public",
36
+ "registry": "https://registry.npmjs.org/"
37
+ },
38
+ "scripts": {
39
+ "build:contract": "cd .. && pnpm build:contract",
40
+ "compile:sdk": "cd .. && pnpm compile:sdk",
41
+ "build": "pnpm build:contract && pnpm compile:sdk && tsup",
42
+ "clean": "rm -rf dist .turbo",
43
+ "test": "vitest --run --pass-with-no-tests --typecheck --exclude test/integration.test.ts",
44
+ "test:integration": "cd .. && pnpm build:mocks && pnpm start:stellar && cd sdk && vitest run test/integration.test.ts; cd .. && pnpm stop:stellar"
45
+ }
46
+ }