diff --git a/eth/examples/MakerDAO/closeCDP.ts b/eth/examples/MakerDAO/closeCDP.ts index 8668521..c3366cc 100644 --- a/eth/examples/MakerDAO/closeCDP.ts +++ b/eth/examples/MakerDAO/closeCDP.ts @@ -6,8 +6,8 @@ const daiToken = getContractsFactory('eth').getContract('StandardERC20').instanc async function sendBitGoTx(): Promise { /* - * This assume you already have a CDP at Maker from our example createCDP - * It also assume you already have a CDP setup + * This assumes you already have a CDP at Maker from our example createCDP + * It also assumes you already have a CDP setup * step 1 - Approve the number of tokens you would like the proxy to access */ diff --git a/eth/examples/SKALE/listDelegation.ts b/eth/examples/SKALE/listDelegation.ts index 4d1dac0..6fcda22 100644 --- a/eth/examples/SKALE/listDelegation.ts +++ b/eth/examples/SKALE/listDelegation.ts @@ -15,7 +15,7 @@ async function sendBitGoTx(): Promise { const delegations = []; /** - * List all of the delegations for th token holder (delegator). + * List all of the delegations for the token holder (delegator). * This will return the states of each of the delegation requests sent. * * First get Total amount of delegations for the holder diff --git a/eth/examples/SKALE/listDelegationFromEscrow.ts b/eth/examples/SKALE/listDelegationFromEscrow.ts index 7a8ebcc..5976c58 100644 --- a/eth/examples/SKALE/listDelegationFromEscrow.ts +++ b/eth/examples/SKALE/listDelegationFromEscrow.ts @@ -27,7 +27,7 @@ async function sendBitGoTx(): Promise { DelegationController.address = delegationControllerAddress; const delegations = []; /** - * List all of the delegations for th token holder's Escrow contract. + * List all of the delegations for the token holder's Escrow contract. * This will return the states of each of the delegation requests sent. * * First get Total amount of delegations for the holder diff --git a/eth/examples/Sushiswap/createLiquidityPool.ts b/eth/examples/Sushiswap/createLiquidityPool.ts index 118b0e5..c994637 100644 --- a/eth/examples/Sushiswap/createLiquidityPool.ts +++ b/eth/examples/Sushiswap/createLiquidityPool.ts @@ -7,8 +7,8 @@ async function sendBitGoTx() { const walletAddress = 'wallet addresses'; const amountADesired = 100e18; // amount of DAI desired const amountBDesired = 250e14; // amount of UNI desired - const amountAMin = 995e17; //minimum amout of DAI - const amountBMin = 254e14; // minimum amout of UNI + const amountAMin = 995e17; //minimum amount of DAI + const amountBMin = 254e14; // minimum amount of UNI const deadline = 'deadline'; const bitGo = new BitGo({ env: 'test', accessToken: diff --git a/eth/examples/Sushiswap/kashiBorrow.ts b/eth/examples/Sushiswap/kashiBorrow.ts index 86e8123..bd5a1f7 100644 --- a/eth/examples/Sushiswap/kashiBorrow.ts +++ b/eth/examples/Sushiswap/kashiBorrow.ts @@ -11,7 +11,7 @@ async function sendBitGoTx() { const bitGoWallet = await baseCoin.wallets().get({ id: 'walletId' }); /* * 24 ACTION_BENTO_SETAPPROVAL ParamNames user, _masterContract, approved, v, r, s. ABI encoding address, address, bool, uint8, bytes32, bytes32 - * for information in v, r, s visit https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md + * for information on v, r, s, visit https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md * example dataForAction24 ='0x * 0000000000000000000000006c31cdbf161bad81f9eceb107d757cb85f2dbcab (wallet Address) * 0000000000000000000000002cba6ab6574646badc84f0544d05059e57a5dc42 (KashiPairMediumRiskV1 contract Address) diff --git a/eth/examples/Sushiswap/kashiLend.ts b/eth/examples/Sushiswap/kashiLend.ts index c629a77..ceeff35 100644 --- a/eth/examples/Sushiswap/kashiLend.ts +++ b/eth/examples/Sushiswap/kashiLend.ts @@ -12,7 +12,7 @@ async function sendBitGoTx() { /* * 24 ACTION_BENTO_SETAPPROVAL ParamNames user, _masterContract, approved, v, r, s. ABI encoding address, address, bool, uint8, bytes32, bytes32 - * for information in v, r, s visit https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md + * for information on v, r, s, visit https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md * userAddress= walletAddress * _masterContract=KashiPairMediumRiskV1 contract Address * example dataForAction24 ='0x diff --git a/src/base/contracts/contractInstances.ts b/src/base/contracts/contractInstances.ts index 10a3128..a6678f4 100644 --- a/src/base/contracts/contractInstances.ts +++ b/src/base/contracts/contractInstances.ts @@ -24,7 +24,7 @@ export function listContractTypes(chainName: string): string[] { * Return specific ABI * @param contractName The name of the contract to read the ABI for * @param chainName The name of the chain to read the ABI for - * @param accessAbiValues Access values to the ABI, some contracts has sub levels to access the ABI, e.g Tron has {"entrys" : [..ABI]} + * @param accessAbiValues Access values to the ABI, some contracts have sub levels to access the ABI, e.g. Tron has {"entrys" : [..ABI]} * */ export function getAbiContract(contractName: string, chainName: string, accessAbiValues : string[] = []) { @@ -62,7 +62,7 @@ export class ContractReader[] { const instances = this.getInstances(contractName, this.chainName); @@ -77,7 +77,7 @@ export class ContractReader(instanceName.toLowerCase(), new this.methodsClass(methodList), address)); }); - // If no exists a default intance create one + // If no default instance exists, create one if (!Object.keys(parsedConfig).some((instanceName: string) => instanceName === 'default')) { result.push(new InstanceImpl('default', new this.methodsClass(methodList))); }