@layerzerolabs/lz-sui-sdk-v2 3.0.68

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/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @layerzerolabs/lz-sui-sdk-v2
2
+
3
+ ## 3.0.68
4
+
5
+ ### Patch Changes
6
+
7
+ - 1c00a7d: Redeploy zksync uln301
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # @layerzerolabs/lz-sui-sdk-v2
2
+
3
+ ## Install sui cli
4
+
5
+ TODO
6
+
7
+ ## Run test
8
+
9
+ ### start the localnet
10
+
11
+ ```bash
12
+ yarn start-localnet
13
+ ```
14
+
15
+ ### run test
16
+
17
+ ```bash
18
+ yarn test
19
+ ```
package/dist/index.cjs ADDED
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __export = (target, all) => {
5
+ for (var name in all)
6
+ __defProp(target, name, { get: all[name], enumerable: true });
7
+ };
8
+
9
+ // src/endpoint.ts
10
+ var endpoint_exports = {};
11
+ __export(endpoint_exports, {
12
+ eid: () => eid,
13
+ getConfig: () => getConfig,
14
+ getSendLibrary: () => getSendLibrary,
15
+ initEid: () => initEid,
16
+ populateGetConfigTransaction: () => populateGetConfigTransaction,
17
+ populateQuoteTransaction: () => populateQuoteTransaction,
18
+ populateSendTransaction: () => populateSendTransaction,
19
+ populateSetConfigTransaction: () => populateSetConfigTransaction
20
+ });
21
+ async function initEid() {
22
+ throw new Error("Not implemented");
23
+ }
24
+ async function eid() {
25
+ return Promise.resolve(1);
26
+ }
27
+ async function getSendLibrary(sender, dst_eid) {
28
+ throw new Error("Not implemented");
29
+ }
30
+ async function getConfig() {
31
+ throw new Error("Not implemented");
32
+ }
33
+ async function populateQuoteTransaction(tx) {
34
+ }
35
+ async function populateSendTransaction(tx) {
36
+ }
37
+ async function populateGetConfigTransaction(tx) {
38
+ }
39
+ async function populateSetConfigTransaction(tx) {
40
+ }
41
+
42
+ exports.endpoint = endpoint_exports;
43
+ //# sourceMappingURL=index.cjs.map
44
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/endpoint.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,gBAAA,GAAA;AAAA,QAAA,CAAA,gBAAA,EAAA;AAAA,EAAA,GAAA,EAAA,MAAA,GAAA;AAAA,EAAA,SAAA,EAAA,MAAA,SAAA;AAAA,EAAA,cAAA,EAAA,MAAA,cAAA;AAAA,EAAA,OAAA,EAAA,MAAA,OAAA;AAAA,EAAA,4BAAA,EAAA,MAAA,4BAAA;AAAA,EAAA,wBAAA,EAAA,MAAA,wBAAA;AAAA,EAAA,uBAAA,EAAA,MAAA,uBAAA;AAAA,EAAA,4BAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAEA,eAAsB,OAAgC,GAAA;AAClD,EAAM,MAAA,IAAI,MAAM,iBAAiB,CAAA;AACrC;AAIA,eAAsB,GAAuB,GAAA;AAEzC,EAAO,OAAA,OAAA,CAAQ,QAAQ,CAAC,CAAA;AAC5B;AAEA,eAAsB,cAAA,CAAe,QAAgB,OAAkC,EAAA;AACnF,EAAM,MAAA,IAAI,MAAM,iBAAiB,CAAA;AACrC;AAEA,eAAsB,SAA6B,GAAA;AAC/C,EAAM,MAAA,IAAI,MAAM,iBAAiB,CAAA;AACrC;AAIA,eAAsB,yBAAyB,EAAgC,EAAA;AAE/E;AAEA,eAAsB,wBAAwB,EAAgC,EAAA;AAE9E;AAEA,eAAsB,6BAA6B,EAAgC,EAAA;AAEnF;AAEA,eAAsB,6BAA6B,EAAgC,EAAA;AAEnF","file":"index.cjs","sourcesContent":["import { Transaction } from '@mysten/sui/transactions'\n\nexport async function initEid(): Promise<Transaction> {\n throw new Error('Not implemented')\n}\n\n// TODO: add more mutate functions here\n\nexport async function eid(): Promise<number> {\n // TODO: implement\n return Promise.resolve(1)\n}\n\nexport async function getSendLibrary(sender: string, dst_eid: number): Promise<string> {\n throw new Error('Not implemented')\n}\n\nexport async function getConfig(): Promise<string> {\n throw new Error('Not implemented')\n}\n\n// TODO: more view functions to be added here\n\nexport async function populateQuoteTransaction(tx: Transaction): Promise<void> {\n // TODO: implement\n}\n\nexport async function populateSendTransaction(tx: Transaction): Promise<void> {\n // TODO: implement\n}\n\nexport async function populateGetConfigTransaction(tx: Transaction): Promise<void> {\n // TODO: implement\n}\n\nexport async function populateSetConfigTransaction(tx: Transaction): Promise<void> {\n // TODO: implement\n}\n"]}
@@ -0,0 +1,24 @@
1
+ import { Transaction } from '@mysten/sui/transactions';
2
+
3
+ declare function initEid(): Promise<Transaction>;
4
+ declare function eid(): Promise<number>;
5
+ declare function getSendLibrary(sender: string, dst_eid: number): Promise<string>;
6
+ declare function getConfig(): Promise<string>;
7
+ declare function populateQuoteTransaction(tx: Transaction): Promise<void>;
8
+ declare function populateSendTransaction(tx: Transaction): Promise<void>;
9
+ declare function populateGetConfigTransaction(tx: Transaction): Promise<void>;
10
+ declare function populateSetConfigTransaction(tx: Transaction): Promise<void>;
11
+
12
+ declare const endpoint_eid: typeof eid;
13
+ declare const endpoint_getConfig: typeof getConfig;
14
+ declare const endpoint_getSendLibrary: typeof getSendLibrary;
15
+ declare const endpoint_initEid: typeof initEid;
16
+ declare const endpoint_populateGetConfigTransaction: typeof populateGetConfigTransaction;
17
+ declare const endpoint_populateQuoteTransaction: typeof populateQuoteTransaction;
18
+ declare const endpoint_populateSendTransaction: typeof populateSendTransaction;
19
+ declare const endpoint_populateSetConfigTransaction: typeof populateSetConfigTransaction;
20
+ declare namespace endpoint {
21
+ export { endpoint_eid as eid, endpoint_getConfig as getConfig, endpoint_getSendLibrary as getSendLibrary, endpoint_initEid as initEid, endpoint_populateGetConfigTransaction as populateGetConfigTransaction, endpoint_populateQuoteTransaction as populateQuoteTransaction, endpoint_populateSendTransaction as populateSendTransaction, endpoint_populateSetConfigTransaction as populateSetConfigTransaction };
22
+ }
23
+
24
+ export { endpoint };
@@ -0,0 +1,24 @@
1
+ import { Transaction } from '@mysten/sui/transactions';
2
+
3
+ declare function initEid(): Promise<Transaction>;
4
+ declare function eid(): Promise<number>;
5
+ declare function getSendLibrary(sender: string, dst_eid: number): Promise<string>;
6
+ declare function getConfig(): Promise<string>;
7
+ declare function populateQuoteTransaction(tx: Transaction): Promise<void>;
8
+ declare function populateSendTransaction(tx: Transaction): Promise<void>;
9
+ declare function populateGetConfigTransaction(tx: Transaction): Promise<void>;
10
+ declare function populateSetConfigTransaction(tx: Transaction): Promise<void>;
11
+
12
+ declare const endpoint_eid: typeof eid;
13
+ declare const endpoint_getConfig: typeof getConfig;
14
+ declare const endpoint_getSendLibrary: typeof getSendLibrary;
15
+ declare const endpoint_initEid: typeof initEid;
16
+ declare const endpoint_populateGetConfigTransaction: typeof populateGetConfigTransaction;
17
+ declare const endpoint_populateQuoteTransaction: typeof populateQuoteTransaction;
18
+ declare const endpoint_populateSendTransaction: typeof populateSendTransaction;
19
+ declare const endpoint_populateSetConfigTransaction: typeof populateSetConfigTransaction;
20
+ declare namespace endpoint {
21
+ export { endpoint_eid as eid, endpoint_getConfig as getConfig, endpoint_getSendLibrary as getSendLibrary, endpoint_initEid as initEid, endpoint_populateGetConfigTransaction as populateGetConfigTransaction, endpoint_populateQuoteTransaction as populateQuoteTransaction, endpoint_populateSendTransaction as populateSendTransaction, endpoint_populateSetConfigTransaction as populateSetConfigTransaction };
22
+ }
23
+
24
+ export { endpoint };
package/dist/index.mjs ADDED
@@ -0,0 +1,42 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ // src/endpoint.ts
8
+ var endpoint_exports = {};
9
+ __export(endpoint_exports, {
10
+ eid: () => eid,
11
+ getConfig: () => getConfig,
12
+ getSendLibrary: () => getSendLibrary,
13
+ initEid: () => initEid,
14
+ populateGetConfigTransaction: () => populateGetConfigTransaction,
15
+ populateQuoteTransaction: () => populateQuoteTransaction,
16
+ populateSendTransaction: () => populateSendTransaction,
17
+ populateSetConfigTransaction: () => populateSetConfigTransaction
18
+ });
19
+ async function initEid() {
20
+ throw new Error("Not implemented");
21
+ }
22
+ async function eid() {
23
+ return Promise.resolve(1);
24
+ }
25
+ async function getSendLibrary(sender, dst_eid) {
26
+ throw new Error("Not implemented");
27
+ }
28
+ async function getConfig() {
29
+ throw new Error("Not implemented");
30
+ }
31
+ async function populateQuoteTransaction(tx) {
32
+ }
33
+ async function populateSendTransaction(tx) {
34
+ }
35
+ async function populateGetConfigTransaction(tx) {
36
+ }
37
+ async function populateSetConfigTransaction(tx) {
38
+ }
39
+
40
+ export { endpoint_exports as endpoint };
41
+ //# sourceMappingURL=index.mjs.map
42
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/endpoint.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,gBAAA,GAAA;AAAA,QAAA,CAAA,gBAAA,EAAA;AAAA,EAAA,GAAA,EAAA,MAAA,GAAA;AAAA,EAAA,SAAA,EAAA,MAAA,SAAA;AAAA,EAAA,cAAA,EAAA,MAAA,cAAA;AAAA,EAAA,OAAA,EAAA,MAAA,OAAA;AAAA,EAAA,4BAAA,EAAA,MAAA,4BAAA;AAAA,EAAA,wBAAA,EAAA,MAAA,wBAAA;AAAA,EAAA,uBAAA,EAAA,MAAA,uBAAA;AAAA,EAAA,4BAAA,EAAA,MAAA;AAAA,CAAA,CAAA;AAEA,eAAsB,OAAgC,GAAA;AAClD,EAAM,MAAA,IAAI,MAAM,iBAAiB,CAAA;AACrC;AAIA,eAAsB,GAAuB,GAAA;AAEzC,EAAO,OAAA,OAAA,CAAQ,QAAQ,CAAC,CAAA;AAC5B;AAEA,eAAsB,cAAA,CAAe,QAAgB,OAAkC,EAAA;AACnF,EAAM,MAAA,IAAI,MAAM,iBAAiB,CAAA;AACrC;AAEA,eAAsB,SAA6B,GAAA;AAC/C,EAAM,MAAA,IAAI,MAAM,iBAAiB,CAAA;AACrC;AAIA,eAAsB,yBAAyB,EAAgC,EAAA;AAE/E;AAEA,eAAsB,wBAAwB,EAAgC,EAAA;AAE9E;AAEA,eAAsB,6BAA6B,EAAgC,EAAA;AAEnF;AAEA,eAAsB,6BAA6B,EAAgC,EAAA;AAEnF","file":"index.mjs","sourcesContent":["import { Transaction } from '@mysten/sui/transactions'\n\nexport async function initEid(): Promise<Transaction> {\n throw new Error('Not implemented')\n}\n\n// TODO: add more mutate functions here\n\nexport async function eid(): Promise<number> {\n // TODO: implement\n return Promise.resolve(1)\n}\n\nexport async function getSendLibrary(sender: string, dst_eid: number): Promise<string> {\n throw new Error('Not implemented')\n}\n\nexport async function getConfig(): Promise<string> {\n throw new Error('Not implemented')\n}\n\n// TODO: more view functions to be added here\n\nexport async function populateQuoteTransaction(tx: Transaction): Promise<void> {\n // TODO: implement\n}\n\nexport async function populateSendTransaction(tx: Transaction): Promise<void> {\n // TODO: implement\n}\n\nexport async function populateGetConfigTransaction(tx: Transaction): Promise<void> {\n // TODO: implement\n}\n\nexport async function populateSetConfigTransaction(tx: Transaction): Promise<void> {\n // TODO: implement\n}\n"]}
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@layerzerolabs/lz-sui-sdk-v2",
3
+ "version": "3.0.68",
4
+ "license": "BUSL-1.1",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "import": "./dist/index.mjs",
9
+ "require": "./dist/index.cjs"
10
+ },
11
+ "./umi": {
12
+ "types": "./dist/umi.d.ts",
13
+ "import": "./dist/umi.mjs",
14
+ "require": "./dist/umi.cjs"
15
+ },
16
+ "./package.json": "./package.json",
17
+ "./deployments/*": "./deployments/*"
18
+ },
19
+ "main": "./dist/index.cjs",
20
+ "types": "./dist/index.d.ts",
21
+ "files": [
22
+ "deployments/**/*",
23
+ "dist/**/*",
24
+ "src/**/*"
25
+ ],
26
+ "scripts": {
27
+ "build": "$npm_execpath clean-prebuild && $npm_execpath build-ts",
28
+ "build-ts": "$npm_execpath tsc --noEmit && $npm_execpath tsup",
29
+ "clean": "$npm_execpath clean-prebuild",
30
+ "clean-prebuild": "rimraf .turbo target dist",
31
+ "start-localnet": "RUST_LOG=\"off,sui_node=info\" sui start --with-faucet --force-regenesis",
32
+ "test": "$npm_execpath mocha 'test/**/*.test.ts'",
33
+ "typecheck": "tsc --noEmit"
34
+ },
35
+ "dependencies": {
36
+ "tiny-invariant": "^1.3.1"
37
+ },
38
+ "devDependencies": {
39
+ "@layerzerolabs/tsup-config-next": "^3.0.103",
40
+ "@layerzerolabs/typescript-config-next": "^3.0.103",
41
+ "@mysten/sui": "0.0.0-experimental-20250611140349",
42
+ "@types/chai": "^4.3.11",
43
+ "@types/chai-as-promised": "^7.1.0",
44
+ "@types/mocha": "^10.0.6",
45
+ "@types/node": "^20.10.5",
46
+ "axios": "^1.6.2",
47
+ "chai": "^4.3.10",
48
+ "chai-as-promised": "^7.1.1",
49
+ "mocha": "^10.2.0",
50
+ "rimraf": "^5.0.5",
51
+ "ts-mocha": "^10.0.0",
52
+ "ts-node": "^10.9.1",
53
+ "tsup": "^8.3.5",
54
+ "typescript": "~5.2.2",
55
+ "zx": "^8.1.3"
56
+ },
57
+ "publishConfig": {
58
+ "access": "restricted"
59
+ }
60
+ }
@@ -0,0 +1,38 @@
1
+ import { Transaction } from '@mysten/sui/transactions'
2
+
3
+ export async function initEid(): Promise<Transaction> {
4
+ throw new Error('Not implemented')
5
+ }
6
+
7
+ // TODO: add more mutate functions here
8
+
9
+ export async function eid(): Promise<number> {
10
+ // TODO: implement
11
+ return Promise.resolve(1)
12
+ }
13
+
14
+ export async function getSendLibrary(sender: string, dst_eid: number): Promise<string> {
15
+ throw new Error('Not implemented')
16
+ }
17
+
18
+ export async function getConfig(): Promise<string> {
19
+ throw new Error('Not implemented')
20
+ }
21
+
22
+ // TODO: more view functions to be added here
23
+
24
+ export async function populateQuoteTransaction(tx: Transaction): Promise<void> {
25
+ // TODO: implement
26
+ }
27
+
28
+ export async function populateSendTransaction(tx: Transaction): Promise<void> {
29
+ // TODO: implement
30
+ }
31
+
32
+ export async function populateGetConfigTransaction(tx: Transaction): Promise<void> {
33
+ // TODO: implement
34
+ }
35
+
36
+ export async function populateSetConfigTransaction(tx: Transaction): Promise<void> {
37
+ // TODO: implement
38
+ }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * as endpoint from './endpoint'