@proto-kit/protocol 0.1.1-develop.600 → 0.1.1-develop.833
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/LICENSE.md +201 -201
- package/dist/blockmodules/AccountStateModule.d.ts +37 -37
- package/dist/blockmodules/AccountStateModule.js +43 -43
- package/dist/blockmodules/BlockHeightHook.d.ts +6 -6
- package/dist/blockmodules/BlockHeightHook.js +15 -15
- package/dist/blockmodules/LastStateRootBlockHook.d.ts +7 -7
- package/dist/blockmodules/LastStateRootBlockHook.js +15 -15
- package/dist/blockmodules/NoopBlockHook.d.ts +8 -8
- package/dist/blockmodules/NoopBlockHook.js +9 -9
- package/dist/blockmodules/NoopSettlementHook.d.ts +5 -5
- package/dist/blockmodules/NoopSettlementHook.d.ts.map +1 -1
- package/dist/blockmodules/NoopSettlementHook.js +18 -18
- package/dist/blockmodules/NoopTransactionHook.d.ts +5 -5
- package/dist/blockmodules/NoopTransactionHook.js +4 -4
- package/dist/hooks/AccountStateHook.d.ts +19 -5
- package/dist/hooks/AccountStateHook.d.ts.map +1 -1
- package/dist/hooks/AccountStateHook.js +15 -9
- package/dist/hooks/BlockHeightHook.d.ts +3 -3
- package/dist/hooks/BlockHeightHook.d.ts.map +1 -1
- package/dist/hooks/BlockHeightHook.js +5 -4
- package/dist/hooks/LastStateRootBlockHook.d.ts +8 -0
- package/dist/hooks/LastStateRootBlockHook.d.ts.map +1 -0
- package/dist/hooks/LastStateRootBlockHook.js +15 -0
- package/dist/hooks/NoopBlockHook.d.ts +6 -4
- package/dist/hooks/NoopBlockHook.d.ts.map +1 -1
- package/dist/hooks/NoopBlockHook.js +4 -4
- package/dist/hooks/NoopSettlementHook.d.ts +6 -0
- package/dist/hooks/NoopSettlementHook.d.ts.map +1 -0
- package/dist/hooks/NoopSettlementHook.js +17 -0
- package/dist/hooks/NoopTransactionHook.d.ts +1 -1
- package/dist/hooks/NoopTransactionHook.d.ts.map +1 -1
- package/dist/hooks/NoopTransactionHook.js +4 -1
- package/dist/index.d.ts +18 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -8
- package/dist/model/MethodPublicOutput.d.ts +68 -34
- package/dist/model/MethodPublicOutput.d.ts.map +1 -1
- package/dist/model/Option.d.ts +39 -19
- package/dist/model/Option.d.ts.map +1 -1
- package/dist/model/Option.js +6 -0
- package/dist/model/Path.d.ts +1 -1
- package/dist/model/Path.d.ts.map +1 -1
- package/dist/model/Path.js +0 -2
- package/dist/model/RuntimeLike.d.ts +11 -0
- package/dist/model/RuntimeLike.d.ts.map +1 -0
- package/dist/model/RuntimeLike.js +1 -0
- package/dist/model/StateTransition.d.ts +51 -14
- package/dist/model/StateTransition.d.ts.map +1 -1
- package/dist/model/StateTransition.js +3 -0
- package/dist/model/StateTransitionProvableBatch.d.ts +71 -14
- package/dist/model/StateTransitionProvableBatch.d.ts.map +1 -1
- package/dist/model/StateTransitionReduction.d.ts +3 -0
- package/dist/model/StateTransitionReduction.d.ts.map +1 -0
- package/dist/model/StateTransitionReduction.js +26 -0
- package/dist/model/network/NetworkState.d.ts +73 -18
- package/dist/model/network/NetworkState.d.ts.map +1 -1
- package/dist/model/network/NetworkState.js +2 -2
- package/dist/model/transaction/ProtocolTransaction.d.ts +69 -69
- package/dist/model/transaction/ProtocolTransaction.js +18 -18
- package/dist/model/transaction/RuntimeTransaction.d.ts +50 -16
- package/dist/model/transaction/RuntimeTransaction.d.ts.map +1 -1
- package/dist/model/transaction/RuntimeTransaction.js +4 -4
- package/dist/model/transaction/SignedTransaction.d.ts +39 -3
- package/dist/model/transaction/SignedTransaction.d.ts.map +1 -1
- package/dist/model/transaction/SignedTransaction.js +1 -1
- package/dist/model/transaction/ValueOption.d.ts +86 -32
- package/dist/model/transaction/ValueOption.d.ts.map +1 -1
- package/dist/model/transaction/ValueOption.js +1 -1
- package/dist/protocol/Protocol.d.ts +14 -20
- package/dist/protocol/Protocol.d.ts.map +1 -1
- package/dist/protocol/Protocol.js +13 -27
- package/dist/protocol/ProtocolEnvironment.d.ts +3 -3
- package/dist/protocol/ProtocolEnvironment.d.ts.map +1 -1
- package/dist/protocol/ProtocolModule.d.ts +1 -0
- package/dist/protocol/ProtocolModule.d.ts.map +1 -1
- package/dist/protocol/ProtocolModule.js +4 -2
- package/dist/protocol/ProvableBlockHook.d.ts +2 -2
- package/dist/protocol/ProvableBlockHook.d.ts.map +1 -1
- package/dist/protocol/ProvableTransactionHook.d.ts +1 -1
- package/dist/protocol/ProvableTransactionHook.d.ts.map +1 -1
- package/dist/prover/block/BlockProvable.d.ts +240 -98
- package/dist/prover/block/BlockProvable.d.ts.map +1 -1
- package/dist/prover/block/BlockProver.d.ts +8 -8
- package/dist/prover/block/BlockProver.d.ts.map +1 -1
- package/dist/prover/block/BlockProver.js +55 -45
- package/dist/prover/block/BlockTransactionPosition.d.ts +35 -35
- package/dist/prover/block/BlockTransactionPosition.js +25 -25
- package/dist/prover/block/BundleTransactionPosition.d.ts +36 -0
- package/dist/prover/block/BundleTransactionPosition.d.ts.map +1 -0
- package/dist/prover/block/BundleTransactionPosition.js +25 -0
- package/dist/prover/block/SplitPrefilledStateService.d.ts +11 -0
- package/dist/prover/block/SplitPrefilledStateService.d.ts.map +1 -0
- package/dist/prover/block/SplitPrefilledStateService.js +1 -0
- package/dist/prover/block/SplitStateService.d.ts +11 -0
- package/dist/prover/block/SplitStateService.d.ts.map +1 -0
- package/dist/prover/block/SplitStateService.js +1 -0
- package/dist/prover/block/accummulators/BlockHashMerkleTree.d.ts +35 -16
- package/dist/prover/block/accummulators/BlockHashMerkleTree.d.ts.map +1 -1
- package/dist/prover/block/accummulators/BlockHashMerkleTree.js +1 -1
- package/dist/prover/block/acummulators/BlockHashMerkleTree.d.ts +45 -0
- package/dist/prover/block/acummulators/BlockHashMerkleTree.d.ts.map +1 -0
- package/dist/prover/block/acummulators/BlockHashMerkleTree.js +16 -0
- package/dist/prover/statetransition/StateTransitionProvable.d.ts +116 -58
- package/dist/prover/statetransition/StateTransitionProvable.d.ts.map +1 -1
- package/dist/prover/statetransition/StateTransitionProver.d.ts +10 -9
- package/dist/prover/statetransition/StateTransitionProver.d.ts.map +1 -1
- package/dist/prover/statetransition/StateTransitionProver.js +18 -22
- package/dist/prover/statetransition/StateTransitionWitnessProvider.js +1 -2
- package/dist/prover/statetransition/StateTransitionWitnessProviderReference.js +1 -2
- package/dist/settlement/ContractModule.d.ts +15 -0
- package/dist/settlement/ContractModule.d.ts.map +1 -0
- package/dist/settlement/ContractModule.js +11 -0
- package/dist/settlement/DispatchContract.d.ts +20 -0
- package/dist/settlement/DispatchContract.d.ts.map +1 -0
- package/dist/settlement/DispatchContract.js +112 -0
- package/dist/settlement/OutgoingMessageArgument.d.ts +109 -0
- package/dist/settlement/OutgoingMessageArgument.d.ts.map +1 -0
- package/dist/settlement/OutgoingMessageArgument.js +32 -0
- package/dist/settlement/ProvableSettlementHook.d.ts +25 -25
- package/dist/settlement/ProvableSettlementHook.js +3 -3
- package/dist/settlement/SettlementContract.d.ts +229 -229
- package/dist/settlement/SettlementContract.js +346 -346
- package/dist/settlement/SettlementContractModule.d.ts +40 -0
- package/dist/settlement/SettlementContractModule.d.ts.map +1 -0
- package/dist/settlement/SettlementContractModule.js +71 -0
- package/dist/settlement/contracts/DispatchContract.d.ts +21 -0
- package/dist/settlement/contracts/DispatchContract.d.ts.map +1 -0
- package/dist/settlement/contracts/DispatchContract.js +111 -0
- package/dist/settlement/contracts/DispatchContractProtocolModule.d.ts +12 -0
- package/dist/settlement/contracts/DispatchContractProtocolModule.d.ts.map +1 -0
- package/dist/{hooks/TransactionFeeHook.js → settlement/contracts/DispatchContractProtocolModule.js} +17 -21
- package/dist/settlement/contracts/DispatchSmartContract.d.ts +22 -0
- package/dist/settlement/contracts/DispatchSmartContract.d.ts.map +1 -0
- package/dist/settlement/contracts/DispatchSmartContract.js +110 -0
- package/dist/settlement/contracts/SettlementContract.d.ts +19 -0
- package/dist/settlement/contracts/SettlementContract.d.ts.map +1 -0
- package/dist/settlement/contracts/SettlementContract.js +43 -0
- package/dist/settlement/contracts/SettlementContractProtocolModule.d.ts +19 -0
- package/dist/settlement/contracts/SettlementContractProtocolModule.d.ts.map +1 -0
- package/dist/settlement/contracts/SettlementContractProtocolModule.js +44 -0
- package/dist/settlement/contracts/SettlementSmartContract.d.ts +42 -0
- package/dist/settlement/contracts/SettlementSmartContract.d.ts.map +1 -0
- package/dist/settlement/contracts/SettlementSmartContract.js +246 -0
- package/dist/settlement/messages/Deposit.d.ts +64 -0
- package/dist/settlement/messages/Deposit.d.ts.map +1 -0
- package/dist/settlement/messages/Deposit.js +6 -0
- package/dist/settlement/messages/OutgoingMessageArgument.d.ts +189 -0
- package/dist/settlement/messages/OutgoingMessageArgument.d.ts.map +1 -0
- package/dist/settlement/messages/OutgoingMessageArgument.js +32 -0
- package/dist/settlement/messages/Withdrawal.d.ts +65 -0
- package/dist/settlement/messages/Withdrawal.d.ts.map +1 -0
- package/dist/settlement/messages/Withdrawal.js +13 -0
- package/dist/settlement/modularity/ProvableSettlementHook.d.ts +24 -0
- package/dist/settlement/modularity/ProvableSettlementHook.d.ts.map +1 -0
- package/dist/settlement/modularity/ProvableSettlementHook.js +3 -0
- package/dist/settlement/modules/NetworkStateSettlementModule.d.ts +3 -3
- package/dist/settlement/modules/NetworkStateSettlementModule.d.ts.map +1 -1
- package/dist/settlement/modules/NetworkStateSettlementModule.js +4 -2
- package/dist/state/State.d.ts +4 -3
- package/dist/state/State.d.ts.map +1 -1
- package/dist/state/State.js +18 -12
- package/dist/state/StateMap.d.ts +3 -3
- package/dist/state/StateMap.d.ts.map +1 -1
- package/dist/state/StateMap.js +4 -5
- package/dist/state/StateService.d.ts +3 -3
- package/dist/state/StateService.d.ts.map +1 -1
- package/dist/state/StateServiceProvider.d.ts +3 -3
- package/dist/state/StateServiceProvider.d.ts.map +1 -1
- package/dist/state/StateServiceProvider.js +1 -3
- package/dist/state/assert/assert.d.ts +1 -1
- package/dist/state/assert/assert.d.ts.map +1 -1
- package/dist/state/assert/assert.js +11 -5
- package/dist/state/context/ProtocolMethodExecutionContext.d.ts +1 -1
- package/dist/state/context/ProtocolMethodExecutionContext.d.ts.map +1 -1
- package/dist/state/context/ProtocolMethodExecutionContext.js +1 -1
- package/dist/state/context/RuntimeMethodExecutionContext.d.ts +55 -4
- package/dist/state/context/RuntimeMethodExecutionContext.d.ts.map +1 -1
- package/dist/state/context/RuntimeMethodExecutionContext.js +6 -6
- package/dist/state/context/TransitionMethodExecutionContext.d.ts.map +1 -1
- package/dist/state/context/TransitionMethodExecutionContext.js +0 -1
- package/dist/state/context/contextExecution.d.ts +14 -0
- package/dist/state/context/contextExecution.d.ts.map +1 -0
- package/dist/state/context/contextExecution.js +30 -0
- package/dist/state/protocol/ProtocolState.d.ts.map +1 -1
- package/dist/state/protocol/ProtocolState.js +0 -3
- package/dist/utils/AppliedBatchHashList.d.ts +17 -0
- package/dist/utils/AppliedBatchHashList.d.ts.map +1 -0
- package/dist/utils/AppliedBatchHashList.js +24 -0
- package/dist/utils/MinaPrefixedProvableHashList.d.ts +2 -2
- package/dist/utils/MinaPrefixedProvableHashList.d.ts.map +1 -1
- package/dist/utils/MinaPrefixedProvableHashList.js +1 -0
- package/dist/utils/PrefixedProvableHashList.d.ts +2 -2
- package/dist/utils/PrefixedProvableHashList.d.ts.map +1 -1
- package/dist/utils/ProvableHashList.d.ts +4 -4
- package/dist/utils/ProvableHashList.d.ts.map +1 -1
- package/dist/utils/ProvableReductionHashList.d.ts +14 -0
- package/dist/utils/ProvableReductionHashList.d.ts.map +1 -0
- package/dist/utils/ProvableReductionHashList.js +50 -0
- package/dist/utils/StateTransitionReductionList.d.ts +11 -0
- package/dist/utils/StateTransitionReductionList.d.ts.map +1 -0
- package/dist/utils/StateTransitionReductionList.js +60 -0
- package/dist/utils/merkletree/InMemoryMerkleTreeStorage.d.ts +11 -0
- package/dist/utils/merkletree/InMemoryMerkleTreeStorage.d.ts.map +1 -0
- package/dist/utils/merkletree/InMemoryMerkleTreeStorage.js +12 -0
- package/dist/utils/merkletree/MerkleTreeStore.d.ts +5 -0
- package/dist/utils/merkletree/MerkleTreeStore.d.ts.map +1 -0
- package/dist/utils/merkletree/MerkleTreeStore.js +1 -0
- package/dist/utils/merkletree/RollupMerkleTree.d.ts +133 -0
- package/dist/utils/merkletree/RollupMerkleTree.d.ts.map +1 -0
- package/dist/utils/merkletree/RollupMerkleTree.js +255 -0
- package/dist/utils/utils.d.ts +1 -1
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +5 -10
- package/package.json +5 -5
- package/src/{blockmodules/AccountStateModule.ts → hooks/AccountStateHook.ts} +13 -9
- package/src/{blockmodules → hooks}/BlockHeightHook.ts +3 -4
- package/src/{blockmodules → hooks}/LastStateRootBlockHook.ts +4 -4
- package/src/{blockmodules → hooks}/NoopBlockHook.ts +6 -5
- package/src/{blockmodules → hooks}/NoopSettlementHook.ts +3 -4
- package/src/{blockmodules → hooks}/NoopTransactionHook.ts +5 -1
- package/src/index.ts +18 -8
- package/src/model/MethodPublicOutput.ts +2 -2
- package/src/model/Option.ts +21 -1
- package/src/model/Path.ts +1 -3
- package/src/model/RuntimeLike.ts +12 -0
- package/src/model/StateTransition.ts +9 -1
- package/src/model/Transaction.ts +2 -0
- package/src/model/network/NetworkState.ts +2 -2
- package/src/model/transaction/RuntimeTransaction.ts +5 -12
- package/src/model/transaction/SignedTransaction.ts +1 -8
- package/src/model/transaction/ValueOption.ts +1 -1
- package/src/protocol/Protocol.ts +34 -48
- package/src/protocol/ProtocolEnvironment.ts +7 -6
- package/src/protocol/ProtocolModule.ts +8 -4
- package/src/protocol/ProvableBlockHook.ts +3 -3
- package/src/protocol/ProvableTransactionHook.ts +4 -2
- package/src/protocol/TransitioningProtocolModule.ts +1 -1
- package/src/prover/block/BlockProvable.ts +3 -3
- package/src/prover/block/BlockProver.ts +98 -63
- package/src/prover/block/accummulators/BlockHashMerkleTree.ts +2 -2
- package/src/prover/statetransition/StateTransitionProvable.ts +3 -3
- package/src/prover/statetransition/StateTransitionProver.ts +26 -28
- package/src/settlement/ContractModule.ts +24 -0
- package/src/settlement/SettlementContractModule.ts +132 -0
- package/src/settlement/contracts/DispatchContractProtocolModule.ts +39 -0
- package/src/settlement/contracts/DispatchSmartContract.ts +136 -0
- package/src/settlement/contracts/SettlementContractProtocolModule.ts +67 -0
- package/src/settlement/contracts/SettlementSmartContract.ts +350 -0
- package/src/settlement/messages/Deposit.ts +6 -0
- package/src/settlement/messages/OutgoingMessageArgument.ts +42 -0
- package/src/settlement/messages/Withdrawal.ts +14 -0
- package/src/settlement/{ProvableSettlementHook.ts → modularity/ProvableSettlementHook.ts} +9 -13
- package/src/settlement/modules/NetworkStateSettlementModule.ts +8 -5
- package/src/state/State.ts +21 -13
- package/src/state/StateMap.ts +4 -5
- package/src/state/StateService.ts +3 -3
- package/src/state/StateServiceProvider.ts +6 -7
- package/src/state/assert/assert.ts +13 -7
- package/src/state/context/RuntimeMethodExecutionContext.ts +13 -7
- package/src/state/context/TransitionMethodExecutionContext.ts +0 -1
- package/src/state/protocol/ProtocolState.ts +1 -4
- package/src/utils/MinaPrefixedProvableHashList.ts +4 -3
- package/src/utils/PrefixedProvableHashList.ts +2 -2
- package/src/utils/ProvableHashList.ts +2 -2
- package/src/utils/ProvableReductionHashList.ts +68 -0
- package/src/utils/StateTransitionReductionList.ts +89 -0
- package/src/utils/utils.ts +4 -9
- package/test/BlockProver.test.ts +110 -128
- package/test/Protocol.test.ts +14 -21
- package/test/State.test.ts +8 -8
- package/test/StateTransition.test.ts +56 -66
- package/test/TestingProtocol.ts +48 -0
- package/test/model/Option.test.ts +72 -0
- package/{src → test}/state/assert/assert.test.ts +4 -4
- package/test/tsconfig.json +7 -0
- package/test/utils/ProvableReductionHashList.test.ts +117 -0
- package/test/utils.test.ts +0 -3
- package/dist/hooks/TransactionFeeHook.d.ts +0 -16
- package/dist/hooks/TransactionFeeHook.d.ts.map +0 -1
- package/src/blockmodules/SequenceStateTransactionModule.ts +0 -25
- package/src/model/Option.test.ts +0 -21
- package/src/settlement/SettlementContract.ts +0 -444
- package/src/state/context/ProtocolMethodExecutionContext.ts +0 -36
- package/test/Option.test.ts +0 -64
- package/tsconfig.test.json +0 -9
|
@@ -5,14 +5,25 @@ declare const CurrentBlock_base: (new (value: {
|
|
|
5
5
|
height: UInt64;
|
|
6
6
|
}) & {
|
|
7
7
|
_isStruct: true;
|
|
8
|
-
} & import("o1js/dist/node/
|
|
8
|
+
} & Omit<import("o1js/dist/node/lib/provable/types/provable-intf").Provable<{
|
|
9
9
|
height: UInt64;
|
|
10
|
-
}
|
|
10
|
+
}, {
|
|
11
|
+
height: bigint;
|
|
12
|
+
}>, "fromFields"> & {
|
|
13
|
+
fromFields: (fields: import("o1js/dist/node/lib/provable/field").Field[]) => {
|
|
14
|
+
height: UInt64;
|
|
15
|
+
};
|
|
16
|
+
} & {
|
|
17
|
+
fromValue: (value: {
|
|
18
|
+
height: bigint | UInt64;
|
|
19
|
+
}) => {
|
|
20
|
+
height: UInt64;
|
|
21
|
+
};
|
|
11
22
|
toInput: (x: {
|
|
12
23
|
height: UInt64;
|
|
13
24
|
}) => {
|
|
14
|
-
fields?: import("o1js/dist/node/lib/field").Field[] | undefined;
|
|
15
|
-
packed?: [import("o1js/dist/node/lib/field").Field, number][] | undefined;
|
|
25
|
+
fields?: import("o1js/dist/node/lib/provable/field").Field[] | undefined;
|
|
26
|
+
packed?: [import("o1js/dist/node/lib/provable/field").Field, number][] | undefined;
|
|
16
27
|
};
|
|
17
28
|
toJSON: (x: {
|
|
18
29
|
height: UInt64;
|
|
@@ -24,33 +35,50 @@ declare const CurrentBlock_base: (new (value: {
|
|
|
24
35
|
}) => {
|
|
25
36
|
height: UInt64;
|
|
26
37
|
};
|
|
38
|
+
empty: () => {
|
|
39
|
+
height: UInt64;
|
|
40
|
+
};
|
|
27
41
|
};
|
|
28
42
|
export declare class CurrentBlock extends CurrentBlock_base {
|
|
29
43
|
}
|
|
30
44
|
declare const PreviousBlock_base: (new (value: {
|
|
31
|
-
rootHash: import("o1js/dist/node/lib/field").Field;
|
|
45
|
+
rootHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
32
46
|
}) => {
|
|
33
|
-
rootHash: import("o1js/dist/node/lib/field").Field;
|
|
47
|
+
rootHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
34
48
|
}) & {
|
|
35
49
|
_isStruct: true;
|
|
36
|
-
} & import("o1js/dist/node/
|
|
37
|
-
rootHash: import("o1js/dist/node/lib/field").Field;
|
|
38
|
-
}
|
|
50
|
+
} & Omit<import("o1js/dist/node/lib/provable/types/provable-intf").Provable<{
|
|
51
|
+
rootHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
52
|
+
}, {
|
|
53
|
+
rootHash: bigint;
|
|
54
|
+
}>, "fromFields"> & {
|
|
55
|
+
fromFields: (fields: import("o1js/dist/node/lib/provable/field").Field[]) => {
|
|
56
|
+
rootHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
57
|
+
};
|
|
58
|
+
} & {
|
|
59
|
+
fromValue: (value: {
|
|
60
|
+
rootHash: string | number | bigint | import("o1js/dist/node/lib/provable/field").Field;
|
|
61
|
+
}) => {
|
|
62
|
+
rootHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
63
|
+
};
|
|
39
64
|
toInput: (x: {
|
|
40
|
-
rootHash: import("o1js/dist/node/lib/field").Field;
|
|
65
|
+
rootHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
41
66
|
}) => {
|
|
42
|
-
fields?: import("o1js/dist/node/lib/field").Field[] | undefined;
|
|
43
|
-
packed?: [import("o1js/dist/node/lib/field").Field, number][] | undefined;
|
|
67
|
+
fields?: import("o1js/dist/node/lib/provable/field").Field[] | undefined;
|
|
68
|
+
packed?: [import("o1js/dist/node/lib/provable/field").Field, number][] | undefined;
|
|
44
69
|
};
|
|
45
70
|
toJSON: (x: {
|
|
46
|
-
rootHash: import("o1js/dist/node/lib/field").Field;
|
|
71
|
+
rootHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
47
72
|
}) => {
|
|
48
73
|
rootHash: string;
|
|
49
74
|
};
|
|
50
75
|
fromJSON: (x: {
|
|
51
76
|
rootHash: string;
|
|
52
77
|
}) => {
|
|
53
|
-
rootHash: import("o1js/dist/node/lib/field").Field;
|
|
78
|
+
rootHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
79
|
+
};
|
|
80
|
+
empty: () => {
|
|
81
|
+
rootHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
54
82
|
};
|
|
55
83
|
};
|
|
56
84
|
export declare class PreviousBlock extends PreviousBlock_base {
|
|
@@ -63,16 +91,39 @@ declare const NetworkState_base: (new (value: {
|
|
|
63
91
|
previous: PreviousBlock;
|
|
64
92
|
}) & {
|
|
65
93
|
_isStruct: true;
|
|
66
|
-
} & import("o1js/dist/node/
|
|
94
|
+
} & Omit<import("o1js/dist/node/lib/provable/types/provable-intf").Provable<{
|
|
67
95
|
block: CurrentBlock;
|
|
68
96
|
previous: PreviousBlock;
|
|
69
|
-
}
|
|
97
|
+
}, {
|
|
98
|
+
block: {
|
|
99
|
+
height: bigint;
|
|
100
|
+
};
|
|
101
|
+
previous: {
|
|
102
|
+
rootHash: bigint;
|
|
103
|
+
};
|
|
104
|
+
}>, "fromFields"> & {
|
|
105
|
+
fromFields: (fields: import("o1js/dist/node/lib/provable/field").Field[]) => {
|
|
106
|
+
block: CurrentBlock;
|
|
107
|
+
previous: PreviousBlock;
|
|
108
|
+
};
|
|
109
|
+
} & {
|
|
110
|
+
fromValue: (value: {
|
|
111
|
+
block: CurrentBlock | {
|
|
112
|
+
height: bigint | UInt64;
|
|
113
|
+
};
|
|
114
|
+
previous: PreviousBlock | {
|
|
115
|
+
rootHash: string | number | bigint | import("o1js/dist/node/lib/provable/field").Field;
|
|
116
|
+
};
|
|
117
|
+
}) => {
|
|
118
|
+
block: CurrentBlock;
|
|
119
|
+
previous: PreviousBlock;
|
|
120
|
+
};
|
|
70
121
|
toInput: (x: {
|
|
71
122
|
block: CurrentBlock;
|
|
72
123
|
previous: PreviousBlock;
|
|
73
124
|
}) => {
|
|
74
|
-
fields?: import("o1js/dist/node/lib/field").Field[] | undefined;
|
|
75
|
-
packed?: [import("o1js/dist/node/lib/field").Field, number][] | undefined;
|
|
125
|
+
fields?: import("o1js/dist/node/lib/provable/field").Field[] | undefined;
|
|
126
|
+
packed?: [import("o1js/dist/node/lib/provable/field").Field, number][] | undefined;
|
|
76
127
|
};
|
|
77
128
|
toJSON: (x: {
|
|
78
129
|
block: CurrentBlock;
|
|
@@ -96,6 +147,10 @@ declare const NetworkState_base: (new (value: {
|
|
|
96
147
|
block: CurrentBlock;
|
|
97
148
|
previous: PreviousBlock;
|
|
98
149
|
};
|
|
150
|
+
empty: () => {
|
|
151
|
+
block: CurrentBlock;
|
|
152
|
+
previous: PreviousBlock;
|
|
153
|
+
};
|
|
99
154
|
};
|
|
100
155
|
export declare class NetworkState extends NetworkState_base {
|
|
101
156
|
hash(): Field;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkState.d.ts","sourceRoot":"","sources":["../../../src/model/network/NetworkState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,MAAM,EAAE,MAAM,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"NetworkState.d.ts","sourceRoot":"","sources":["../../../src/model/network/NetworkState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,MAAM,EAAE,MAAM,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGvD,qBAAa,YAAa,SAAQ,iBAEhC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,aAAc,SAAQ,kBAEjC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,YAAa,SAAQ,iBAGhC;IACO,IAAI,IAAI,KAAK;WAON,KAAK;CAUpB"}
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import { Bool, Field, PublicKey, Signature, UInt64 } from "o1js";
|
|
2
|
-
declare const ProtocolTransaction_base: (new (value: {
|
|
3
|
-
methodId: import("o1js/dist/node/lib/field").Field;
|
|
4
|
-
nonce: UInt64;
|
|
5
|
-
sender: PublicKey;
|
|
6
|
-
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
7
|
-
signature: Signature;
|
|
8
|
-
}) => {
|
|
9
|
-
methodId: import("o1js/dist/node/lib/field").Field;
|
|
10
|
-
nonce: UInt64;
|
|
11
|
-
sender: PublicKey;
|
|
12
|
-
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
13
|
-
signature: Signature;
|
|
14
|
-
}) & {
|
|
15
|
-
_isStruct: true;
|
|
16
|
-
} & import("o1js/dist/node/snarky").ProvablePure<{
|
|
17
|
-
methodId: import("o1js/dist/node/lib/field").Field;
|
|
18
|
-
nonce: UInt64;
|
|
19
|
-
sender: PublicKey;
|
|
20
|
-
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
21
|
-
signature: Signature;
|
|
22
|
-
}> & {
|
|
23
|
-
toInput: (x: {
|
|
24
|
-
methodId: import("o1js/dist/node/lib/field").Field;
|
|
25
|
-
nonce: UInt64;
|
|
26
|
-
sender: PublicKey;
|
|
27
|
-
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
28
|
-
signature: Signature;
|
|
29
|
-
}) => {
|
|
30
|
-
fields?: import("o1js/dist/node/lib/field").Field[] | undefined;
|
|
31
|
-
packed?: [import("o1js/dist/node/lib/field").Field, number][] | undefined;
|
|
32
|
-
};
|
|
33
|
-
toJSON: (x: {
|
|
34
|
-
methodId: import("o1js/dist/node/lib/field").Field;
|
|
35
|
-
nonce: UInt64;
|
|
36
|
-
sender: PublicKey;
|
|
37
|
-
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
38
|
-
signature: Signature;
|
|
39
|
-
}) => {
|
|
40
|
-
methodId: string;
|
|
41
|
-
nonce: string;
|
|
42
|
-
sender: string;
|
|
43
|
-
argsHash: string;
|
|
44
|
-
signature: any;
|
|
45
|
-
};
|
|
46
|
-
fromJSON: (x: {
|
|
47
|
-
methodId: string;
|
|
48
|
-
nonce: string;
|
|
49
|
-
sender: string;
|
|
50
|
-
argsHash: string;
|
|
51
|
-
signature: any;
|
|
52
|
-
}) => {
|
|
53
|
-
methodId: import("o1js/dist/node/lib/field").Field;
|
|
54
|
-
nonce: UInt64;
|
|
55
|
-
sender: PublicKey;
|
|
56
|
-
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
57
|
-
signature: Signature;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
export declare class ProtocolTransaction extends ProtocolTransaction_base {
|
|
61
|
-
static getSignatureData(args: {
|
|
62
|
-
methodId: Field;
|
|
63
|
-
nonce: UInt64;
|
|
64
|
-
argsHash: Field;
|
|
65
|
-
}): Field[];
|
|
66
|
-
getSignatureData(): Field[];
|
|
67
|
-
validateSignature(): Bool;
|
|
68
|
-
}
|
|
69
|
-
export {};
|
|
1
|
+
import { Bool, Field, PublicKey, Signature, UInt64 } from "o1js";
|
|
2
|
+
declare const ProtocolTransaction_base: (new (value: {
|
|
3
|
+
methodId: import("o1js/dist/node/lib/field").Field;
|
|
4
|
+
nonce: UInt64;
|
|
5
|
+
sender: PublicKey;
|
|
6
|
+
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
7
|
+
signature: Signature;
|
|
8
|
+
}) => {
|
|
9
|
+
methodId: import("o1js/dist/node/lib/field").Field;
|
|
10
|
+
nonce: UInt64;
|
|
11
|
+
sender: PublicKey;
|
|
12
|
+
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
13
|
+
signature: Signature;
|
|
14
|
+
}) & {
|
|
15
|
+
_isStruct: true;
|
|
16
|
+
} & import("o1js/dist/node/snarky").ProvablePure<{
|
|
17
|
+
methodId: import("o1js/dist/node/lib/field").Field;
|
|
18
|
+
nonce: UInt64;
|
|
19
|
+
sender: PublicKey;
|
|
20
|
+
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
21
|
+
signature: Signature;
|
|
22
|
+
}> & {
|
|
23
|
+
toInput: (x: {
|
|
24
|
+
methodId: import("o1js/dist/node/lib/field").Field;
|
|
25
|
+
nonce: UInt64;
|
|
26
|
+
sender: PublicKey;
|
|
27
|
+
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
28
|
+
signature: Signature;
|
|
29
|
+
}) => {
|
|
30
|
+
fields?: import("o1js/dist/node/lib/field").Field[] | undefined;
|
|
31
|
+
packed?: [import("o1js/dist/node/lib/field").Field, number][] | undefined;
|
|
32
|
+
};
|
|
33
|
+
toJSON: (x: {
|
|
34
|
+
methodId: import("o1js/dist/node/lib/field").Field;
|
|
35
|
+
nonce: UInt64;
|
|
36
|
+
sender: PublicKey;
|
|
37
|
+
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
38
|
+
signature: Signature;
|
|
39
|
+
}) => {
|
|
40
|
+
methodId: string;
|
|
41
|
+
nonce: string;
|
|
42
|
+
sender: string;
|
|
43
|
+
argsHash: string;
|
|
44
|
+
signature: any;
|
|
45
|
+
};
|
|
46
|
+
fromJSON: (x: {
|
|
47
|
+
methodId: string;
|
|
48
|
+
nonce: string;
|
|
49
|
+
sender: string;
|
|
50
|
+
argsHash: string;
|
|
51
|
+
signature: any;
|
|
52
|
+
}) => {
|
|
53
|
+
methodId: import("o1js/dist/node/lib/field").Field;
|
|
54
|
+
nonce: UInt64;
|
|
55
|
+
sender: PublicKey;
|
|
56
|
+
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
57
|
+
signature: Signature;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare class ProtocolTransaction extends ProtocolTransaction_base {
|
|
61
|
+
static getSignatureData(args: {
|
|
62
|
+
methodId: Field;
|
|
63
|
+
nonce: UInt64;
|
|
64
|
+
argsHash: Field;
|
|
65
|
+
}): Field[];
|
|
66
|
+
getSignatureData(): Field[];
|
|
67
|
+
validateSignature(): Bool;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
70
70
|
//# sourceMappingURL=ProtocolTransaction.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Field, PublicKey, Signature, Struct, UInt64 } from "o1js";
|
|
2
|
-
export class ProtocolTransaction extends Struct({
|
|
3
|
-
methodId: Field,
|
|
4
|
-
nonce: UInt64,
|
|
5
|
-
sender: PublicKey,
|
|
6
|
-
argsHash: Field,
|
|
7
|
-
signature: Signature,
|
|
8
|
-
}) {
|
|
9
|
-
static getSignatureData(args) {
|
|
10
|
-
return [args.methodId, ...args.nonce.toFields(), args.argsHash];
|
|
11
|
-
}
|
|
12
|
-
getSignatureData() {
|
|
13
|
-
return ProtocolTransaction.getSignatureData(this);
|
|
14
|
-
}
|
|
15
|
-
validateSignature() {
|
|
16
|
-
return this.signature.verify(this.sender, this.getSignatureData());
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
import { Field, PublicKey, Signature, Struct, UInt64 } from "o1js";
|
|
2
|
+
export class ProtocolTransaction extends Struct({
|
|
3
|
+
methodId: Field,
|
|
4
|
+
nonce: UInt64,
|
|
5
|
+
sender: PublicKey,
|
|
6
|
+
argsHash: Field,
|
|
7
|
+
signature: Signature,
|
|
8
|
+
}) {
|
|
9
|
+
static getSignatureData(args) {
|
|
10
|
+
return [args.methodId, ...args.nonce.toFields(), args.argsHash];
|
|
11
|
+
}
|
|
12
|
+
getSignatureData() {
|
|
13
|
+
return ProtocolTransaction.getSignatureData(this);
|
|
14
|
+
}
|
|
15
|
+
validateSignature() {
|
|
16
|
+
return this.signature.verify(this.sender, this.getSignatureData());
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,35 +1,63 @@
|
|
|
1
|
-
import { Bool, Field,
|
|
1
|
+
import { Bool, Field, PublicKey, UInt64 } from "o1js";
|
|
2
2
|
import { PublicKeyOption, UInt64Option } from "./ValueOption";
|
|
3
3
|
declare const RuntimeTransaction_base: (new (value: {
|
|
4
|
-
methodId: import("o1js/dist/node/lib/field").Field;
|
|
5
|
-
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
4
|
+
methodId: import("o1js/dist/node/lib/provable/field").Field;
|
|
5
|
+
argsHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
6
6
|
nonce: UInt64Option;
|
|
7
7
|
sender: PublicKeyOption;
|
|
8
8
|
}) => {
|
|
9
|
-
methodId: import("o1js/dist/node/lib/field").Field;
|
|
10
|
-
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
9
|
+
methodId: import("o1js/dist/node/lib/provable/field").Field;
|
|
10
|
+
argsHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
11
11
|
nonce: UInt64Option;
|
|
12
12
|
sender: PublicKeyOption;
|
|
13
13
|
}) & {
|
|
14
14
|
_isStruct: true;
|
|
15
|
-
} & Provable<{
|
|
16
|
-
methodId: import("o1js/dist/node/lib/field").Field;
|
|
17
|
-
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
15
|
+
} & import("o1js/dist/node/lib/provable/provable").Provable<{
|
|
16
|
+
methodId: import("o1js/dist/node/lib/provable/field").Field;
|
|
17
|
+
argsHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
18
18
|
nonce: UInt64Option;
|
|
19
19
|
sender: PublicKeyOption;
|
|
20
|
+
}, {
|
|
21
|
+
methodId: bigint;
|
|
22
|
+
argsHash: bigint;
|
|
23
|
+
nonce: {
|
|
24
|
+
isSome: boolean;
|
|
25
|
+
value: any;
|
|
26
|
+
};
|
|
27
|
+
sender: {
|
|
28
|
+
isSome: boolean;
|
|
29
|
+
value: any;
|
|
30
|
+
};
|
|
20
31
|
}> & {
|
|
32
|
+
fromValue: (value: {
|
|
33
|
+
methodId: string | number | bigint | import("o1js/dist/node/lib/provable/field").Field;
|
|
34
|
+
argsHash: string | number | bigint | import("o1js/dist/node/lib/provable/field").Field;
|
|
35
|
+
nonce: UInt64Option | {
|
|
36
|
+
isSome: boolean | import("o1js/dist/node/lib/provable/bool").Bool;
|
|
37
|
+
value: any;
|
|
38
|
+
};
|
|
39
|
+
sender: PublicKeyOption | {
|
|
40
|
+
isSome: boolean | import("o1js/dist/node/lib/provable/bool").Bool;
|
|
41
|
+
value: any;
|
|
42
|
+
};
|
|
43
|
+
}) => {
|
|
44
|
+
methodId: import("o1js/dist/node/lib/provable/field").Field;
|
|
45
|
+
argsHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
46
|
+
nonce: UInt64Option;
|
|
47
|
+
sender: PublicKeyOption;
|
|
48
|
+
};
|
|
21
49
|
toInput: (x: {
|
|
22
|
-
methodId: import("o1js/dist/node/lib/field").Field;
|
|
23
|
-
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
50
|
+
methodId: import("o1js/dist/node/lib/provable/field").Field;
|
|
51
|
+
argsHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
24
52
|
nonce: UInt64Option;
|
|
25
53
|
sender: PublicKeyOption;
|
|
26
54
|
}) => {
|
|
27
|
-
fields?: import("o1js/dist/node/lib/field").Field[] | undefined;
|
|
28
|
-
packed?: [import("o1js/dist/node/lib/field").Field, number][] | undefined;
|
|
55
|
+
fields?: import("o1js/dist/node/lib/provable/field").Field[] | undefined;
|
|
56
|
+
packed?: [import("o1js/dist/node/lib/provable/field").Field, number][] | undefined;
|
|
29
57
|
};
|
|
30
58
|
toJSON: (x: {
|
|
31
|
-
methodId: import("o1js/dist/node/lib/field").Field;
|
|
32
|
-
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
59
|
+
methodId: import("o1js/dist/node/lib/provable/field").Field;
|
|
60
|
+
argsHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
33
61
|
nonce: UInt64Option;
|
|
34
62
|
sender: PublicKeyOption;
|
|
35
63
|
}) => {
|
|
@@ -56,8 +84,14 @@ declare const RuntimeTransaction_base: (new (value: {
|
|
|
56
84
|
value: any;
|
|
57
85
|
};
|
|
58
86
|
}) => {
|
|
59
|
-
methodId: import("o1js/dist/node/lib/field").Field;
|
|
60
|
-
argsHash: import("o1js/dist/node/lib/field").Field;
|
|
87
|
+
methodId: import("o1js/dist/node/lib/provable/field").Field;
|
|
88
|
+
argsHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
89
|
+
nonce: UInt64Option;
|
|
90
|
+
sender: PublicKeyOption;
|
|
91
|
+
};
|
|
92
|
+
empty: () => {
|
|
93
|
+
methodId: import("o1js/dist/node/lib/provable/field").Field;
|
|
94
|
+
argsHash: import("o1js/dist/node/lib/provable/field").Field;
|
|
61
95
|
nonce: UInt64Option;
|
|
62
96
|
sender: PublicKeyOption;
|
|
63
97
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeTransaction.d.ts","sourceRoot":"","sources":["../../../src/model/transaction/RuntimeTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RuntimeTransaction.d.ts","sourceRoot":"","sources":["../../../src/model/transaction/RuntimeTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAY,SAAS,EAAU,MAAM,EAAE,MAAM,MAAM,CAAC;AAGxE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9D;;;;GAIG;AACH,qBAAa,kBAAmB,SAAQ,uBAKtC;WACc,eAAe,CAAC,KAAK,EAAE;QACnC,QAAQ,EAAE,KAAK,CAAC;QAChB,QAAQ,EAAE,KAAK,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,SAAS,CAAC;KACnB;WASa,WAAW,CAAC,EACxB,QAAQ,EACR,QAAQ,GACT,EAAE;QACD,QAAQ,EAAE,KAAK,CAAC;QAChB,QAAQ,EAAE,KAAK,CAAC;KACjB;WASa,gBAAgB,IAAI,kBAAkB;IAe7C,qBAAqB,CAAC,SAAS,EAAE,IAAI;IAerC,QAAQ,IAAI,KAAK,EAAE;WASZ,YAAY,CAAC,MAAM,EAAE,KAAK,EAAE;IAiBnC,IAAI,IAAI,KAAK;CAGrB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Bool, Field, Poseidon, PublicKey, Struct, UInt64
|
|
2
|
-
import { PublicKeyOption, UInt64Option } from "./ValueOption";
|
|
1
|
+
import { Bool, Field, Poseidon, PublicKey, Struct, UInt64 } from "o1js";
|
|
3
2
|
import { EMPTY_PUBLICKEY, EMPTY_PUBLICKEY_X } from "@proto-kit/common";
|
|
3
|
+
import { PublicKeyOption, UInt64Option } from "./ValueOption";
|
|
4
4
|
/**
|
|
5
5
|
* This struct is used to expose transaction information to the runtime method
|
|
6
6
|
* execution. This class has not all data included in transactions on purpose.
|
|
@@ -16,8 +16,8 @@ export class RuntimeTransaction extends Struct({
|
|
|
16
16
|
return new RuntimeTransaction({
|
|
17
17
|
methodId: input.methodId,
|
|
18
18
|
argsHash: input.argsHash,
|
|
19
|
-
nonce: UInt64Option.
|
|
20
|
-
sender: PublicKeyOption.
|
|
19
|
+
nonce: UInt64Option.fromSome(input.nonce),
|
|
20
|
+
sender: PublicKeyOption.fromSome(input.sender),
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
static fromMessage({ methodId, argsHash, }) {
|
|
@@ -8,16 +8,48 @@ declare const SignedTransaction_base: (new (value: {
|
|
|
8
8
|
signature: Signature;
|
|
9
9
|
}) & {
|
|
10
10
|
_isStruct: true;
|
|
11
|
-
} & import("o1js/dist/node/lib/provable").Provable<{
|
|
11
|
+
} & import("o1js/dist/node/lib/provable/provable").Provable<{
|
|
12
12
|
transaction: RuntimeTransaction;
|
|
13
13
|
signature: Signature;
|
|
14
|
+
}, {
|
|
15
|
+
transaction: {
|
|
16
|
+
methodId: bigint;
|
|
17
|
+
argsHash: bigint;
|
|
18
|
+
nonce: {
|
|
19
|
+
isSome: boolean;
|
|
20
|
+
value: any;
|
|
21
|
+
};
|
|
22
|
+
sender: {
|
|
23
|
+
isSome: boolean;
|
|
24
|
+
value: any;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
signature: any;
|
|
14
28
|
}> & {
|
|
29
|
+
fromValue: (value: {
|
|
30
|
+
transaction: RuntimeTransaction | {
|
|
31
|
+
methodId: string | number | bigint | import("o1js/dist/node/lib/provable/field").Field;
|
|
32
|
+
argsHash: string | number | bigint | import("o1js/dist/node/lib/provable/field").Field;
|
|
33
|
+
nonce: import("./ValueOption").UInt64Option | {
|
|
34
|
+
isSome: boolean | import("o1js/dist/node/lib/provable/bool").Bool;
|
|
35
|
+
value: any;
|
|
36
|
+
};
|
|
37
|
+
sender: import("./ValueOption").PublicKeyOption | {
|
|
38
|
+
isSome: boolean | import("o1js/dist/node/lib/provable/bool").Bool;
|
|
39
|
+
value: any;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
signature: any;
|
|
43
|
+
}) => {
|
|
44
|
+
transaction: RuntimeTransaction;
|
|
45
|
+
signature: Signature;
|
|
46
|
+
};
|
|
15
47
|
toInput: (x: {
|
|
16
48
|
transaction: RuntimeTransaction;
|
|
17
49
|
signature: Signature;
|
|
18
50
|
}) => {
|
|
19
|
-
fields?: import("o1js/dist/node/lib/field").Field[] | undefined;
|
|
20
|
-
packed?: [import("o1js/dist/node/lib/field").Field, number][] | undefined;
|
|
51
|
+
fields?: import("o1js/dist/node/lib/provable/field").Field[] | undefined;
|
|
52
|
+
packed?: [import("o1js/dist/node/lib/provable/field").Field, number][] | undefined;
|
|
21
53
|
};
|
|
22
54
|
toJSON: (x: {
|
|
23
55
|
transaction: RuntimeTransaction;
|
|
@@ -55,6 +87,10 @@ declare const SignedTransaction_base: (new (value: {
|
|
|
55
87
|
transaction: RuntimeTransaction;
|
|
56
88
|
signature: Signature;
|
|
57
89
|
};
|
|
90
|
+
empty: () => {
|
|
91
|
+
transaction: RuntimeTransaction;
|
|
92
|
+
signature: Signature;
|
|
93
|
+
};
|
|
58
94
|
};
|
|
59
95
|
export declare class SignedTransaction extends SignedTransaction_base {
|
|
60
96
|
static getSignatureData(args: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignedTransaction.d.ts","sourceRoot":"","sources":["../../../src/model/transaction/SignedTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SignedTransaction.d.ts","sourceRoot":"","sources":["../../../src/model/transaction/SignedTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAU,SAAS,EAAU,MAAM,EAAE,MAAM,MAAM,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1D,qBAAa,iBAAkB,SAAQ,sBAGrC;WACc,gBAAgB,CAAC,IAAI,EAAE;QACnC,QAAQ,EAAE,KAAK,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,KAAK,CAAC;KACjB,GAAG,KAAK,EAAE;WAIG,KAAK,IAAI,iBAAiB;IAWjC,IAAI,IAAI,KAAK;IAIb,gBAAgB,IAAI,KAAK,EAAE;IAS3B,iBAAiB,IAAI,IAAI;CAMjC"}
|