-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from hrmon/main
Upgrade to ton v13
- Loading branch information
Showing
17 changed files
with
450 additions
and
485 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
import { makeGetCall } from "./makeGetCall"; | ||
import { Address, Cell, TonClient } from "ton"; | ||
import { SourcesRegistry as SourcesRegistryContract } from "./wrappers/sources-registry"; | ||
|
||
export async function getAdmin(sourcesRegistry: Address, tonClient: TonClient) { | ||
return makeGetCall( | ||
sourcesRegistry, | ||
"get_admin_address", | ||
[], | ||
(s) => (s[0] as Cell).beginParse().readAddress()!.toFriendly(), | ||
tonClient, | ||
); | ||
const contract = tonClient.open(SourcesRegistryContract.createFromAddress(sourcesRegistry)); | ||
const adminAddress = await contract.getAdminAddress(); | ||
return adminAddress?.toString(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.