@across-protocol/sdk 4.4.0-alpha.1 → 4.4.0-alpha.2
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/dist/cjs/src/svm/index.d.ts +4 -2
- package/dist/cjs/src/svm/index.js +12 -8
- package/dist/cjs/src/svm/index.js.map +1 -1
- package/dist/esm/src/svm/index.d.ts +4 -2
- package/dist/esm/src/svm/index.js +6 -7
- package/dist/esm/src/svm/index.js.map +1 -1
- package/dist/types/src/svm/index.d.ts +4 -2
- package/dist/types/src/svm/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/svm/index.ts +17 -13
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./types.svm";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export * from "./web3-v1";
|
|
3
|
+
export { readFillEventFromFillStatusPda, signAndSendTransaction, createDefaultTransaction, createLookupTable, extendLookupTable, } from "./web3-v2";
|
|
4
|
+
export type { RpcClient } from "./web3-v2";
|
|
5
|
+
export { readProgramEvents as readProgramEventsV2, readEvents as readEventsV2, sendTransactionWithLookupTable as sendTransactionWithLookupTableV2, } from "./web3-v2";
|
|
4
6
|
export * from "./assets";
|
|
5
7
|
export * from "./clients";
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.sendTransactionWithLookupTableV2 = exports.readEventsV2 = exports.readProgramEventsV2 = exports.extendLookupTable = exports.createLookupTable = exports.createDefaultTransaction = exports.signAndSendTransaction = exports.readFillEventFromFillStatusPda = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
tslib_1.__exportStar(require("./types.svm"), exports);
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "
|
|
9
|
-
Object.defineProperty(exports, "
|
|
10
|
-
Object.defineProperty(exports, "
|
|
11
|
-
Object.defineProperty(exports, "
|
|
12
|
-
|
|
6
|
+
tslib_1.__exportStar(require("./web3-v1"), exports);
|
|
7
|
+
var web3_v2_1 = require("./web3-v2");
|
|
8
|
+
Object.defineProperty(exports, "readFillEventFromFillStatusPda", { enumerable: true, get: function () { return web3_v2_1.readFillEventFromFillStatusPda; } });
|
|
9
|
+
Object.defineProperty(exports, "signAndSendTransaction", { enumerable: true, get: function () { return web3_v2_1.signAndSendTransaction; } });
|
|
10
|
+
Object.defineProperty(exports, "createDefaultTransaction", { enumerable: true, get: function () { return web3_v2_1.createDefaultTransaction; } });
|
|
11
|
+
Object.defineProperty(exports, "createLookupTable", { enumerable: true, get: function () { return web3_v2_1.createLookupTable; } });
|
|
12
|
+
Object.defineProperty(exports, "extendLookupTable", { enumerable: true, get: function () { return web3_v2_1.extendLookupTable; } });
|
|
13
|
+
var web3_v2_2 = require("./web3-v2");
|
|
14
|
+
Object.defineProperty(exports, "readProgramEventsV2", { enumerable: true, get: function () { return web3_v2_2.readProgramEvents; } });
|
|
15
|
+
Object.defineProperty(exports, "readEventsV2", { enumerable: true, get: function () { return web3_v2_2.readEvents; } });
|
|
16
|
+
Object.defineProperty(exports, "sendTransactionWithLookupTableV2", { enumerable: true, get: function () { return web3_v2_2.sendTransactionWithLookupTable; } });
|
|
13
17
|
tslib_1.__exportStar(require("./assets"), exports);
|
|
14
18
|
tslib_1.__exportStar(require("./clients"), exports);
|
|
15
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/svm/index.ts"],"names":[],"mappings":";;;;AAIA,sDAA4B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/svm/index.ts"],"names":[],"mappings":";;;;AAIA,sDAA4B;AAG5B,oDAA0B;AAI1B,qCAMmB;AALjB,yHAAA,8BAA8B,OAAA;AAC9B,iHAAA,sBAAsB,OAAA;AACtB,mHAAA,wBAAwB,OAAA;AACxB,4GAAA,iBAAiB,OAAA;AACjB,4GAAA,iBAAiB,OAAA;AAGnB,qCAImB;AAHjB,8GAAA,iBAAiB,OAAuB;AACxC,uGAAA,UAAU,OAAgB;AAC1B,2HAAA,8BAA8B,OAAoC;AAIpE,mDAAyB;AAGzB,oDAA0B"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./types.svm";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export * from "./web3-v1";
|
|
3
|
+
export { readFillEventFromFillStatusPda, signAndSendTransaction, createDefaultTransaction, createLookupTable, extendLookupTable, } from "./web3-v2";
|
|
4
|
+
export type { RpcClient } from "./web3-v2";
|
|
5
|
+
export { readProgramEvents as readProgramEventsV2, readEvents as readEventsV2, sendTransactionWithLookupTable as sendTransactionWithLookupTableV2, } from "./web3-v2";
|
|
4
6
|
export * from "./assets";
|
|
5
7
|
export * from "./clients";
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
// See ACP-56 for context on this migration.
|
|
3
3
|
// Re-export SVM types
|
|
4
4
|
export * from "./types.svm";
|
|
5
|
-
// web3-v1 (Anchor/web3.js v1) —
|
|
6
|
-
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
export {
|
|
10
|
-
|
|
11
|
-
export * from "./web3-v2";
|
|
5
|
+
// web3-v1 (Anchor/web3.js v1) — all utils
|
|
6
|
+
export * from "./web3-v1";
|
|
7
|
+
// web3-v2 (Solana Kit) — re-export non-conflicting names directly,
|
|
8
|
+
// alias conflicting ones with V2 suffix to avoid name collision with web3-v1.
|
|
9
|
+
export { readFillEventFromFillStatusPda, signAndSendTransaction, createDefaultTransaction, createLookupTable, extendLookupTable, } from "./web3-v2";
|
|
10
|
+
export { readProgramEvents as readProgramEventsV2, readEvents as readEventsV2, sendTransactionWithLookupTable as sendTransactionWithLookupTableV2, } from "./web3-v2";
|
|
12
11
|
// Auto-generated assets (IDL definitions and Anchor types)
|
|
13
12
|
export * from "./assets";
|
|
14
13
|
// Auto-generated Codama clients
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/svm/index.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,4CAA4C;AAE5C,sBAAsB;AACtB,cAAc,aAAa,CAAC;AAE5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/svm/index.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,4CAA4C;AAE5C,sBAAsB;AACtB,cAAc,aAAa,CAAC;AAE5B,0CAA0C;AAC1C,cAAc,WAAW,CAAC;AAE1B,mEAAmE;AACnE,8EAA8E;AAC9E,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,iBAAiB,IAAI,mBAAmB,EACxC,UAAU,IAAI,YAAY,EAC1B,8BAA8B,IAAI,gCAAgC,GACnE,MAAM,WAAW,CAAC;AAEnB,2DAA2D;AAC3D,cAAc,UAAU,CAAC;AAEzB,gCAAgC;AAChC,cAAc,WAAW,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./types.svm";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export * from "./web3-v1";
|
|
3
|
+
export { readFillEventFromFillStatusPda, signAndSendTransaction, createDefaultTransaction, createLookupTable, extendLookupTable, } from "./web3-v2";
|
|
4
|
+
export type { RpcClient } from "./web3-v2";
|
|
5
|
+
export { readProgramEvents as readProgramEventsV2, readEvents as readEventsV2, sendTransactionWithLookupTable as sendTransactionWithLookupTableV2, } from "./web3-v2";
|
|
4
6
|
export * from "./assets";
|
|
5
7
|
export * from "./clients";
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/svm/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/svm/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAG5B,cAAc,WAAW,CAAC;AAI1B,OAAO,EACL,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EACL,iBAAiB,IAAI,mBAAmB,EACxC,UAAU,IAAI,YAAY,EAC1B,8BAA8B,IAAI,gCAAgC,GACnE,MAAM,WAAW,CAAC;AAGnB,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC"}
|
package/package.json
CHANGED
package/src/svm/index.ts
CHANGED
|
@@ -4,20 +4,24 @@
|
|
|
4
4
|
// Re-export SVM types
|
|
5
5
|
export * from "./types.svm";
|
|
6
6
|
|
|
7
|
-
// web3-v1 (Anchor/web3.js v1) —
|
|
8
|
-
|
|
9
|
-
// Additional web3-v1 utils are accessible via deep imports:
|
|
10
|
-
// import { ... } from "@across-protocol/sdk/dist/cjs/src/svm/web3-v1"
|
|
11
|
-
export {
|
|
12
|
-
AcrossPlusMessageCoder,
|
|
13
|
-
calculateRelayHashUint8Array,
|
|
14
|
-
findProgramAddress,
|
|
15
|
-
MulticallHandlerCoder,
|
|
16
|
-
relayerRefundHashFn,
|
|
17
|
-
} from "./web3-v1";
|
|
7
|
+
// web3-v1 (Anchor/web3.js v1) — all utils
|
|
8
|
+
export * from "./web3-v1";
|
|
18
9
|
|
|
19
|
-
// web3-v2 (Solana Kit) —
|
|
20
|
-
|
|
10
|
+
// web3-v2 (Solana Kit) — re-export non-conflicting names directly,
|
|
11
|
+
// alias conflicting ones with V2 suffix to avoid name collision with web3-v1.
|
|
12
|
+
export {
|
|
13
|
+
readFillEventFromFillStatusPda,
|
|
14
|
+
signAndSendTransaction,
|
|
15
|
+
createDefaultTransaction,
|
|
16
|
+
createLookupTable,
|
|
17
|
+
extendLookupTable,
|
|
18
|
+
} from "./web3-v2";
|
|
19
|
+
export type { RpcClient } from "./web3-v2";
|
|
20
|
+
export {
|
|
21
|
+
readProgramEvents as readProgramEventsV2,
|
|
22
|
+
readEvents as readEventsV2,
|
|
23
|
+
sendTransactionWithLookupTable as sendTransactionWithLookupTableV2,
|
|
24
|
+
} from "./web3-v2";
|
|
21
25
|
|
|
22
26
|
// Auto-generated assets (IDL definitions and Anchor types)
|
|
23
27
|
export * from "./assets";
|