zodor-protocol-web3
Version:
SDK to interact with zodor protocol
66 lines • 1.84 kB
TypeScript
import { ethers } from 'ethers';
import { Network } from './types';
export declare const AVAX_SUBNET_TESTNET_RPC_URL = "";
export declare const AVAX_SUBNET_RPC_URL = "";
export declare const POLYGON_AMOY_RPC_URL = "https://polygon-amoy-bor-rpc.publicnode.com";
export declare const getContractAddresses: (network: Network) => {
IdentityRegistryContractAddress: string;
ClaimRegistryContractAddress: string;
KeyManagerContractAddress: string;
} | {
IdentityRegistryContractAddress: string;
ClaimRegistryContractAddress: string;
KeyManagerContractAddress?: undefined;
};
export declare const getRpcProvider: (network: Network, customRpcUrl?: string) => ethers.JsonRpcProvider;
export declare const getRpcUrl: (network: Network) => string;
export declare const createTransferSignature: (options: {
trustedCallerPk: string;
from: string;
amount: {
value: string;
};
to: string;
balance: {
value: string;
};
}) => Promise<{
signature: string;
deadline: number;
}>;
export declare const TransferFromSignature: (options: {
trustedCallerPk: string;
from: string;
amount: {
value: string;
};
to: string;
balance: {
value: string;
};
allowance: {
value: string;
};
}) => Promise<{
signature: string;
deadline: number;
}>;
export declare const deploymentSignature: (options: {
supply: number;
encodedSupply: {
value: string;
};
trustedCallerPk: string;
}) => Promise<string>;
export declare const purchaseSignature: (options: {
trustedCallerPk: string;
treasury: string;
account: string;
usdAmount: bigint;
merc20Amount: {
value: string;
};
transferSignature: string;
tokenAddress: string;
}) => Promise<string>;
//# sourceMappingURL=utils.d.ts.map