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

removes deposit and reduces gas (#551) #552

Merged
merged 1 commit into from
Dec 6, 2023
Merged
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
6 changes: 2 additions & 4 deletions src/devhub/entity/addon/blog/editor/provider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ const handleOnSubmit = (v, isEdit) => {
comment_version: "V2",
},
},
deposit: Big(10).pow(21).mul(2),
gas: Big(10).pow(12).mul(100),
gas: Big(10).pow(14),
});
} else {
Near.call({
Expand All @@ -120,8 +119,7 @@ const handleOnSubmit = (v, isEdit) => {
comment_version: "V2",
},
},
deposit: Big(10).pow(21).mul(2),
gas: Big(10).pow(12).mul(100),
gas: Big(10).pow(14),
});
}
};
Expand Down
6 changes: 2 additions & 4 deletions src/devhub/entity/post/Post.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,7 @@ const onLike = () => {
args: {
post_id: postId,
},
deposit: Big(10).pow(21).mul(2),
gas: Big(10).pow(12).mul(100),
gas: Big(10).pow(14),
},
];

Expand All @@ -296,8 +295,7 @@ const onLike = () => {
predecessor_id: "${REPL_DEVHUB_CONTRACT}",
keys: [context.accountId + "/index/notify"],
},
deposit: Big(10).pow(23),
gas: Big(10).pow(12).mul(30),
gas: Big(10).pow(14),
});
}

Expand Down
9 changes: 3 additions & 6 deletions src/devhub/entity/post/PostEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ const onSubmit = () => {
labels,
body,
},
deposit: Big(10).pow(21).mul(2),
gas: Big(10).pow(12).mul(100),
gas: Big(10).pow(14),
});
} else if (mode == "Edit") {
props.onDraftStateChange(
Expand All @@ -187,8 +186,7 @@ const onSubmit = () => {
labels,
body,
},
deposit: Big(10).pow(21).mul(2),
gas: Big(10).pow(12).mul(100),
gas: Big(10).pow(14),
});
}
if (mode == "Create" || mode == "Edit") {
Expand All @@ -200,8 +198,7 @@ const onSubmit = () => {
predecessor_id: "${REPL_DEVHUB_CONTRACT}",
keys: [context.accountId + "/index/notify"],
},
deposit: Big(10).pow(23),
gas: Big(10).pow(12).mul(30),
gas: Big(10).pow(14),
});
}
Near.call(txn);
Expand Down
6 changes: 2 additions & 4 deletions src/devhub/entity/team/LabelRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ function editTeam({
parents: [],
},
},
deposit: Big(0).pow(21),
gas: Big(10).pow(12).mul(100),
gas: Big(10).pow(14),
});
}
});
Expand Down Expand Up @@ -140,8 +139,7 @@ function editTeam({
parents: [],
},
},
deposit: Big(0).pow(21),
gas: Big(10).pow(12).mul(100),
gas: Big(10).pow(14),
},
]);
}
Expand Down
6 changes: 2 additions & 4 deletions src/devhub/page/admin/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ function createEditTeam({
parents: [],
},
},
deposit: Big(0).pow(21),
gas: Big(10).pow(12).mul(100),
gas: Big(10).pow(14),
});
}
});
Expand All @@ -97,8 +96,7 @@ function createEditTeam({
parents: [],
},
},
deposit: Big(0).pow(21),
gas: Big(10).pow(12).mul(100),
gas: Big(10).pow(14),
},
]);
}
Expand Down
9 changes: 3 additions & 6 deletions src/devhub/page/create.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ const onSubmit = () => {
labels,
body: body,
},
deposit: Big(10).pow(21).mul(3),
gas: Big(10).pow(12).mul(100),
gas: Big(10).pow(14),
});
} else if (mode == "Edit") {
txn.push({
Expand All @@ -179,8 +178,7 @@ const onSubmit = () => {
labels,
body: body,
},
deposit: Big(10).pow(21).mul(2),
gas: Big(10).pow(12).mul(100),
gas: Big(10).pow(14),
});
}
if (mode == "Create" || mode == "Edit") {
Expand All @@ -192,8 +190,7 @@ const onSubmit = () => {
predecessor_id: "${REPL_DEVHUB_CONTRACT}",
keys: [context.accountId + "/index/notify"],
},
deposit: Big(10).pow(23),
gas: Big(10).pow(12).mul(30),
gas: Big(10).pow(14),
});
}
Near.call(txn);
Expand Down