@provablehq/aleo-types 0.3.0-alpha.0 → 0.3.0-alpha.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.
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- 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
|
@@ -103,6 +103,15 @@ interface TransactionStatusResponse {
|
|
|
103
103
|
*/
|
|
104
104
|
error?: string;
|
|
105
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* response of requestTransactionHistory
|
|
108
|
+
*/
|
|
109
|
+
interface TxHistoryResult {
|
|
110
|
+
transactions: Array<{
|
|
111
|
+
transactionId: string;
|
|
112
|
+
id: string;
|
|
113
|
+
}>;
|
|
114
|
+
}
|
|
106
115
|
|
|
107
116
|
/**
|
|
108
117
|
* Supported Aleo networks
|
|
@@ -134,4 +143,4 @@ interface NetworkConfig {
|
|
|
134
143
|
chainId: string;
|
|
135
144
|
}
|
|
136
145
|
|
|
137
|
-
export { type Account, type AccountOptions, Network, type NetworkConfig, type Transaction, type TransactionOptions, TransactionStatus, type TransactionStatusResponse };
|
|
146
|
+
export { type Account, type AccountOptions, Network, type NetworkConfig, type Transaction, type TransactionOptions, TransactionStatus, type TransactionStatusResponse, type TxHistoryResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -103,6 +103,15 @@ interface TransactionStatusResponse {
|
|
|
103
103
|
*/
|
|
104
104
|
error?: string;
|
|
105
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* response of requestTransactionHistory
|
|
108
|
+
*/
|
|
109
|
+
interface TxHistoryResult {
|
|
110
|
+
transactions: Array<{
|
|
111
|
+
transactionId: string;
|
|
112
|
+
id: string;
|
|
113
|
+
}>;
|
|
114
|
+
}
|
|
106
115
|
|
|
107
116
|
/**
|
|
108
117
|
* Supported Aleo networks
|
|
@@ -134,4 +143,4 @@ interface NetworkConfig {
|
|
|
134
143
|
chainId: string;
|
|
135
144
|
}
|
|
136
145
|
|
|
137
|
-
export { type Account, type AccountOptions, Network, type NetworkConfig, type Transaction, type TransactionOptions, TransactionStatus, type TransactionStatusResponse };
|
|
146
|
+
export { type Account, type AccountOptions, Network, type NetworkConfig, type Transaction, type TransactionOptions, TransactionStatus, type TransactionStatusResponse, type TxHistoryResult };
|
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 * Supported Aleo networks\n */\nexport enum Network {\n MAINNET = 'mainnet',\n TESTNET3 = 'testnet3',\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,cAAW;AACX,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/**\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 TESTNET3 = 'testnet3',\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,cAAW;AACX,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 * Supported Aleo networks\n */\nexport enum Network {\n MAINNET = 'mainnet',\n TESTNET3 = 'testnet3',\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,cAAW;AACX,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/**\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 TESTNET3 = 'testnet3',\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,cAAW;AACX,EAAAA,SAAA,YAAS;AAHC,SAAAA;AAAA,GAAA;","names":["TransactionStatus","Network"]}
|