@puzzlehq/aleo-wasm-web 0.6.11 → 0.6.12
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/aleo_wasm.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
+
* @param {number} receiver
|
|
5
|
+
*/
|
|
6
|
+
export function runRayonThread(receiver: number): void;
|
|
7
|
+
/**
|
|
8
|
+
*/
|
|
9
|
+
export function init_panic_hook(): void;
|
|
10
|
+
/**
|
|
11
|
+
* @param {URL} url
|
|
12
|
+
* @param {number} num_threads
|
|
13
|
+
* @returns {Promise<void>}
|
|
14
|
+
*/
|
|
15
|
+
export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
16
|
+
/**
|
|
4
17
|
* Verify an execution with a single function and a single transition. Executions with multiple
|
|
5
18
|
* transitions or functions will fail to verify. Also, this does not verify that the state root of
|
|
6
19
|
* the execution is included in the Aleo Network ledger.
|
|
@@ -18,19 +31,6 @@
|
|
|
18
31
|
*/
|
|
19
32
|
export function verifyFunctionExecution(execution: Execution, verifying_key: VerifyingKey, program: Program, function_id: string): boolean;
|
|
20
33
|
/**
|
|
21
|
-
* @param {number} receiver
|
|
22
|
-
*/
|
|
23
|
-
export function runRayonThread(receiver: number): void;
|
|
24
|
-
/**
|
|
25
|
-
*/
|
|
26
|
-
export function init_panic_hook(): void;
|
|
27
|
-
/**
|
|
28
|
-
* @param {URL} url
|
|
29
|
-
* @param {number} num_threads
|
|
30
|
-
* @returns {Promise<void>}
|
|
31
|
-
*/
|
|
32
|
-
export function initThreadPool(url: URL, num_threads: number): Promise<void>;
|
|
33
|
-
/**
|
|
34
34
|
* Public address of an Aleo account
|
|
35
35
|
*/
|
|
36
36
|
export class Address {
|
|
@@ -82,6 +82,17 @@ export class Address {
|
|
|
82
82
|
verify(message: Uint8Array, signature: Signature): boolean;
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
+
*/
|
|
86
|
+
export class AuthorizationResponse {
|
|
87
|
+
free(): void;
|
|
88
|
+
/**
|
|
89
|
+
*/
|
|
90
|
+
readonly authorization: string;
|
|
91
|
+
/**
|
|
92
|
+
*/
|
|
93
|
+
readonly fee_authorization: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
85
96
|
* Execution of an Aleo program.
|
|
86
97
|
*/
|
|
87
98
|
export class Execution {
|
|
@@ -651,169 +662,16 @@ export class Program {
|
|
|
651
662
|
export class ProgramManager {
|
|
652
663
|
free(): void;
|
|
653
664
|
/**
|
|
654
|
-
* Join two records together to create a new record with an amount of credits equal to the sum
|
|
655
|
-
* of the credits of the two original records
|
|
656
|
-
*
|
|
657
|
-
* @param private_key The private key of the sender
|
|
658
|
-
* @param record_1 The first record to combine
|
|
659
|
-
* @param record_2 The second record to combine
|
|
660
|
-
* @param fee_credits The amount of credits to pay as a fee
|
|
661
|
-
* @param fee_record The record to spend the fee from
|
|
662
|
-
* @param url The url of the Aleo network node to send the transaction to
|
|
663
|
-
* @param join_proving_key (optional) Provide a proving key to use for the join function
|
|
664
|
-
* @param join_verifying_key (optional) Provide a verifying key to use for the join function
|
|
665
|
-
* @param fee_proving_key (optional) Provide a proving key to use for the fee execution
|
|
666
|
-
* @param fee_verifying_key (optional) Provide a verifying key to use for the fee execution
|
|
667
|
-
* @returns {Transaction | Error} Transaction object
|
|
668
|
-
* @param {PrivateKey} private_key
|
|
669
|
-
* @param {RecordPlaintext} record_1
|
|
670
|
-
* @param {RecordPlaintext} record_2
|
|
671
|
-
* @param {number} fee_credits
|
|
672
|
-
* @param {RecordPlaintext | undefined} [fee_record]
|
|
673
|
-
* @param {string | undefined} [url]
|
|
674
|
-
* @param {ProvingKey | undefined} [join_proving_key]
|
|
675
|
-
* @param {VerifyingKey | undefined} [join_verifying_key]
|
|
676
|
-
* @param {ProvingKey | undefined} [fee_proving_key]
|
|
677
|
-
* @param {VerifyingKey | undefined} [fee_verifying_key]
|
|
678
|
-
* @param {OfflineQuery | undefined} [offline_query]
|
|
679
|
-
* @returns {Promise<Transaction>}
|
|
680
|
-
*/
|
|
681
|
-
static buildJoinTransaction(private_key: PrivateKey, record_1: RecordPlaintext, record_2: RecordPlaintext, fee_credits: number, fee_record?: RecordPlaintext, url?: string, join_proving_key?: ProvingKey, join_verifying_key?: VerifyingKey, fee_proving_key?: ProvingKey, fee_verifying_key?: VerifyingKey, offline_query?: OfflineQuery): Promise<Transaction>;
|
|
682
|
-
/**
|
|
683
|
-
* Split an Aleo credits record into two separate records. This function does not require a fee.
|
|
684
|
-
*
|
|
685
|
-
* @param private_key The private key of the sender
|
|
686
|
-
* @param split_amount The amount of the credit split. This amount will be subtracted from the
|
|
687
|
-
* value of the record and two new records will be created with the split amount and the remainder
|
|
688
|
-
* @param amount_record The record to split
|
|
689
|
-
* @param url The url of the Aleo network node to send the transaction to
|
|
690
|
-
* @param split_proving_key (optional) Provide a proving key to use for the split function
|
|
691
|
-
* @param split_verifying_key (optional) Provide a verifying key to use for the split function
|
|
692
|
-
* @returns {Transaction | Error} Transaction object
|
|
693
|
-
* @param {PrivateKey} private_key
|
|
694
|
-
* @param {number} split_amount
|
|
695
|
-
* @param {RecordPlaintext} amount_record
|
|
696
|
-
* @param {string | undefined} [url]
|
|
697
|
-
* @param {ProvingKey | undefined} [split_proving_key]
|
|
698
|
-
* @param {VerifyingKey | undefined} [split_verifying_key]
|
|
699
|
-
* @param {OfflineQuery | undefined} [offline_query]
|
|
700
|
-
* @returns {Promise<Transaction>}
|
|
701
|
-
*/
|
|
702
|
-
static buildSplitTransaction(private_key: PrivateKey, split_amount: number, amount_record: RecordPlaintext, url?: string, split_proving_key?: ProvingKey, split_verifying_key?: VerifyingKey, offline_query?: OfflineQuery): Promise<Transaction>;
|
|
703
|
-
/**
|
|
704
|
-
* Synthesize proving and verifying keys for a program
|
|
705
|
-
*
|
|
706
|
-
* @param program {string} The program source code of the program to synthesize keys for
|
|
707
|
-
* @param function_id {string} The function to synthesize keys for
|
|
708
|
-
* @param inputs {Array} The inputs to the function
|
|
709
|
-
* @param imports {Object | undefined} The imports for the program
|
|
710
|
-
* @param {PrivateKey} private_key
|
|
711
|
-
* @param {string} program
|
|
712
|
-
* @param {string} function_id
|
|
713
|
-
* @param {Array<any>} inputs
|
|
714
|
-
* @param {object | undefined} [imports]
|
|
715
|
-
* @returns {Promise<KeyPair>}
|
|
716
|
-
*/
|
|
717
|
-
static synthesizeKeyPair(private_key: PrivateKey, program: string, function_id: string, inputs: Array<any>, imports?: object): Promise<KeyPair>;
|
|
718
|
-
/**
|
|
719
|
-
* Send credits from one Aleo account to another
|
|
720
|
-
*
|
|
721
|
-
* @param private_key The private key of the sender
|
|
722
|
-
* @param amount_credits The amount of credits to send
|
|
723
|
-
* @param recipient The recipient of the transaction
|
|
724
|
-
* @param transfer_type The type of the transfer (options: "private", "public", "private_to_public", "public_to_private")
|
|
725
|
-
* @param amount_record The record to fund the amount from
|
|
726
|
-
* @param fee_credits The amount of credits to pay as a fee
|
|
727
|
-
* @param fee_record The record to spend the fee from
|
|
728
|
-
* @param url The url of the Aleo network node to send the transaction to
|
|
729
|
-
* @param transfer_verifying_key (optional) Provide a verifying key to use for the transfer
|
|
730
|
-
* function
|
|
731
|
-
* @param fee_proving_key (optional) Provide a proving key to use for the fee execution
|
|
732
|
-
* @param fee_verifying_key (optional) Provide a verifying key to use for the fee execution
|
|
733
|
-
* @returns {Transaction | Error}
|
|
734
|
-
* @param {PrivateKey} private_key
|
|
735
|
-
* @param {number} amount_credits
|
|
736
|
-
* @param {string} recipient
|
|
737
|
-
* @param {string} transfer_type
|
|
738
|
-
* @param {RecordPlaintext | undefined} amount_record
|
|
739
|
-
* @param {number} fee_credits
|
|
740
|
-
* @param {RecordPlaintext | undefined} [fee_record]
|
|
741
|
-
* @param {string | undefined} [url]
|
|
742
|
-
* @param {ProvingKey | undefined} [transfer_proving_key]
|
|
743
|
-
* @param {VerifyingKey | undefined} [transfer_verifying_key]
|
|
744
|
-
* @param {ProvingKey | undefined} [fee_proving_key]
|
|
745
|
-
* @param {VerifyingKey | undefined} [fee_verifying_key]
|
|
746
|
-
* @param {OfflineQuery | undefined} [offline_query]
|
|
747
|
-
* @returns {Promise<Transaction>}
|
|
748
|
-
*/
|
|
749
|
-
static buildTransferTransaction(private_key: PrivateKey, amount_credits: number, recipient: string, transfer_type: string, amount_record: RecordPlaintext | undefined, fee_credits: number, fee_record?: RecordPlaintext, url?: string, transfer_proving_key?: ProvingKey, transfer_verifying_key?: VerifyingKey, fee_proving_key?: ProvingKey, fee_verifying_key?: VerifyingKey, offline_query?: OfflineQuery): Promise<Transaction>;
|
|
750
|
-
/**
|
|
751
|
-
* Deploy an Aleo program
|
|
752
|
-
*
|
|
753
|
-
* @param private_key The private key of the sender
|
|
754
|
-
* @param program The source code of the program being deployed
|
|
755
|
-
* @param imports A javascript object holding the source code of any imported programs in the
|
|
756
|
-
* form \{"program_name1": "program_source_code", "program_name2": "program_source_code", ..\}.
|
|
757
|
-
* Note that all imported programs must be deployed on chain before the main program in order
|
|
758
|
-
* for the deployment to succeed
|
|
759
|
-
* @param fee_credits The amount of credits to pay as a fee
|
|
760
|
-
* @param fee_record The record to spend the fee from
|
|
761
|
-
* @param url The url of the Aleo network node to send the transaction to
|
|
762
|
-
* @param imports (optional) Provide a list of imports to use for the program deployment in the
|
|
763
|
-
* form of a javascript object where the keys are a string of the program name and the values
|
|
764
|
-
* are a string representing the program source code \{ "hello.aleo": "hello.aleo source code" \}
|
|
765
|
-
* @param fee_proving_key (optional) Provide a proving key to use for the fee execution
|
|
766
|
-
* @param fee_verifying_key (optional) Provide a verifying key to use for the fee execution
|
|
767
|
-
* @returns {Transaction | Error}
|
|
768
|
-
* @param {PrivateKey} private_key
|
|
769
|
-
* @param {string} program
|
|
770
|
-
* @param {number} fee_credits
|
|
771
|
-
* @param {RecordPlaintext | undefined} [fee_record]
|
|
772
|
-
* @param {string | undefined} [url]
|
|
773
|
-
* @param {object | undefined} [imports]
|
|
774
|
-
* @param {ProvingKey | undefined} [fee_proving_key]
|
|
775
|
-
* @param {VerifyingKey | undefined} [fee_verifying_key]
|
|
776
|
-
* @param {OfflineQuery | undefined} [offline_query]
|
|
777
|
-
* @returns {Promise<Transaction>}
|
|
778
|
-
*/
|
|
779
|
-
static buildDeploymentTransaction(private_key: PrivateKey, program: string, fee_credits: number, fee_record?: RecordPlaintext, url?: string, imports?: object, fee_proving_key?: ProvingKey, fee_verifying_key?: VerifyingKey, offline_query?: OfflineQuery): Promise<Transaction>;
|
|
780
|
-
/**
|
|
781
|
-
* Estimate the fee for a program deployment
|
|
782
|
-
*
|
|
783
|
-
* Disclaimer: Fee estimation is experimental and may not represent a correct estimate on any current or future network
|
|
784
|
-
*
|
|
785
|
-
* @param program The source code of the program being deployed
|
|
786
|
-
* @param imports (optional) Provide a list of imports to use for the deployment fee estimation
|
|
787
|
-
* in the form of a javascript object where the keys are a string of the program name and the values
|
|
788
|
-
* are a string representing the program source code \{ "hello.aleo": "hello.aleo source code" \}
|
|
789
|
-
* @returns {u64 | Error}
|
|
790
|
-
* @param {string} program
|
|
791
|
-
* @param {object | undefined} [imports]
|
|
792
|
-
* @returns {Promise<bigint>}
|
|
793
|
-
*/
|
|
794
|
-
static estimateDeploymentFee(program: string, imports?: object): Promise<bigint>;
|
|
795
|
-
/**
|
|
796
|
-
* Estimate the component of the deployment cost which comes from the fee for the program name.
|
|
797
|
-
* Note that this cost does not represent the entire cost of deployment. It is additional to
|
|
798
|
-
* the cost of the size (in bytes) of the deployment.
|
|
799
|
-
*
|
|
800
|
-
* Disclaimer: Fee estimation is experimental and may not represent a correct estimate on any current or future network
|
|
801
|
-
*
|
|
802
|
-
* @param name The name of the program to be deployed
|
|
803
|
-
* @returns {u64 | Error}
|
|
804
|
-
* @param {string} name
|
|
805
|
-
* @returns {bigint}
|
|
806
|
-
*/
|
|
807
|
-
static estimateProgramNameCost(name: string): bigint;
|
|
808
|
-
/**
|
|
809
665
|
* @param {string} program
|
|
810
666
|
* @param {string} function_id
|
|
811
667
|
* @param {Array<any>} inputs_str
|
|
812
668
|
* @param {string} private_key
|
|
813
|
-
* @param {object | undefined}
|
|
814
|
-
* @
|
|
669
|
+
* @param {object | undefined} imports
|
|
670
|
+
* @param {bigint} fee_microcredits
|
|
671
|
+
* @param {string | undefined} [fee_record]
|
|
672
|
+
* @returns {Promise<AuthorizationResponse>}
|
|
815
673
|
*/
|
|
816
|
-
static authExecute(program: string, function_id: string, inputs_str: Array<any>, private_key: string, imports?:
|
|
674
|
+
static authExecute(program: string, function_id: string, inputs_str: Array<any>, private_key: string, imports: object | undefined, fee_microcredits: bigint, fee_record?: string): Promise<AuthorizationResponse>;
|
|
817
675
|
/**
|
|
818
676
|
* Execute an arbitrary function locally
|
|
819
677
|
*
|
|
@@ -930,57 +788,167 @@ export class ProgramManager {
|
|
|
930
788
|
* @returns {bigint}
|
|
931
789
|
*/
|
|
932
790
|
static estimateFinalizeFee(program: string, _function: string): bigint;
|
|
933
|
-
}
|
|
934
791
|
/**
|
|
935
|
-
*
|
|
792
|
+
* Deploy an Aleo program
|
|
793
|
+
*
|
|
794
|
+
* @param private_key The private key of the sender
|
|
795
|
+
* @param program The source code of the program being deployed
|
|
796
|
+
* @param imports A javascript object holding the source code of any imported programs in the
|
|
797
|
+
* form \{"program_name1": "program_source_code", "program_name2": "program_source_code", ..\}.
|
|
798
|
+
* Note that all imported programs must be deployed on chain before the main program in order
|
|
799
|
+
* for the deployment to succeed
|
|
800
|
+
* @param fee_credits The amount of credits to pay as a fee
|
|
801
|
+
* @param fee_record The record to spend the fee from
|
|
802
|
+
* @param url The url of the Aleo network node to send the transaction to
|
|
803
|
+
* @param imports (optional) Provide a list of imports to use for the program deployment in the
|
|
804
|
+
* form of a javascript object where the keys are a string of the program name and the values
|
|
805
|
+
* are a string representing the program source code \{ "hello.aleo": "hello.aleo source code" \}
|
|
806
|
+
* @param fee_proving_key (optional) Provide a proving key to use for the fee execution
|
|
807
|
+
* @param fee_verifying_key (optional) Provide a verifying key to use for the fee execution
|
|
808
|
+
* @returns {Transaction | Error}
|
|
809
|
+
* @param {PrivateKey} private_key
|
|
810
|
+
* @param {string} program
|
|
811
|
+
* @param {number} fee_credits
|
|
812
|
+
* @param {RecordPlaintext | undefined} [fee_record]
|
|
813
|
+
* @param {string | undefined} [url]
|
|
814
|
+
* @param {object | undefined} [imports]
|
|
815
|
+
* @param {ProvingKey | undefined} [fee_proving_key]
|
|
816
|
+
* @param {VerifyingKey | undefined} [fee_verifying_key]
|
|
817
|
+
* @param {OfflineQuery | undefined} [offline_query]
|
|
818
|
+
* @returns {Promise<Transaction>}
|
|
936
819
|
*/
|
|
937
|
-
|
|
938
|
-
free(): void;
|
|
820
|
+
static buildDeploymentTransaction(private_key: PrivateKey, program: string, fee_credits: number, fee_record?: RecordPlaintext, url?: string, imports?: object, fee_proving_key?: ProvingKey, fee_verifying_key?: VerifyingKey, offline_query?: OfflineQuery): Promise<Transaction>;
|
|
939
821
|
/**
|
|
940
|
-
*
|
|
822
|
+
* Estimate the fee for a program deployment
|
|
941
823
|
*
|
|
942
|
-
*
|
|
943
|
-
*
|
|
824
|
+
* Disclaimer: Fee estimation is experimental and may not represent a correct estimate on any current or future network
|
|
825
|
+
*
|
|
826
|
+
* @param program The source code of the program being deployed
|
|
827
|
+
* @param imports (optional) Provide a list of imports to use for the deployment fee estimation
|
|
828
|
+
* in the form of a javascript object where the keys are a string of the program name and the values
|
|
829
|
+
* are a string representing the program source code \{ "hello.aleo": "hello.aleo source code" \}
|
|
830
|
+
* @returns {u64 | Error}
|
|
831
|
+
* @param {string} program
|
|
832
|
+
* @param {object | undefined} [imports]
|
|
833
|
+
* @returns {Promise<bigint>}
|
|
944
834
|
*/
|
|
945
|
-
|
|
835
|
+
static estimateDeploymentFee(program: string, imports?: object): Promise<bigint>;
|
|
946
836
|
/**
|
|
947
|
-
*
|
|
837
|
+
* Estimate the component of the deployment cost which comes from the fee for the program name.
|
|
838
|
+
* Note that this cost does not represent the entire cost of deployment. It is additional to
|
|
839
|
+
* the cost of the size (in bytes) of the deployment.
|
|
948
840
|
*
|
|
949
|
-
*
|
|
950
|
-
*
|
|
841
|
+
* Disclaimer: Fee estimation is experimental and may not represent a correct estimate on any current or future network
|
|
842
|
+
*
|
|
843
|
+
* @param name The name of the program to be deployed
|
|
844
|
+
* @returns {u64 | Error}
|
|
845
|
+
* @param {string} name
|
|
846
|
+
* @returns {bigint}
|
|
951
847
|
*/
|
|
952
|
-
|
|
848
|
+
static estimateProgramNameCost(name: string): bigint;
|
|
953
849
|
/**
|
|
954
|
-
*
|
|
850
|
+
* Split an Aleo credits record into two separate records. This function does not require a fee.
|
|
955
851
|
*
|
|
956
|
-
* @param
|
|
957
|
-
* @
|
|
958
|
-
*
|
|
959
|
-
* @
|
|
852
|
+
* @param private_key The private key of the sender
|
|
853
|
+
* @param split_amount The amount of the credit split. This amount will be subtracted from the
|
|
854
|
+
* value of the record and two new records will be created with the split amount and the remainder
|
|
855
|
+
* @param amount_record The record to split
|
|
856
|
+
* @param url The url of the Aleo network node to send the transaction to
|
|
857
|
+
* @param split_proving_key (optional) Provide a proving key to use for the split function
|
|
858
|
+
* @param split_verifying_key (optional) Provide a verifying key to use for the split function
|
|
859
|
+
* @returns {Transaction | Error} Transaction object
|
|
860
|
+
* @param {PrivateKey} private_key
|
|
861
|
+
* @param {number} split_amount
|
|
862
|
+
* @param {RecordPlaintext} amount_record
|
|
863
|
+
* @param {string | undefined} [url]
|
|
864
|
+
* @param {ProvingKey | undefined} [split_proving_key]
|
|
865
|
+
* @param {VerifyingKey | undefined} [split_verifying_key]
|
|
866
|
+
* @param {OfflineQuery | undefined} [offline_query]
|
|
867
|
+
* @returns {Promise<Transaction>}
|
|
960
868
|
*/
|
|
961
|
-
static
|
|
869
|
+
static buildSplitTransaction(private_key: PrivateKey, split_amount: number, amount_record: RecordPlaintext, url?: string, split_proving_key?: ProvingKey, split_verifying_key?: VerifyingKey, offline_query?: OfflineQuery): Promise<Transaction>;
|
|
962
870
|
/**
|
|
963
|
-
*
|
|
871
|
+
* Join two records together to create a new record with an amount of credits equal to the sum
|
|
872
|
+
* of the credits of the two original records
|
|
964
873
|
*
|
|
965
|
-
* @param
|
|
966
|
-
* @param
|
|
967
|
-
* @
|
|
874
|
+
* @param private_key The private key of the sender
|
|
875
|
+
* @param record_1 The first record to combine
|
|
876
|
+
* @param record_2 The second record to combine
|
|
877
|
+
* @param fee_credits The amount of credits to pay as a fee
|
|
878
|
+
* @param fee_record The record to spend the fee from
|
|
879
|
+
* @param url The url of the Aleo network node to send the transaction to
|
|
880
|
+
* @param join_proving_key (optional) Provide a proving key to use for the join function
|
|
881
|
+
* @param join_verifying_key (optional) Provide a verifying key to use for the join function
|
|
882
|
+
* @param fee_proving_key (optional) Provide a proving key to use for the fee execution
|
|
883
|
+
* @param fee_verifying_key (optional) Provide a verifying key to use for the fee execution
|
|
884
|
+
* @returns {Transaction | Error} Transaction object
|
|
885
|
+
* @param {PrivateKey} private_key
|
|
886
|
+
* @param {RecordPlaintext} record_1
|
|
887
|
+
* @param {RecordPlaintext} record_2
|
|
888
|
+
* @param {number} fee_credits
|
|
889
|
+
* @param {RecordPlaintext | undefined} [fee_record]
|
|
890
|
+
* @param {string | undefined} [url]
|
|
891
|
+
* @param {ProvingKey | undefined} [join_proving_key]
|
|
892
|
+
* @param {VerifyingKey | undefined} [join_verifying_key]
|
|
893
|
+
* @param {ProvingKey | undefined} [fee_proving_key]
|
|
894
|
+
* @param {VerifyingKey | undefined} [fee_verifying_key]
|
|
895
|
+
* @param {OfflineQuery | undefined} [offline_query]
|
|
896
|
+
* @returns {Promise<Transaction>}
|
|
968
897
|
*/
|
|
969
|
-
static
|
|
898
|
+
static buildJoinTransaction(private_key: PrivateKey, record_1: RecordPlaintext, record_2: RecordPlaintext, fee_credits: number, fee_record?: RecordPlaintext, url?: string, join_proving_key?: ProvingKey, join_verifying_key?: VerifyingKey, fee_proving_key?: ProvingKey, fee_verifying_key?: VerifyingKey, offline_query?: OfflineQuery): Promise<Transaction>;
|
|
970
899
|
/**
|
|
971
|
-
*
|
|
900
|
+
* Send credits from one Aleo account to another
|
|
972
901
|
*
|
|
973
|
-
* @
|
|
974
|
-
* @
|
|
902
|
+
* @param private_key The private key of the sender
|
|
903
|
+
* @param amount_credits The amount of credits to send
|
|
904
|
+
* @param recipient The recipient of the transaction
|
|
905
|
+
* @param transfer_type The type of the transfer (options: "private", "public", "private_to_public", "public_to_private")
|
|
906
|
+
* @param amount_record The record to fund the amount from
|
|
907
|
+
* @param fee_credits The amount of credits to pay as a fee
|
|
908
|
+
* @param fee_record The record to spend the fee from
|
|
909
|
+
* @param url The url of the Aleo network node to send the transaction to
|
|
910
|
+
* @param transfer_verifying_key (optional) Provide a verifying key to use for the transfer
|
|
911
|
+
* function
|
|
912
|
+
* @param fee_proving_key (optional) Provide a proving key to use for the fee execution
|
|
913
|
+
* @param fee_verifying_key (optional) Provide a verifying key to use for the fee execution
|
|
914
|
+
* @returns {Transaction | Error}
|
|
915
|
+
* @param {PrivateKey} private_key
|
|
916
|
+
* @param {number} amount_credits
|
|
917
|
+
* @param {string} recipient
|
|
918
|
+
* @param {string} transfer_type
|
|
919
|
+
* @param {RecordPlaintext | undefined} amount_record
|
|
920
|
+
* @param {number} fee_credits
|
|
921
|
+
* @param {RecordPlaintext | undefined} [fee_record]
|
|
922
|
+
* @param {string | undefined} [url]
|
|
923
|
+
* @param {ProvingKey | undefined} [transfer_proving_key]
|
|
924
|
+
* @param {VerifyingKey | undefined} [transfer_verifying_key]
|
|
925
|
+
* @param {ProvingKey | undefined} [fee_proving_key]
|
|
926
|
+
* @param {VerifyingKey | undefined} [fee_verifying_key]
|
|
927
|
+
* @param {OfflineQuery | undefined} [offline_query]
|
|
928
|
+
* @returns {Promise<Transaction>}
|
|
975
929
|
*/
|
|
976
|
-
|
|
930
|
+
static buildTransferTransaction(private_key: PrivateKey, amount_credits: number, recipient: string, transfer_type: string, amount_record: RecordPlaintext | undefined, fee_credits: number, fee_record?: RecordPlaintext, url?: string, transfer_proving_key?: ProvingKey, transfer_verifying_key?: VerifyingKey, fee_proving_key?: ProvingKey, fee_verifying_key?: VerifyingKey, offline_query?: OfflineQuery): Promise<Transaction>;
|
|
977
931
|
/**
|
|
978
|
-
*
|
|
932
|
+
* Synthesize proving and verifying keys for a program
|
|
979
933
|
*
|
|
980
|
-
* @
|
|
981
|
-
* @
|
|
934
|
+
* @param program {string} The program source code of the program to synthesize keys for
|
|
935
|
+
* @param function_id {string} The function to synthesize keys for
|
|
936
|
+
* @param inputs {Array} The inputs to the function
|
|
937
|
+
* @param imports {Object | undefined} The imports for the program
|
|
938
|
+
* @param {PrivateKey} private_key
|
|
939
|
+
* @param {string} program
|
|
940
|
+
* @param {string} function_id
|
|
941
|
+
* @param {Array<any>} inputs
|
|
942
|
+
* @param {object | undefined} [imports]
|
|
943
|
+
* @returns {Promise<KeyPair>}
|
|
982
944
|
*/
|
|
983
|
-
|
|
945
|
+
static synthesizeKeyPair(private_key: PrivateKey, program: string, function_id: string, inputs: Array<any>, imports?: object): Promise<KeyPair>;
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* Proving key for a function within an Aleo program
|
|
949
|
+
*/
|
|
950
|
+
export class ProvingKey {
|
|
951
|
+
free(): void;
|
|
984
952
|
/**
|
|
985
953
|
* Verify if the proving key is for the bond_public function
|
|
986
954
|
*
|
|
@@ -1135,6 +1103,51 @@ export class ProvingKey {
|
|
|
1135
1103
|
* @returns {boolean}
|
|
1136
1104
|
*/
|
|
1137
1105
|
isUnbondPublicProver(): boolean;
|
|
1106
|
+
/**
|
|
1107
|
+
* Return the checksum of the proving key
|
|
1108
|
+
*
|
|
1109
|
+
* @returns {string} Checksum of the proving key
|
|
1110
|
+
* @returns {string}
|
|
1111
|
+
*/
|
|
1112
|
+
checksum(): string;
|
|
1113
|
+
/**
|
|
1114
|
+
* Create a copy of the proving key
|
|
1115
|
+
*
|
|
1116
|
+
* @returns {ProvingKey} A copy of the proving key
|
|
1117
|
+
* @returns {ProvingKey}
|
|
1118
|
+
*/
|
|
1119
|
+
copy(): ProvingKey;
|
|
1120
|
+
/**
|
|
1121
|
+
* Construct a new proving key from a byte array
|
|
1122
|
+
*
|
|
1123
|
+
* @param {Uint8Array} bytes Byte array representation of a proving key
|
|
1124
|
+
* @returns {ProvingKey | Error}
|
|
1125
|
+
* @param {Uint8Array} bytes
|
|
1126
|
+
* @returns {ProvingKey}
|
|
1127
|
+
*/
|
|
1128
|
+
static fromBytes(bytes: Uint8Array): ProvingKey;
|
|
1129
|
+
/**
|
|
1130
|
+
* Create a proving key from string
|
|
1131
|
+
*
|
|
1132
|
+
* @param {string | Error} String representation of the proving key
|
|
1133
|
+
* @param {string} string
|
|
1134
|
+
* @returns {ProvingKey}
|
|
1135
|
+
*/
|
|
1136
|
+
static fromString(string: string): ProvingKey;
|
|
1137
|
+
/**
|
|
1138
|
+
* Return the byte representation of a proving key
|
|
1139
|
+
*
|
|
1140
|
+
* @returns {Uint8Array | Error} Byte array representation of a proving key
|
|
1141
|
+
* @returns {Uint8Array}
|
|
1142
|
+
*/
|
|
1143
|
+
toBytes(): Uint8Array;
|
|
1144
|
+
/**
|
|
1145
|
+
* Get a string representation of the proving key
|
|
1146
|
+
*
|
|
1147
|
+
* @returns {string} String representation of the proving key
|
|
1148
|
+
* @returns {string}
|
|
1149
|
+
*/
|
|
1150
|
+
toString(): string;
|
|
1138
1151
|
}
|
|
1139
1152
|
/**
|
|
1140
1153
|
* Encrypted Aleo record
|
|
@@ -1338,6 +1351,52 @@ export class Transaction {
|
|
|
1338
1351
|
export class VerifyingKey {
|
|
1339
1352
|
free(): void;
|
|
1340
1353
|
/**
|
|
1354
|
+
* Get the checksum of the verifying key
|
|
1355
|
+
*
|
|
1356
|
+
* @returns {string} Checksum of the verifying key
|
|
1357
|
+
* @returns {string}
|
|
1358
|
+
*/
|
|
1359
|
+
checksum(): string;
|
|
1360
|
+
/**
|
|
1361
|
+
* Create a copy of the verifying key
|
|
1362
|
+
*
|
|
1363
|
+
* @returns {VerifyingKey} A copy of the verifying key
|
|
1364
|
+
* @returns {VerifyingKey}
|
|
1365
|
+
*/
|
|
1366
|
+
copy(): VerifyingKey;
|
|
1367
|
+
/**
|
|
1368
|
+
* Construct a new verifying key from a byte array
|
|
1369
|
+
*
|
|
1370
|
+
* @param {Uint8Array} bytes Byte representation of a verifying key
|
|
1371
|
+
* @returns {VerifyingKey | Error}
|
|
1372
|
+
* @param {Uint8Array} bytes
|
|
1373
|
+
* @returns {VerifyingKey}
|
|
1374
|
+
*/
|
|
1375
|
+
static fromBytes(bytes: Uint8Array): VerifyingKey;
|
|
1376
|
+
/**
|
|
1377
|
+
* Create a verifying key from string
|
|
1378
|
+
*
|
|
1379
|
+
* @param {String} string String representation of a verifying key
|
|
1380
|
+
* @returns {VerifyingKey | Error}
|
|
1381
|
+
* @param {string} string
|
|
1382
|
+
* @returns {VerifyingKey}
|
|
1383
|
+
*/
|
|
1384
|
+
static fromString(string: string): VerifyingKey;
|
|
1385
|
+
/**
|
|
1386
|
+
* Create a byte array from a verifying key
|
|
1387
|
+
*
|
|
1388
|
+
* @returns {Uint8Array | Error} Byte representation of a verifying key
|
|
1389
|
+
* @returns {Uint8Array}
|
|
1390
|
+
*/
|
|
1391
|
+
toBytes(): Uint8Array;
|
|
1392
|
+
/**
|
|
1393
|
+
* Get a string representation of the verifying key
|
|
1394
|
+
*
|
|
1395
|
+
* @returns {String} String representation of the verifying key
|
|
1396
|
+
* @returns {string}
|
|
1397
|
+
*/
|
|
1398
|
+
toString(): string;
|
|
1399
|
+
/**
|
|
1341
1400
|
* Returns the verifying key for the bond_public function
|
|
1342
1401
|
*
|
|
1343
1402
|
* @returns {VerifyingKey} Verifying key for the bond_public function
|
|
@@ -1533,52 +1592,6 @@ export class VerifyingKey {
|
|
|
1533
1592
|
* @returns {boolean}
|
|
1534
1593
|
*/
|
|
1535
1594
|
isUnbondPublicVerifier(): boolean;
|
|
1536
|
-
/**
|
|
1537
|
-
* Get the checksum of the verifying key
|
|
1538
|
-
*
|
|
1539
|
-
* @returns {string} Checksum of the verifying key
|
|
1540
|
-
* @returns {string}
|
|
1541
|
-
*/
|
|
1542
|
-
checksum(): string;
|
|
1543
|
-
/**
|
|
1544
|
-
* Create a copy of the verifying key
|
|
1545
|
-
*
|
|
1546
|
-
* @returns {VerifyingKey} A copy of the verifying key
|
|
1547
|
-
* @returns {VerifyingKey}
|
|
1548
|
-
*/
|
|
1549
|
-
copy(): VerifyingKey;
|
|
1550
|
-
/**
|
|
1551
|
-
* Construct a new verifying key from a byte array
|
|
1552
|
-
*
|
|
1553
|
-
* @param {Uint8Array} bytes Byte representation of a verifying key
|
|
1554
|
-
* @returns {VerifyingKey | Error}
|
|
1555
|
-
* @param {Uint8Array} bytes
|
|
1556
|
-
* @returns {VerifyingKey}
|
|
1557
|
-
*/
|
|
1558
|
-
static fromBytes(bytes: Uint8Array): VerifyingKey;
|
|
1559
|
-
/**
|
|
1560
|
-
* Create a verifying key from string
|
|
1561
|
-
*
|
|
1562
|
-
* @param {String} string String representation of a verifying key
|
|
1563
|
-
* @returns {VerifyingKey | Error}
|
|
1564
|
-
* @param {string} string
|
|
1565
|
-
* @returns {VerifyingKey}
|
|
1566
|
-
*/
|
|
1567
|
-
static fromString(string: string): VerifyingKey;
|
|
1568
|
-
/**
|
|
1569
|
-
* Create a byte array from a verifying key
|
|
1570
|
-
*
|
|
1571
|
-
* @returns {Uint8Array | Error} Byte representation of a verifying key
|
|
1572
|
-
* @returns {Uint8Array}
|
|
1573
|
-
*/
|
|
1574
|
-
toBytes(): Uint8Array;
|
|
1575
|
-
/**
|
|
1576
|
-
* Get a string representation of the verifying key
|
|
1577
|
-
*
|
|
1578
|
-
* @returns {String} String representation of the verifying key
|
|
1579
|
-
* @returns {string}
|
|
1580
|
-
*/
|
|
1581
|
-
toString(): string;
|
|
1582
1595
|
}
|
|
1583
1596
|
/**
|
|
1584
1597
|
*/
|
|
@@ -1640,15 +1653,38 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
1640
1653
|
|
|
1641
1654
|
export interface InitOutput {
|
|
1642
1655
|
readonly memory: WebAssembly.Memory;
|
|
1643
|
-
readonly __wbg_field_free: (a: number) => void;
|
|
1644
|
-
readonly field_toString: (a: number, b: number) => void;
|
|
1645
|
-
readonly field_fromString: (a: number, b: number, c: number) => void;
|
|
1646
1656
|
readonly __wbg_address_free: (a: number) => void;
|
|
1647
1657
|
readonly address_from_private_key: (a: number) => number;
|
|
1648
1658
|
readonly address_from_view_key: (a: number) => number;
|
|
1649
1659
|
readonly address_from_string: (a: number, b: number) => number;
|
|
1650
1660
|
readonly address_to_string: (a: number, b: number) => void;
|
|
1651
1661
|
readonly address_verify: (a: number, b: number, c: number, d: number) => number;
|
|
1662
|
+
readonly __wbg_keypair_free: (a: number) => void;
|
|
1663
|
+
readonly keypair_new: (a: number, b: number) => number;
|
|
1664
|
+
readonly keypair_provingKey: (a: number, b: number) => void;
|
|
1665
|
+
readonly keypair_verifyingKey: (a: number, b: number) => void;
|
|
1666
|
+
readonly __wbg_authorizationresponse_free: (a: number) => void;
|
|
1667
|
+
readonly authorizationresponse_authorization: (a: number, b: number) => void;
|
|
1668
|
+
readonly authorizationresponse_fee_authorization: (a: number, b: number) => void;
|
|
1669
|
+
readonly programmanager_authExecute: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
1670
|
+
readonly programmanager_executeFunctionOffline: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => number;
|
|
1671
|
+
readonly programmanager_buildExecutionTransaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => number;
|
|
1672
|
+
readonly programmanager_estimateExecutionFee: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number;
|
|
1673
|
+
readonly programmanager_estimateFinalizeFee: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1674
|
+
readonly provingkey_isBondPublicProver: (a: number) => number;
|
|
1675
|
+
readonly provingkey_isClaimUnbondPublicProver: (a: number) => number;
|
|
1676
|
+
readonly provingkey_isFeePrivateProver: (a: number) => number;
|
|
1677
|
+
readonly provingkey_isFeePublicProver: (a: number) => number;
|
|
1678
|
+
readonly provingkey_isInclusionProver: (a: number) => number;
|
|
1679
|
+
readonly provingkey_isJoinProver: (a: number) => number;
|
|
1680
|
+
readonly provingkey_isSetValidatorStateProver: (a: number) => number;
|
|
1681
|
+
readonly provingkey_isSplitProver: (a: number) => number;
|
|
1682
|
+
readonly provingkey_isTransferPrivateProver: (a: number) => number;
|
|
1683
|
+
readonly provingkey_isTransferPrivateToPublicProver: (a: number) => number;
|
|
1684
|
+
readonly provingkey_isTransferPublicProver: (a: number) => number;
|
|
1685
|
+
readonly provingkey_isTransferPublicToPrivateProver: (a: number) => number;
|
|
1686
|
+
readonly provingkey_isUnbondDelegatorAsValidatorProver: (a: number) => number;
|
|
1687
|
+
readonly provingkey_isUnbondPublicProver: (a: number) => number;
|
|
1652
1688
|
readonly __wbg_provingkey_free: (a: number) => void;
|
|
1653
1689
|
readonly provingkey_checksum: (a: number, b: number) => void;
|
|
1654
1690
|
readonly provingkey_copy: (a: number) => number;
|
|
@@ -1666,10 +1702,7 @@ export interface InitOutput {
|
|
|
1666
1702
|
readonly recordciphertext_toString: (a: number, b: number) => void;
|
|
1667
1703
|
readonly recordciphertext_decrypt: (a: number, b: number, c: number) => void;
|
|
1668
1704
|
readonly recordciphertext_isOwner: (a: number, b: number) => number;
|
|
1669
|
-
readonly
|
|
1670
|
-
readonly keypair_new: (a: number, b: number) => number;
|
|
1671
|
-
readonly keypair_provingKey: (a: number, b: number) => void;
|
|
1672
|
-
readonly keypair_verifyingKey: (a: number, b: number) => void;
|
|
1705
|
+
readonly runRayonThread: (a: number) => void;
|
|
1673
1706
|
readonly __wbg_privatekey_free: (a: number) => void;
|
|
1674
1707
|
readonly privatekey_new: () => number;
|
|
1675
1708
|
readonly privatekey_from_seed_unchecked: (a: number, b: number) => number;
|
|
@@ -1689,6 +1722,27 @@ export interface InitOutput {
|
|
|
1689
1722
|
readonly viewkey_to_address: (a: number) => number;
|
|
1690
1723
|
readonly viewkey_decrypt: (a: number, b: number, c: number, d: number) => void;
|
|
1691
1724
|
readonly viewkey_decrypt_ciphertext: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
1725
|
+
readonly __wbg_field_free: (a: number) => void;
|
|
1726
|
+
readonly field_toString: (a: number, b: number) => void;
|
|
1727
|
+
readonly field_fromString: (a: number, b: number, c: number) => void;
|
|
1728
|
+
readonly programmanager_buildDeploymentTransaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
1729
|
+
readonly programmanager_estimateDeploymentFee: (a: number, b: number, c: number) => number;
|
|
1730
|
+
readonly programmanager_estimateProgramNameCost: (a: number, b: number, c: number) => void;
|
|
1731
|
+
readonly initThreadPool: (a: number, b: number) => number;
|
|
1732
|
+
readonly init_panic_hook: () => void;
|
|
1733
|
+
readonly __wbg_privatekeyciphertext_free: (a: number) => void;
|
|
1734
|
+
readonly privatekeyciphertext_encryptPrivateKey: (a: number, b: number, c: number, d: number) => void;
|
|
1735
|
+
readonly privatekeyciphertext_decryptToPrivateKey: (a: number, b: number, c: number, d: number) => void;
|
|
1736
|
+
readonly privatekeyciphertext_toString: (a: number, b: number) => void;
|
|
1737
|
+
readonly privatekeyciphertext_fromString: (a: number, b: number, c: number) => void;
|
|
1738
|
+
readonly programmanager_buildSplitTransaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
1739
|
+
readonly __wbg_verifyingkey_free: (a: number) => void;
|
|
1740
|
+
readonly verifyingkey_checksum: (a: number, b: number) => void;
|
|
1741
|
+
readonly verifyingkey_copy: (a: number) => number;
|
|
1742
|
+
readonly verifyingkey_fromBytes: (a: number, b: number, c: number) => void;
|
|
1743
|
+
readonly verifyingkey_fromString: (a: number, b: number, c: number) => void;
|
|
1744
|
+
readonly verifyingkey_toBytes: (a: number, b: number) => void;
|
|
1745
|
+
readonly verifyingkey_toString: (a: number, b: number) => void;
|
|
1692
1746
|
readonly __wbg_execution_free: (a: number) => void;
|
|
1693
1747
|
readonly execution_toString: (a: number, b: number) => void;
|
|
1694
1748
|
readonly execution_fromString: (a: number, b: number, c: number) => void;
|
|
@@ -1712,20 +1766,6 @@ export interface InitOutput {
|
|
|
1712
1766
|
readonly program_address: (a: number, b: number) => void;
|
|
1713
1767
|
readonly program_isEqual: (a: number, b: number) => number;
|
|
1714
1768
|
readonly program_getImports: (a: number) => number;
|
|
1715
|
-
readonly provingkey_isBondPublicProver: (a: number) => number;
|
|
1716
|
-
readonly provingkey_isClaimUnbondPublicProver: (a: number) => number;
|
|
1717
|
-
readonly provingkey_isFeePrivateProver: (a: number) => number;
|
|
1718
|
-
readonly provingkey_isFeePublicProver: (a: number) => number;
|
|
1719
|
-
readonly provingkey_isInclusionProver: (a: number) => number;
|
|
1720
|
-
readonly provingkey_isJoinProver: (a: number) => number;
|
|
1721
|
-
readonly provingkey_isSetValidatorStateProver: (a: number) => number;
|
|
1722
|
-
readonly provingkey_isSplitProver: (a: number) => number;
|
|
1723
|
-
readonly provingkey_isTransferPrivateProver: (a: number) => number;
|
|
1724
|
-
readonly provingkey_isTransferPrivateToPublicProver: (a: number) => number;
|
|
1725
|
-
readonly provingkey_isTransferPublicProver: (a: number) => number;
|
|
1726
|
-
readonly provingkey_isTransferPublicToPrivateProver: (a: number) => number;
|
|
1727
|
-
readonly provingkey_isUnbondDelegatorAsValidatorProver: (a: number) => number;
|
|
1728
|
-
readonly provingkey_isUnbondPublicProver: (a: number) => number;
|
|
1729
1769
|
readonly verifyingkey_bondPublicVerifier: () => number;
|
|
1730
1770
|
readonly verifyingkey_claimUnbondPublicVerifier: () => number;
|
|
1731
1771
|
readonly verifyingkey_feePrivateVerifier: () => number;
|
|
@@ -1754,20 +1794,17 @@ export interface InitOutput {
|
|
|
1754
1794
|
readonly verifyingkey_isTransferPublicToPrivateVerifier: (a: number) => number;
|
|
1755
1795
|
readonly verifyingkey_isUnbondDelegatorAsValidatorVerifier: (a: number) => number;
|
|
1756
1796
|
readonly verifyingkey_isUnbondPublicVerifier: (a: number) => number;
|
|
1757
|
-
readonly
|
|
1758
|
-
readonly
|
|
1759
|
-
readonly
|
|
1760
|
-
readonly
|
|
1761
|
-
readonly
|
|
1797
|
+
readonly __wbg_jsfield_free: (a: number) => void;
|
|
1798
|
+
readonly jsfield_generate_message_leo: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1799
|
+
readonly jsfield_generate_message_clients: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1800
|
+
readonly __wbg_signature_free: (a: number) => void;
|
|
1801
|
+
readonly signature_sign: (a: number, b: number, c: number) => number;
|
|
1802
|
+
readonly signature_sign_message: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
1803
|
+
readonly signature_verify: (a: number, b: number, c: number, d: number) => number;
|
|
1804
|
+
readonly signature_from_string: (a: number, b: number) => number;
|
|
1805
|
+
readonly signature_to_string: (a: number, b: number) => void;
|
|
1762
1806
|
readonly programmanager_buildJoinTransaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number;
|
|
1763
|
-
readonly
|
|
1764
|
-
readonly verifyingkey_checksum: (a: number, b: number) => void;
|
|
1765
|
-
readonly verifyingkey_copy: (a: number) => number;
|
|
1766
|
-
readonly verifyingkey_fromBytes: (a: number, b: number, c: number) => void;
|
|
1767
|
-
readonly verifyingkey_fromString: (a: number, b: number, c: number) => void;
|
|
1768
|
-
readonly verifyingkey_toBytes: (a: number, b: number) => void;
|
|
1769
|
-
readonly verifyingkey_toString: (a: number, b: number) => void;
|
|
1770
|
-
readonly programmanager_buildSplitTransaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
1807
|
+
readonly programmanager_buildTransferTransaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => number;
|
|
1771
1808
|
readonly programmanager_synthesizeKeyPair: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
1772
1809
|
readonly __wbg_executionresponse_free: (a: number) => void;
|
|
1773
1810
|
readonly executionresponse_getOutputs: (a: number) => number;
|
|
@@ -1784,28 +1821,7 @@ export interface InitOutput {
|
|
|
1784
1821
|
readonly recordplaintext_microcredits: (a: number) => number;
|
|
1785
1822
|
readonly recordplaintext_nonce: (a: number, b: number) => void;
|
|
1786
1823
|
readonly recordplaintext_serialNumberString: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1787
|
-
readonly runRayonThread: (a: number) => void;
|
|
1788
1824
|
readonly __wbg_programmanager_free: (a: number) => void;
|
|
1789
|
-
readonly __wbg_jsfield_free: (a: number) => void;
|
|
1790
|
-
readonly jsfield_generate_message_leo: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1791
|
-
readonly jsfield_generate_message_clients: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1792
|
-
readonly __wbg_signature_free: (a: number) => void;
|
|
1793
|
-
readonly signature_sign: (a: number, b: number, c: number) => number;
|
|
1794
|
-
readonly signature_sign_message: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
1795
|
-
readonly signature_verify: (a: number, b: number, c: number, d: number) => number;
|
|
1796
|
-
readonly signature_from_string: (a: number, b: number) => number;
|
|
1797
|
-
readonly signature_to_string: (a: number, b: number) => void;
|
|
1798
|
-
readonly programmanager_buildTransferTransaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => number;
|
|
1799
|
-
readonly programmanager_buildDeploymentTransaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
1800
|
-
readonly programmanager_estimateDeploymentFee: (a: number, b: number, c: number) => number;
|
|
1801
|
-
readonly programmanager_estimateProgramNameCost: (a: number, b: number, c: number) => void;
|
|
1802
|
-
readonly programmanager_authExecute: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
1803
|
-
readonly programmanager_executeFunctionOffline: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => number;
|
|
1804
|
-
readonly programmanager_buildExecutionTransaction: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => number;
|
|
1805
|
-
readonly programmanager_estimateExecutionFee: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number;
|
|
1806
|
-
readonly programmanager_estimateFinalizeFee: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1807
|
-
readonly initThreadPool: (a: number, b: number) => number;
|
|
1808
|
-
readonly init_panic_hook: () => void;
|
|
1809
1825
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1810
1826
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1811
1827
|
readonly __wbindgen_export_2: WebAssembly.Table;
|