Skip to content

Commit

Permalink
removes deposit and reduces gas (#551) (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem authored Dec 6, 2023
1 parent 3d43c38 commit ebf452f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 28 deletions.
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

0 comments on commit ebf452f

Please sign in to comment.