Skip to content

Commit

Permalink
array result
Browse files Browse the repository at this point in the history
  • Loading branch information
jordipainan committed Jan 9, 2025
1 parent 6722509 commit 7f6cc2d
Show file tree
Hide file tree
Showing 19 changed files with 47 additions and 47 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/81b1f4577ac87fb089bb8286e5c2ac86.json"
"buildInfo": "../../../../build-info/7399ab84abc026ab9edbc2065a956d1b.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../../build-info/81b1f4577ac87fb089bb8286e5c2ac86.json"
"buildInfo": "../../../../../build-info/7399ab84abc026ab9edbc2065a956d1b.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../../build-info/81b1f4577ac87fb089bb8286e5c2ac86.json"
"buildInfo": "../../../../../build-info/7399ab84abc026ab9edbc2065a956d1b.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/81b1f4577ac87fb089bb8286e5c2ac86.json"
"buildInfo": "../../../../build-info/7399ab84abc026ab9edbc2065a956d1b.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/81b1f4577ac87fb089bb8286e5c2ac86.json"
"buildInfo": "../../../../build-info/7399ab84abc026ab9edbc2065a956d1b.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../../build-info/81b1f4577ac87fb089bb8286e5c2ac86.json"
"buildInfo": "../../../../../build-info/7399ab84abc026ab9edbc2065a956d1b.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../../build-info/81b1f4577ac87fb089bb8286e5c2ac86.json"
"buildInfo": "../../../../../build-info/7399ab84abc026ab9edbc2065a956d1b.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/81b1f4577ac87fb089bb8286e5c2ac86.json"
"buildInfo": "../../../../build-info/7399ab84abc026ab9edbc2065a956d1b.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/81b1f4577ac87fb089bb8286e5c2ac86.json"
"buildInfo": "../../../../build-info/7399ab84abc026ab9edbc2065a956d1b.json"
}
1 change: 1 addition & 0 deletions artifacts/build-info/7399ab84abc026ab9edbc2065a956d1b.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion artifacts/build-info/81b1f4577ac87fb089bb8286e5c2ac86.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../build-info/81b1f4577ac87fb089bb8286e5c2ac86.json"
"buildInfo": "../../build-info/7399ab84abc026ab9edbc2065a956d1b.json"
}
2 changes: 1 addition & 1 deletion artifacts/src/ProcessRegistry.sol/ProcessRegistry.dbg.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../build-info/81b1f4577ac87fb089bb8286e5c2ac86.json"
"buildInfo": "../../build-info/7399ab84abc026ab9edbc2065a956d1b.json"
}
12 changes: 6 additions & 6 deletions artifacts/src/ProcessRegistry.sol/ProcessRegistry.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../build-info/81b1f4577ac87fb089bb8286e5c2ac86.json"
"buildInfo": "../../build-info/7399ab84abc026ab9edbc2065a956d1b.json"
}
28 changes: 14 additions & 14 deletions golang-types/ProcessRegistry.go

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/ProcessRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ contract ProcessRegistry is Initializable, UUPSUpgradeable, OwnableUpgradeable {
bytes32 organizationId;
bytes32[2] encryptionKeys;
bytes32 latestStateRoot;
uint256[][] result;
uint256[] result;
uint256 startTime;
uint256 duration;
string metadataURI;
Expand Down Expand Up @@ -280,7 +280,7 @@ contract ProcessRegistry is Initializable, UUPSUpgradeable, OwnableUpgradeable {
organizationId: _organizationID,
encryptionKeys: [_encryptionPubKey, bytes32(0)],
latestStateRoot: _initStateRoot,
result: new uint256[][](0),
result: new uint256[](0),
startTime: _options.startTime,
duration: _options.duration,
metadataURI: _metadata,
Expand Down Expand Up @@ -470,7 +470,7 @@ contract ProcessRegistry is Initializable, UUPSUpgradeable, OwnableUpgradeable {
* @param _result The result of the process.
* @param _proof The proof of the result.
*/
function setProcessResult(bytes32 _processID, uint256[][] memory _result, bytes calldata _proof) public {
function setProcessResult(bytes32 _processID, uint256[] calldata _result, bytes calldata _proof) public {
// require sequencer from sequencer registry
// TODO

Expand Down
10 changes: 5 additions & 5 deletions typechain-types/factories/src/ProcessRegistry__factory.ts

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions typechain-types/src/ProcessRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export declare namespace ProcessRegistry {
organizationId: BytesLike;
encryptionKeys: [BytesLike, BytesLike];
latestStateRoot: BytesLike;
result: BigNumberish[][];
result: BigNumberish[];
startTime: BigNumberish;
duration: BigNumberish;
metadataURI: string;
Expand All @@ -117,7 +117,7 @@ export declare namespace ProcessRegistry {
organizationId: string,
encryptionKeys: [string, string],
latestStateRoot: string,
result: bigint[][],
result: bigint[],
startTime: bigint,
duration: bigint,
metadataURI: string,
Expand All @@ -128,7 +128,7 @@ export declare namespace ProcessRegistry {
organizationId: string;
encryptionKeys: [string, string];
latestStateRoot: string;
result: bigint[][];
result: bigint[];
startTime: bigint;
duration: bigint;
metadataURI: string;
Expand Down Expand Up @@ -233,7 +233,7 @@ export interface ProcessRegistryInterface extends Interface {
): string;
encodeFunctionData(
functionFragment: "setProcessResult",
values: [BytesLike, BigNumberish[][], BytesLike]
values: [BytesLike, BigNumberish[], BytesLike]
): string;
encodeFunctionData(
functionFragment: "setProcessStatus",
Expand Down Expand Up @@ -551,7 +551,7 @@ export interface ProcessRegistry extends BaseContract {
>;

setProcessResult: TypedContractMethod<
[_processID: BytesLike, _result: BigNumberish[][], _proof: BytesLike],
[_processID: BytesLike, _result: BigNumberish[], _proof: BytesLike],
[void],
"nonpayable"
>;
Expand Down Expand Up @@ -686,7 +686,7 @@ export interface ProcessRegistry extends BaseContract {
getFunction(
nameOrSignature: "setProcessResult"
): TypedContractMethod<
[_processID: BytesLike, _result: BigNumberish[][], _proof: BytesLike],
[_processID: BytesLike, _result: BigNumberish[], _proof: BytesLike],
[void],
"nonpayable"
>;
Expand Down

0 comments on commit 7f6cc2d

Please sign in to comment.