Skip to content

Commit

Permalink
helpers: estimator: adapt for new oracle service
Browse files Browse the repository at this point in the history
  • Loading branch information
imsk17 committed Apr 29, 2024
1 parent 1342e59 commit 095ab73
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/services/estimator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,33 +40,33 @@ export function signatureService(url: string): SignatureService {
async getSignatureNear(
fromChain: ChainNonce,
toChain: ChainNonce,
nft: string,
_nft: string,
tokenContract: string,
tokenId: string,
to: string
) {
const result = await signer.post<{
data: SignatureServiceResponse;
}>("/api/get-signature/", {
fromChain,
toChain,
nft,
to,
tokenId,
tokenContract,
}>("/api/near/", {
from: fromChain,
to: toChain,
receiver: to,
nft: {
token_id: tokenId,
contract: tokenContract,
},
});
console.log("near signature response", result);
return result.data.data;
},
async getSignatureDfinity(fc, tc, to, num: number) {
const result = await signer.post<{
data: SignatureServiceResponse;
}>("/api/get-signature/", {
fromChain: fc,
toChain: tc,
to,
}>("/api/dfinity/", {
from: fc,
to: tc,
receiver: to,
num,
nft: {},
});
return result.data.data;
},
Expand Down

0 comments on commit 095ab73

Please sign in to comment.