Skip to content

Commit

Permalink
feat: updated XCM logic for deposit from the Relay chain (#1390)
Browse files Browse the repository at this point in the history
* feat: updated XCM logic for deposit from relaychain

* fix: removed unuesed files
  • Loading branch information
impelcrypto authored Sep 30, 2024
1 parent 2d6d473 commit a0f1a9d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 146 deletions.
2 changes: 0 additions & 2 deletions src/components/dapp-staking/register/RegisterDapp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ import { IDappStakingService } from 'src/staking-v3/logic/services';
import { Symbols } from 'src/v2/symbols';
import { useStore } from 'src/store';
import { useGasPrice, useNetworkInfo, useSignPayload } from 'src/hooks';
import { useExtrinsicCall } from 'src/hooks/custom-signature/useExtrinsicCall';
import { Path } from 'src/router';
import BackToPage from 'src/components/common/BackToPage.vue';
import { useRouter } from 'vue-router';
Expand Down Expand Up @@ -162,7 +161,6 @@ export default defineComponent({
const { registerDapp } = useDapps();
const { signPayload } = useSignPayload();
const { selectedTip } = useGasPrice();
const { getCallFunc } = useExtrinsicCall({ onResult: () => {}, onTransactionError: () => {} });
const { currentNetworkName } = useNetworkInfo();
const store = useStore();
const isH160 = computed<boolean>(() => store.getters['general/isH160Formatted']);
Expand Down
18 changes: 0 additions & 18 deletions src/config/web3/contracts/index.ts

This file was deleted.

58 changes: 0 additions & 58 deletions src/config/web3/contracts/staking.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/config/web3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export {
addressToBytes32,
} from 'src/config/web3/utils';

export { contractInstance, Staking } from 'src/config/web3/contracts';

export type TNetworkId =
| endpointKey.SHIDEN
| endpointKey.SHIBUYA
Expand Down
64 changes: 0 additions & 64 deletions src/hooks/custom-signature/useExtrinsicCall.ts

This file was deleted.

9 changes: 7 additions & 2 deletions src/v2/repositories/implementations/XcmRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,20 @@ export class XcmRepository implements IXcmRepository {
],
};

const weightLimit = {
Unlimited: null,
};

return await this.buildTxCall(
from,
endpoint,
'xcmPallet',
'reserveTransferAssets',
'limitedReserveTransferAssets',
destination,
beneficiary,
assets,
new BN(0)
new BN(0),
weightLimit
);
}

Expand Down

0 comments on commit a0f1a9d

Please sign in to comment.