meshjs 1.2.0-beta.4 → 1.5.4

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.
Files changed (80) hide show
  1. package/README.md +14 -25
  2. package/bin/meshjs +2 -0
  3. package/package.json +26 -55
  4. package/src/actions/create.ts +96 -0
  5. package/src/actions/index.ts +1 -0
  6. package/src/helpers/index.ts +3 -0
  7. package/src/helpers/resolvePkgManager.ts +24 -0
  8. package/src/helpers/setProjectName.ts +15 -0
  9. package/src/helpers/tryGitInit.ts +37 -0
  10. package/src/index.ts +80 -0
  11. package/src/utils/index.ts +1 -0
  12. package/src/utils/logger.ts +13 -0
  13. package/tsconfig.json +109 -0
  14. package/dist/common/constants.d.ts +0 -27
  15. package/dist/common/contracts/fetcher.d.ts +0 -8
  16. package/dist/common/contracts/index.d.ts +0 -5
  17. package/dist/common/contracts/initiator.d.ts +0 -8
  18. package/dist/common/contracts/signer.d.ts +0 -7
  19. package/dist/common/contracts/submitter.d.ts +0 -3
  20. package/dist/common/contracts/uploader.d.ts +0 -3
  21. package/dist/common/decorators.d.ts +0 -19
  22. package/dist/common/helpers/index.d.ts +0 -1
  23. package/dist/common/helpers/mergeSignatures.d.ts +0 -3
  24. package/dist/common/types/Account.d.ts +0 -5
  25. package/dist/common/types/AccountInfo.d.ts +0 -7
  26. package/dist/common/types/Action.d.ts +0 -12
  27. package/dist/common/types/Asset.d.ts +0 -6
  28. package/dist/common/types/AssetExtended.d.ts +0 -8
  29. package/dist/common/types/AssetMetadata.d.ts +0 -24
  30. package/dist/common/types/Data.d.ts +0 -4
  31. package/dist/common/types/DataSignature.d.ts +0 -4
  32. package/dist/common/types/Era.d.ts +0 -1
  33. package/dist/common/types/Mint.d.ts +0 -10
  34. package/dist/common/types/NativeScript.d.ts +0 -14
  35. package/dist/common/types/Network.d.ts +0 -1
  36. package/dist/common/types/PlutusScript.d.ts +0 -6
  37. package/dist/common/types/PoolParams.d.ts +0 -16
  38. package/dist/common/types/Protocol.d.ts +0 -22
  39. package/dist/common/types/Recipient.d.ts +0 -11
  40. package/dist/common/types/Relay.d.ts +0 -13
  41. package/dist/common/types/UTxO.d.ts +0 -14
  42. package/dist/common/types/Wallet.d.ts +0 -5
  43. package/dist/common/types/index.d.ts +0 -19
  44. package/dist/common/utils/builder.d.ts +0 -17
  45. package/dist/common/utils/converter.d.ts +0 -26
  46. package/dist/common/utils/deserializer.d.ts +0 -17
  47. package/dist/common/utils/index.d.ts +0 -5
  48. package/dist/common/utils/parser.d.ts +0 -1
  49. package/dist/common/utils/resolver.d.ts +0 -17
  50. package/dist/core/CIP14.d.ts +0 -2
  51. package/dist/core/CIP1852.d.ts +0 -4
  52. package/dist/core/CIP1853.d.ts +0 -1
  53. package/dist/core/CIP1855.d.ts +0 -1
  54. package/dist/core/CIP2.d.ts +0 -3
  55. package/dist/core/CIP25.d.ts +0 -19
  56. package/dist/core/CIP8.d.ts +0 -13
  57. package/dist/core/CSL.d.ts +0 -144
  58. package/dist/core/index.d.ts +0 -8
  59. package/dist/index.d.ts +0 -8
  60. package/dist/meshjs.cjs +0 -1
  61. package/dist/meshjs.js +0 -2188
  62. package/dist/providers/blockfrost.provider.d.ts +0 -14
  63. package/dist/providers/index.d.ts +0 -4
  64. package/dist/providers/infura.provider.d.ts +0 -12
  65. package/dist/providers/koios.provider.d.ts +0 -12
  66. package/dist/providers/tango.provider.d.ts +0 -12
  67. package/dist/scripts/forge.script.d.ts +0 -8
  68. package/dist/scripts/index.d.ts +0 -1
  69. package/dist/transaction/index.d.ts +0 -1
  70. package/dist/transaction/transaction.service.d.ts +0 -61
  71. package/dist/transaction/transaction.service.spec.d.ts +0 -1
  72. package/dist/wallet/app.service.d.ts +0 -34
  73. package/dist/wallet/app.service.spec.d.ts +0 -1
  74. package/dist/wallet/browser.service.d.ts +0 -58
  75. package/dist/wallet/browser.service.spec.d.ts +0 -1
  76. package/dist/wallet/embedded.service.d.ts +0 -20
  77. package/dist/wallet/embedded.service.spec.d.ts +0 -1
  78. package/dist/wallet/index.d.ts +0 -4
  79. package/dist/wallet/mina.service.d.ts +0 -11
  80. package/dist/wallet/mina.service.spec.d.ts +0 -1
@@ -1,3 +0,0 @@
1
- import { csl } from '@mesh/core';
2
- import type { TransactionWitnessSet, Vkeywitnesses } from '@mesh/core';
3
- export declare const mergeSignatures: (txWitnessSet: TransactionWitnessSet, newSignatures: Vkeywitnesses) => csl.Vkeywitnesses;
@@ -1,5 +0,0 @@
1
- export declare type Account = {
2
- baseAddress: string;
3
- enterpriseAddress: string;
4
- rewardAddress: string;
5
- };
@@ -1,7 +0,0 @@
1
- export declare type AccountInfo = {
2
- active: boolean;
3
- poolId?: string;
4
- balance: string;
5
- rewards: string;
6
- withdrawals: string;
7
- };
@@ -1,12 +0,0 @@
1
- import { REDEEMER_TAGS } from '@mesh/common/constants';
2
- import { Data } from './Data';
3
- export declare type Action = {
4
- data: Data;
5
- index: number;
6
- budget: Budget;
7
- tag: keyof typeof REDEEMER_TAGS;
8
- };
9
- export declare type Budget = {
10
- mem: number;
11
- steps: number;
12
- };
@@ -1,6 +0,0 @@
1
- export declare type Asset = {
2
- unit: Unit;
3
- quantity: Quantity;
4
- };
5
- export declare type Unit = string;
6
- export declare type Quantity = string;
@@ -1,8 +0,0 @@
1
- import { Quantity, Unit } from './Asset';
2
- export declare type AssetExtended = {
3
- unit: Unit;
4
- policyId: string;
5
- assetName: string;
6
- fingerprint: string;
7
- quantity: Quantity;
8
- };
@@ -1,24 +0,0 @@
1
- import type { MetadataStandard, Files } from '@mesh/core';
2
- export declare type AssetMetadata = FungibleAssetMetadata | NonFungibleAssetMetadata;
3
- export declare type FungibleAssetMetadata = MetadataStandard & {
4
- ticker: string;
5
- decimals: number;
6
- version: `${number}.${number}`;
7
- };
8
- export declare type NonFungibleAssetMetadata = AudioAssetMetadata | ImageAssetMetadata | SmartAssetMetadata | VideoAssetMetadata;
9
- declare type AudioAssetMetadata = MetadataStandard & Files;
10
- export declare type ImageAssetMetadata = MetadataStandard & Files & {
11
- artists?: [
12
- {
13
- name: string;
14
- twitter?: `https://twitter.com/${string}`;
15
- }
16
- ];
17
- attributes?: {
18
- [key: string]: string;
19
- };
20
- traits?: string[];
21
- };
22
- declare type SmartAssetMetadata = MetadataStandard & Files;
23
- declare type VideoAssetMetadata = MetadataStandard & Files;
24
- export {};
@@ -1,4 +0,0 @@
1
- export declare type Data = string | number | Array<Data> | Map<Data, Data> | {
2
- alternative: number;
3
- fields: Array<Data>;
4
- };
@@ -1,4 +0,0 @@
1
- export declare type DataSignature = {
2
- signature: string;
3
- key: string;
4
- };
@@ -1 +0,0 @@
1
- export declare type Era = 'ALONZO' | 'BABBAGE';
@@ -1,10 +0,0 @@
1
- import { Quantity } from './Asset';
2
- import { AssetMetadata } from './AssetMetadata';
3
- import { Recipient } from './Recipient';
4
- export declare type Mint = {
5
- assetName: string;
6
- assetQuantity: Quantity;
7
- metadata: AssetMetadata;
8
- recipient: Recipient;
9
- label: '20' | '721';
10
- };
@@ -1,14 +0,0 @@
1
- export declare type NativeScript = {
2
- type: 'after' | 'before';
3
- slot: string;
4
- } | {
5
- type: 'all' | 'any';
6
- scripts: NativeScript[];
7
- } | {
8
- type: 'atLeast';
9
- required: number;
10
- scripts: NativeScript[];
11
- } | {
12
- type: 'sig';
13
- keyHash: string;
14
- };
@@ -1 +0,0 @@
1
- export declare type Network = 'testnet' | 'preview' | 'preprod' | 'mainnet';
@@ -1,6 +0,0 @@
1
- import { LANGUAGE_VERSIONS } from '../constants';
2
- export declare type PlutusScript = {
3
- version: LanguageVersion;
4
- code: string;
5
- };
6
- export declare type LanguageVersion = keyof typeof LANGUAGE_VERSIONS;
@@ -1,16 +0,0 @@
1
- import { Relay } from './Relay';
2
- export declare type PoolParams = {
3
- operator: string;
4
- vrfKeyHash: string;
5
- pledge: string;
6
- cost: string;
7
- margin: number;
8
- rewardAddress: string;
9
- relays: Relay[];
10
- owners: string[];
11
- metadata?: PoolMetadata;
12
- };
13
- export declare type PoolMetadata = {
14
- URL: string;
15
- hash: string;
16
- };
@@ -1,22 +0,0 @@
1
- export declare type Protocol = {
2
- epoch: number;
3
- minFeeA: number;
4
- minFeeB: number;
5
- maxBlockSize: number;
6
- maxTxSize: number;
7
- maxBlockHeaderSize: number;
8
- keyDeposit: string;
9
- poolDeposit: string;
10
- decentralisation: number;
11
- minPoolCost: string;
12
- priceMem: number;
13
- priceStep: number;
14
- maxTxExMem: string;
15
- maxTxExSteps: string;
16
- maxBlockExMem: string;
17
- maxBlockExSteps: string;
18
- maxValSize: string;
19
- collateralPercent: number;
20
- maxCollateralInputs: number;
21
- coinsPerUTxOSize: string;
22
- };
@@ -1,11 +0,0 @@
1
- import { Data } from './Data';
2
- import { NativeScript } from './NativeScript';
3
- import { PlutusScript } from './PlutusScript';
4
- export declare type Recipient = string | {
5
- address: string;
6
- datum?: {
7
- value: Data;
8
- inline?: boolean;
9
- };
10
- script?: PlutusScript | NativeScript;
11
- };
@@ -1,13 +0,0 @@
1
- export declare type Relay = {
2
- type: 'SingleHostAddr';
3
- IPV4?: string;
4
- IPV6?: string;
5
- port?: number;
6
- } | {
7
- type: 'SingleHostName';
8
- domainName: string;
9
- port?: number;
10
- } | {
11
- type: 'MultiHostName';
12
- domainName: string;
13
- };
@@ -1,14 +0,0 @@
1
- import { Asset } from './Asset';
2
- export declare type UTxO = {
3
- input: {
4
- outputIndex: number;
5
- txHash: string;
6
- };
7
- output: {
8
- address: string;
9
- amount: Asset[];
10
- dataHash?: string;
11
- plutusData?: string;
12
- scriptRef?: string;
13
- };
14
- };
@@ -1,5 +0,0 @@
1
- export declare type Wallet = {
2
- name: string;
3
- icon: string;
4
- version: string;
5
- };
@@ -1,19 +0,0 @@
1
- export * from './Account';
2
- export * from './AccountInfo';
3
- export * from './Action';
4
- export * from './Asset';
5
- export * from './AssetExtended';
6
- export * from './AssetMetadata';
7
- export * from './Data';
8
- export * from './DataSignature';
9
- export * from './Era';
10
- export * from './Mint';
11
- export * from './NativeScript';
12
- export * from './Network';
13
- export * from './PlutusScript';
14
- export * from './PoolParams';
15
- export * from './Protocol';
16
- export * from './Recipient';
17
- export * from './Relay';
18
- export * from './UTxO';
19
- export * from './Wallet';
@@ -1,17 +0,0 @@
1
- import { csl } from '@mesh/core';
2
- import type { BaseAddress, Bip32PrivateKey, DataCost, DatumSource, Ed25519KeyHash, EnterpriseAddress, PlutusScriptSource, RewardAddress, TransactionBuilder, TransactionOutputBuilder, TxInputsBuilder } from '@mesh/core';
3
- import type { Data, PlutusScript, Recipient, UTxO } from '@mesh/common/types';
4
- export declare const buildBaseAddress: (networkId: number, paymentKeyHash: Ed25519KeyHash, stakeKeyHash: Ed25519KeyHash) => BaseAddress;
5
- export declare const buildBip32PrivateKey: (entropy: string, password?: string) => Bip32PrivateKey;
6
- export declare const buildDataCost: (coinsPerByte: string) => DataCost;
7
- export declare const buildDatumSource: (datum: Data | UTxO) => DatumSource;
8
- export declare const buildEnterpriseAddress: (networkId: number, paymentKeyHash: Ed25519KeyHash) => EnterpriseAddress;
9
- export declare const buildGeneralTxMetadata: (metadata: Record<string, unknown>) => csl.GeneralTransactionMetadata;
10
- export declare const buildRewardAddress: (networkId: number, stakeKeyHash: Ed25519KeyHash) => RewardAddress;
11
- export declare const buildPlutusScriptSource: (script: PlutusScript | UTxO) => PlutusScriptSource;
12
- export declare const buildScriptPubkey: (keyHash: Ed25519KeyHash) => csl.NativeScript;
13
- export declare const buildTimelockExpiry: (slot: string) => csl.NativeScript;
14
- export declare const buildTimelockStart: (slot: string) => csl.NativeScript;
15
- export declare const buildTxBuilder: (parameters?: import("@mesh/common/types").Protocol) => TransactionBuilder;
16
- export declare const buildTxInputsBuilder: (utxos: unknown[]) => TxInputsBuilder;
17
- export declare const buildTxOutputBuilder: (recipient: Recipient) => TransactionOutputBuilder;
@@ -1,26 +0,0 @@
1
- import { csl } from '@mesh/core';
2
- import type { ScriptRef, TransactionUnspentOutput, Value } from '@mesh/core';
3
- import type { Action, Asset, Data, NativeScript, PlutusScript, PoolParams, Relay, UTxO } from '@mesh/common/types';
4
- export declare const toAddress: (bech32: string) => csl.Address;
5
- export declare const toBaseAddress: (bech32: string) => csl.BaseAddress | undefined;
6
- export declare const toEnterpriseAddress: (bech32: string) => csl.EnterpriseAddress | undefined;
7
- export declare const toRewardAddress: (bech32: string) => csl.RewardAddress | undefined;
8
- export declare const fromBytes: (bytes: Uint8Array) => string;
9
- export declare const toBytes: (hex: string) => Uint8Array;
10
- export declare const fromLovelace: (lovelace: number) => number;
11
- export declare const toLovelace: (ada: number) => number;
12
- export declare const fromNativeScript: (script: csl.NativeScript) => NativeScript;
13
- export declare const toNativeScript: (script: NativeScript) => csl.NativeScript;
14
- export declare const toPlutusData: (data: Data) => csl.PlutusData;
15
- export declare const toPoolParams: (params: PoolParams) => never;
16
- export declare const toRedeemer: (action: Action) => csl.Redeemer;
17
- export declare const toRelay: (relay: Relay) => csl.Relay;
18
- export declare const fromScriptRef: (scriptRef: ScriptRef) => NativeScript | PlutusScript;
19
- export declare const toScriptRef: (script: PlutusScript | NativeScript) => csl.ScriptRef;
20
- export declare const fromTxUnspentOutput: (txUnspentOutput: TransactionUnspentOutput) => UTxO;
21
- export declare const toTxUnspentOutput: (utxo: UTxO) => csl.TransactionUnspentOutput;
22
- export declare const toUnitInterval: (float: string) => csl.UnitInterval;
23
- export declare const fromUTF8: (utf8: string) => string;
24
- export declare const toUTF8: (hex: string) => string;
25
- export declare const fromValue: (value: Value) => Asset[];
26
- export declare const toValue: (assets: Asset[]) => csl.Value;
@@ -1,17 +0,0 @@
1
- import { csl } from '@mesh/core';
2
- import type { LanguageVersion } from '@mesh/common/types';
3
- export declare const deserializeAddress: (address: string) => csl.Address;
4
- export declare const deserializeBip32PrivateKey: (bip32PrivateKey: string) => csl.Bip32PrivateKey;
5
- export declare const deserializeDataHash: (dataHash: string) => csl.DataHash;
6
- export declare const deserializeEd25519KeyHash: (ed25519KeyHash: string) => csl.Ed25519KeyHash;
7
- export declare const deserializeNativeScript: (nativeScript: string) => csl.NativeScript;
8
- export declare const deserializePlutusData: (plutusData: string) => csl.PlutusData;
9
- export declare const deserializePlutusScript: (plutusScript: string, version: LanguageVersion) => csl.PlutusScript;
10
- export declare const deserializeScriptRef: (scriptRef: string) => csl.ScriptRef;
11
- export declare const deserializeScriptHash: (scriptHash: string) => csl.ScriptHash;
12
- export declare const deserializeTx: (tx: string) => csl.Transaction;
13
- export declare const deserializeTxBody: (txBody: string) => csl.TransactionBody;
14
- export declare const deserializeTxHash: (txHash: string) => csl.TransactionHash;
15
- export declare const deserializeTxUnspentOutput: (txUnspentOutput: string) => csl.TransactionUnspentOutput;
16
- export declare const deserializeTxWitnessSet: (txWitnessSet: string) => csl.TransactionWitnessSet;
17
- export declare const deserializeValue: (value: string) => csl.Value;
@@ -1,5 +0,0 @@
1
- export * from './builder';
2
- export * from './converter';
3
- export * from './deserializer';
4
- export * from './parser';
5
- export * from './resolver';
@@ -1 +0,0 @@
1
- export declare const parseHttpError: (error: unknown) => string;
@@ -1,17 +0,0 @@
1
- import type { Data, Era, LanguageVersion, NativeScript, Network, PlutusScript } from '@mesh/common/types';
2
- export declare const resolveDataHash: (data: Data) => string;
3
- export declare const resolveEpochNo: (network: Network, milliseconds?: number) => number;
4
- export declare const resolveFingerprint: (policyId: string, assetName: string) => string;
5
- export declare const resolveLanguageView: (era: Era, version: LanguageVersion) => string | undefined;
6
- export declare const resolveNativeScriptHash: (script: NativeScript) => string;
7
- export declare const resolvePaymentKeyHash: (bech32: string) => string;
8
- export declare const resolvePlutusScriptAddress: (script: PlutusScript, networkId?: number) => string;
9
- export declare const resolvePlutusScriptHash: (bech32: string) => string;
10
- export declare const resolvePoolId: (hash: string) => string;
11
- export declare const resolvePrivateKey: (words: string[]) => string;
12
- export declare const resolveScriptRef: (script: PlutusScript | NativeScript) => string;
13
- export declare const resolveSlotNo: (network: Network, milliseconds?: number) => string;
14
- export declare const resolveRewardAddress: (bech32: string) => string;
15
- export declare const resolveStakeKeyHash: (bech32: string) => string;
16
- export declare const resolveTxFees: (txSize: number, minFeeA?: number, minFeeB?: number) => string;
17
- export declare const resolveTxHash: (txHex: string) => string;
@@ -1,2 +0,0 @@
1
- import CIP14 from '@emurgo/cip14-js';
2
- export declare const AssetFingerprint: typeof CIP14;
@@ -1,4 +0,0 @@
1
- export declare const deriveAccountKeys: (rootKey: string, accountIndex: number) => {
2
- paymentKey: import("@emurgo/cardano-serialization-lib-nodejs").PrivateKey;
3
- stakeKey: import("@emurgo/cardano-serialization-lib-nodejs").PrivateKey;
4
- };
@@ -1 +0,0 @@
1
- export declare const deriveStakePoolColdKey: (rootKey: string, coldIndex: number) => import("@emurgo/cardano-serialization-lib-nodejs").PrivateKey;
@@ -1 +0,0 @@
1
- export declare const deriveForgingPolicyKey: (rootKey: string, policyIndex: number) => import("@emurgo/cardano-serialization-lib-nodejs").PrivateKey;
@@ -1,3 +0,0 @@
1
- import type { Quantity, Unit, UTxO } from '@mesh/common/types';
2
- export declare const largestFirst: (lovelace: Quantity, initialUTxOSet: UTxO[], includeTxFees?: boolean, { maxTxSize, minFeeA, minFeeB }?: import("@mesh/common/types").Protocol) => UTxO[];
3
- export declare const largestFirstMultiAsset: (requestedOutputSet: Map<Unit, Quantity>, initialUTxOSet: UTxO[], includeTxFees?: boolean, parameters?: import("@mesh/common/types").Protocol) => UTxO[];
@@ -1,19 +0,0 @@
1
- export declare type MetadataStandard = {
2
- name: string;
3
- image: `${string}://${string}`;
4
- mediaType?: `image/${string}`;
5
- description?: string | string[];
6
- instagram?: `https://instagram.com/${string}`;
7
- twitter?: `https://twitter.com/${string}`;
8
- discord?: `https://discord.gg/${string}`;
9
- website?: `https://${string}`;
10
- };
11
- export declare type Files = {
12
- files?: [
13
- {
14
- name: string;
15
- src: `${string}://${string}`;
16
- mediaType: `${string}/${string}`;
17
- }
18
- ];
19
- };
@@ -1,13 +0,0 @@
1
- import type { Address, PrivateKey } from './CSL';
2
- export declare const signMessage: (message: Message, signer: Signer) => {
3
- coseKey: string;
4
- coseSign1: string;
5
- };
6
- export declare type Message = {
7
- payload: string;
8
- externalAAD?: string;
9
- };
10
- export declare type Signer = {
11
- address: Address;
12
- key: PrivateKey;
13
- };
@@ -1,144 +0,0 @@
1
- import { csl } from '.';
2
- export * as csl from '@emurgo/cardano-serialization-lib-nodejs';
3
- export declare type Address = InstanceType<typeof csl.Address>;
4
- export declare type AssetName = InstanceType<typeof csl.AssetName>;
5
- export declare type AssetNames = InstanceType<typeof csl.AssetNames>;
6
- export declare type Assets = InstanceType<typeof csl.Assets>;
7
- export declare type AuxiliaryData = InstanceType<typeof csl.AuxiliaryData>;
8
- export declare type AuxiliaryDataHash = InstanceType<typeof csl.AuxiliaryDataHash>;
9
- export declare type AuxiliaryDataSet = InstanceType<typeof csl.AuxiliaryDataSet>;
10
- export declare type BaseAddress = InstanceType<typeof csl.BaseAddress>;
11
- export declare type BigInt = InstanceType<typeof csl.BigInt>;
12
- export declare type BigNum = InstanceType<typeof csl.BigNum>;
13
- export declare type Bip32PrivateKey = InstanceType<typeof csl.Bip32PrivateKey>;
14
- export declare type Bip32PublicKey = InstanceType<typeof csl.Bip32PublicKey>;
15
- export declare type Block = InstanceType<typeof csl.Block>;
16
- export declare type BlockHash = InstanceType<typeof csl.BlockHash>;
17
- export declare type BootstrapWitness = InstanceType<typeof csl.BootstrapWitness>;
18
- export declare type BootstrapWitnesses = InstanceType<typeof csl.BootstrapWitnesses>;
19
- export declare type ByronAddress = InstanceType<typeof csl.ByronAddress>;
20
- export declare type Certificate = InstanceType<typeof csl.Certificate>;
21
- export declare type Certificates = InstanceType<typeof csl.Certificates>;
22
- export declare type ConstrPlutusData = InstanceType<typeof csl.ConstrPlutusData>;
23
- export declare type CostModel = InstanceType<typeof csl.CostModel>;
24
- export declare type Costmdls = InstanceType<typeof csl.Costmdls>;
25
- export declare type DNSRecordAorAAAA = InstanceType<typeof csl.DNSRecordAorAAAA>;
26
- export declare type DNSRecordSRV = InstanceType<typeof csl.DNSRecordSRV>;
27
- export declare type DataCost = InstanceType<typeof csl.DataCost>;
28
- export declare type DataHash = InstanceType<typeof csl.DataHash>;
29
- export declare type DatumSource = InstanceType<typeof csl.DatumSource>;
30
- export declare type Ed25519KeyHash = InstanceType<typeof csl.Ed25519KeyHash>;
31
- export declare type Ed25519KeyHashes = InstanceType<typeof csl.Ed25519KeyHashes>;
32
- export declare type Ed25519Signature = InstanceType<typeof csl.Ed25519Signature>;
33
- export declare type EnterpriseAddress = InstanceType<typeof csl.EnterpriseAddress>;
34
- export declare type ExUnitPrices = InstanceType<typeof csl.ExUnitPrices>;
35
- export declare type ExUnits = InstanceType<typeof csl.ExUnits>;
36
- export declare type GeneralTransactionMetadata = InstanceType<typeof csl.GeneralTransactionMetadata>;
37
- export declare type GenesisDelegateHash = InstanceType<typeof csl.GenesisDelegateHash>;
38
- export declare type GenesisHash = InstanceType<typeof csl.GenesisHash>;
39
- export declare type GenesisHashes = InstanceType<typeof csl.GenesisHashes>;
40
- export declare type GenesisKeyDelegation = InstanceType<typeof csl.GenesisKeyDelegation>;
41
- export declare type Header = InstanceType<typeof csl.Header>;
42
- export declare type HeaderBody = InstanceType<typeof csl.HeaderBody>;
43
- export declare type Int = InstanceType<typeof csl.Int>;
44
- export declare type Ipv4 = InstanceType<typeof csl.Ipv4>;
45
- export declare type Ipv6 = InstanceType<typeof csl.Ipv6>;
46
- export declare type KESSignature = InstanceType<typeof csl.KESSignature>;
47
- export declare type KESVKey = InstanceType<typeof csl.KESVKey>;
48
- export declare type Language = InstanceType<typeof csl.Language>;
49
- export declare type Languages = InstanceType<typeof csl.Languages>;
50
- export declare type LegacyDaedalusPrivateKey = InstanceType<typeof csl.LegacyDaedalusPrivateKey>;
51
- export declare type LinearFee = InstanceType<typeof csl.LinearFee>;
52
- export declare type MIRToStakeCredentials = InstanceType<typeof csl.MIRToStakeCredentials>;
53
- export declare type MetadataList = InstanceType<typeof csl.MetadataList>;
54
- export declare type MetadataMap = InstanceType<typeof csl.MetadataMap>;
55
- export declare type Mint = InstanceType<typeof csl.Mint>;
56
- export declare type MintAssets = InstanceType<typeof csl.MintAssets>;
57
- export declare type MoveInstantaneousReward = InstanceType<typeof csl.MoveInstantaneousReward>;
58
- export declare type MoveInstantaneousRewardsCert = InstanceType<typeof csl.MoveInstantaneousRewardsCert>;
59
- export declare type MultiAsset = InstanceType<typeof csl.MultiAsset>;
60
- export declare type MultiHostName = InstanceType<typeof csl.MultiHostName>;
61
- export declare type NativeScript = InstanceType<typeof csl.NativeScript>;
62
- export declare type NativeScripts = InstanceType<typeof csl.NativeScripts>;
63
- export declare type NetworkId = InstanceType<typeof csl.NetworkId>;
64
- export declare type NetworkInfo = InstanceType<typeof csl.NetworkInfo>;
65
- export declare type Nonce = InstanceType<typeof csl.Nonce>;
66
- export declare type OperationalCert = InstanceType<typeof csl.OperationalCert>;
67
- export declare type PlutusData = InstanceType<typeof csl.PlutusData>;
68
- export declare type PlutusList = InstanceType<typeof csl.PlutusList>;
69
- export declare type PlutusMap = InstanceType<typeof csl.PlutusMap>;
70
- export declare type PlutusScript = InstanceType<typeof csl.PlutusScript>;
71
- export declare type PlutusScripts = InstanceType<typeof csl.PlutusScripts>;
72
- export declare type PlutusScriptSource = InstanceType<typeof csl.PlutusScriptSource>;
73
- export declare type PlutusWitness = InstanceType<typeof csl.PlutusWitness>;
74
- export declare type PlutusWitnesses = InstanceType<typeof csl.PlutusWitnesses>;
75
- export declare type Pointer = InstanceType<typeof csl.Pointer>;
76
- export declare type PointerAddress = InstanceType<typeof csl.PointerAddress>;
77
- export declare type PoolMetadata = InstanceType<typeof csl.PoolMetadata>;
78
- export declare type PoolMetadataHash = InstanceType<typeof csl.PoolMetadataHash>;
79
- export declare type PoolParams = InstanceType<typeof csl.PoolParams>;
80
- export declare type PoolRegistration = InstanceType<typeof csl.PoolRegistration>;
81
- export declare type PoolRetirement = InstanceType<typeof csl.PoolRetirement>;
82
- export declare type PrivateKey = InstanceType<typeof csl.PrivateKey>;
83
- export declare type ProposedProtocolParameterUpdates = InstanceType<typeof csl.ProposedProtocolParameterUpdates>;
84
- export declare type ProtocolParamUpdate = InstanceType<typeof csl.ProtocolParamUpdate>;
85
- export declare type ProtocolVersion = InstanceType<typeof csl.ProtocolVersion>;
86
- export declare type PublicKey = InstanceType<typeof csl.PublicKey>;
87
- export declare type PublicKeys = InstanceType<typeof csl.PublicKeys>;
88
- export declare type Redeemer = InstanceType<typeof csl.Redeemer>;
89
- export declare type RedeemerTag = InstanceType<typeof csl.RedeemerTag>;
90
- export declare type Redeemers = InstanceType<typeof csl.Redeemers>;
91
- export declare type Relay = InstanceType<typeof csl.Relay>;
92
- export declare type Relays = InstanceType<typeof csl.Relays>;
93
- export declare type RewardAddress = InstanceType<typeof csl.RewardAddress>;
94
- export declare type RewardAddresses = InstanceType<typeof csl.RewardAddresses>;
95
- export declare type ScriptAll = InstanceType<typeof csl.ScriptAll>;
96
- export declare type ScriptAny = InstanceType<typeof csl.ScriptAny>;
97
- export declare type ScriptDataHash = InstanceType<typeof csl.ScriptDataHash>;
98
- export declare type ScriptHash = InstanceType<typeof csl.ScriptHash>;
99
- export declare type ScriptHashes = InstanceType<typeof csl.ScriptHashes>;
100
- export declare type ScriptNOfK = InstanceType<typeof csl.ScriptNOfK>;
101
- export declare type ScriptPubkey = InstanceType<typeof csl.ScriptPubkey>;
102
- export declare type ScriptRef = InstanceType<typeof csl.ScriptRef>;
103
- export declare type SingleHostAddr = InstanceType<typeof csl.SingleHostAddr>;
104
- export declare type SingleHostName = InstanceType<typeof csl.SingleHostName>;
105
- export declare type StakeCredential = InstanceType<typeof csl.StakeCredential>;
106
- export declare type StakeCredentials = InstanceType<typeof csl.StakeCredentials>;
107
- export declare type StakeDelegation = InstanceType<typeof csl.StakeDelegation>;
108
- export declare type StakeRegistration = InstanceType<typeof csl.StakeRegistration>;
109
- export declare type Strings = InstanceType<typeof csl.Strings>;
110
- export declare type TimelockExpiry = InstanceType<typeof csl.TimelockExpiry>;
111
- export declare type TimelockStart = InstanceType<typeof csl.TimelockStart>;
112
- export declare type Transaction = InstanceType<typeof csl.Transaction>;
113
- export declare type TransactionBodies = InstanceType<typeof csl.TransactionBodies>;
114
- export declare type TransactionBody = InstanceType<typeof csl.TransactionBody>;
115
- export declare type TransactionBuilder = InstanceType<typeof csl.TransactionBuilder>;
116
- export declare type TransactionBuilderConfig = InstanceType<typeof csl.TransactionBuilderConfig>;
117
- export declare type TransactionBuilderConfigBuilder = InstanceType<typeof csl.TransactionBuilderConfigBuilder>;
118
- export declare type TransactionHash = InstanceType<typeof csl.TransactionHash>;
119
- export declare type TransactionInput = InstanceType<typeof csl.TransactionInput>;
120
- export declare type TransactionInputs = InstanceType<typeof csl.TransactionInputs>;
121
- export declare type TransactionMetadatum = InstanceType<typeof csl.TransactionMetadatum>;
122
- export declare type TransactionMetadatumLabels = InstanceType<typeof csl.TransactionMetadatumLabels>;
123
- export declare type TransactionOutput = InstanceType<typeof csl.TransactionOutput>;
124
- export declare type TransactionOutputAmountBuilder = InstanceType<typeof csl.TransactionOutputAmountBuilder>;
125
- export declare type TransactionOutputBuilder = InstanceType<typeof csl.TransactionOutputBuilder>;
126
- export declare type TransactionOutputs = InstanceType<typeof csl.TransactionOutputs>;
127
- export declare type TransactionUnspentOutput = InstanceType<typeof csl.TransactionUnspentOutput>;
128
- export declare type TransactionUnspentOutputs = InstanceType<typeof csl.TransactionUnspentOutputs>;
129
- export declare type TransactionWitnessSet = InstanceType<typeof csl.TransactionWitnessSet>;
130
- export declare type TransactionWitnessSets = InstanceType<typeof csl.TransactionWitnessSets>;
131
- export declare type TxBuilderConstants = InstanceType<typeof csl.TxBuilderConstants>;
132
- export declare type TxInputsBuilder = InstanceType<typeof csl.TxInputsBuilder>;
133
- export declare type URL = InstanceType<typeof csl.URL>;
134
- export declare type UnitInterval = InstanceType<typeof csl.UnitInterval>;
135
- export declare type Update = InstanceType<typeof csl.Update>;
136
- export declare type VRFCert = InstanceType<typeof csl.VRFCert>;
137
- export declare type VRFKeyHash = InstanceType<typeof csl.VRFKeyHash>;
138
- export declare type VRFVKey = InstanceType<typeof csl.VRFVKey>;
139
- export declare type Value = InstanceType<typeof csl.Value>;
140
- export declare type Vkey = InstanceType<typeof csl.Vkey>;
141
- export declare type Vkeys = InstanceType<typeof csl.Vkeys>;
142
- export declare type Vkeywitness = InstanceType<typeof csl.Vkeywitness>;
143
- export declare type Vkeywitnesses = InstanceType<typeof csl.Vkeywitnesses>;
144
- export declare type Withdrawals = InstanceType<typeof csl.Withdrawals>;
@@ -1,8 +0,0 @@
1
- export * from './CIP2';
2
- export * from './CIP8';
3
- export * from './CIP14';
4
- export * from './CIP25';
5
- export * from './CIP1852';
6
- export * from './CIP1853';
7
- export * from './CIP1855';
8
- export * from './CSL';
package/dist/index.d.ts DELETED
@@ -1,8 +0,0 @@
1
- export * from './common/contracts';
2
- export * from './common/types';
3
- export * from './common/utils/resolver';
4
- export * from './core/CIP2';
5
- export * from './providers';
6
- export * from './scripts';
7
- export * from './transaction';
8
- export * from './wallet';