Skip to content

Commit

Permalink
Updated abis to be more skale specific
Browse files Browse the repository at this point in the history
  • Loading branch information
barathcj committed Sep 17, 2020
1 parent d5d73c4 commit 22089f5
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/SKALE/bountiesEarned.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function sendBitGoTx(): Promise<void> {
const walletPassphrase = 'password';

const proxyAddress = '0x2a42Ccca55FdE8a9CA2D7f3C66fcddE99B4baB90';
const Distributor = new Contract('Distributor').address(proxyAddress);
const Distributor = new Contract('SkaleDistributor').address(proxyAddress);

//parameter needed for checking the earned bounties
const idOfValidator = "validator id";
Expand Down
2 changes: 1 addition & 1 deletion examples/SKALE/cancelPendingDelegation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function sendBitGoTx(): Promise<void> {
const idOfDelegation = 'ID of delegation to cancel';

const proxyAddress = '0x06dD71dAb27C1A3e0B172d53735f00Bf1a66Eb79';
const DelegationController = new Contract('DelegationController').address(proxyAddress);
const DelegationController = new Contract('SkaleDelegationController').address(proxyAddress);

/**
* This allows the delegator to cancel the PENDING delegation before the validator approves
Expand Down
4 changes: 2 additions & 2 deletions examples/SKALE/cancelPendingDelegationFromEscrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function sendBitGoTx(): Promise<void> {
const walletPassphrase = 'password';

const proxyAddress = '0xB575c158399227b6ef4Dcfb05AA3bCa30E12a7ba';
const Allocator = new Contract('Allocator').address(proxyAddress);
const Allocator = new Contract('SkaleAllocator').address(proxyAddress);

/**
* Get the Escrow wallet address that is linked to the delegator's Bitgo wallet address
Expand All @@ -23,7 +23,7 @@ async function sendBitGoTx(): Promise<void> {
let escrowAddress = await bitGoWallet.send({ data, amount, address, walletPassphrase });

//Retrieve Escrow contract for delegator
const Escrow = new Contract('Escrow').address(escrowAddress);
const Escrow = new Contract('SkaleEscrow').address(escrowAddress);

//parameter needed for cancel delegation request
const idOfDelegation = 'ID of delegation to cancel';
Expand Down
2 changes: 1 addition & 1 deletion examples/SKALE/delegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function sendBitGoTx(): Promise<void> {
const descriptionAboutDelegation = "description or summary about the delegation";

const proxyAddress = '0x06dD71dAb27C1A3e0B172d53735f00Bf1a66Eb79';
const DelegationController = new Contract('DelegationController').address(proxyAddress);
const DelegationController = new Contract('SkaleDelegationController').address(proxyAddress);

/**
* Sending a proposal to delegate SKL tokens to the validator.
Expand Down
4 changes: 2 additions & 2 deletions examples/SKALE/delegateFromEscrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function sendBitGoTx(): Promise<void> {
const walletPassphrase = 'password';

const proxyAddress = '0xB575c158399227b6ef4Dcfb05AA3bCa30E12a7ba';
const Allocator = new Contract('Allocator').address(proxyAddress);
const Allocator = new Contract('SkaleAllocator').address(proxyAddress);

/**
* Get the Escrow wallet address that is linked to the delegator's Bitgo wallet address
Expand All @@ -23,7 +23,7 @@ async function sendBitGoTx(): Promise<void> {
let escrowAddress = await bitGoWallet.send({ data, amount, address, walletPassphrase });

//Retrieve Escrow contract for delegator
const Escrow = new Contract('Escrow').address(escrowAddress);
const Escrow = new Contract('SkaleEscrow').address(escrowAddress);

//parameters needed for the delegation request
const idOfValidator = "validator id";
Expand Down
2 changes: 1 addition & 1 deletion examples/SKALE/getEscrowAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function sendBitGoTx(): Promise<void> {
const walletPassphrase = 'password';

const proxyAddress = '0xB575c158399227b6ef4Dcfb05AA3bCa30E12a7ba';
const Allocator = new Contract('Allocator').address(proxyAddress);
const Allocator = new Contract('SkaleAllocator').address(proxyAddress);

/**
* Get the Escrow wallet address that is linked to the investor's Bitgo wallet address
Expand Down
2 changes: 1 addition & 1 deletion examples/SKALE/listDelegation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function sendBitGoTx(): Promise<void> {
const walletPassphrase = 'password';

const proxyAddress = '0x06dD71dAb27C1A3e0B172d53735f00Bf1a66Eb79';
const DelegationController = new Contract('DelegationController').address(proxyAddress);
const DelegationController = new Contract('SkaleDelegationController').address(proxyAddress);

let delegations = [];
/**
Expand Down
4 changes: 2 additions & 2 deletions examples/SKALE/listDelegationFromEscrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function sendBitGoTx(): Promise<void> {
const walletPassphrase = 'password';

const proxyAddress = '0xB575c158399227b6ef4Dcfb05AA3bCa30E12a7ba';
const Allocator = new Contract('Allocator').address(proxyAddress);
const Allocator = new Contract('SkaleAllocator').address(proxyAddress);

/**
* Get the Escrow wallet address that is linked to the delegator's Bitgo wallet address
Expand All @@ -23,7 +23,7 @@ async function sendBitGoTx(): Promise<void> {
let escrowAddress = await bitGoWallet.send({ data, amount, address, walletPassphrase });

const delegationControllerAddress = '0x06dD71dAb27C1A3e0B172d53735f00Bf1a66Eb79';
const DelegationController = new Contract('DelegationController').address(delegationControllerAddress);
const DelegationController = new Contract('SkaleDelegationController').address(delegationControllerAddress);
let delegations = [];
/**
* List all of the delegations for th token holder's Escrow contract.
Expand Down
2 changes: 1 addition & 1 deletion examples/SKALE/listValidators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function sendBitGoTx(): Promise<void> {
const walletPassphrase = 'password';

const proxyAddress = '0x840C8122433A5AA7ad60C1Bcdc36AB9DcCF761a5';
const ValidatorService = new Contract('ValidatorService').address(proxyAddress);
const ValidatorService = new Contract('SkaleValidatorService').address(proxyAddress);

/**
* List all of the trusted validators that are registered within the SKALE Network.
Expand Down
2 changes: 1 addition & 1 deletion examples/SKALE/requestUndelegation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function sendBitGoTx(): Promise<void> {
const idOfDelegation = 'ID of delegation to undelegate';

const proxyAddress = '0x06dD71dAb27C1A3e0B172d53735f00Bf1a66Eb79';
const DelegationController = new Contract('DelegationController').address(proxyAddress);
const DelegationController = new Contract('SkaleDelegationController').address(proxyAddress);

/**
* After the epoch starts all delegations that are accepted turns to DELEGATED state.
Expand Down
4 changes: 2 additions & 2 deletions examples/SKALE/requestUndelegationFromEscrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function sendBitGoTx(): Promise<void> {
const walletPassphrase = 'password';

const proxyAddress = '0xB575c158399227b6ef4Dcfb05AA3bCa30E12a7ba';
const Allocator = new Contract('Allocator').address(proxyAddress);
const Allocator = new Contract('SkaleAllocator').address(proxyAddress);

/**
* Get the Escrow wallet address that is linked to the delegator's Bitgo wallet address
Expand All @@ -23,7 +23,7 @@ async function sendBitGoTx(): Promise<void> {
let escrowAddress = await bitGoWallet.send({ data, amount, address, walletPassphrase });

//Retrieve Escrow contract for delegator
const Escrow = new Contract('Escrow').address(escrowAddress);
const Escrow = new Contract('SkaleEscrow').address(escrowAddress);

//parameter for the id of the undelegation request
const idOfDelegation = 'ID of delegation to undelegate';
Expand Down
2 changes: 1 addition & 1 deletion examples/SKALE/showLockedTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function sendBitGoTx(): Promise<void> {

const delegatorWalletAddress = 'delegator wallet address';
const proxyAddress = '0x1F2157Bf5C820f68826ef1DC71824816Ee795f41';
const TokenState = new Contract('TokenState').address(proxyAddress);
const TokenState = new Contract('SkaleTokenState').address(proxyAddress);

/**
* List the amount of the tokens that are locked within the token holder (delegator)
Expand Down
4 changes: 2 additions & 2 deletions examples/SKALE/showLockedTokensForEscrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function sendBitGoTx(): Promise<void> {
const walletPassphrase = 'password';

const proxyAddress = '0xB575c158399227b6ef4Dcfb05AA3bCa30E12a7ba';
const Allocator = new Contract('Allocator').address(proxyAddress);
const Allocator = new Contract('SkaleAllocator').address(proxyAddress);

/**
* Get the Escrow wallet address that is linked to the delegator's Bitgo wallet address
Expand All @@ -28,7 +28,7 @@ async function sendBitGoTx(): Promise<void> {
let escrowAddress = await bitGoWallet.send({ data, amount, address, walletPassphrase });

const tokenStateAddress = '0x1F2157Bf5C820f68826ef1DC71824816Ee795f41';
const TokenState = new Contract('TokenState').address(tokenStateAddress);
const TokenState = new Contract('SkaleTokenState').address(tokenStateAddress);

/**
* List the amount of the tokens that are locked within the token holder's Escrow
Expand Down
2 changes: 1 addition & 1 deletion examples/SKALE/withdrawBounty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function sendBitGoTx(): Promise<void> {
const addressOfReceivingDelegator = "token holder address";

const proxyAddress = '0x4eE5F270572285776814e32952446e9B7Ee15C86';
const Distributor = new Contract('Distributor').address(proxyAddress);
const Distributor = new Contract('SkaleDistributor').address(proxyAddress);

/**
* Allows token holder (delegator) to withdraw bounty from a specific validator.
Expand Down
4 changes: 2 additions & 2 deletions examples/SKALE/withdrawBountyFromEscrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function sendBitGoTx(): Promise<void> {
const walletPassphrase = 'password';

const proxyAddress = '0xB575c158399227b6ef4Dcfb05AA3bCa30E12a7ba';
const Allocator = new Contract('Allocator').address(proxyAddress);
const Allocator = new Contract('SkaleAllocator').address(proxyAddress);

/**
* Get the Escrow wallet address that is linked to the delegator's Bitgo wallet address
Expand All @@ -23,7 +23,7 @@ async function sendBitGoTx(): Promise<void> {
let escrowAddress = await bitGoWallet.send({ data, amount, address, walletPassphrase });

//Retrieve Escrow contract for delegator
const Escrow = new Contract('Escrow').address(escrowAddress);
const Escrow = new Contract('SkaleEscrow').address(escrowAddress);

//parameters needed for withdrawing bounties
const idOfValidator = "validator id";
Expand Down

0 comments on commit 22089f5

Please sign in to comment.