Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Tact contract interaction #66

Merged
merged 21 commits into from
Aug 9, 2024
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6923353
feat(ABI): build generic data collection from ABI (#65)
rahulyadav-57 Jul 19, 2024
2114df1
feature: generate initialization parameters from compiler context (#67)
rahulyadav-57 Jul 19, 2024
c39445b
feat: Enhance abi fields rendering with validation and contract inter…
rahulyadav-57 Jul 26, 2024
6101dfa
fix: abi items spacing
rahulyadav-57 Jul 26, 2024
8c28fbd
fix contract deploy for blank init params
rahulyadav-57 Jul 26, 2024
c971591
fix linting issue
rahulyadav-57 Jul 26, 2024
c15ad87
add heading to ABI function block
rahulyadav-57 Jul 26, 2024
214a457
feat: add support for map data type
rahulyadav-57 Aug 1, 2024
881e3bf
Merge branch 'main' into feature/enhance-tact-contract-interaction
rahulyadav-57 Aug 1, 2024
99ba99b
refactor: update parameter name in getContractInitParams function
rahulyadav-57 Aug 1, 2024
a1244f2
fix: initialize Form.List with empty array, update init param name
rahulyadav-57 Aug 1, 2024
b01533f
refactor: Update TactABIUi component to use abiType instead of abi, f…
rahulyadav-57 Aug 1, 2024
1a4d6d9
refactor: update color
rahulyadav-57 Aug 1, 2024
749429b
refactor(ui): add heading to map
rahulyadav-57 Aug 2, 2024
8201310
chore: enable interface and abi getter
rahulyadav-57 Aug 3, 2024
1f916fe
feat: implement cell generation
rahulyadav-57 Aug 7, 2024
ac5345a
refactor: fix typo
rahulyadav-57 Aug 7, 2024
d473b20
chore: rollback `@tact-lang/compiler` to v1.4.0
rahulyadav-57 Aug 7, 2024
35fc6e1
feat: add support for cell data type
rahulyadav-57 Aug 8, 2024
8496dd3
feat: store contract interaction form values
rahulyadav-57 Aug 8, 2024
7101bf8
chore: update TON explorer URL to tonviewer.com
rahulyadav-57 Aug 9, 2024
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
Prev Previous commit
Next Next commit
fix: initialize Form.List with empty array, update init param name
rahulyadav-57 committed Aug 1, 2024
commit a1244f22b44eb40f5d727c1928a78c2bf86d32e7
2 changes: 1 addition & 1 deletion src/components/workspace/ABIUi/TactABIUi.tsx
Original file line number Diff line number Diff line change
@@ -87,7 +87,7 @@ export const renderField = (
};

const formListForDict = () => (
<Form.List name={[...name, 'value']}>
<Form.List name={[...name, 'value']} initialValue={[]}>
{(fieldCollection, { add, remove, move }) => (
<div className={s.fieldList}>
{fieldCollection.map(({ key, name: fieldName }, index) => {
8 changes: 3 additions & 5 deletions src/utility/abi.ts
Original file line number Diff line number Diff line change
@@ -250,13 +250,13 @@ export function getContractInitParams(
break;
case 'void':
additionalProps = {
name: item.name,
name: item.name.text,
type: 'void',
};
break;
case 'null':
additionalProps = {
name: item.name,
name: item.name.text,
type: 'null',
};
break;
@@ -268,7 +268,7 @@ export function getContractInitParams(
break;
}
return {
name: item.name,
name: item.name.text,
type: {
...additionalProps,
kind: item.type.kind === 'map' ? 'dict' : 'simple',
@@ -302,8 +302,6 @@ export function parseInputs(inputFields: TactInputFields, key?: string): any {
return Address.parse(value as string);
case 'string':
return String(value);
case 'dict':
throw new Error(`Map not supported yet`);
case 'bool':
return value;
case 'text':