@xoxno/sdk-js 1.0.135 → 1.0.137
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/sdk/stellar/prepare.d.ts +14 -3
- package/package.json +9 -9
- package/dist/index.bundled.d.cts +0 -2854
- package/dist/index.bundled.d.ts +0 -2854
|
@@ -1,14 +1,25 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FeeBumpTransaction, Transaction } from '@stellar/stellar-sdk';
|
|
2
2
|
import type { BuiltStellarTx } from './lending';
|
|
3
|
+
/**
|
|
4
|
+
* The single `rpc.Server` capability the prepare helpers need. Declared
|
|
5
|
+
* structurally instead of `Pick<rpc.Server, 'prepareTransaction'>` so the
|
|
6
|
+
* published `.d.ts` references stellar-sdk's concrete `Transaction` exports
|
|
7
|
+
* rather than its `rpc` namespace — the namespaced form trips
|
|
8
|
+
* `dts-bundle-generator`'s external-type resolution under stellar-sdk v16. A
|
|
9
|
+
* real `rpc.Server` satisfies this structurally, so call sites are unchanged.
|
|
10
|
+
*/
|
|
11
|
+
export interface StellarTxPreparer {
|
|
12
|
+
prepareTransaction(tx: Transaction | FeeBumpTransaction): Promise<Transaction>;
|
|
13
|
+
}
|
|
3
14
|
export declare function tagStellarInvokedContractError(contractId: string, error: unknown): Error;
|
|
4
15
|
/**
|
|
5
16
|
* Simulate a built Soroban envelope (footprint, auth, resource fee) and return
|
|
6
17
|
* prepared base64 XDR. Optionally tag failures with the invoked contract id so
|
|
7
18
|
* UIs can map `Error(Contract, #N)` codes to the right ABI.
|
|
8
19
|
*/
|
|
9
|
-
export declare function prepareStellarTxXdr(server:
|
|
20
|
+
export declare function prepareStellarTxXdr(server: StellarTxPreparer, xdr: string, opts?: {
|
|
10
21
|
invokedContractId?: string;
|
|
11
22
|
}): Promise<string>;
|
|
12
|
-
export declare function prepareStellarBuiltTx(server:
|
|
23
|
+
export declare function prepareStellarBuiltTx(server: StellarTxPreparer, built: BuiltStellarTx, opts?: {
|
|
13
24
|
invokedContractId?: string;
|
|
14
25
|
}): Promise<string>;
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoxno/sdk-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.137",
|
|
4
4
|
"description": "The SDK to interact with the XOXNO Protocol!",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"import": {
|
|
9
|
-
"types": "./dist/index.
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
10
|
"default": "./dist/index.esm.js"
|
|
11
11
|
},
|
|
12
12
|
"require": {
|
|
13
|
-
"types": "./dist/index.
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
14
|
"default": "./dist/index.cjs"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"types": "./dist/index.
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
19
|
"main": "./dist/index.cjs",
|
|
20
20
|
"module": "./dist/index.esm.js",
|
|
21
21
|
"files": [
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
],
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"scripts": {
|
|
26
|
-
"test": "jest",
|
|
26
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
27
27
|
"build:sdk": "npx bun run src/sdk/parseSwagger.ts && npx oxlint src/sdk/swagger.ts --fix && npx bun run md/extract.ts",
|
|
28
|
-
"build:types": "tsc --emitDeclarationOnly
|
|
28
|
+
"build:types": "tsc --emitDeclarationOnly",
|
|
29
29
|
"build:esm": "webpack --config webpack-esm.config.mjs",
|
|
30
30
|
"build:cjs": "webpack --config webpack-cjs.config.mjs",
|
|
31
31
|
"build": "npm run build:sdk && npm run build:types && npm run build:esm && npm run build:cjs",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@nestjs/swagger": "^11.4.4",
|
|
75
75
|
"@semantic-release/changelog": "^6.0.3",
|
|
76
76
|
"@semantic-release/git": "^10.0.1",
|
|
77
|
-
"@stellar/stellar-sdk": "^
|
|
77
|
+
"@stellar/stellar-sdk": "^16.0.0",
|
|
78
78
|
"@swc/cli": "^0.8.0",
|
|
79
79
|
"@swc/core": "^1.15.11",
|
|
80
80
|
"@types/jest": "^30.0.0",
|
|
@@ -104,9 +104,9 @@
|
|
|
104
104
|
"dependencies": {
|
|
105
105
|
"@multiversx/sdk-core": "^15.3.2",
|
|
106
106
|
"@multiversx/sdk-network-providers": "^2.9.3",
|
|
107
|
-
"@xoxno/types": "1.0.
|
|
107
|
+
"@xoxno/types": "1.0.418"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
|
-
"@stellar/stellar-sdk": "
|
|
110
|
+
"@stellar/stellar-sdk": ">=15.0.0 <17.0.0"
|
|
111
111
|
}
|
|
112
112
|
}
|