@xchainjs/xchain-radix 0.1.1

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,19 @@
1
+ export type Transaction = {
2
+ manifest: string;
3
+ start_epoch_inclusive: number;
4
+ end_epoch_exclusive: number;
5
+ tip_percentage: number;
6
+ nonce: number;
7
+ signer_public_keys: SignerPublicKey[];
8
+ flags: TransactionFlag;
9
+ };
10
+ type SignerPublicKey = {
11
+ key_type: string;
12
+ key_hex: string;
13
+ };
14
+ type TransactionFlag = {
15
+ use_free_credit: boolean;
16
+ assume_all_signature_proofs: boolean;
17
+ skip_epoch_check: boolean;
18
+ };
19
+ export {};
package/lib/utils.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ declare const Configuration: any, StatusApi: any, TransactionApi: any, TransactionSubmitResponse: any;
2
+ declare const Convert: any, SimpleTransactionBuilder: any;
3
+ declare const getCurrentEpoch: (statusApi: typeof StatusApi) => Promise<number>;
4
+ declare const submitTransaction: (transactionApi: typeof TransactionApi, compiledTransaction: Uint8Array) => Promise<typeof TransactionSubmitResponse>;
5
+ declare const main: () => Promise<void>;
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@xchainjs/xchain-radix",
3
+ "version": "0.1.1",
4
+ "description": "Custom Radix client and utilities used by XChainJS clients",
5
+ "keywords": [
6
+ "XRD",
7
+ "Radix",
8
+ "XChain"
9
+ ],
10
+ "author": "RadixDLT",
11
+ "homepage": "https://github.com/xchainjs/xchainjs-lib",
12
+ "license": "MIT",
13
+ "main": "lib/index.js",
14
+ "module": "lib/index.esm.js",
15
+ "typings": "lib/index.d.ts",
16
+ "directories": {
17
+ "lib": "lib",
18
+ "test": "__tests__"
19
+ },
20
+ "files": [
21
+ "lib"
22
+ ],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git@github.com:xchainjs/xchainjs-lib.git"
26
+ },
27
+ "scripts": {
28
+ "clean": "rm -rf .turbo && rm -rf lib",
29
+ "build": "yarn clean && rollup -c",
30
+ "build:release": "yarn exec rm -rf release && yarn pack && yarn exec \"mkdir release && tar zxvf package.tgz --directory release && rm package.tgz\"",
31
+ "test": "jest",
32
+ "compile": "tsc -p tsconfig.build.json",
33
+ "lint": "eslint \"{src,__tests__}/**/*.ts\" --fix --max-warnings 0",
34
+ "fund": "ts-node src/utils.ts"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "dependencies": {
40
+ "@radixdlt/babylon-gateway-api-sdk": "^1.4.1",
41
+ "@radixdlt/radix-engine-toolkit": "^1.0.3",
42
+ "@xchainjs/xchain-client": "workspace:*",
43
+ "@xchainjs/xchain-crypto": "workspace:*",
44
+ "@xchainjs/xchain-util": "workspace:*",
45
+ "bech32": "^2.0.0",
46
+ "bip32": "^4.0.0",
47
+ "ed25519-hd-key": "^1.3.0"
48
+ }
49
+ }