@provablehq/aleo-types 0.3.0-alpha.3 → 0.3.0-alpha.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.
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -85,6 +85,10 @@ interface TransactionOptions {
|
|
|
85
85
|
* Whether the fee is private
|
|
86
86
|
*/
|
|
87
87
|
privateFee?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* List of program names that should be imported when calling a dynamic dispatch function.
|
|
90
|
+
*/
|
|
91
|
+
imports?: string[];
|
|
88
92
|
}
|
|
89
93
|
/**
|
|
90
94
|
* Transaction status response
|
package/dist/index.d.ts
CHANGED
|
@@ -85,6 +85,10 @@ interface TransactionOptions {
|
|
|
85
85
|
* Whether the fee is private
|
|
86
86
|
*/
|
|
87
87
|
privateFee?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* List of program names that should be imported when calling a dynamic dispatch function.
|
|
90
|
+
*/
|
|
91
|
+
imports?: string[];
|
|
88
92
|
}
|
|
89
93
|
/**
|
|
90
94
|
* Transaction status response
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/transaction.ts","../src/network.ts"],"sourcesContent":["export * from './account';\nexport * from './transaction';\nexport * from './network';\n","/**\n * Status of a transaction\n */\nexport enum TransactionStatus {\n PENDING = 'pending',\n ACCEPTED = 'accepted',\n FAILED = 'failed',\n REJECTED = 'rejected',\n}\n\n/**\n * Represents an Aleo transaction\n */\nexport interface Transaction {\n /**\n * The transaction ID\n */\n id: string;\n\n /**\n * The transaction status\n */\n status: TransactionStatus;\n\n /**\n * The block height at which the transaction was confirmed\n */\n blockHeight?: number;\n\n /**\n * The transaction fee\n */\n fee?: number;\n\n /**\n * The transaction data\n */\n data?: Record<string, unknown>;\n}\n\n/**\n * Transaction creation options\n */\nexport interface TransactionOptions {\n /**\n * The program to execute\n */\n program: string;\n\n /**\n * The function to call\n */\n function: string;\n\n /**\n * The function inputs\n */\n inputs: string[];\n\n /**\n * The transaction fee to pay\n */\n fee?: number;\n\n /**\n * Record indices to use\n */\n recordIndices?: number[];\n\n /**\n * Whether the fee is private\n */\n privateFee?: boolean;\n}\n\n/**\n * Transaction status response\n */\nexport interface TransactionStatusResponse {\n /**\n * The transaction status\n */\n status: string;\n\n /**\n * The onchain transaction ID (if already exists)\n */\n transactionId?: string;\n\n /**\n * The error message (if any)\n */\n error?: string;\n}\n\n/**\n * response of requestTransactionHistory\n */\nexport interface TxHistoryResult {\n transactions: Array<{\n transactionId: string;\n id: string;\n }>;\n}\n","/**\n * Supported Aleo networks\n */\nexport enum Network {\n MAINNET = 'mainnet',\n TESTNET = 'testnet',\n CANARY = 'canary',\n}\n\n/**\n * Network configuration\n */\nexport interface NetworkConfig {\n /**\n * Network name\n */\n network: Network;\n\n /**\n * API endpoint for the network\n */\n apiUrl: string;\n\n /**\n * Explorer URL for the network\n */\n explorerUrl?: string;\n\n /**\n * Chain ID for the network\n */\n chainId: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACGO,IAAK,oBAAL,kBAAKA,uBAAL;AACL,EAAAA,mBAAA,aAAU;AACV,EAAAA,mBAAA,cAAW;AACX,EAAAA,mBAAA,YAAS;AACT,EAAAA,mBAAA,cAAW;AAJD,SAAAA;AAAA,GAAA;;;ACAL,IAAK,UAAL,kBAAKC,aAAL;AACL,EAAAA,SAAA,aAAU;AACV,EAAAA,SAAA,aAAU;AACV,EAAAA,SAAA,YAAS;AAHC,SAAAA;AAAA,GAAA;","names":["TransactionStatus","Network"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/transaction.ts","../src/network.ts"],"sourcesContent":["export * from './account';\nexport * from './transaction';\nexport * from './network';\n","/**\n * Status of a transaction\n */\nexport enum TransactionStatus {\n PENDING = 'pending',\n ACCEPTED = 'accepted',\n FAILED = 'failed',\n REJECTED = 'rejected',\n}\n\n/**\n * Represents an Aleo transaction\n */\nexport interface Transaction {\n /**\n * The transaction ID\n */\n id: string;\n\n /**\n * The transaction status\n */\n status: TransactionStatus;\n\n /**\n * The block height at which the transaction was confirmed\n */\n blockHeight?: number;\n\n /**\n * The transaction fee\n */\n fee?: number;\n\n /**\n * The transaction data\n */\n data?: Record<string, unknown>;\n}\n\n/**\n * Transaction creation options\n */\nexport interface TransactionOptions {\n /**\n * The program to execute\n */\n program: string;\n\n /**\n * The function to call\n */\n function: string;\n\n /**\n * The function inputs\n */\n inputs: string[];\n\n /**\n * The transaction fee to pay\n */\n fee?: number;\n\n /**\n * Record indices to use\n */\n recordIndices?: number[];\n\n /**\n * Whether the fee is private\n */\n privateFee?: boolean;\n\n /**\n * List of program names that should be imported when calling a dynamic dispatch function.\n */ \n imports?: string[];\n}\n\n/**\n * Transaction status response\n */\nexport interface TransactionStatusResponse {\n /**\n * The transaction status\n */\n status: string;\n\n /**\n * The onchain transaction ID (if already exists)\n */\n transactionId?: string;\n\n /**\n * The error message (if any)\n */\n error?: string;\n}\n\n/**\n * response of requestTransactionHistory\n */\nexport interface TxHistoryResult {\n transactions: Array<{\n transactionId: string;\n id: string;\n }>;\n}\n","/**\n * Supported Aleo networks\n */\nexport enum Network {\n MAINNET = 'mainnet',\n TESTNET = 'testnet',\n CANARY = 'canary',\n}\n\n/**\n * Network configuration\n */\nexport interface NetworkConfig {\n /**\n * Network name\n */\n network: Network;\n\n /**\n * API endpoint for the network\n */\n apiUrl: string;\n\n /**\n * Explorer URL for the network\n */\n explorerUrl?: string;\n\n /**\n * Chain ID for the network\n */\n chainId: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACGO,IAAK,oBAAL,kBAAKA,uBAAL;AACL,EAAAA,mBAAA,aAAU;AACV,EAAAA,mBAAA,cAAW;AACX,EAAAA,mBAAA,YAAS;AACT,EAAAA,mBAAA,cAAW;AAJD,SAAAA;AAAA,GAAA;;;ACAL,IAAK,UAAL,kBAAKC,aAAL;AACL,EAAAA,SAAA,aAAU;AACV,EAAAA,SAAA,aAAU;AACV,EAAAA,SAAA,YAAS;AAHC,SAAAA;AAAA,GAAA;","names":["TransactionStatus","Network"]}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/transaction.ts","../src/network.ts"],"sourcesContent":["/**\n * Status of a transaction\n */\nexport enum TransactionStatus {\n PENDING = 'pending',\n ACCEPTED = 'accepted',\n FAILED = 'failed',\n REJECTED = 'rejected',\n}\n\n/**\n * Represents an Aleo transaction\n */\nexport interface Transaction {\n /**\n * The transaction ID\n */\n id: string;\n\n /**\n * The transaction status\n */\n status: TransactionStatus;\n\n /**\n * The block height at which the transaction was confirmed\n */\n blockHeight?: number;\n\n /**\n * The transaction fee\n */\n fee?: number;\n\n /**\n * The transaction data\n */\n data?: Record<string, unknown>;\n}\n\n/**\n * Transaction creation options\n */\nexport interface TransactionOptions {\n /**\n * The program to execute\n */\n program: string;\n\n /**\n * The function to call\n */\n function: string;\n\n /**\n * The function inputs\n */\n inputs: string[];\n\n /**\n * The transaction fee to pay\n */\n fee?: number;\n\n /**\n * Record indices to use\n */\n recordIndices?: number[];\n\n /**\n * Whether the fee is private\n */\n privateFee?: boolean;\n}\n\n/**\n * Transaction status response\n */\nexport interface TransactionStatusResponse {\n /**\n * The transaction status\n */\n status: string;\n\n /**\n * The onchain transaction ID (if already exists)\n */\n transactionId?: string;\n\n /**\n * The error message (if any)\n */\n error?: string;\n}\n\n/**\n * response of requestTransactionHistory\n */\nexport interface TxHistoryResult {\n transactions: Array<{\n transactionId: string;\n id: string;\n }>;\n}\n","/**\n * Supported Aleo networks\n */\nexport enum Network {\n MAINNET = 'mainnet',\n TESTNET = 'testnet',\n CANARY = 'canary',\n}\n\n/**\n * Network configuration\n */\nexport interface NetworkConfig {\n /**\n * Network name\n */\n network: Network;\n\n /**\n * API endpoint for the network\n */\n apiUrl: string;\n\n /**\n * Explorer URL for the network\n */\n explorerUrl?: string;\n\n /**\n * Chain ID for the network\n */\n chainId: string;\n}\n"],"mappings":";AAGO,IAAK,oBAAL,kBAAKA,uBAAL;AACL,EAAAA,mBAAA,aAAU;AACV,EAAAA,mBAAA,cAAW;AACX,EAAAA,mBAAA,YAAS;AACT,EAAAA,mBAAA,cAAW;AAJD,SAAAA;AAAA,GAAA;;;ACAL,IAAK,UAAL,kBAAKC,aAAL;AACL,EAAAA,SAAA,aAAU;AACV,EAAAA,SAAA,aAAU;AACV,EAAAA,SAAA,YAAS;AAHC,SAAAA;AAAA,GAAA;","names":["TransactionStatus","Network"]}
|
|
1
|
+
{"version":3,"sources":["../src/transaction.ts","../src/network.ts"],"sourcesContent":["/**\n * Status of a transaction\n */\nexport enum TransactionStatus {\n PENDING = 'pending',\n ACCEPTED = 'accepted',\n FAILED = 'failed',\n REJECTED = 'rejected',\n}\n\n/**\n * Represents an Aleo transaction\n */\nexport interface Transaction {\n /**\n * The transaction ID\n */\n id: string;\n\n /**\n * The transaction status\n */\n status: TransactionStatus;\n\n /**\n * The block height at which the transaction was confirmed\n */\n blockHeight?: number;\n\n /**\n * The transaction fee\n */\n fee?: number;\n\n /**\n * The transaction data\n */\n data?: Record<string, unknown>;\n}\n\n/**\n * Transaction creation options\n */\nexport interface TransactionOptions {\n /**\n * The program to execute\n */\n program: string;\n\n /**\n * The function to call\n */\n function: string;\n\n /**\n * The function inputs\n */\n inputs: string[];\n\n /**\n * The transaction fee to pay\n */\n fee?: number;\n\n /**\n * Record indices to use\n */\n recordIndices?: number[];\n\n /**\n * Whether the fee is private\n */\n privateFee?: boolean;\n\n /**\n * List of program names that should be imported when calling a dynamic dispatch function.\n */ \n imports?: string[];\n}\n\n/**\n * Transaction status response\n */\nexport interface TransactionStatusResponse {\n /**\n * The transaction status\n */\n status: string;\n\n /**\n * The onchain transaction ID (if already exists)\n */\n transactionId?: string;\n\n /**\n * The error message (if any)\n */\n error?: string;\n}\n\n/**\n * response of requestTransactionHistory\n */\nexport interface TxHistoryResult {\n transactions: Array<{\n transactionId: string;\n id: string;\n }>;\n}\n","/**\n * Supported Aleo networks\n */\nexport enum Network {\n MAINNET = 'mainnet',\n TESTNET = 'testnet',\n CANARY = 'canary',\n}\n\n/**\n * Network configuration\n */\nexport interface NetworkConfig {\n /**\n * Network name\n */\n network: Network;\n\n /**\n * API endpoint for the network\n */\n apiUrl: string;\n\n /**\n * Explorer URL for the network\n */\n explorerUrl?: string;\n\n /**\n * Chain ID for the network\n */\n chainId: string;\n}\n"],"mappings":";AAGO,IAAK,oBAAL,kBAAKA,uBAAL;AACL,EAAAA,mBAAA,aAAU;AACV,EAAAA,mBAAA,cAAW;AACX,EAAAA,mBAAA,YAAS;AACT,EAAAA,mBAAA,cAAW;AAJD,SAAAA;AAAA,GAAA;;;ACAL,IAAK,UAAL,kBAAKC,aAAL;AACL,EAAAA,SAAA,aAAU;AACV,EAAAA,SAAA,aAAU;AACV,EAAAA,SAAA,YAAS;AAHC,SAAAA;AAAA,GAAA;","names":["TransactionStatus","Network"]}
|