Skip to content

Commit

Permalink
Refactor contract to include manifestUrl getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Laisky committed Sep 10, 2024
1 parent fa413ef commit 62eddf0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions blockchain/ton/contracts/attest/contracts/attest.tact
Original file line number Diff line number Diff line change
Expand Up @@ -607,4 +607,8 @@ contract Oracle with Common {

return total;
}

get fun manifestUrl(): String {
return self.manifestUrl;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export async function run(provider: NetworkProvider) {
},
{
$$type: 'SubmitAttestTask',
queryId: BigInt("123"),
proofUrl: "https://ario.laisky.com/alias/attest-proof.json",
attestValue: toNano("0.05"),
}
Expand Down
4 changes: 3 additions & 1 deletion blockchain/ton/contracts/attest/scripts/bot_register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ export async function run(provider: NetworkProvider) {
},
{
$$type: 'RegisterBot',
queryId: BigInt("123"),
manifestUrl: "https://ario.laisky.com/alias/attest-manifest.json",
botOwner: provider.sender().address!!
botOwner: provider.sender().address!!,
responseDestination: provider.sender().address!!,
},
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export async function run(provider: NetworkProvider) {
},
{
$$type: 'AttestTaskResult',
queryId: BigInt("123"),
taskId: BigInt("0"),
status: "verified",
verifiedUrl: "https://ario.laisky.com/alias/attest-verified.json",
Expand Down
5 changes: 4 additions & 1 deletion blockchain/ton/contracts/attest/scripts/oracle_register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ export async function run(provider: NetworkProvider) {
},
{
$$type: "RegisterOracle",
queryId: BigInt("123"),
stakeValue: toNano("0.05"), // should bigger than MinimalOracleStakeValue
oracleOwner: provider.sender().address!!
oracleOwner: provider.sender().address!!,
responseDestination: provider.sender().address!!,
manifestUrl: "https://ario.laisky.com/alias/attest-manifest.json",
}
);
}

0 comments on commit 62eddf0

Please sign in to comment.