我只是想知道这个过程一旦我们为ico创建了自己的硬币我们是否需要创建自己的钱包和交换,在ico期间将基于以太币的自己的硬币转移给投资者的过程是什么。
我所理解的:
现在#6,我已经读过你可以手动/直接发布它们,你也可以自动化这个过程,但大多数icos都是从一个"#34;开始的。会手动完成,这样他们就可以将大部分时间花在营销上,而不是花在实际代码上。
这是对的还是我需要一个阻止开发人员来为此目的创建自己的钱包。
如果我在以太上创建了我自己的硬币并且我在以太上有默认钱包,我怎样才能将令牌或我自己的硬币转移给我的投资者,手动,我是否需要一个开发人员来创建这个过程钱包?
答案 0 :(得分:0)
如果您在以太坊上创建和发行自己的硬币,那么它们是通过// Variable Declarations
int SIZE = 10; // Max number of agents
char *agents[SIZE], // List of current connections
*times[SIZE]; // List of connection times
char buffer[MAXBUF];
int bytes_read = 0;
int total_bytes_read = 0;
int found = 0, // Bool flag
i;
struct tm ts;
struct timeval connected[SIZE],
current,
difference;
time_t TIME;
// Initialize array to NULL
for(i = 0; i < SIZE; i++) {
agents[i] = NULL;
}
// Infinite Loop
while (true) {
struct sockaddr_in client;
int clientSocket;
socklen_t clientLength = sizeof(client);
memset(&client, 0, clientLength);
clientSocket = accept(sd, (struct sockaddr *)&client, &clientLength);
memset(buffer,0,MAXBUF);
bytes_read = read(clientSocket, buffer, MAXBUF);
if (bytes_read < 0)
break;
fprintf(stdout,"\nRead %d bytes: [%s]\r\n", bytes_read,buffer);
char *connectedIP = inet_ntoa(client.sin_addr);
// Option 1:
if ((strcmp(buffer, "#JOIN")) == 0) { // Join list of connected agents
found = 0;
// Get current time for log
TIME = time(NULL);
ts = *localtime(&TIME);
// Print message to log
char buf[80];
strftime(buf, sizeof(buf), "%a %Y-%m-%d %H:%M:%S %Z", &ts);
fprintf(log, "%s: Received a \"#JOIN\" action from agent \"%s\"", buf, connectedIP);
fprintf(log, "\n\n");
fflush(log);
printf("\n%s Joining", connectedIP);
fflush(stdout);
// Handle #JOIN request appropriately
for (i = 0; i < SIZE; i++) {
printf("\nAgent[%d] == %s", i, agents[i]);
if (agents[i] == NULL) {
}
else if (strcmp(agents[i], connectedIP) == 0){ // Agent found in list
found = 1;
printf("\n%s is equal to %s", agents[i], connectedIP);
fflush(stdout);
// Write to agent
char response[] = "#ALREADY MEMBER";
write (clientSocket, response, strlen(response));
// Get time for log
TIME = time(NULL);
ts = *localtime(&TIME);
// Write to log
char buf[80];
strftime(buf, sizeof(buf), "%a %Y-%m-%d %H:%M:%S %Z", &ts);
fprintf(log, "%s: Responded to agent \"%s\" with \"#ALREADY MEMBER\"", buf, connectedIP);
fprintf(log, "\n\n");
fflush(log);
i = SIZE;
}
}
if (found == 0) { // Save IP to list/queue
for(i = 0; i < SIZE; i++) {
if (agents[i] == NULL) {
// Save IP to array
agents[i] = connectedIP;
printf("\nagents[%d] = %s\n", i, connectedIP);
fflush(stdout);
// Save time to arrays
gettimeofday(&connected[i], NULL);
TIME = time(NULL);
times[i] = TIME;
ts = *localtime(&TIME);
// Write to log
char buf[80];
strftime(buf, sizeof(buf), "%a %Y-%m-%d %H:%M:%S %Z", &ts);
fprintf(log, "%s: Responded to agent \"%s\" with \"#OK\"", buf, connectedIP);
fprintf(log, "\n\n");
fflush(log);
// Write to agent
char response[] = "#OK";
write (clientSocket, response, strlen(response));
i = SIZE;
}
}
}
memset(&client, 0, clientLength);
}
完成的,而不是手动发出的。以下是创建新令牌的智能合约示例:https://www.ethereum.org/token
一般来说,这个过程(仅适用于合同)如下:
您是否要为ICO创建新钱包或使用现有钱包取决于您,您绝对需要开发人员,因为您需要为智能合约编写代码。