rsk-multi-token-sdk
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -7,9 +7,11 @@ import { Signer } from 'ethers'; | ||
import ERC1155 from './modules/erc1155'; | ||
import { SDKInstance, SDKProvider, PackageModules } from './types'; | ||
import { SDKInstance, SDKProvider, PackageModules, SDKConfiguration } from './types'; | ||
declare class SDK { | ||
instance: SDKInstance; | ||
constructor(provider: SDKProvider, modules: PackageModules, signer?: Signer); | ||
static create(provider: SDKProvider, chainId?: number, signer?: Signer): Promise<SDK>; | ||
static create(provider: SDKProvider, config: SDKConfiguration): Promise<SDK>; | ||
private static getChainId; | ||
private static getDefaultSmartWalletContractAddress; | ||
} | ||
export default SDK; | ||
export { SmartWallet, SmartWalletFactory, ERC20, RBTC, ERC1155 }; |
@@ -19,2 +19,3 @@ import BigNumber from 'bignumber.js'; | ||
symbol: () => Promise<string>; | ||
owner: () => Promise<string>; | ||
uri: (tokenId: SDKBigNumberish) => Promise<string>; | ||
@@ -35,2 +36,3 @@ uriBatch: (tokenIds: SDKBigNumberish[]) => Promise<string[]>; | ||
setCreator: (to: string, tokenIds: SDKBigNumberish[]) => Promise<Transaction>; | ||
getCreator: (tokenId: SDKBigNumberish) => Promise<string>; | ||
isNFT: (tokenId: SDKBigNumberish) => boolean; | ||
@@ -40,2 +42,3 @@ toNFTid: (tokenId: SDKBigNumberish) => Promise<BigNumber>; | ||
createNFT: (to: string, creator: string, tokenId: SDKBigNumberish, uri?: string, data?: string) => Promise<Transaction>; | ||
getMaxSupply: (tokenId: SDKBigNumberish) => Promise<BigNumber>; | ||
mint: (to: string, tokenId: SDKBigNumberish, quantity: SDKBigNumberish, data?: string) => Promise<Transaction>; | ||
@@ -42,0 +45,0 @@ batchMint: (to: string, tokenIds: SDKBigNumberish[], quantities: SDKBigNumberish[], data?: string) => Promise<Transaction>; |
@@ -16,2 +16,4 @@ import { Contract, Signer } from 'ethers'; | ||
changeOwner: (owner: string) => Promise<Transaction>; | ||
changeRecoverer: (recoverer: string) => Promise<Transaction>; | ||
changeOwnerAndRecoverer: (owner: string, recoverer: string) => Promise<Transaction>; | ||
getOwnerHash: () => Promise<string>; | ||
@@ -18,0 +20,0 @@ recover: (newOwner: string) => Promise<Transaction>; |
@@ -12,4 +12,4 @@ import { Contract, Signer } from 'ethers'; | ||
ethcallContract: EthcallContract; | ||
constructor(provider: SDKProvider, chainId: number, signer?: Signer); | ||
static getInstance(provider: SDKProvider, chainId: number, signer?: Signer): Promise<SmartWalletFactory>; | ||
constructor(provider: SDKProvider, chainId: number, contractAddress: string, signer?: Signer); | ||
static getInstance(provider: SDKProvider, chainId: number, contractAddress: string, signer?: Signer): Promise<SmartWalletFactory>; | ||
get address(): string; | ||
@@ -16,0 +16,0 @@ get getContract(): Contract; |
@@ -7,1 +7,2 @@ import BigNumber from 'bignumber.js'; | ||
export declare const checkPositive: (value: SDKBigNumberish) => BigNumber; | ||
export declare const checkChainIdSupported: (chainId: number) => void; |
@@ -13,2 +13,7 @@ import { ethers, Signer } from 'ethers'; | ||
} | ||
export interface SDKConfiguration { | ||
chainId?: number; | ||
signer?: Signer; | ||
smartWalletContractAddress?: string; | ||
} | ||
export interface MulticallCall { | ||
@@ -15,0 +20,0 @@ target: string; |
{ | ||
"name": "rsk-multi-token-sdk", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"license": "MIT", | ||
@@ -16,2 +16,3 @@ "engines": { | ||
"dependencies": { | ||
"@rsksmart/rsk-utils": "^1.1.0", | ||
"@thinkanddev/ethcall": "^1.0.2", | ||
@@ -18,0 +19,0 @@ "bignumber.js": "^9.0.1", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
816741
19
11677
4
+ Added@rsksmart/rsk-utils@^1.1.0
+ Added@rsksmart/rsk-utils@1.1.0(transitive)
+ Addedbindings@1.5.0(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
+ Addedkeccak@2.1.0(transitive)
+ Addednan@2.22.0(transitive)
+ Addedrlp@2.2.7(transitive)
+ Addedsafe-buffer@5.2.1(transitive)