Skip to content

Commit

Permalink
adjust code for dependencies update
Browse files Browse the repository at this point in the history
  • Loading branch information
juliancwirko committed Feb 28, 2024
1 parent c3f7aeb commit 6e82e01
Show file tree
Hide file tree
Showing 6 changed files with 365 additions and 350 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### [0.13.1](https://github.com/xdevguild/buildo.dev/releases/tag/v0.13.1) (2024-02-28)
- update useElven and implement required changes in code

### [0.13.0](https://github.com/xdevguild/buildo.dev/releases/tag/v0.13.0) (2024-02-18)
- improve ui
- adjust useElven usage
Expand Down
2 changes: 1 addition & 1 deletion app/inscriptions/components/broadcast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const Broadcast = ({
const { loginMethod } = useLoginInfo();
const { explorerAddress } = useConfig();
const { triggerTx, pending, txResult, error } = useTransaction({
webWalletRedirectUrl: '/inscriptions/create',
callbackUrl: '/inscriptions/create',
});

const { storageValue: inscription } = usePersistStorage({
Expand Down
16 changes: 4 additions & 12 deletions components/operations/operations-common-types.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
ScTokenTransferArgs,
TransactionParams,
MultiTokenTransferArgs,
useTokenTransfer,
useMultiTokenTransfer,
} from '@useelven/core';

export type OperationContentProps = {
Expand All @@ -12,16 +12,8 @@ export type OperationContentProps = {
gasLimit,
value,
}: TransactionParams) => Promise<void>;
transfer?: ({
type,
tokenId,
gasLimit,
receiver,
amount,
endpointName,
endpointArgs,
}: ScTokenTransferArgs) => void;
multiTransfer?: ({ tokens, receiver }: MultiTokenTransferArgs) => void;
transfer?: ReturnType<typeof useTokenTransfer>['transfer'];
multiTransfer?: ReturnType<typeof useMultiTokenTransfer>['transfer'];
};

export interface CommonOpertationContentProps extends OperationContentProps {
Expand Down
16 changes: 4 additions & 12 deletions components/operations/operations-content-map.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ReactElement } from 'react';
import {
ScTokenTransferArgs,
TransactionParams,
MultiTokenTransferArgs,
useTokenTransfer,
useMultiTokenTransfer,
} from '@useelven/core';
import { Issue } from '@/components/operations/fungible-tokens/issue';
import { IssueNftSft } from '@/components/operations/common/issue-nft-sft';
Expand Down Expand Up @@ -64,16 +64,8 @@ type OperationsContentMapProps = {
gasLimit,
value,
}: TransactionParams) => Promise<void>;
transfer?: ({
type,
tokenId,
gasLimit,
receiver,
amount,
endpointName,
endpointArgs,
}: ScTokenTransferArgs) => void;
multiTransfer?: ({ tokens, receiver }: MultiTokenTransferArgs) => void;
transfer?: ReturnType<typeof useTokenTransfer>['transfer'];
multiTransfer?: ReturnType<typeof useMultiTokenTransfer>['transfer'];
};

export const getOperationsContentsMap = ({
Expand Down
Loading

0 comments on commit 6e82e01

Please sign in to comment.