@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.
@@ -1,5 +1,7 @@
1
1
  export * from "./types.svm";
2
- export { AcrossPlusMessageCoder, calculateRelayHashUint8Array, findProgramAddress, MulticallHandlerCoder, relayerRefundHashFn, } from "./web3-v1";
3
- export * from "./web3-v2";
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.relayerRefundHashFn = exports.MulticallHandlerCoder = exports.findProgramAddress = exports.calculateRelayHashUint8Array = exports.AcrossPlusMessageCoder = void 0;
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
- var web3_v1_1 = require("./web3-v1");
7
- Object.defineProperty(exports, "AcrossPlusMessageCoder", { enumerable: true, get: function () { return web3_v1_1.AcrossPlusMessageCoder; } });
8
- Object.defineProperty(exports, "calculateRelayHashUint8Array", { enumerable: true, get: function () { return web3_v1_1.calculateRelayHashUint8Array; } });
9
- Object.defineProperty(exports, "findProgramAddress", { enumerable: true, get: function () { return web3_v1_1.findProgramAddress; } });
10
- Object.defineProperty(exports, "MulticallHandlerCoder", { enumerable: true, get: function () { return web3_v1_1.MulticallHandlerCoder; } });
11
- Object.defineProperty(exports, "relayerRefundHashFn", { enumerable: true, get: function () { return web3_v1_1.relayerRefundHashFn; } });
12
- tslib_1.__exportStar(require("./web3-v2"), exports);
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;AAM5B,qCAMmB;AALjB,iHAAA,sBAAsB,OAAA;AACtB,uHAAA,4BAA4B,OAAA;AAC5B,6GAAA,kBAAkB,OAAA;AAClB,gHAAA,qBAAqB,OAAA;AACrB,8GAAA,mBAAmB,OAAA;AAIrB,oDAA0B;AAG1B,mDAAyB;AAGzB,oDAA0B"}
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 { AcrossPlusMessageCoder, calculateRelayHashUint8Array, findProgramAddress, MulticallHandlerCoder, relayerRefundHashFn, } from "./web3-v1";
3
- export * from "./web3-v2";
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) — selective top-level exports
6
- // (matches the original @across-protocol/contracts public API)
7
- // Additional web3-v1 utils are accessible via deep imports:
8
- // import { ... } from "@across-protocol/sdk/dist/cjs/src/svm/web3-v1"
9
- export { AcrossPlusMessageCoder, calculateRelayHashUint8Array, findProgramAddress, MulticallHandlerCoder, relayerRefundHashFn, } from "./web3-v1";
10
- // web3-v2 (Solana Kit) all exports
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,4DAA4D;AAC5D,+DAA+D;AAC/D,4DAA4D;AAC5D,wEAAwE;AACxE,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,WAAW,CAAC;AAEnB,qCAAqC;AACrC,cAAc,WAAW,CAAC;AAE1B,2DAA2D;AAC3D,cAAc,UAAU,CAAC;AAEzB,gCAAgC;AAChC,cAAc,WAAW,CAAC"}
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 { AcrossPlusMessageCoder, calculateRelayHashUint8Array, findProgramAddress, MulticallHandlerCoder, relayerRefundHashFn, } from "./web3-v1";
3
- export * from "./web3-v2";
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;AAM5B,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,WAAW,CAAC;AAGnB,cAAc,WAAW,CAAC;AAG1B,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@across-protocol/sdk",
3
3
  "author": "UMA Team",
4
- "version": "4.4.0-alpha.1",
4
+ "version": "4.4.0-alpha.2",
5
5
  "license": "AGPL-3.0",
6
6
  "homepage": "https://docs.across.to/reference/sdk",
7
7
  "repository": {
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) — selective top-level exports
8
- // (matches the original @across-protocol/contracts public API)
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) — all exports
20
- export * from "./web3-v2";
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";