Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eth/examples/MakerDAO/closeCDP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const daiToken = getContractsFactory('eth').getContract('StandardERC20').instanc

async function sendBitGoTx(): Promise<void> {
/*
* 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
*/

Expand Down
2 changes: 1 addition & 1 deletion eth/examples/SKALE/listDelegation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function sendBitGoTx(): Promise<void> {

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
Expand Down
2 changes: 1 addition & 1 deletion eth/examples/SKALE/listDelegationFromEscrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function sendBitGoTx(): Promise<void> {
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
Expand Down
4 changes: 2 additions & 2 deletions eth/examples/Sushiswap/createLiquidityPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion eth/examples/Sushiswap/kashiBorrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion eth/examples/Sushiswap/kashiLend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/base/contracts/contractInstances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = []) {
Expand Down Expand Up @@ -62,7 +62,7 @@ export class ContractReader<TMethod extends Method, TMethods extends Methods<TMe
/**
* Read in and parse config for instances of this contract type
* @param contractName The name of the contract to read the config for
* @param accessAbiValues Some contracts has sub levels to access the ABI, e.g Tron has {"entrys" : [..ABI]}
* @param accessAbiValues Some contracts have sub levels to access the ABI, e.g. Tron has {"entrys" : [..ABI]}
*/
readContractInstances(contractName: string, accessAbiValues : string[] = []): Instance<TMethod, TMethods>[] {
const instances = this.getInstances(contractName, this.chainName);
Expand All @@ -77,7 +77,7 @@ export class ContractReader<TMethod extends Method, TMethods extends Methods<TMe
* Return the contract specific ABI
* @param contractName The name of the contract to
* @param contractTypesList
* @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]}
*/
public getContract(contractName: string, contractTypesList: string[], accessAbiValues : string[] = []) {
ensure(contractTypesList.includes(contractName), `Unknown contract: ${contractName}`);
Expand All @@ -99,7 +99,7 @@ export class ContractReader<TMethod extends Method, TMethods extends Methods<TMe
result.push(new InstanceImpl<TMethod, TMethods>(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<TMethod, TMethods>('default', new this.methodsClass(methodList)));
}
Expand Down