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

Transfer reserved names v2 #53

Merged
merged 1 commit into from
Jan 31, 2024
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
2 changes: 1 addition & 1 deletion scripts/airdrop/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export const prepareMultisigTx = async (
if(!gasObjectId) throw new Error("No gas object supplied for a mainnet transaction");

// set the gas budget.
tx.setGasBudget(9_000_000_000);
tx.setGasBudget(2_000_000_000);
jnaulty marked this conversation as resolved.
Show resolved Hide resolved

// set the sender to be the admin address from config.
tx.setSenderIfNotSet(config.adminAddress as string);
Expand Down
65 changes: 65 additions & 0 deletions scripts/reserved-names/data/transfers-v2.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name,Address
abhi,0x03d054f153ff7d54f1c240fc3006258ae19e0fe572fa80496a068703c7d7cb7f
marklogan,0x13506993736c126f46e780b7a658f615c308dea2f9c9f1eba430453ccb170d1e
phong,0xe3e7505952d4ecb7da4c00dd6bf88e45b2a06bf8fbbb034177b00b378914fd8c
ron,0x98bd90a13940cb3f6269dd7b2dcc787240fe9edebfe33fa35d736b5a0fcf2181
joe,0xce86462815bba77ad22eec1b69f68f4bcefc7219168cf4ccf67daa416400ab44
alonso,0x79ecc6f239fd5fdd2a3b51dcbd9c449b52e7892ef2d6f59c82b582813d7fb69e
maria,0xb2afed36e54cb558267433a25e5c21d121065026aece85e8df742bd84e2c3a7d
jen,0xf0e94eb7e7a5180f081cc3c78fc9648103ded357b9dd63e03282f95964dc8b1d
rob,0x66c977a9d6bf4a24f06acd4b151c52ad2e99ade901063ee0539390f2d52f42e2
lola,0xc91a98b8e1565e5e30c5b3510fb83941a1ccda055d1419d05f6c7b25e4457765
adam,0x131cb35854151c884804aceda8a4ce4b205cb38709270d00d8cff0d3627e59cd
teo,0x9c28d8a5853c9a52cc4863331f6fa9931732a5e548d6027aafa9fcc7387929f3
stefanos,0x9a13bca12a4360885185e53f0c20bd47c7707e895cbddeed96d6daa293ca084d
markus,0x3243f6a9b420e8f887bc45286cf3fc013b6bec26829b350daa9cf96972609a47
karl,0x42ccc0e741ce122183347a8d8dd51112e7135ed24f6e4b193d584ce5a53d02eb
amnn,0x1e80a4f8cd8517098ca589d306127f16ed852d7d69d905d65c7463f3bb945d02
anoop,0x2d3409b5b4726e77699ca926af43c1509ef4087ccd0ae19d30eafaf04e08509b
snoopventures,0x2d3409b5b4726e77699ca926af43c1509ef4087ccd0ae19d30eafaf04e08509b
anoopk,0x2d3409b5b4726e77699ca926af43c1509ef4087ccd0ae19d30eafaf04e08509b
arnab,0x7a512fb635ea32d52fdd3c2f8f264ca388f196326b4f92299365492485b72c73
adrian,0x48ec8d0a673128806dcc404fc99891195fa78dce50d66df8a0b49ae14765d30d
alex,0xdbd21f148f769f9875637135c7f61bd749809dcf14933434ad0a301dae332c15
john,0xd55e6b9d78bf6722d60085fb2df831bfb167732a0c4390796386b9d5259893db
lefteris,0xd14b8885b83f5cc288b9c60d7b1aaf77a47ba6afe204fa259e237cc5b58b92d5
bill,0x3ae4592005115a2dd4eeada0179c9e64368f0056dbbe0afeb15415e0ae8defb0
sylvia,0x734ac8decc790f524af60a1e12529db9a689ced5b82b05dcc0806231b6d604f9
inga,0x6a3e0f927c72dfcd5b9bea557d28e018f508214e6bb85a7b787ead5fe9319df7
patrick,0xbab1ae46252d520bb8d82e6d8f2b83acb9c1c4226944516b4c6c45b0d00ef17d
ggaowp,0x7ebad217ea8242aa1d58654ebb9aab68d4710a96c6b349373a15940da5fc045f
Ryan,0x35b4e6450840566b56539307ca63ee93b4d8b1907232d83c254fe885d624d491
dimitris,0x75811c6ba57917c4aa67c65cda1cad7adbf543c505a43629016322f108cec896
pei,0x884a868c6cfd39085628eb22dd27a28afe4eb5ff186b7b880a5308b5fae0570c
andrew,0x4bc419667d94ef028bb6e7339a18a442de4f2529eb5ed673a918ed415d9713a0
mike,0x71d679ebed72db6c36b4c8be3d143d87deff9e4fe810d1f4fa5be8cf5b16284d
rahul,0x89f20d5d99ff1c75590cf7ff762b892a14ec9b442993f687dabbbd55a6ad781d
wei,0x6395bba59d8f24c490998bb070c31d599ac009a4219fac739fd16a7af4f0c008
eugene,0xbcc57da40a03360386ce92ee07fcc7b4f82f013fc7c3a112540e479c2a7c2ece
arun,0xe83b016e4af7453d215027420c4ca5202b0fd55f26949453455b95fef38d7f5b
kevin,0x19b801391d32790263ce571ea0c52433dc7f1976ea48636981a6e12be695c7f3
kiefer,0xc8e166cfa7ebec86d8f11c0f3153a2179150467914294b1f7518f6141ddd3c0f
melas,0x21ba535ffa74e261a6281a205398ac9400bbbac41b49bfa967882abdf86b1486
bryan,0x18f8679ba9fd8bfd63f70a73b99c0a006d13f5b369cd93d75b9c63edb1790b14
giac,0x6364ecda4096bee84f54fa73ca071cf8aed7688453a22ec81e6d4b41bddc4d60
msc,0x566cbc9c35279edd187aa2d3b38fae376f7cb8ee4af63065357a2c9b842a6aba
bmwill,0x2a5f20e20d1f805bbc7feb0c4b49747003e3f47e3b51d67690f3c31152d877aa
riva,0x5252021002d577ec7cd2aa22a1f31a6853f15d825b5d6a22713cf97ec577c8cb
amogh,0x0ef5b4fd8c2860a596a394a849915805a1381a7eee572e65b885a71515b5f679
william,0x0be041b704e86c7c5c2ae2b21b814705d1b39b5a0fcb0d85ada03738f23cdace
oliver,0xf91d8c2d9c6b3bd7eba93a9446c43098229a4099a1bdc4d230ac76092621eb7a
mosaicregressor,0x6a8388e2e8602c7a945d3dc2ab8cb31a0b64c1dd08eac2269af100eabfa4887a
suipad,0xb84bc37cd42381a71169826993b345b4c3f8b5b9da1ffeaf940edf48fcc9d3af
blockvision,0xdea0a2bf3a1194088ecafb35ce9b1857b5b18b8f6fc70cc5ae5a1ca72460189b
suivision,0x9ae909412385457a111a4a081f5c40fc41add7c0098fc99f18b54b1d7a33c387
bluemove,0x228e4821a94be23eaca6a62007163d7818c46a941c460aa61012256db2a845e6
aftermath,0x4b02b9b45f2a9597363fbaacb2fd6e7fb8ed9329bb6f716631b5717048908ace
suigallery,0x8e90c5c8e3092569c96cdba1238f1c39ec85db615dd8e233e5033a851c0d087c
gallery,0x8e90c5c8e3092569c96cdba1238f1c39ec85db615dd8e233e5033a851c0d087c
gallerysui,0x8e90c5c8e3092569c96cdba1238f1c39ec85db615dd8e233e5033a851c0d087c
ottersec,0x51c42d5bceeacee228541d1ede595653ca8d1bbbda5d23fb198d2b20c4505652
osec,0x51c42d5bceeacee228541d1ede595653ca8d1bbbda5d23fb198d2b20c4505652
surf,0x13e7d893ffb8ea3db2b1aa1954132f1f879f2917c8e0f592ddbcbe9089a0a6f6
spartanlabs,0xa987c410fa047b973d479555894c85208c4450ef65fd1d8d5911b46fbca83365
gilder,0xfd98168b77c305148967cdcafdfbd03da664ccb50aae335b72e226feba3e6933
suizzle,0xc30bd54d8f6cce8d363de8284299a3c8134e45a2f435c07ac1f3843528455076
2 changes: 1 addition & 1 deletion scripts/reserved-names/owned-objects.json

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions scripts/reserved-names/transfer-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ const parseOwnedObjects = () => {
// Parses the combined CSV
const parseCsvFile = () => {

fs.readFileSync('./reserved-names/data/transfers.csv')
fs.readFileSync('./reserved-names/data/transfers-v2.csv')
.toString()
.split('\n')
.map(x => x.split(','))
.filter(x => !!x && !!x[0])
.map( ([name, address, domain]) => ({
name,
.map( ([domain, address]) => ({
address,
domain: domain.toLowerCase()
} as TransferObject))
Expand Down Expand Up @@ -76,8 +75,15 @@ const prepareTx = () => {
const txb = new TransactionBlock();

for(let recipient of Object.keys(recipients)) {
txb.transferObjects([...recipients[recipient]].filter(x => !!x).map(x => txb.object(x)), txb.pure(recipient, 'address'));
// const objects = [...recipients[recipient]].filter(x => !!x).map(x => txb.object(x));

for(const object of [...recipients[recipient]].filter(x => !!x)) {
txb.transferObjects([txb.object(object)], txb.pure(recipient, 'address'));
}

}

console.dir(txb, {depth: null});
return prepareMultisigTx(txb, 'mainnet');
}

Expand All @@ -87,5 +93,6 @@ parseOwnedObjects();
// Parses the `transfers.csv` file, and creates the list of object transfers
parseCsvFile();

// console.log(recipients);
// Prepares the TXB for that and saves it in tx-data.
prepareTx();
Loading