Skip to content

Commit

Permalink
Merge pull request #386 from alephium/1.1.0
Browse files Browse the repository at this point in the history
1.1.0
  • Loading branch information
polarker authored Jun 26, 2024
2 parents 24fd622 + cf76446 commit 7c208d8
Show file tree
Hide file tree
Showing 33 changed files with 50 additions and 94 deletions.
2 changes: 1 addition & 1 deletion .project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"fullNodeVersion": "v3.1.4",
"fullNodeVersion": "v3.2.0",
"compilerOptionsUsed": {
"ignoreUnusedConstantsWarnings": false,
"ignoreUnusedVariablesWarnings": false,
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/Add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class AddInstance extends ContractInstance {
return subscribeContractEvents(Add.contract, this, options, fromCount);
}

methods = {
view = {
add: async (
params: AddTypes.CallMethodParams<"add">
): Promise<AddTypes.CallMethodResult<"add">> => {
Expand Down Expand Up @@ -330,8 +330,6 @@ export class AddInstance extends ContractInstance {
},
};

view = this.methods;

transact = {
add: async (
params: AddTypes.SignExecuteMethodParams<"add">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/Assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class AssertInstance extends ContractInstance {
return fetchContractState(Assert, this);
}

methods = {
view = {
test: async (
params?: AssertTypes.CallMethodParams<"test">
): Promise<AssertTypes.CallMethodResult<"test">> => {
Expand All @@ -156,8 +156,6 @@ export class AssertInstance extends ContractInstance {
},
};

view = this.methods;

transact = {
test: async (
params: AssertTypes.SignExecuteMethodParams<"test">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/Debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class DebugInstance extends ContractInstance {
return fetchContractState(Debug, this);
}

methods = {
view = {
debug: async (
params?: DebugTypes.CallMethodParams<"debug">
): Promise<DebugTypes.CallMethodResult<"debug">> => {
Expand All @@ -137,8 +137,6 @@ export class DebugInstance extends ContractInstance {
},
};

view = this.methods;

transact = {
debug: async (
params: DebugTypes.SignExecuteMethodParams<"debug">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/DeprecatedNFTTest1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class DeprecatedNFTTest1Instance extends ContractInstance {
return fetchContractState(DeprecatedNFTTest1, this);
}

methods = {
view = {
getTokenUri: async (
params?: DeprecatedNFTTest1Types.CallMethodParams<"getTokenUri">
): Promise<DeprecatedNFTTest1Types.CallMethodResult<"getTokenUri">> => {
Expand All @@ -148,8 +148,6 @@ export class DeprecatedNFTTest1Instance extends ContractInstance {
},
};

view = this.methods;

transact = {
getTokenUri: async (
params: DeprecatedNFTTest1Types.SignExecuteMethodParams<"getTokenUri">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/DeprecatedNFTTest2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class DeprecatedNFTTest2Instance extends ContractInstance {
return fetchContractState(DeprecatedNFTTest2, this);
}

methods = {
view = {
getTokenUri: async (
params?: DeprecatedNFTTest2Types.CallMethodParams<"getTokenUri">
): Promise<DeprecatedNFTTest2Types.CallMethodResult<"getTokenUri">> => {
Expand All @@ -175,8 +175,6 @@ export class DeprecatedNFTTest2Instance extends ContractInstance {
},
};

view = this.methods;

transact = {
getTokenUri: async (
params: DeprecatedNFTTest2Types.SignExecuteMethodParams<"getTokenUri">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/DeprecatedNFTTest3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class DeprecatedNFTTest3Instance extends ContractInstance {
return fetchContractState(DeprecatedNFTTest3, this);
}

methods = {
view = {
getTokenUri: async (
params?: DeprecatedNFTTest3Types.CallMethodParams<"getTokenUri">
): Promise<DeprecatedNFTTest3Types.CallMethodResult<"getTokenUri">> => {
Expand All @@ -175,8 +175,6 @@ export class DeprecatedNFTTest3Instance extends ContractInstance {
},
};

view = this.methods;

transact = {
getTokenUri: async (
params: DeprecatedNFTTest3Types.SignExecuteMethodParams<"getTokenUri">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/DeprecatedNFTTest4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class DeprecatedNFTTest4Instance extends ContractInstance {
return fetchContractState(DeprecatedNFTTest4, this);
}

methods = {
view = {
getTokenUri: async (
params?: DeprecatedNFTTest4Types.CallMethodParams<"getTokenUri">
): Promise<DeprecatedNFTTest4Types.CallMethodResult<"getTokenUri">> => {
Expand All @@ -175,8 +175,6 @@ export class DeprecatedNFTTest4Instance extends ContractInstance {
},
};

view = this.methods;

transact = {
getTokenUri: async (
params: DeprecatedNFTTest4Types.SignExecuteMethodParams<"getTokenUri">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/DeprecatedNFTTest5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class DeprecatedNFTTest5Instance extends ContractInstance {
return fetchContractState(DeprecatedNFTTest5, this);
}

methods = {
view = {
getTokenUri: async (
params?: DeprecatedNFTTest5Types.CallMethodParams<"getTokenUri">
): Promise<DeprecatedNFTTest5Types.CallMethodResult<"getTokenUri">> => {
Expand All @@ -182,8 +182,6 @@ export class DeprecatedNFTTest5Instance extends ContractInstance {
},
};

view = this.methods;

transact = {
getTokenUri: async (
params: DeprecatedNFTTest5Types.SignExecuteMethodParams<"getTokenUri">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/DeprecatedNFTTest6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class DeprecatedNFTTest6Instance extends ContractInstance {
return fetchContractState(DeprecatedNFTTest6, this);
}

methods = {
view = {
getTokenUri: async (
params?: DeprecatedNFTTest6Types.CallMethodParams<"getTokenUri">
): Promise<DeprecatedNFTTest6Types.CallMethodResult<"getTokenUri">> => {
Expand All @@ -175,8 +175,6 @@ export class DeprecatedNFTTest6Instance extends ContractInstance {
},
};

view = this.methods;

transact = {
getTokenUri: async (
params: DeprecatedNFTTest6Types.SignExecuteMethodParams<"getTokenUri">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/DeprecatedNFTTest7.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class DeprecatedNFTTest7Instance extends ContractInstance {
return fetchContractState(DeprecatedNFTTest7, this);
}

methods = {
view = {
getTokenUri: async (
params?: DeprecatedNFTTest7Types.CallMethodParams<"getTokenUri">
): Promise<DeprecatedNFTTest7Types.CallMethodResult<"getTokenUri">> => {
Expand All @@ -182,8 +182,6 @@ export class DeprecatedNFTTest7Instance extends ContractInstance {
},
};

view = this.methods;

transact = {
getTokenUri: async (
params: DeprecatedNFTTest7Types.SignExecuteMethodParams<"getTokenUri">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/FakeTokenTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class FakeTokenTestInstance extends ContractInstance {
return fetchContractState(FakeTokenTest, this);
}

methods = {
view = {
getSymbol: async (
params?: FakeTokenTestTypes.CallMethodParams<"getSymbol">
): Promise<FakeTokenTestTypes.CallMethodResult<"getSymbol">> => {
Expand Down Expand Up @@ -255,8 +255,6 @@ export class FakeTokenTestInstance extends ContractInstance {
},
};

view = this.methods;

transact = {
getSymbol: async (
params: FakeTokenTestTypes.SignExecuteMethodParams<"getSymbol">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/Greeter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class GreeterInstance extends ContractInstance {
return fetchContractState(Greeter, this);
}

methods = {
view = {
greet: async (
params?: GreeterTypes.CallMethodParams<"greet">
): Promise<GreeterTypes.CallMethodResult<"greet">> => {
Expand All @@ -152,8 +152,6 @@ export class GreeterInstance extends ContractInstance {
},
};

view = this.methods;

transact = {
greet: async (
params: GreeterTypes.SignExecuteMethodParams<"greet">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/MapTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class MapTestInstance extends ContractInstance {
return fetchContractState(MapTest, this);
}

methods = {
view = {
insert: async (
params: MapTestTypes.CallMethodParams<"insert">
): Promise<MapTestTypes.CallMethodResult<"insert">> => {
Expand All @@ -241,8 +241,6 @@ export class MapTestInstance extends ContractInstance {
},
};

view = this.methods;

transact = {
insert: async (
params: MapTestTypes.SignExecuteMethodParams<"insert">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/MetaData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class MetaDataInstance extends ContractInstance {
return fetchContractState(MetaData, this);
}

methods = {
view = {
foo: async (
params?: MetaDataTypes.CallMethodParams<"foo">
): Promise<MetaDataTypes.CallMethodResult<"foo">> => {
Expand All @@ -163,8 +163,6 @@ export class MetaDataInstance extends ContractInstance {
},
};

view = this.methods;

transact = {
foo: async (
params: MetaDataTypes.SignExecuteMethodParams<"foo">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/NFTCollectionTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class NFTCollectionTestInstance extends ContractInstance {
return fetchContractState(NFTCollectionTest, this);
}

methods = {
view = {
getCollectionUri: async (
params?: NFTCollectionTestTypes.CallMethodParams<"getCollectionUri">
): Promise<NFTCollectionTestTypes.CallMethodResult<"getCollectionUri">> => {
Expand Down Expand Up @@ -273,8 +273,6 @@ export class NFTCollectionTestInstance extends ContractInstance {
},
};

view = this.methods;

transact = {
getCollectionUri: async (
params: NFTCollectionTestTypes.SignExecuteMethodParams<"getCollectionUri">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/NFTCollectionWithRoyaltyTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export class NFTCollectionWithRoyaltyTestInstance extends ContractInstance {
return fetchContractState(NFTCollectionWithRoyaltyTest, this);
}

methods = {
view = {
getCollectionUri: async (
params?: NFTCollectionWithRoyaltyTestTypes.CallMethodParams<"getCollectionUri">
): Promise<
Expand Down Expand Up @@ -386,8 +386,6 @@ export class NFTCollectionWithRoyaltyTestInstance extends ContractInstance {
},
};

view = this.methods;

transact = {
getCollectionUri: async (
params: NFTCollectionWithRoyaltyTestTypes.SignExecuteMethodParams<"getCollectionUri">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/NFTTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class NFTTestInstance extends ContractInstance {
return fetchContractState(NFTTest, this);
}

methods = {
view = {
getTokenUri: async (
params?: NFTTestTypes.CallMethodParams<"getTokenUri">
): Promise<NFTTestTypes.CallMethodResult<"getTokenUri">> => {
Expand All @@ -178,8 +178,6 @@ export class NFTTestInstance extends ContractInstance {
},
};

view = this.methods;

transact = {
getTokenUri: async (
params: NFTTestTypes.SignExecuteMethodParams<"getTokenUri">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/OwnerOnly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class OwnerOnlyInstance extends ContractInstance {
return fetchContractState(OwnerOnly, this);
}

methods = {
view = {
testOwner: async (
params?: OwnerOnlyTypes.CallMethodParams<"testOwner">
): Promise<OwnerOnlyTypes.CallMethodResult<"testOwner">> => {
Expand All @@ -147,8 +147,6 @@ export class OwnerOnlyInstance extends ContractInstance {
},
};

view = this.methods;

transact = {
testOwner: async (
params: OwnerOnlyTypes.SignExecuteMethodParams<"testOwner">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/Sub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,14 @@ export class SubInstance extends ContractInstance {
);
}

methods = {
view = {
sub: async (
params: SubTypes.CallMethodParams<"sub">
): Promise<SubTypes.CallMethodResult<"sub">> => {
return callMethod(Sub, this, "sub", params, getContractByCodeHash);
},
};

view = this.methods;

transact = {
sub: async (
params: SubTypes.SignExecuteMethodParams<"sub">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/TokenTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class TokenTestInstance extends ContractInstance {
return fetchContractState(TokenTest, this);
}

methods = {
view = {
getSymbol: async (
params?: TokenTestTypes.CallMethodParams<"getSymbol">
): Promise<TokenTestTypes.CallMethodResult<"getSymbol">> => {
Expand Down Expand Up @@ -231,8 +231,6 @@ export class TokenTestInstance extends ContractInstance {
},
};

view = this.methods;

transact = {
getSymbol: async (
params: TokenTestTypes.SignExecuteMethodParams<"getSymbol">
Expand Down
4 changes: 1 addition & 3 deletions artifacts/ts/UserAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class UserAccountInstance extends ContractInstance {
return fetchContractState(UserAccount, this);
}

methods = {
view = {
updateBalance: async (
params: UserAccountTypes.CallMethodParams<"updateBalance">
): Promise<UserAccountTypes.CallMethodResult<"updateBalance">> => {
Expand Down Expand Up @@ -206,8 +206,6 @@ export class UserAccountInstance extends ContractInstance {
},
};

view = this.methods;

transact = {
updateBalance: async (
params: UserAccountTypes.SignExecuteMethodParams<"updateBalance">
Expand Down
Loading

0 comments on commit 7c208d8

Please sign in to comment.